@opentiny/vue-renderless 3.6.7 → 3.6.8

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.
@@ -14,12 +14,12 @@ const computedStyle = ({ props, state }) => () => {
14
14
  top = computedAddUnit(top);
15
15
  if (!state.isFull) {
16
16
  style.width = width;
17
- style.top = top;
17
+ style.top = state.top || top;
18
18
  if (rightSlide) {
19
19
  style.right = 0;
20
20
  style.height = "calc(100vh - " + style.top + ")";
21
21
  } else {
22
- style.left = "calc((100vw - " + width + ") / 2)";
22
+ style.left = state.left || "calc((100vw - " + width + ") / 2)";
23
23
  }
24
24
  }
25
25
  return style;
@@ -171,6 +171,8 @@ const handleDrag = ({ parent, props, state, emit }) => (event) => {
171
171
  top = top < 0 ? 0 : top > maxY ? maxY : top;
172
172
  modalBoxElem.style.left = `${left}px`;
173
173
  modalBoxElem.style.top = `${top}px`;
174
+ state.left = `${left}px`;
175
+ state.top = `${top}px`;
174
176
  state.emitter.emit("boxdrag");
175
177
  emit("drag-move", event2);
176
178
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/vue-renderless",
3
- "version": "3.6.7",
3
+ "version": "3.6.8",
4
4
  "description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
5
5
  "homepage": "https://opentiny.design/tiny-vue",
6
6
  "keywords": [
package/upload/index.js CHANGED
@@ -239,7 +239,6 @@ const mounted = ({ state, props, api }) => () => {
239
239
  state.updateInput = Object.freeze(updateInput);
240
240
  };
241
241
  const onBeforeDestroy = (state) => () => {
242
- state.updateInput.onchange = null;
243
242
  state.updateInput = null;
244
243
  };
245
244
  export {