Skip to content

TSelectIcon elemnt-plus图标选择组件 ​

基本使用 ​

是否显示弹窗搜索框 ​

是否显示选中后的图标 ​

selectBind属性配置 ​

TSelectIcon Attributes ​


1、代码示例 ​

html
<t-select-icon v-model="selectVlaue" />

2、配置参数(Attributes)继承 el-input Attributes ​

参数说明类型默认值
v-model绑定值string-
prefixIcon输入框前缀iconstringSearch
isShowSearch是否显示搜索图标Booleantrue
isShowIcon是否显示选中后的图标Booleantrue
selectBindAttributesselectBind"prefix-icon": props.prefixIcon, placeholder: "请选择图标",dialogTitle:'请选择图标',clearable: true,width: "50%"

3、事件(events)继承 el-input 属事件 ​

事件名说明回调参数
select选择完图标返回选中的图标name

Exposes(Method) ​

Method说明
clearIconv1.5.1重置选中项