select增加清除按钮配置
This commit is contained in:
parent
a9cf0a4dc0
commit
63fadefa5c
|
@ -7,12 +7,12 @@
|
|||
<a-input v-if="item.type === 'input'" v-model="form[item.key]" :type="item.type || 'text'" :placeholder="item.placeholder || '请输入'" :allowClear="true" />
|
||||
|
||||
<!-- select-common -->
|
||||
<a-select v-if="item.type === 'select'" v-model="form[item.key]" placeholder="请选择">
|
||||
<a-select v-if="item.type === 'select'" v-model="form[item.key]" placeholder="请选择" :allowClear="true">
|
||||
<a-select-option v-for="(j, k) in item.options" :key="`${index}-${k}`" :value="j.id">{{ j.name }}</a-select-option>
|
||||
</a-select>
|
||||
|
||||
<!-- select-dictionary -->
|
||||
<a-select v-if="item.type === 'select-dic'" v-model="form[item.key]" placeholder="请选择">
|
||||
<a-select v-if="item.type === 'select-dic'" v-model="form[item.key]" placeholder="请选择" :allowClear="true">
|
||||
<a-select-option v-for="(j, k) in item.options" :key="`${index}-${k}`" :value="j.value">{{ j.name }}</a-select-option>
|
||||
</a-select>
|
||||
|
||||
|
|
Loading…
Reference in New Issue