import type { Component } from 'vue' import { paramsInterfaceValidKey } from '../../script/index' interface DropdownItem { name: string command: string code: string icon?: Component | string show?: Function disabled?: Function divided?: boolean style?: any } export interface RowInterface { show?: Function size?: string trigger?: string // hover/click/contextmenu link?: boolean // 文字 disabled?: Function class?: string title?: Function useTip?: boolean icon?: Component, iconSize?: number | string dropdown: () => DropdownItem[] method?: Function } export class ddConfig implements RowInterface { model = '' type = 'infoDropdown' disabled = (): boolean => false dropdown = () => [] constructor (params: RowInterface) { paramsInterfaceValidKey(this, params) } method = (): void => { } }