vue-echarts-linkage
Version:
vue3 echarts 的联动组件
75 lines (74 loc) • 2.63 kB
TypeScript
import { DragItemType, DragListDataType } from './type/index';
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
/**
* @description: 组件props类型
* @param {Array<DragItemDataProps>} data - 原始数据
* @param {string} id - 唯一标识
* @param {Array<string>} colors - 颜色数组
* @param {string} group - 组名
* @param {'light' | 'dark'} theme - 主题
* @param {string | number} itemFontSize - 子项字体大小
*/
export type PropsType = {
data: Array<DragItemType>;
id: string;
colors?: Array<string>;
group: string;
theme?: 'light' | 'dark';
itemFontSize?: string | number;
};
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PropsType>, {
data: () => never[];
id: string;
colors: () => string[];
group: string;
theme: string;
itemFontSize: string;
}>>, {
getAllData: () => DragListDataType[];
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
isDragging: (...args: any[]) => void;
update: (...args: any[]) => void;
deleteItem: (...args: any[]) => void;
deleteItemColumn: (...args: any[]) => void;
deleteItemsAll: (...args: any[]) => void;
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PropsType>, {
data: () => never[];
id: string;
colors: () => string[];
group: string;
theme: string;
itemFontSize: string;
}>>> & Readonly<{
onIsDragging?: ((...args: any[]) => any) | undefined;
onUpdate?: ((...args: any[]) => any) | undefined;
onDeleteItem?: ((...args: any[]) => any) | undefined;
onDeleteItemColumn?: ((...args: any[]) => any) | undefined;
onDeleteItemsAll?: ((...args: any[]) => any) | undefined;
}>, {
id: string;
data: DragItemType[];
theme: "dark" | "light";
colors: string[];
group: string;
itemFontSize: string | number;
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};
//# sourceMappingURL=index.vue.d.ts.map