添加程序配置项
This commit is contained in:
@@ -3,12 +3,13 @@ import {
|
||||
onBeforeUpdate,
|
||||
onUnmounted,
|
||||
watch,
|
||||
type PropType
|
||||
} from "vue-demi";
|
||||
import { ModContext } from "../types/ModContext";
|
||||
import { InvokerItem } from "./InvokerItem";
|
||||
|
||||
let idCount = 0;
|
||||
export const UrlFunc = null as ((name: string) => string) | null;
|
||||
export type InvokerModName = string;
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
@@ -21,12 +22,13 @@ export default defineComponent({
|
||||
default: () => false,
|
||||
},
|
||||
items: {
|
||||
type: Array ,
|
||||
type: Array,
|
||||
default: () => undefined as InvokerItem[] | undefined,
|
||||
},
|
||||
url: {
|
||||
type: String,
|
||||
default: () => null,
|
||||
name: {
|
||||
type: String as PropType<InvokerModName> | undefined,
|
||||
default: () => undefined,
|
||||
required: false,
|
||||
}
|
||||
},
|
||||
emits: ["destroyed"],
|
||||
|
Reference in New Issue
Block a user