@pusdn/pgz-comp-elep
Version:
PGZ组件库,Vue3 中基于Element-Plus二次封装基础组件文档
66 lines (65 loc) • 2.1 kB
TypeScript
import type { PropType } from 'vue';
import { DictOption } from './type';
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
value: {
type: PropType<string | number>;
default: undefined;
};
dictCode: {
type: StringConstructor;
default: string;
};
useDicColor: {
type: BooleanConstructor;
default: boolean;
};
options: {
type: PropType<DictOption[]>;
default: () => never[];
};
}>, {
props: any;
emit: (event: "change" | "update:value", ...args: any[]) => void;
checkOptions: import("vue").Ref<{
[x: string]: any;
value: string | number;
label: string;
color?: string | undefined;
}[], DictOption[] | {
[x: string]: any;
value: string | number;
label: string;
color?: string | undefined;
}[]>;
checkboxArray: import("vue").Ref<(string | number)[], (string | number)[]>;
loadDictOptions: () => Promise<void>;
initOptions: () => Promise<void>;
handleChange: (checkedValues: (string | number)[]) => void;
getDicColor: (value: string | number) => string | null;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
value: {
type: PropType<string | number>;
default: undefined;
};
dictCode: {
type: StringConstructor;
default: string;
};
useDicColor: {
type: BooleanConstructor;
default: boolean;
};
options: {
type: PropType<DictOption[]>;
default: () => never[];
};
}>> & Readonly<{
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
}>, {
value: string | number;
options: DictOption[];
dictCode: string;
useDicColor: boolean;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _sfc_main;