zydx-plus 1.35.633 → 1.35.634
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
|
@@ -84,7 +84,9 @@ export default {
|
|
|
84
84
|
resizeDom = this.$refs.resizeRef,
|
|
85
85
|
rightDom = this.$refs.rightRef;
|
|
86
86
|
if (resizeDom) {
|
|
87
|
-
|
|
87
|
+
// 使用 .resize div 的实际宽度(10px)而非 img 宽度(30px),避免拖动位置偏左
|
|
88
|
+
const resizeWidth = resizeDom.parentElement.offsetWidth
|
|
89
|
+
const maxWidth = boxDom.clientWidth - resizeWidth; // 左右两边区域的总宽度 = 外层容器宽度 - 中间区域拖拉框的宽度
|
|
88
90
|
leftDom.style.width = `${this.isPercent?
|
|
89
91
|
this.leftInitWidth<=0||this.leftInitWidth>=100 ? 30 : this.leftInitWidth
|
|
90
92
|
: this.leftInitWidth}${this.isPercent? '%' : 'px'}`
|