💄 fix WeekPicker popup placement

https://gw.alipayobjects.com/zos/rmsportal/DUTKByAmrAqkfKHyltgA.png
This commit is contained in:
afc163 2018-12-07 12:31:30 +08:00
parent 677677c4f2
commit 1865e97393
No known key found for this signature in database
GPG Key ID: 738F973FCE5C6B48
3 changed files with 16 additions and 6 deletions

View File

@ -167,7 +167,7 @@ class WeekPicker extends React.Component<any, WeekPickerState> {
const input = ({ value }: { value: moment.Moment | undefined }) => {
return (
<span>
<span style={{ display: 'inline-block' }}>
<input
ref={this.saveInput}
disabled={disabled}

View File

@ -5,7 +5,9 @@ exports[`WeekPicker should support style prop 1`] = `
class="ant-calendar-picker"
style="width: 400px;"
>
<span>
<span
style="display: inline-block;"
>
<input
class="ant-calendar-picker-input ant-input"
placeholder="Select date"

View File

@ -111,7 +111,9 @@ exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
<span
class="ant-calendar-picker"
>
<span>
<span
style="display:inline-block"
>
<input
class="ant-calendar-picker-input ant-input"
placeholder="Select week"
@ -1143,7 +1145,9 @@ exports[`renders ./components/date-picker/demo/size.md correctly 1`] = `
<span
class="ant-calendar-picker ant-calendar-picker-default"
>
<span>
<span
style="display:inline-block"
>
<input
class="ant-calendar-picker-input ant-input"
placeholder="Select Week"
@ -1348,7 +1352,9 @@ exports[`renders ./components/date-picker/demo/suffix.md correctly 1`] = `
<span
class="ant-calendar-picker"
>
<span>
<span
style="display:inline-block"
>
<input
class="ant-calendar-picker-input ant-input"
placeholder="Select week"
@ -1448,7 +1454,9 @@ exports[`renders ./components/date-picker/demo/suffix.md correctly 1`] = `
<span
class="ant-calendar-picker"
>
<span>
<span
style="display:inline-block"
>
<input
class="ant-calendar-picker-input ant-input"
placeholder="Select week"