diff --git a/packages/form/src/BaseForm/LightWrapper/index.tsx b/packages/form/src/BaseForm/LightWrapper/index.tsx index 8f289ea6f1d4..6ec912d8070c 100644 --- a/packages/form/src/BaseForm/LightWrapper/index.tsx +++ b/packages/form/src/BaseForm/LightWrapper/index.tsx @@ -81,7 +81,7 @@ const LightWrapper: React.ForwardRefRenderFunction = ( const labelValue = (props as any)[valuePropName!]; - /** DataRange的转化,dayjs 的 toString 有点不好用 */ + /** DateRange的转化,dayjs 的 toString 有点不好用 */ const labelValueText = useMemo(() => { if (!labelValue) return labelValue; if ( diff --git a/packages/form/src/components/SchemaForm/demos/schema.tsx b/packages/form/src/components/SchemaForm/demos/schema.tsx index f3252b57740f..2c22abf51312 100644 --- a/packages/form/src/components/SchemaForm/demos/schema.tsx +++ b/packages/form/src/components/SchemaForm/demos/schema.tsx @@ -94,6 +94,7 @@ const columns: ProFormColumnsType[] = [ { title: '创建时间', key: 'showTime', + valueType: 'dateRange', dataIndex: 'createName', initialValue: [dayjs().add(-1, 'm'), dayjs()], renderFormItem: () => , @@ -106,6 +107,7 @@ const columns: ProFormColumnsType[] = [ { title: '更新时间', dataIndex: 'updateName', + valueType: 'dateRange', initialValue: [dayjs().add(-1, 'm'), dayjs()], renderFormItem: () => , width: 'md',