uniapp下拉搜索插件
2022-11-25 本文已影响0人
扶得一人醉如苏沐晨
https://ext.dcloud.net.cn/plugin?id=5627#detail
原组件有bug
解决选中以后不能回显的问题
/** 点击组件列
* @param {Object} index 索引
* @param {Object} item 值
*/
selectitem(index, item) {
this.active = false
this.changevalue = item[this.slabel]
this.$emit("selectitem", {index, item})
},
样式调整
.uni-select-lay {
position: relative;
z-index: 999;
width: 100%;
}