feat(Slider): add slide animation (#4700)
This commit is contained in:
@@ -34,6 +34,12 @@ export default createComponent({
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
dragStatus: ''
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
range() {
|
||||
return this.max - this.min;
|
||||
@@ -139,6 +145,10 @@ export default createComponent({
|
||||
background: this.activeColor
|
||||
};
|
||||
|
||||
if (this.dragStatus) {
|
||||
barStyle.transition = 'none';
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
style={style}
|
||||
|
||||
Reference in New Issue
Block a user