搜索区组件 select-dictionary-tree 支持清除按钮

This commit is contained in:
18571350067 2021-11-26 18:22:12 +08:00
parent 4af0bfb066
commit 75c74adca2
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
</a-select>
<!-- select-dictionary-tree -->
<a-tree-select v-if="item.type === 'select-dic-tree'" v-model="form[item.key]" :tree-data="item.options" placeholder="请选择" :multiple="item.mode ? true : false"></a-tree-select>
<a-tree-select v-if="item.type === 'select-dic-tree'" v-model="form[item.key]" :tree-data="item.options" placeholder="请选择" :allowClear="true" :multiple="item.mode ? true : false"></a-tree-select>
<!-- date -->
<a-date-picker v-if="item.type === 'date'" v-model="form[item.key]" style="width: 100%" :format="item.format" :valueFormat="item.format" :placeholder="item.placeholder || '请输入日期'" />