Skip to content

Commit

Permalink
fix--add-dateRange-type-&&-typo-in-word
Browse files Browse the repository at this point in the history
  • Loading branch information
cycleccc committed Nov 19, 2024
1 parent d0f573f commit aecef57
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 aecef57

Please sign in to comment.