fix(components): 修复Tab在移动端设备无法点击的问题

This commit is contained in:
Soybean
2022-02-07 15:46:35 +08:00
parent e93b94cb24
commit 2c9660fdbf
5 changed files with 30 additions and 10 deletions

View File

@ -30,8 +30,9 @@ function initBetterScroll() {
}
// 滚动元素发生变化刷新BS
const { width: wrapWidth } = useElementSize(bsWrap);
const { width, height } = useElementSize(bsContent);
watch([() => width.value, () => height.value], () => {
watch([() => wrapWidth.value, () => width.value, () => height.value], () => {
if (instance.value) {
instance.value.refresh();
}