bug修改
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
</a-radio-group>
|
||||
|
||||
<a-select v-else-if="tagType=='select'" :getPopupContainer = "getPopupContainer" :placeholder="placeholder" :disabled="disabled" :value="getValueSting" @change="handleInput">
|
||||
<a-select-option :value="null">{{$t('pleaseSelect')}}</a-select-option>
|
||||
<a-select-option v-for="(item, key) in dictOptions" :key="key" :value="item.value">
|
||||
<!-- <a-select-option :value="null">{{$t('pleaseSelect')}}</a-select-option>-->
|
||||
<a-select-option v-for="(item, key) in dictOptionsValue" :key="key" :value="item.value">
|
||||
<span style="display: inline-block;width: 100%" :title=" item.text || item.label ">
|
||||
{{ item.text || item.label }}
|
||||
</span>
|
||||
@@ -65,6 +65,11 @@
|
||||
return this.value != null ? this.value.toString() : undefined;
|
||||
// update-end author:wangshuai date:20200601 for: 不显示placeholder的文字 ------
|
||||
},
|
||||
dictOptionsValue: function () {
|
||||
return this.dictOptions.filter(function (dictOption) {
|
||||
return dictOption.value
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
initDictData() {
|
||||
|
||||
Reference in New Issue
Block a user