解决二三维快速切换贴地svg显隐报错的问题

This commit is contained in:
zh
2025-07-18 16:49:42 +08:00
parent 72fc510167
commit f2a198ddaf
5 changed files with 79 additions and 6 deletions

View File

@ -86,6 +86,13 @@ class YJColorPicker {
let pickPen = document.createElement('div')
pickPen.className = 'icon-pen-box'
pickPen.innerHTML = '<svg class="icon-pen"><use xlink:href="#yj-icon-pen"></use></svg>'
/** 为完成、暂时隐藏 *///////
pickPen.style.opacity = '0'
pickPen.style.cursor = 'unset'
let pickerInput = _this.colorPicker.pickerInput
pickerInput.parentNode.insertBefore(pickPen, pickerInput)
pickerInput.style.width = '188px'