advint-user-admin
Version:
开箱即用的后台管理基础用户系统组件
78 lines (77 loc) • 2.3 kB
TypeScript
export declare const useDictStore: import('pinia').StoreDefinition<"dict", Pick<{
dict: globalThis.Ref<{
key: string;
value: {
label: string;
value: string;
elTagType?: ElTagType | undefined;
elTagClass?: string | undefined;
}[];
}[], {
key: string;
value: DictDataOption[];
}[] | {
key: string;
value: {
label: string;
value: string;
elTagType?: ElTagType | undefined;
elTagClass?: string | undefined;
}[];
}[]>;
getDict: (_key: string) => DictDataOption[] | null;
setDict: (_key: string, _value: DictDataOption[]) => void;
removeDict: (_key: string) => boolean;
cleanDict: () => void;
}, "dict">, Pick<{
dict: globalThis.Ref<{
key: string;
value: {
label: string;
value: string;
elTagType?: ElTagType | undefined;
elTagClass?: string | undefined;
}[];
}[], {
key: string;
value: DictDataOption[];
}[] | {
key: string;
value: {
label: string;
value: string;
elTagType?: ElTagType | undefined;
elTagClass?: string | undefined;
}[];
}[]>;
getDict: (_key: string) => DictDataOption[] | null;
setDict: (_key: string, _value: DictDataOption[]) => void;
removeDict: (_key: string) => boolean;
cleanDict: () => void;
}, never>, Pick<{
dict: globalThis.Ref<{
key: string;
value: {
label: string;
value: string;
elTagType?: ElTagType | undefined;
elTagClass?: string | undefined;
}[];
}[], {
key: string;
value: DictDataOption[];
}[] | {
key: string;
value: {
label: string;
value: string;
elTagType?: ElTagType | undefined;
elTagClass?: string | undefined;
}[];
}[]>;
getDict: (_key: string) => DictDataOption[] | null;
setDict: (_key: string, _value: DictDataOption[]) => void;
removeDict: (_key: string) => boolean;
cleanDict: () => void;
}, "getDict" | "setDict" | "removeDict" | "cleanDict">>;
export default useDictStore;