UNPKG

ideaz-element

Version:

<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>

1 lines 2.59 kB
{"version":3,"file":"props.cjs","sources":["../../../../../packages/element/tag-select/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes, VNode } from 'vue'\nimport type { ComponentSize } from 'element-plus'\nimport type { Alias, OptionsItem } from '../../types'\n\nexport interface TagSelectOptionsItem extends OptionsItem {\n type?: 'success' | 'info' | 'warning' | 'danger'\n disableTransitions?: boolean\n hit?: boolean\n color?: string\n size?: 'large' | 'default' | 'small' | ''\n effect?: 'dark' | 'light' | 'plain'\n round?: boolean\n closable?: boolean\n onClick?: (option: TagSelectOptionsItem) => void\n onClose?: (option: TagSelectOptionsItem) => void\n}\n\nexport interface TagSelectGroupOptionsItem {\n field: string\n children?: TagSelectOptionsItem[]\n multiple?: boolean\n all?: boolean\n titleWidth?: string | number\n size?: ComponentSize\n title?: string | (() => VNode)\n alias?: Alias\n}\n\nexport const tagSelectProps = {\n options: {\n type: Array as PropType<TagSelectGroupOptionsItem[] | TagSelectOptionsItem[]>,\n default: () => [],\n },\n multiple: {\n type: Boolean,\n default: false,\n },\n modelValue: {\n type: [Object, String, Number, Array],\n default: () => ({}),\n },\n all: {\n type: Boolean,\n default: true,\n },\n titleWidth: {\n type: [String, Number],\n },\n size: {\n type: String as PropType<ComponentSize>,\n },\n alias: {\n type: Object as PropType<Alias>,\n },\n}\n\nexport const tagSelectItemProps = {\n ...tagSelectProps,\n title: {\n type: [String, Function] as PropType<string | (() => VNode)>,\n default: '',\n },\n options: {\n type: Array as PropType<TagSelectOptionsItem[]>,\n default: () => [],\n },\n modelValue: {\n type: [String, Number, Array] as PropType<string | number | number[] | string[]>,\n default: '',\n },\n}\n\nexport type TagSelectItemProps = ExtractPropTypes<typeof tagSelectItemProps>\nexport type TagSelectProps = ExtractPropTypes<typeof tagSelectProps>\n"],"names":["tagSelectProps","tagSelectItemProps"],"mappings":"gFA4BO,MAAAA,EAAA,CAAuB,QAAA,CACnB,KAAA,MACD,QAAA,IAAA,CAAA,CACU,EAClB,SAAA,CACU,KAAA,QACF,QAAA,EACG,EACX,WAAA,CACY,KAAA,CAAA,OAAA,OAAA,OAAA,KAAA,EAC0B,QAAA,KAAA,CAAA,EACnB,EACnB,IAAA,CACK,KAAA,QACG,QAAA,EACG,EACX,WAAA,CACY,KAAA,CAAA,OAAA,MAAA,CACW,EACvB,KAAA,CACM,KAAA,MACE,EACR,MAAA,CACO,KAAA,MACC,CAEV,EAEOC,EAAA,CAA2B,GAAAD,EAC7B,MAAA,CACI,KAAA,CAAA,OAAA,QAAA,EACkB,QAAA,EACd,EACX,QAAA,CACS,KAAA,MACD,QAAA,IAAA,CAAA,CACU,EAClB,WAAA,CACY,KAAA,CAAA,OAAA,OAAA,KAAA,EACkB,QAAA,EACnB,CAEb"}