diff --git a/components/SearchView/index.js b/components/SearchView/index.js index 4fea2ac8574022849137a7612bdb7fbd3788882a..eb4fe3bad18d8766b02c83645385c887d2d85717 100644 --- a/components/SearchView/index.js +++ b/components/SearchView/index.js @@ -159,7 +159,7 @@ class SearchView extends React.Component { return ( @@ -169,7 +169,7 @@ class SearchView extends React.Component { @@ -180,7 +180,7 @@ class SearchView extends React.Component { {...componentAttr} placeholder={placeholder} onCalendarChange={this.changeRange.bind(this, col.key)} - className={className || styles.itemContent} + className={classnames(styles.timeStyle, className || styles.itemContent)} disabled={disabled} /> ); @@ -191,7 +191,7 @@ class SearchView extends React.Component { placeholder={placeholder} onCalendarChange={this.changeRange.bind(this, col.key)} showTime - className={className || styles.itemContent} + className={classnames(styles.timeStyle, className || styles.itemContent)} disabled={disabled} /> ); diff --git a/components/SearchView/index.less b/components/SearchView/index.less index 8b1d7451e00cfce0f0482b8018fa400dc07f3196..3ad753d49b3a9a1c4f42f76e88be62c713b683fc 100644 --- a/components/SearchView/index.less +++ b/components/SearchView/index.less @@ -101,4 +101,7 @@ :global .ant-form-item-control{ line-height: 1.2; } +} +.timeStyle{ + max-width: 320px; } \ No newline at end of file