mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
💄 fix WeekPicker popup placement
https://gw.alipayobjects.com/zos/rmsportal/DUTKByAmrAqkfKHyltgA.png
This commit is contained in:
parent
677677c4f2
commit
1865e97393
@ -167,7 +167,7 @@ class WeekPicker extends React.Component<any, WeekPickerState> {
|
|||||||
|
|
||||||
const input = ({ value }: { value: moment.Moment | undefined }) => {
|
const input = ({ value }: { value: moment.Moment | undefined }) => {
|
||||||
return (
|
return (
|
||||||
<span>
|
<span style={{ display: 'inline-block' }}>
|
||||||
<input
|
<input
|
||||||
ref={this.saveInput}
|
ref={this.saveInput}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
|
@ -5,7 +5,9 @@ exports[`WeekPicker should support style prop 1`] = `
|
|||||||
class="ant-calendar-picker"
|
class="ant-calendar-picker"
|
||||||
style="width: 400px;"
|
style="width: 400px;"
|
||||||
>
|
>
|
||||||
<span>
|
<span
|
||||||
|
style="display: inline-block;"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
class="ant-calendar-picker-input ant-input"
|
class="ant-calendar-picker-input ant-input"
|
||||||
placeholder="Select date"
|
placeholder="Select date"
|
||||||
|
@ -111,7 +111,9 @@ exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="ant-calendar-picker"
|
class="ant-calendar-picker"
|
||||||
>
|
>
|
||||||
<span>
|
<span
|
||||||
|
style="display:inline-block"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
class="ant-calendar-picker-input ant-input"
|
class="ant-calendar-picker-input ant-input"
|
||||||
placeholder="Select week"
|
placeholder="Select week"
|
||||||
@ -1143,7 +1145,9 @@ exports[`renders ./components/date-picker/demo/size.md correctly 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="ant-calendar-picker ant-calendar-picker-default"
|
class="ant-calendar-picker ant-calendar-picker-default"
|
||||||
>
|
>
|
||||||
<span>
|
<span
|
||||||
|
style="display:inline-block"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
class="ant-calendar-picker-input ant-input"
|
class="ant-calendar-picker-input ant-input"
|
||||||
placeholder="Select Week"
|
placeholder="Select Week"
|
||||||
@ -1348,7 +1352,9 @@ exports[`renders ./components/date-picker/demo/suffix.md correctly 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="ant-calendar-picker"
|
class="ant-calendar-picker"
|
||||||
>
|
>
|
||||||
<span>
|
<span
|
||||||
|
style="display:inline-block"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
class="ant-calendar-picker-input ant-input"
|
class="ant-calendar-picker-input ant-input"
|
||||||
placeholder="Select week"
|
placeholder="Select week"
|
||||||
@ -1448,7 +1454,9 @@ exports[`renders ./components/date-picker/demo/suffix.md correctly 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="ant-calendar-picker"
|
class="ant-calendar-picker"
|
||||||
>
|
>
|
||||||
<span>
|
<span
|
||||||
|
style="display:inline-block"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
class="ant-calendar-picker-input ant-input"
|
class="ant-calendar-picker-input ant-input"
|
||||||
placeholder="Select week"
|
placeholder="Select week"
|
||||||
|
Loading…
Reference in New Issue
Block a user