Browse Source

fix 修复缩略图移入显示延迟问题

wangqin
qingzhengli 9 months ago
parent
commit
e8be641d3f
  1. 6
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue

6
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Thumbnail/index.vue

@ -15,12 +15,12 @@ const mouseenterDebounceFunc = debounce(({ node }) => {
node.setZIndex(100); node.setZIndex(100);
console.log(node); console.log(node);
} }
}, 100); }, 0);
const mouseleaveDebounceFunc = debounce(({ node }) => { const mouseleaveDebounceFunc = debounce(({ node }) => {
if (["singleNode-html", "multiNode-html"].indexOf(node.shape) >= 0) { if (["singleNode-html", "multiNode-html"].indexOf(node.shape) >= 0) {
node.setZIndex(1); node.setZIndex(1);
} }
}, 100); }, 0);
const clickDebounceFunc = debounce(({ node }) => { const clickDebounceFunc = debounce(({ node }) => {
@ -32,7 +32,7 @@ const clickDebounceFunc = debounce(({ node }) => {
} }
} }
}, 100); }, 0);
function setFont(size, bold = "normal", family = "微软雅黑") { function setFont(size, bold = "normal", family = "微软雅黑") {

Loading…
Cancel
Save