style: slider & space

feat-css-var
tangjinzhou 2022-03-06 21:32:41 +08:00
parent 93a06a45f5
commit 524135ce56
5 changed files with 13 additions and 1 deletions

View File

@ -32,6 +32,8 @@ To input a value in a range.
| tooltipPlacement | Set Tooltip display position. Ref [`Tooltip`](/components/tooltip/). | string | | 1.5.0 | | tooltipPlacement | Set Tooltip display position. Ref [`Tooltip`](/components/tooltip/). | string | | 1.5.0 |
| tooltipVisible | If true, Tooltip will show always, or it will not show anyway, even if dragging or hovering. | Boolean | | | | tooltipVisible | If true, Tooltip will show always, or it will not show anyway, even if dragging or hovering. | Boolean | | |
| getTooltipPopupContainer | The DOM container of the Tooltip, the default behavior is to create a div element in body. | Function | () => document.body | 1.5.0 | | getTooltipPopupContainer | The DOM container of the Tooltip, the default behavior is to create a div element in body. | Function | () => document.body | 1.5.0 |
| trackStyle | The style of slider track | CSSProperties | - | |
| handleStyle | The style of slider handle | CSSProperties | - | |
### events ### events

View File

@ -120,9 +120,11 @@
&:first-child { &:first-child {
margin-left: -4px; margin-left: -4px;
} }
&:last-child { &:last-child {
margin-left: -4px; margin-left: -4px;
} }
&-active { &-active {
border-color: @slider-dot-border-color-active; border-color: @slider-dot-border-color-active;
} }
@ -131,6 +133,10 @@
&-disabled { &-disabled {
cursor: not-allowed; cursor: not-allowed;
.@{slider-prefix-cls}-rail {
background-color: @slider-rail-background-color !important;
}
.@{slider-prefix-cls}-track { .@{slider-prefix-cls}-track {
background-color: @slider-disabled-color !important; background-color: @slider-disabled-color !important;
} }

View File

@ -15,7 +15,7 @@ title:
## en-US ## en-US
Crowded components vertical spacing. Crowded components vertical spacing.
Can set `width: 100%` fill a row. Can set `width: 100%` to fill a row.
</docs> </docs>

View File

@ -6,6 +6,7 @@
.@{space-prefix-cls} { .@{space-prefix-cls} {
display: inline-flex; display: inline-flex;
&-vertical { &-vertical {
flex-direction: column; flex-direction: column;
} }
@ -14,12 +15,15 @@
&-center { &-center {
align-items: center; align-items: center;
} }
&-start { &-start {
align-items: flex-start; align-items: flex-start;
} }
&-end { &-end {
align-items: flex-end; align-items: flex-end;
} }
&-baseline { &-baseline {
align-items: baseline; align-items: baseline;
} }