perf: notice add scrollbar

This commit is contained in:
lrl
2021-11-17 18:10:01 +08:00
parent 12492a522f
commit 89dc4e5052
3 changed files with 33 additions and 5 deletions

View File

@@ -15,7 +15,6 @@ const titleTooltip = ref(false);
const descriptionTooltip = ref(false);
function hoverTitle() {
titleTooltip.value = false;
nextTick(() => {
titleRef.value?.scrollWidth > titleRef.value?.clientWidth
? (titleTooltip.value = true)