import { IBaseForm } from '../baseForm' import { paramsInterfaceValidKey } from '../../../script/index' export interface TagInterface extends IBaseForm { tagType?: Function effect?: string round?: boolean tagName: string closable?: boolean border?: boolean color?: string click?: Function close?: Function checked?: boolean } export class TagConfig implements TagInterface { tagName = '' type = 'infoTag' model = '' label = '' effect = 'light' round = false closable = false border = true color = '' checked = false click = (): void => {} close = (): void => {} tagType = (): string => 'success' constructor (params: TagInterface) { paramsInterfaceValidKey(this, params) } }