Element Plus Version:2.3.10 Browser / OS:Chrome 123.0.6312.106 Build Tool:Webpack Reproduction Related Component el-select Reproduction Link Element Plus Playground Steps to reproduce 空的el-select中, 无法回显value为空的option的label What is Expected? 能回显value为空的option What is actually happening?
Issue Mark Duplicate [Component] [select] el-select中, 无法回显value为空的option的label #23413 Sign in to view logs Summary Jobs mark-duplicate Run details Usage Workflow file Triggered via issue July 4, 2024 08:28 MisterBowie commented on #16857 f52d1cc ...
1el-select(v-model='value' filterable remote :remote-method="remoteMethod" :loading="loading")2el-option(v-for='item in dataList' :key='item.id' :label='item.label' :value='item.value') 1remoteMethod(query) {2if(query !== '') {//输入非空时3this.loading =true//显示加载中45/...
[], // 绑定的变量,初始化为空数组 options: [ { value: 'option1', label: '选项1' }, { value: 'option2', label: '选项2' }, // ...更多选项 ] }; }, methods: { clearSelection() { this.selectedOptions = []; // 将绑定的变量设置为空数组,实现清空操作 } } }; </script&...