(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(
() => props.height,
() => {
nextTick(() => { nextTick(() => {
getScrollWidth(); getScrollWidth();
}) });
}) }
);
watch(() => props.maxHeight, () => { watch(
() => props.maxHeight,
() => {
nextTick(() => { nextTick(() => {
getScrollWidth(); getScrollWidth();
}) });
}) }
);
onMounted(() => { onMounted(() => {
getScrollWidth(); getScrollWidth();