提交 bdae33e3 作者: Vben

chore: revert scrollbar

上级 e9e51b2f
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
nextTick, nextTick,
provide, provide,
computed, computed,
watch,
unref, unref,
} from 'vue'; } from 'vue';
import Bar from './bar'; import Bar from './bar';
...@@ -65,7 +64,7 @@ ...@@ -65,7 +64,7 @@
default: 'div', default: 'div',
}, },
}, },
setup(props, { slots }) { setup(props) {
const sizeWidth = ref('0'); const sizeWidth = ref('0');
const sizeHeight = ref('0'); const sizeHeight = ref('0');
const moveX = ref(0); const moveX = ref(0);
...@@ -82,13 +81,6 @@ ...@@ -82,13 +81,6 @@
return props.wrapStyle; return props.wrapStyle;
}); });
watch(
() => slots.default?.(),
() => {
nextTick(update);
}
);
const handleScroll = () => { const handleScroll = () => {
if (!props.native) { if (!props.native) {
moveY.value = (unref(wrap).scrollTop * 100) / unref(wrap).clientHeight; moveY.value = (unref(wrap).scrollTop * 100) / unref(wrap).clientHeight;
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
} }
&.ant-btn-link.is-disabled { &.ant-btn-link.is-disabled {
color: rgba(0, 0, 0, 0.25) !important; color: rgba(0, 0, 0, 0.25);
text-shadow: none; text-shadow: none;
cursor: not-allowed !important; cursor: not-allowed !important;
background-color: transparent !important; background-color: transparent !important;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论