问题描述:当下拉框选择选项之后,发现选择框中无内容;如果把下拉框设置为 100% 时,可以看到下拉框中存在选择数据,而下拉框前面部分存在部分空格信息。
<i-select v-model="departmentValue" size="small" filterable>
<i-option v-for="item in Ownerlist" :value="item.code ? item.code:''" :key="item.code">{{ item.name }}</i-option>
</i-select>
option组件格式化造成的。此处</Option>在另一行,只要和输出内容一行,就不会有空格了。