Mentions 提及
规则
基础示例
Props 配置示例
可清除 + 状态
形态示例
整段禁用
尺寸对比(小 / 中 / 大)
Events 事件示例
value:string
Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|---|---|---|---|---|
| loading | - | boolean | - | - |
| status | 校验状态 | InputStatus | - | - |
| options | 选项 | MentionsOptionProps[] | [] | - |
| popupClassName | - | string | - | - |
| variant | 形态变体 | Variant | outlined | - |
| classes | 语义化 class | MentionsClassNamesType | - | - |
| styles | 语义化 style | MentionsStylesType | - | - |
| size | 尺寸 | SizeType | - | - |
| labelRender | 自定义选项标签 | (ctx: { option, index }) => any | - | - |
| allowClear | 可清除 | boolean | | false | - |
| disabled | 禁用 | boolean | - | - |
Events
| 事件 | 说明 | 类型 | 版本 |
|---|---|---|---|
| focus | 获得焦点 | (event: FocusEvent) => void | - |
| blur | 失去焦点 | (event: FocusEvent) => void | - |
| change | 值改变 | (value: string) => void | - |
| select | 选择选项 | (option: MentionsOptionProps, prefix: string) => void | - |
| popupScroll | 列表滚动 | (event: Event) => void | - |
| search | 搜索 | (text: string, prefix: string) => void | - |
| update:value | 同步值 | (value: string) => void | - |


