Skip to content

Commit

Permalink
chore(DatePicker): fix theme demo margin, close #3627
Browse files Browse the repository at this point in the history
  • Loading branch information
YSMJ1994 authored and eternalsky committed Jul 16, 2024
1 parent 1c7c58c commit 6508c7e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions components/date-picker/__docs__/theme/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import { Demo, DemoGroup, initDemo } from '../../../demo-helper';
import DatePicker from '../../index';
Expand Down Expand Up @@ -80,11 +81,11 @@ function renderDatePicker(locale, demoFunction, onFunctionChange, otherProps) {
<DatePicker visible={false} {...otherProps} />
</DemoGroup>

<DemoGroup label={locale.expandNormal} height="300px">
<DemoGroup label={locale.expandNormal} height="340px">
<DatePicker value={startValue} visible popupProps={{ needAdjust: false }} {...otherProps} />
</DemoGroup>

<DemoGroup label={locale.expandTime} height="330px">
<DemoGroup label={locale.expandTime} height="370px">
<DatePicker value={startValue} visible showTime popupProps={{ needAdjust: false }} {...otherProps} />
</DemoGroup>

Expand All @@ -104,11 +105,11 @@ function renderRangePicker(locale, demoFunction, onFunctionChange, otherProps) {
<RangePicker {...otherProps} />
</DemoGroup>

<DemoGroup label={locale.expandNormal} height="330px">
<DemoGroup label={locale.expandNormal} height="370px">
<RangePicker visible value={[startValue, endValue]} popupProps={{ needAdjust: false }} {...otherProps} />
</DemoGroup>

<DemoGroup label={locale.expandTime} height="330px">
<DemoGroup label={locale.expandTime} height="370px">
<RangePicker visible showTime value={[startValue, endValue]} popupProps={{ needAdjust: false }} {...otherProps} />
</DemoGroup>

Expand Down

0 comments on commit 6508c7e

Please sign in to comment.