Skip to content

Commit

Permalink
fix: add dateRange type && typo in word (#8884)
Browse files Browse the repository at this point in the history
  • Loading branch information
cycleccc authored Nov 26, 2024
1 parent 007921f commit 30b6f01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/form/src/BaseForm/LightWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const LightWrapper: React.ForwardRefRenderFunction<any, LightWrapperProps> = (

const labelValue = (props as any)[valuePropName!];

/** DataRange的转化,dayjs 的 toString 有点不好用 */
/** DateRange的转化,dayjs 的 toString 有点不好用 */
const labelValueText = useMemo(() => {
if (!labelValue) return labelValue;
if (
Expand Down
2 changes: 2 additions & 0 deletions packages/form/src/components/SchemaForm/demos/schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const columns: ProFormColumnsType<DataItem>[] = [
{
title: '创建时间',
key: 'showTime',
valueType: 'dateRange',
dataIndex: 'createName',
initialValue: [dayjs().add(-1, 'm'), dayjs()],
renderFormItem: () => <DatePicker.RangePicker />,
Expand All @@ -106,6 +107,7 @@ const columns: ProFormColumnsType<DataItem>[] = [
{
title: '更新时间',
dataIndex: 'updateName',
valueType: 'dateRange',
initialValue: [dayjs().add(-1, 'm'), dayjs()],
renderFormItem: () => <DatePicker.RangePicker />,
width: 'md',
Expand Down

0 comments on commit 30b6f01

Please sign in to comment.