diff --git a/example/App.vue b/example/App.vue index 2f8c61b..d4a468e 100644 --- a/example/App.vue +++ b/example/App.vue @@ -1,3 +1,3 @@ diff --git a/src/config/antd.ts b/src/config/antd.ts index 1672684..9eac9a7 100644 --- a/src/config/antd.ts +++ b/src/config/antd.ts @@ -210,6 +210,7 @@ export const basicComponents = [ width: '', placeholder: '请选择时间', format: 'YYYY-MM-DD', + valueFormat: 'YYYY-MM-DD', readonly: false, allowClear: true, disabled: false, diff --git a/src/core/antd/AntdGenerateFormItem.vue b/src/core/antd/AntdGenerateFormItem.vue index e3030aa..9325696 100644 --- a/src/core/antd/AntdGenerateFormItem.vue +++ b/src/core/antd/AntdGenerateFormItem.vue @@ -131,6 +131,7 @@ :inputReadOnly="element.options.readonly" :allowClear="element.options.allowClear" :format="element.options.format" + :valueFormat="element.options.valueFormat" :disabled="disabled || element.options.disabled" :style="{ width: element.options.width }" /> diff --git a/src/core/antd/AntdWidgetFormItem.vue b/src/core/antd/AntdWidgetFormItem.vue index 081a0bf..4605b01 100644 --- a/src/core/antd/AntdWidgetFormItem.vue +++ b/src/core/antd/AntdWidgetFormItem.vue @@ -133,6 +133,7 @@ :inputReadOnly="element.options.readonly" :allowClear="element.options.allowClear" :format="element.options.format" + :valueFormat="element.options.valueFormat" :disabled="element.options.disabled" :style="{ width: element.options.width }" />