Commit bdae33e34a17fd547cb16685fad3c6e91c09d31a
1 parent
e9e51b2f
chore: revert scrollbar
Showing
2 changed files
with
2 additions
and
10 deletions
src/components/Scrollbar/src/Scrollbar.vue
... | ... | @@ -29,7 +29,6 @@ |
29 | 29 | nextTick, |
30 | 30 | provide, |
31 | 31 | computed, |
32 | - watch, | |
33 | 32 | unref, |
34 | 33 | } from 'vue'; |
35 | 34 | import Bar from './bar'; |
... | ... | @@ -65,7 +64,7 @@ |
65 | 64 | default: 'div', |
66 | 65 | }, |
67 | 66 | }, |
68 | - setup(props, { slots }) { | |
67 | + setup(props) { | |
69 | 68 | const sizeWidth = ref('0'); |
70 | 69 | const sizeHeight = ref('0'); |
71 | 70 | const moveX = ref(0); |
... | ... | @@ -82,13 +81,6 @@ |
82 | 81 | return props.wrapStyle; |
83 | 82 | }); |
84 | 83 | |
85 | - watch( | |
86 | - () => slots.default?.(), | |
87 | - () => { | |
88 | - nextTick(update); | |
89 | - } | |
90 | - ); | |
91 | - | |
92 | 84 | const handleScroll = () => { |
93 | 85 | if (!props.native) { |
94 | 86 | moveY.value = (unref(wrap).scrollTop * 100) / unref(wrap).clientHeight; | ... | ... |
src/design/ant/btn.less