UNPKG

@pusdn/pgz-comp-elep

Version:

PGZ组件库,Vue3 中基于Element-plus二次封装基础组件文档

150 lines (149 loc) 5.8 kB
import PCheckbox from "./src/index.vue"; export type PgzCheckboxInstance = InstanceType<typeof PCheckbox>; declare const PgzCheckbox: ({ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{ value: { type: import("vue").PropType<string | number>; default: undefined; }; dictCode: { type: StringConstructor; default: string; }; useDicColor: { type: BooleanConstructor; default: boolean; }; options: { type: import("vue").PropType<import("./src/type").DictOption[]>; default: () => never[]; }; }>> & Readonly<{ onChange?: ((...args: any[]) => any) | undefined; "onUpdate:value"?: ((...args: any[]) => any) | undefined; }>, { 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; }[], import("./src/type").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")[], import("vue").PublicProps, { value: string | number; options: import("./src/type").DictOption[]; dictCode: string; useDicColor: boolean; }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly<import("vue").ExtractPropTypes<{ value: { type: import("vue").PropType<string | number>; default: undefined; }; dictCode: { type: StringConstructor; default: string; }; useDicColor: { type: BooleanConstructor; default: boolean; }; options: { type: import("vue").PropType<import("./src/type").DictOption[]>; default: () => never[]; }; }>> & Readonly<{ onChange?: ((...args: any[]) => any) | undefined; "onUpdate:value"?: ((...args: any[]) => any) | undefined; }>, { 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; }[], import("./src/type").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; }, {}, {}, {}, { value: string | number; options: import("./src/type").DictOption[]; dictCode: string; useDicColor: boolean; }>; __isFragment?: undefined; __isTeleport?: undefined; __isSuspense?: undefined; } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{ value: { type: import("vue").PropType<string | number>; default: undefined; }; dictCode: { type: StringConstructor; default: string; }; useDicColor: { type: BooleanConstructor; default: boolean; }; options: { type: import("vue").PropType<import("./src/type").DictOption[]>; default: () => never[]; }; }>> & Readonly<{ onChange?: ((...args: any[]) => any) | undefined; "onUpdate:value"?: ((...args: any[]) => any) | undefined; }>, { 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; }[], import("./src/type").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", { value: string | number; options: import("./src/type").DictOption[]; dictCode: string; useDicColor: boolean; }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>) & Record<string, any>; export default PgzCheckbox; export * from './src/type';