File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
packages/devui-vue/devui/slider/src Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 106
106
.devui-min_count {
107
107
position : absolute ;
108
108
top : 15px ;
109
+ left : 0 ;
109
110
font-size : $devui-font-size ;
110
111
color : $devui-text ;
111
112
}
Original file line number Diff line number Diff line change @@ -132,11 +132,8 @@ export default defineComponent({
132
132
inputValue . value = props . min ;
133
133
percentDispaly . value = '0%' ;
134
134
} else {
135
- if ( inputValue . value < props . min ) {
136
- inputValue . value = props . min ;
137
- }
138
- if ( inputValue . value > props . max ) {
139
- inputValue . value = props . max ;
135
+ if ( inputValue . value < props . min || inputValue . value > props . max ) {
136
+ return
140
137
}
141
138
const re = / ^ (?: [ 1 - 9 ] ? \d | 1 0 0 ) $ / ;
142
139
if ( re . test ( `${ inputValue . value } ` ) ) {
You can’t perform that action at this time.
0 commit comments