vue2-client 1.16.89 → 1.16.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1486,7 +1486,23 @@ export default {
|
|
|
1486
1486
|
this.emitFunc('recordingData', data)
|
|
1487
1487
|
},
|
|
1488
1488
|
getPopupContainer (triggerNode) {
|
|
1489
|
-
//
|
|
1489
|
+
// 行编辑模式特殊处理
|
|
1490
|
+
if (this.$vnode?.key.startsWith('editRow')) {
|
|
1491
|
+
// 限制最多向上查找5层
|
|
1492
|
+
let parent = triggerNode.parentNode
|
|
1493
|
+
let depth = 0
|
|
1494
|
+
const maxDepth = 10
|
|
1495
|
+
|
|
1496
|
+
while (parent && parent !== document.body && depth < maxDepth) {
|
|
1497
|
+
if (parent.tagName === 'TBODY') {
|
|
1498
|
+
return parent
|
|
1499
|
+
}
|
|
1500
|
+
parent = parent.parentNode
|
|
1501
|
+
depth++
|
|
1502
|
+
}
|
|
1503
|
+
// 如果5层内没找到,回退到body
|
|
1504
|
+
return document.body
|
|
1505
|
+
}
|
|
1490
1506
|
return triggerNode.parentNode
|
|
1491
1507
|
},
|
|
1492
1508
|
colorPickerComboboxSelect (val) {
|