mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
perf: 修改date-range移动端样式 (#3362)
This commit is contained in:
parent
1d467ad580
commit
97ad91cf69
@ -148,3 +148,36 @@
|
||||
background: var(--DatePicker-bg);
|
||||
border-radius: var(--DatePicker-borderRadius);
|
||||
}
|
||||
|
||||
// 移动端输入框样式
|
||||
.#{$ns}DateRangePicker.is-mobile {
|
||||
border: 0;
|
||||
justify-content: flex-end;
|
||||
|
||||
span,
|
||||
a {
|
||||
&:focus {
|
||||
outline: unset;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$ns}DateRangePicker-value,
|
||||
.#{$ns}DateRangePicker-clear {
|
||||
display: inline-flex;
|
||||
justify-content: flex-end;
|
||||
padding: 0 0;
|
||||
}
|
||||
|
||||
.#{$ns}DateRangePicker-value {
|
||||
margin-right: var(--gap-xs);
|
||||
}
|
||||
|
||||
.#{$ns}DateRangePicker-placeholder {
|
||||
flex-grow: unset;
|
||||
flex-basis: unset;
|
||||
}
|
||||
|
||||
.#{$ns}DateRangePicker-toggler {
|
||||
margin-top: -3px;
|
||||
}
|
||||
}
|
||||
|
@ -865,7 +865,8 @@ export class DateRangePicker extends React.Component<
|
||||
{
|
||||
'is-disabled': disabled,
|
||||
'is-focused': isFocused,
|
||||
[`${ns}DateRangePicker--border${ucFirst(borderMode)}`]: borderMode
|
||||
[`${ns}DateRangePicker--border${ucFirst(borderMode)}`]: borderMode,
|
||||
'is-mobile': useMobileUI && isMobile()
|
||||
},
|
||||
className
|
||||
)}
|
||||
|
@ -624,7 +624,8 @@ export class MonthRangePicker extends React.Component<
|
||||
`${ns}DateRangePicker`,
|
||||
{
|
||||
'is-disabled': disabled,
|
||||
'is-focused': isFocused
|
||||
'is-focused': isFocused,
|
||||
'is-mobile': useMobileUI && isMobile()
|
||||
},
|
||||
className
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user