UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 1.07 kB
{"version":3,"file":"mention-dropdown.mjs","names":[],"sources":["../../../../../../packages/components/mention/src/mention-dropdown.ts"],"sourcesContent":["import { buildProps, definePropType, isString } from '@element-plus/utils'\n\nimport type { MentionOption } from './types'\n\nexport interface MentionDropdownProps {\n options?: MentionOption[]\n loading?: boolean\n disabled?: boolean\n contentId?: string\n ariaLabel?: string\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `MentionDropdownProps` instead.\n */\nexport const mentionDropdownProps = buildProps({\n options: {\n type: definePropType<MentionOption[]>(Array),\n default: () => [],\n },\n loading: Boolean,\n disabled: Boolean,\n contentId: String,\n ariaLabel: String,\n})\n\nexport const mentionDropdownEmits = {\n select: (option: MentionOption) => isString(option.value),\n}\n"],"mappings":";;;;;;;AAeA,MAAa,uBAAuB,WAAW;CAC7C,SAAS;EACP,MAAM,eAAgC,MAAM;EAC5C,eAAe,EAAE;EAClB;CACD,SAAS;CACT,UAAU;CACV,WAAW;CACX,WAAW;CACZ,CAAC;AAEF,MAAa,uBAAuB,EAClC,SAAS,WAA0B,SAAS,OAAO,MAAM,EAC1D"}