This commit is contained in:
Chen Lily 2023-06-06 14:40:45 +08:00
parent 603c92b37d
commit ca22a60b83

View File

@ -14,10 +14,11 @@ function setTooltip(container, content, flag = false, parent = null) {
}
const wrapper = createElement('div', wrapper => {
wrapper.className = 'ui-tooltip-wrapper ui-tooltip-color';
wrapper.style.visibility = 'hidden';
wrapper.style.opacity = 0;
wrapper.style.top = '0';
wrapper.style.left = '0';
// wrapper.style.visibility = 'hidden';
// wrapper.style.opacity = 0;
// wrapper.style.top = '0';
// wrapper.style.left = '0';
wrapper.style.cssText += 'display: none; visibility: hidden; opacity: 0; top: 0; left: 0';
},
createElement('div', 'ui-tooltip-pointer ui-tooltip-color'),
createElement('div', 'ui-tooltip-curtain ui-tooltip-color'),