PopoverInput 是一个悬浮输入组件,通过弹出层的方式提供输入功能,适用于需要节省页面空间或临时输入的场景。
| 属性名称 | 描述 | 类型 | 默认值 |
|---|---|---|---|
| value | 值 | String | - |
| type | 类型 | String | 'text' |
| width | 宽度 | Number | String | '300px' |
| placeholder | 提示文字 | String | - |
| disabled | 是否禁用 | Boolean | false |
| options | 选项列表 | Array<any[]> | [] |
| size | 大小 | 'default' | 'small' | 'large' | 'default' |
| limit | 字符限制 | Number | 200 |
| showLimit | 是否显示字符限制 | Boolean | false |
| teleported | 是否使用传送门(teleport)进行渲染 | Boolean | true |
| 事件名称 | 说明 | 回调参数 |
|---|---|---|
| confirm | 确认输入时触发 | (value: string) |