refactor(lang):日期范围选择器适配多语言 !66

This commit is contained in:
Abbotton 2022-11-20 11:09:34 +00:00 committed by 妙码生花
parent 613db5af01
commit 95a3309df6

View File

@ -15,9 +15,9 @@
v-model="baTable.comSearch.form[item.prop!]"
:default-value="baTable.comSearch.form[item.prop! + '-default'] ? baTable.comSearch.form[item.prop! + '-default']:[new Date(), new Date()]"
:type="item.comSearchRender == 'date' ? 'daterange' : 'datetimerange'"
range-separator="To"
start-placeholder="Start date"
end-placeholder="End date"
:range-separator="$t('to')"
:start-placeholder="$t('el.datepicker.startDate')"
:end-placeholder="$t('el.datepicker.endDate')"
:value-format="item.comSearchRender == 'date' ? 'YYYY-MM-DD' : 'YYYY-MM-DD HH:mm:ss'"
/>
</div>