<script>
import { Select } from "element-ui";
export default {
props: {
value: {
type: Array,
default: function() {
return [];
}
},
maxShowCount: {
type: Number,
default: 3
}
},
render(h) {
return h('div', {
class: ['multiple-select'],
ref: 'select'
}, [
h(Select, {
props: {
value: this.value,
...this.$attrs,
multiple: true,
collapseTags: false
},
on: {
clear: async () => {
前端select下拉框配合input_elementUI之el-select多选tag数值问题,研究和改造
最新推荐文章于 2024-07-16 15:48:23 发布
本文探讨了在前端开发中使用Element UI的el-select组件实现多选功能时,与input配合使用时遇到的tag数值问题。通过对组件的研究,详细解析了问题的成因,并提出了改造方案,旨在提供一种更高效、准确地处理多选tag值的方法。
摘要由CSDN通过智能技术生成