From 64395ea04172f96ae67936faaf282c5f96b2ac83 Mon Sep 17 00:00:00 2001 From: manzhenhua Date: Wed, 25 Mar 2020 03:02:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/SearchView/index.js | 8 ++++---- components/SearchView/index.less | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/components/SearchView/index.js b/components/SearchView/index.js index 4fea2ac..eb4fe3b 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 8b1d745..3ad753d 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 -- 2.21.0