UNPKG

eslink-ui-plus

Version:

vue3 component library, css framework

38 lines (35 loc) 794 B
import { PropType } from "vue"; export interface keyConfigType { labelKey?: string; valueKey?: string; disabledKey?: string; childrenKey?: string; } export const initKeyConfig = { labelKey: "label", valueKey: "value", disabledKey: "disabled", childrenKey: "children", }; export const keyConfigProp = { type: Object as PropType<keyConfigType>, default: () => initKeyConfig, }; export interface sourceItemType { value: string; label: string; disabled: string; children: sourceItemType[]; show?: boolean; } export const sourceProp = { type: Object as PropType<sourceItemType[]>, default: () => [], }; export interface objectType<V> { [key: string]: V; } export const multipleProp = { type: Boolean, default: false, };