(component): update

This commit is contained in:
就眠儀式 2022-08-11 22:54:17 +08:00
parent fa84d00a00
commit 051ba684ca

View File

@ -437,17 +437,23 @@ const classes = computed(() => {
]; ];
}); });
watch(() => props.height, () => { watch(
nextTick(() => { () => props.height,
getScrollWidth(); () => {
}) nextTick(() => {
}) getScrollWidth();
});
}
);
watch(() => props.maxHeight, () => { watch(
nextTick(() => { () => props.maxHeight,
getScrollWidth(); () => {
}) nextTick(() => {
}) getScrollWidth();
});
}
);
onMounted(() => { onMounted(() => {
getScrollWidth(); getScrollWidth();