搜索区input、select增加清除按钮配置

This commit is contained in:
qinjie 2021-09-10 23:52:34 +08:00
parent c7a454541d
commit 6a473b1a6e
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<a-col :md="6" :sm="24" v-for="(item, index) in list" :key="index"> <a-col :md="6" :sm="24" v-for="(item, index) in list" :key="index">
<a-form-item :label="item.placeholder" :style="{marginBottom: '8px'}"> <a-form-item :label="item.placeholder" :style="{marginBottom: '8px'}">
<!-- input --> <!-- input -->
<a-input v-if="item.type === 'input'" v-model="form[item.key]" :type="item.type || 'text'" :placeholder="item.placeholder || '请输入'" /> <a-input v-if="item.type === 'input'" v-model="form[item.key]" :type="item.type || 'text'" :placeholder="item.placeholder || '请输入'" :allowClear="true" />
<!-- select-common --> <!-- 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="请选择">