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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.35.633",
3
+ "version": "1.35.634",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -84,7 +84,9 @@ export default {
84
84
  resizeDom = this.$refs.resizeRef,
85
85
  rightDom = this.$refs.rightRef;
86
86
  if (resizeDom) {
87
- const maxWidth = boxDom.clientWidth - resizeDom.offsetWidth; // 左右两边区域的总宽度 = 外层容器宽度 - 中间区域拖拉框的宽度
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'}`
package/src/index.js CHANGED
@@ -87,7 +87,7 @@ function install(app) {
87
87
  }
88
88
 
89
89
  export default {
90
- version: '1.35.633',
90
+ version: '1.35.634',
91
91
  install,
92
92
  Calendar,
93
93
  Message,