vue3+elementPlus:el-select选择器里添加按钮button,在el-select的option后面添加button
- //html
class="selectIcon" value-key="id" v-model="store.state.HeaderfilterText" multiple collapse-tags - collapse-tags-tooltip placeholder="默认企业" style="width: 210px" @remove-tag="removeCheckTag"
- @change="checkChange" >
- <template #prefix>
- <el-icon class="el-icon--left">
- <svg viewBox="0 0 1024 1024" data-v-029747aa="">
- <path fill="currentColor" d="M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z">
- path>
- svg>
- el-icon>
- template>
- <el-option v-for="item in store.state.HeaderLists" :key="item.id" :label="item.companyName"
- :value="item" @click.native="changeGateway(item)" >
- el-option>
- <el-divider border-style="dashed" />
- <el-button style="float:right;margin: -26px 0px 0 0;" @click="getGateway">确定el-button>
-
上一篇文章,