添加程序配置项

This commit is contained in:
2025-05-08 16:29:04 +08:00
parent 18582016b2
commit 5d2af32d68
3 changed files with 31 additions and 6 deletions

View File

@@ -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"],