print-design-myprint 1.0.1 → 1.0.2
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/dist/index.full.js +53 -15
- package/dist/index.full.mjs +53 -15
- package/es/components/content/handle-panel/history-panel.vue.d.ts +11 -11
- package/es/components/content/handle-panel/minimap-panel.vue.d.ts +3 -4114
- package/es/components/content/handle-panel/minimap-panel.vue2.mjs +1 -1
- package/es/components/content/handle-panel/minimap-panel.vue2.mjs.map +1 -1
- package/es/components/content/handle-panel/operation-panel/index.vue.d.ts +38 -38
- package/es/components/content/handle-panel/operation-panel/my-element-setting.vue.d.ts +21 -21
- package/es/components/content/handle-panel/operation-panel/my-panel-setting.vue.d.ts +24 -24
- package/es/components/content/handle-panel/setting/setting-design.vue.d.ts +1 -1
- package/es/components/content/handle-panel/setting/setting-panel.vue.d.ts +7 -7
- package/es/components/content/handle-panel/setting/setting-printer.vue.d.ts +4 -4
- package/es/components/content/index.vue.d.ts +3 -20052
- package/es/components/content/index.vue2.mjs +1 -1
- package/es/components/content/index.vue2.mjs.map +1 -1
- package/es/components/content/panel/index.vue.d.ts +3 -12302
- package/es/components/content/panel/my-panel.vue.d.ts +1 -1
- package/es/components/content/toolbar/style-design.vue.d.ts +17 -17
- package/es/components/content/toolbar/toolbar-style/element-align.vue.d.ts +1 -1
- package/es/components/content/toolbar/toolbar-style/font-family.vue.d.ts +13 -13
- package/es/components/content/toolbar/toolbar-style/font-size.vue.d.ts +7 -7
- package/es/components/content/toolbar/toolbar.vue.d.ts +17 -17
- package/es/components/content/widget/base-widget.vue.d.ts +3 -1
- package/es/components/content/widget/base-widget.vue2.mjs +48 -12
- package/es/components/content/widget/base-widget.vue2.mjs.map +1 -1
- package/es/components/content/widget/basic.vue.d.ts +3 -1
- package/es/components/content/widget/business.vue.d.ts +3 -1
- package/es/components/content/widget/index.vue.d.ts +223 -219
- package/es/components/design/container/container/containerView.vue.d.ts +3 -0
- package/es/components/design/element.vue.d.ts +3 -1735
- package/es/components/design/image/image.vue.d.ts +2 -2
- package/es/components/design/shape/rect/dottedRect/dottedRect.vue.d.ts +3 -24
- package/es/components/design/shape/rect/rect/rect.vue.d.ts +3 -24
- package/es/components/design/svg/svg-base.vue.d.ts +1 -1
- package/es/components/design/svg/svg-bezier-curve-three.vue.d.ts +1 -1
- package/es/components/design/svg/svg-bezier-curve.vue.d.ts +1 -1
- package/es/components/design/svg/svg-circle.vue.d.ts +1 -1
- package/es/components/design/svg/svg-ellipse.vue.d.ts +1 -1
- package/es/components/design/svg/svg-line.vue.d.ts +1 -1
- package/es/components/design/svg/svg-polygon-line.vue.d.ts +1 -1
- package/es/components/design/table/data-table/table-design.vue.d.ts +4 -4
- package/es/components/my/collapse/my-collapse.vue.d.ts +1 -1
- package/es/components/my/color-picker/my-color-picker.vue.d.ts +2 -2
- package/es/components/my/dialog/my-dialog.vue.d.ts +2 -2
- package/es/components/my/divider/my-divider.vue.d.ts +3 -0
- package/es/components/my/form/my-form.vue.d.ts +3 -0
- package/es/components/my/group/my-group.vue.d.ts +3 -0
- package/es/components/my/icon/icons/ArrowLeft.vue.d.ts +3 -0
- package/es/components/my/icon/icons/ArrowRight.vue.d.ts +3 -0
- package/es/components/my/icon/icons/Check.vue.d.ts +3 -0
- package/es/components/my/icon/icons/Close.vue.d.ts +3 -0
- package/es/components/my/icon/icons/CloseBold.vue.d.ts +3 -0
- package/es/components/my/icon/icons/Crop.vue.d.ts +3 -0
- package/es/components/my/icon/icons/Plus.vue.d.ts +3 -0
- package/es/components/my/icon/icons/Printer.vue.d.ts +3 -0
- package/es/components/my/icon/icons/QuestionFilled.vue.d.ts +3 -0
- package/es/components/my/icon/icons/RefreshLeft.vue.d.ts +3 -0
- package/es/components/my/icon/icons/RefreshRight.vue.d.ts +3 -0
- package/es/components/my/icon/icons/ZoomIn.vue.d.ts +3 -0
- package/es/components/my/icon/icons/ZoomOut.vue.d.ts +3 -0
- package/es/components/my/icon/style-icon.vue.d.ts +11 -11
- package/es/components/my/icon/tip-icon.vue.d.ts +4 -4
- package/es/components/my/icon/tool-icon-popover.vue.d.ts +2 -2
- package/es/components/my/input/history-input-number.vue.d.ts +1 -1
- package/es/components/my/input/history-select.vue.d.ts +15 -15
- package/es/components/my/input/my-input-number.vue.d.ts +1 -1
- package/es/components/my/input/unit.vue.d.ts +6 -6
- package/es/components/my/mouse-tips/my-mouse-tips.vue.d.ts +36 -36
- package/es/components/my/popover/my-icon-popover.vue.d.ts +2 -2
- package/es/components/my/rule/rule.vue.d.ts +1 -1
- package/es/components/my/scrollbar/my-scrollbar.vue.d.ts +1 -1
- package/es/components/my/select/my-select.vue.d.ts +15 -15
- package/es/components/my/slider/my-slider.vue.d.ts +1 -1
- package/es/components/my/switch/my-switch.vue.d.ts +1 -1
- package/es/components/my/tooltip/my-tooltip.vue.d.ts +2 -2
- package/es/components/my/tree-list/my-tree-list.vue.d.ts +1 -1
- package/es/components/preview/preview-panel.vue.d.ts +3 -16716
- package/es/components/preview/preview.vue.d.ts +3 -1942
- package/es/components/print/print.vue.d.ts +3 -8865
- package/es/index.d.ts +5 -2
- package/es/index.mjs +5 -1
- package/es/index.mjs.map +1 -1
- package/es/plugins/moveable/moveable_js.d.mjs +2 -0
- package/es/plugins/moveable/moveable_js.d.mjs.map +1 -0
- package/es/stores/app.d.ts +2 -2
- package/es/stores/app.mjs.map +1 -1
- package/es/types/entity.d.ts +4 -0
- package/es/types/entity.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/content/handle-panel/history-panel.vue.d.ts +11 -11
- package/lib/components/content/handle-panel/minimap-panel.vue.d.ts +3 -4114
- package/lib/components/content/handle-panel/minimap-panel.vue2.js +1 -1
- package/lib/components/content/handle-panel/minimap-panel.vue2.js.map +1 -1
- package/lib/components/content/handle-panel/operation-panel/index.vue.d.ts +38 -38
- package/lib/components/content/handle-panel/operation-panel/my-element-setting.vue.d.ts +21 -21
- package/lib/components/content/handle-panel/operation-panel/my-panel-setting.vue.d.ts +24 -24
- package/lib/components/content/handle-panel/setting/setting-design.vue.d.ts +1 -1
- package/lib/components/content/handle-panel/setting/setting-panel.vue.d.ts +7 -7
- package/lib/components/content/handle-panel/setting/setting-printer.vue.d.ts +4 -4
- package/lib/components/content/index.vue.d.ts +3 -20052
- package/lib/components/content/index.vue2.js +1 -1
- package/lib/components/content/index.vue2.js.map +1 -1
- package/lib/components/content/panel/index.vue.d.ts +3 -12302
- package/lib/components/content/panel/my-panel.vue.d.ts +1 -1
- package/lib/components/content/toolbar/style-design.vue.d.ts +17 -17
- package/lib/components/content/toolbar/toolbar-style/element-align.vue.d.ts +1 -1
- package/lib/components/content/toolbar/toolbar-style/font-family.vue.d.ts +13 -13
- package/lib/components/content/toolbar/toolbar-style/font-size.vue.d.ts +7 -7
- package/lib/components/content/toolbar/toolbar.vue.d.ts +17 -17
- package/lib/components/content/widget/base-widget.vue.d.ts +3 -1
- package/lib/components/content/widget/base-widget.vue2.js +46 -10
- package/lib/components/content/widget/base-widget.vue2.js.map +1 -1
- package/lib/components/content/widget/basic.vue.d.ts +3 -1
- package/lib/components/content/widget/business.vue.d.ts +3 -1
- package/lib/components/content/widget/index.vue.d.ts +223 -219
- package/lib/components/design/container/container/containerView.vue.d.ts +3 -0
- package/lib/components/design/element.vue.d.ts +3 -1735
- package/lib/components/design/image/image.vue.d.ts +2 -2
- package/lib/components/design/shape/rect/dottedRect/dottedRect.vue.d.ts +3 -24
- package/lib/components/design/shape/rect/rect/rect.vue.d.ts +3 -24
- package/lib/components/design/svg/svg-base.vue.d.ts +1 -1
- package/lib/components/design/svg/svg-bezier-curve-three.vue.d.ts +1 -1
- package/lib/components/design/svg/svg-bezier-curve.vue.d.ts +1 -1
- package/lib/components/design/svg/svg-circle.vue.d.ts +1 -1
- package/lib/components/design/svg/svg-ellipse.vue.d.ts +1 -1
- package/lib/components/design/svg/svg-line.vue.d.ts +1 -1
- package/lib/components/design/svg/svg-polygon-line.vue.d.ts +1 -1
- package/lib/components/design/table/data-table/table-design.vue.d.ts +4 -4
- package/lib/components/my/collapse/my-collapse.vue.d.ts +1 -1
- package/lib/components/my/color-picker/my-color-picker.vue.d.ts +2 -2
- package/lib/components/my/dialog/my-dialog.vue.d.ts +2 -2
- package/lib/components/my/divider/my-divider.vue.d.ts +3 -0
- package/lib/components/my/form/my-form.vue.d.ts +3 -0
- package/lib/components/my/group/my-group.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/ArrowLeft.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/ArrowRight.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/Check.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/Close.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/CloseBold.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/Crop.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/Plus.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/Printer.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/QuestionFilled.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/RefreshLeft.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/RefreshRight.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/ZoomIn.vue.d.ts +3 -0
- package/lib/components/my/icon/icons/ZoomOut.vue.d.ts +3 -0
- package/lib/components/my/icon/style-icon.vue.d.ts +11 -11
- package/lib/components/my/icon/tip-icon.vue.d.ts +4 -4
- package/lib/components/my/icon/tool-icon-popover.vue.d.ts +2 -2
- package/lib/components/my/input/history-input-number.vue.d.ts +1 -1
- package/lib/components/my/input/history-select.vue.d.ts +15 -15
- package/lib/components/my/input/my-input-number.vue.d.ts +1 -1
- package/lib/components/my/input/unit.vue.d.ts +6 -6
- package/lib/components/my/mouse-tips/my-mouse-tips.vue.d.ts +36 -36
- package/lib/components/my/popover/my-icon-popover.vue.d.ts +2 -2
- package/lib/components/my/rule/rule.vue.d.ts +1 -1
- package/lib/components/my/scrollbar/my-scrollbar.vue.d.ts +1 -1
- package/lib/components/my/select/my-select.vue.d.ts +15 -15
- package/lib/components/my/slider/my-slider.vue.d.ts +1 -1
- package/lib/components/my/switch/my-switch.vue.d.ts +1 -1
- package/lib/components/my/tooltip/my-tooltip.vue.d.ts +2 -2
- package/lib/components/my/tree-list/my-tree-list.vue.d.ts +1 -1
- package/lib/components/preview/preview-panel.vue.d.ts +3 -16716
- package/lib/components/preview/preview.vue.d.ts +3 -1942
- package/lib/components/print/print.vue.d.ts +3 -8865
- package/lib/index.d.ts +5 -2
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/plugins/moveable/moveable_js.d.js +3 -0
- package/lib/plugins/moveable/moveable_js.d.js.map +1 -0
- package/lib/stores/app.d.ts +2 -2
- package/lib/stores/app.js.map +1 -1
- package/lib/types/entity.d.ts +4 -0
- package/lib/types/entity.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +7 -1
- package/es/plugins/moveable/moveable_js.d.ts +0 -39
- package/lib/plugins/moveable/moveable_js.d.ts +0 -39
package/dist/index.full.js
CHANGED
|
@@ -65960,6 +65960,7 @@
|
|
|
65960
65960
|
const appStore = useAppStoreHook();
|
|
65961
65961
|
const designRef = vue.ref();
|
|
65962
65962
|
const isDrop = vue.ref(false);
|
|
65963
|
+
const dropTeleportTarget = vue.ref(null);
|
|
65963
65964
|
const tmpElement = vue.ref({});
|
|
65964
65965
|
const dragWrapper = vue.reactive({
|
|
65965
65966
|
visible: false,
|
|
@@ -65972,7 +65973,16 @@
|
|
|
65972
65973
|
});
|
|
65973
65974
|
const props = __props;
|
|
65974
65975
|
const panel = getCurrentPanel();
|
|
65975
|
-
function
|
|
65976
|
+
function resolveDesignContentEl() {
|
|
65977
|
+
const el = document.querySelector(".design-content");
|
|
65978
|
+
return el instanceof HTMLElement ? el : null;
|
|
65979
|
+
}
|
|
65980
|
+
vue.watch(isDrop, (v) => {
|
|
65981
|
+
if (!v) {
|
|
65982
|
+
dropTeleportTarget.value = null;
|
|
65983
|
+
}
|
|
65984
|
+
});
|
|
65985
|
+
async function dragStart(ev) {
|
|
65976
65986
|
mouseTips.visible();
|
|
65977
65987
|
tmpElement.value = JSON.parse(JSON.stringify(props.data));
|
|
65978
65988
|
const element = tmpElement.value;
|
|
@@ -66058,16 +66068,41 @@
|
|
|
66058
66068
|
dragWrapper.y = startY;
|
|
66059
66069
|
dragWrapper.width = element.runtimeOption.width;
|
|
66060
66070
|
dragWrapper.height = element.runtimeOption.height;
|
|
66071
|
+
dropTeleportTarget.value = resolveDesignContentEl();
|
|
66072
|
+
if (!dropTeleportTarget.value) {
|
|
66073
|
+
await vue.nextTick();
|
|
66074
|
+
dropTeleportTarget.value = resolveDesignContentEl();
|
|
66075
|
+
}
|
|
66076
|
+
if (!dropTeleportTarget.value) {
|
|
66077
|
+
await new Promise((r) => requestAnimationFrame(() => r()));
|
|
66078
|
+
dropTeleportTarget.value = resolveDesignContentEl();
|
|
66079
|
+
}
|
|
66080
|
+
if (!dropTeleportTarget.value) {
|
|
66081
|
+
dragWrapper.visible = false;
|
|
66082
|
+
dragWrapper.opacity = 0;
|
|
66083
|
+
mouseTips.hidden();
|
|
66084
|
+
clearEventBubble(ev);
|
|
66085
|
+
return;
|
|
66086
|
+
}
|
|
66061
66087
|
isDrop.value = true;
|
|
66062
66088
|
document.addEventListener("mousemove", mouseMove);
|
|
66063
66089
|
document.addEventListener("mouseup", mouseup);
|
|
66064
66090
|
clearEventBubble(ev);
|
|
66065
|
-
vue.nextTick(
|
|
66066
|
-
|
|
66067
|
-
|
|
66068
|
-
|
|
66069
|
-
|
|
66070
|
-
|
|
66091
|
+
await vue.nextTick();
|
|
66092
|
+
await vue.nextTick();
|
|
66093
|
+
const inst = designRef.value;
|
|
66094
|
+
const myHtmlElement = inst == null ? void 0 : inst.$el;
|
|
66095
|
+
if (!myHtmlElement) {
|
|
66096
|
+
isDrop.value = false;
|
|
66097
|
+
dropTeleportTarget.value = null;
|
|
66098
|
+
dragWrapper.visible = false;
|
|
66099
|
+
document.removeEventListener("mousemove", mouseMove);
|
|
66100
|
+
document.removeEventListener("mouseup", mouseup);
|
|
66101
|
+
return;
|
|
66102
|
+
}
|
|
66103
|
+
element.runtimeOption.target = myHtmlElement;
|
|
66104
|
+
myHtmlElement.element = element;
|
|
66105
|
+
dragNewElement(element.runtimeOption.target, ev);
|
|
66071
66106
|
function mouseMove(evMove) {
|
|
66072
66107
|
let diffXNum = -evMove.clientX + appStore.panelPosition.x;
|
|
66073
66108
|
let diffYNum = -evMove.clientY + appStore.panelPosition.y;
|
|
@@ -66209,16 +66244,17 @@
|
|
|
66209
66244
|
32
|
|
66210
66245
|
/* NEED_HYDRATION */
|
|
66211
66246
|
),
|
|
66212
|
-
vue.
|
|
66247
|
+
vue.createCommentVNode(" \u5FC5\u987B\u89E3\u6790\u5230\u771F\u5B9E DOM \u518D\u6302 Teleport\uFF1B\u9009\u4E0D\u5230 .design-content \u65F6 to \u65E0\u6548\uFF0C\u4F1A\u5728 patch \u65F6\u89E6\u53D1 emitsOptions \u7B49\u62A5\u9519 "),
|
|
66248
|
+
vue.unref(isDrop) && vue.unref(dropTeleportTarget) ? (vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
66213
66249
|
key: 0,
|
|
66214
|
-
to:
|
|
66250
|
+
to: vue.unref(dropTeleportTarget)
|
|
66215
66251
|
}, [
|
|
66216
66252
|
vue.createVNode(Design, {
|
|
66217
66253
|
element: vue.unref(tmpElement),
|
|
66218
66254
|
ref_key: "designRef",
|
|
66219
66255
|
ref: designRef
|
|
66220
66256
|
}, null, 8, ["element"])
|
|
66221
|
-
])) : vue.createCommentVNode("v-if", true),
|
|
66257
|
+
], 8, ["to"])) : vue.createCommentVNode("v-if", true),
|
|
66222
66258
|
vue.unref(dragWrapper).visible ? (vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
66223
66259
|
key: 1,
|
|
66224
66260
|
to: "body"
|
|
@@ -88196,7 +88232,7 @@
|
|
|
88196
88232
|
return vue.openBlock(), vue.createElementBlock(
|
|
88197
88233
|
"div",
|
|
88198
88234
|
{
|
|
88199
|
-
class: vue.normalizeClass(["content-scale", { run: vue.unref(appStore).currentElement.
|
|
88235
|
+
class: vue.normalizeClass(["content-scale", { run: vue.unref(appStore).currentElement.length === 0 }])
|
|
88200
88236
|
},
|
|
88201
88237
|
[
|
|
88202
88238
|
vue.unref(configStore).settingPanel.miniMap.visible ? (vue.openBlock(), vue.createElementBlock(
|
|
@@ -88452,7 +88488,7 @@
|
|
|
88452
88488
|
setCurrentPanel(panel);
|
|
88453
88489
|
const props = __props;
|
|
88454
88490
|
vue.watch(() => props.uploadUrl, (val) => {
|
|
88455
|
-
appStore.uploadUrl = val;
|
|
88491
|
+
appStore.uploadUrl = val || "";
|
|
88456
88492
|
}, { immediate: true });
|
|
88457
88493
|
const style = vue.computed(() => {
|
|
88458
88494
|
return {
|
|
@@ -88588,10 +88624,10 @@
|
|
|
88588
88624
|
}
|
|
88589
88625
|
});
|
|
88590
88626
|
|
|
88591
|
-
var DesignPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
|
|
88627
|
+
var DesignPanel$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
|
|
88592
88628
|
|
|
88593
88629
|
function mountDesign(app, props, element) {
|
|
88594
|
-
const printNode = vue.h(DesignPanel, props == null ? {} : props);
|
|
88630
|
+
const printNode = vue.h(DesignPanel$1, props == null ? {} : props);
|
|
88595
88631
|
let elementTmp = element;
|
|
88596
88632
|
if (elementTmp == null) {
|
|
88597
88633
|
elementTmp = document.createElement("div");
|
|
@@ -94960,7 +94996,9 @@ ${$$g(r2)}`), n2;
|
|
|
94960
94996
|
}
|
|
94961
94997
|
};
|
|
94962
94998
|
|
|
94963
|
-
const version$1 = "1.0.
|
|
94999
|
+
const version$1 = "1.0.2";
|
|
95000
|
+
|
|
95001
|
+
const DesignPanel = DesignPanel$1;
|
|
94964
95002
|
|
|
94965
95003
|
function _typeof$1(obj) {
|
|
94966
95004
|
"@babel/helpers - typeof";
|
package/dist/index.full.mjs
CHANGED
|
@@ -65959,6 +65959,7 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
65959
65959
|
const appStore = useAppStoreHook();
|
|
65960
65960
|
const designRef = ref$1();
|
|
65961
65961
|
const isDrop = ref$1(false);
|
|
65962
|
+
const dropTeleportTarget = ref$1(null);
|
|
65962
65963
|
const tmpElement = ref$1({});
|
|
65963
65964
|
const dragWrapper = reactive({
|
|
65964
65965
|
visible: false,
|
|
@@ -65971,7 +65972,16 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
65971
65972
|
});
|
|
65972
65973
|
const props = __props;
|
|
65973
65974
|
const panel = getCurrentPanel();
|
|
65974
|
-
function
|
|
65975
|
+
function resolveDesignContentEl() {
|
|
65976
|
+
const el = document.querySelector(".design-content");
|
|
65977
|
+
return el instanceof HTMLElement ? el : null;
|
|
65978
|
+
}
|
|
65979
|
+
watch(isDrop, (v) => {
|
|
65980
|
+
if (!v) {
|
|
65981
|
+
dropTeleportTarget.value = null;
|
|
65982
|
+
}
|
|
65983
|
+
});
|
|
65984
|
+
async function dragStart(ev) {
|
|
65975
65985
|
mouseTips.visible();
|
|
65976
65986
|
tmpElement.value = JSON.parse(JSON.stringify(props.data));
|
|
65977
65987
|
const element = tmpElement.value;
|
|
@@ -66057,16 +66067,41 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
66057
66067
|
dragWrapper.y = startY;
|
|
66058
66068
|
dragWrapper.width = element.runtimeOption.width;
|
|
66059
66069
|
dragWrapper.height = element.runtimeOption.height;
|
|
66070
|
+
dropTeleportTarget.value = resolveDesignContentEl();
|
|
66071
|
+
if (!dropTeleportTarget.value) {
|
|
66072
|
+
await nextTick$1();
|
|
66073
|
+
dropTeleportTarget.value = resolveDesignContentEl();
|
|
66074
|
+
}
|
|
66075
|
+
if (!dropTeleportTarget.value) {
|
|
66076
|
+
await new Promise((r) => requestAnimationFrame(() => r()));
|
|
66077
|
+
dropTeleportTarget.value = resolveDesignContentEl();
|
|
66078
|
+
}
|
|
66079
|
+
if (!dropTeleportTarget.value) {
|
|
66080
|
+
dragWrapper.visible = false;
|
|
66081
|
+
dragWrapper.opacity = 0;
|
|
66082
|
+
mouseTips.hidden();
|
|
66083
|
+
clearEventBubble(ev);
|
|
66084
|
+
return;
|
|
66085
|
+
}
|
|
66060
66086
|
isDrop.value = true;
|
|
66061
66087
|
document.addEventListener("mousemove", mouseMove);
|
|
66062
66088
|
document.addEventListener("mouseup", mouseup);
|
|
66063
66089
|
clearEventBubble(ev);
|
|
66064
|
-
nextTick$1(
|
|
66065
|
-
|
|
66066
|
-
|
|
66067
|
-
|
|
66068
|
-
|
|
66069
|
-
|
|
66090
|
+
await nextTick$1();
|
|
66091
|
+
await nextTick$1();
|
|
66092
|
+
const inst = designRef.value;
|
|
66093
|
+
const myHtmlElement = inst == null ? void 0 : inst.$el;
|
|
66094
|
+
if (!myHtmlElement) {
|
|
66095
|
+
isDrop.value = false;
|
|
66096
|
+
dropTeleportTarget.value = null;
|
|
66097
|
+
dragWrapper.visible = false;
|
|
66098
|
+
document.removeEventListener("mousemove", mouseMove);
|
|
66099
|
+
document.removeEventListener("mouseup", mouseup);
|
|
66100
|
+
return;
|
|
66101
|
+
}
|
|
66102
|
+
element.runtimeOption.target = myHtmlElement;
|
|
66103
|
+
myHtmlElement.element = element;
|
|
66104
|
+
dragNewElement(element.runtimeOption.target, ev);
|
|
66070
66105
|
function mouseMove(evMove) {
|
|
66071
66106
|
let diffXNum = -evMove.clientX + appStore.panelPosition.x;
|
|
66072
66107
|
let diffYNum = -evMove.clientY + appStore.panelPosition.y;
|
|
@@ -66208,16 +66243,17 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
66208
66243
|
32
|
|
66209
66244
|
/* NEED_HYDRATION */
|
|
66210
66245
|
),
|
|
66211
|
-
|
|
66246
|
+
createCommentVNode(" \u5FC5\u987B\u89E3\u6790\u5230\u771F\u5B9E DOM \u518D\u6302 Teleport\uFF1B\u9009\u4E0D\u5230 .design-content \u65F6 to \u65E0\u6548\uFF0C\u4F1A\u5728 patch \u65F6\u89E6\u53D1 emitsOptions \u7B49\u62A5\u9519 "),
|
|
66247
|
+
unref(isDrop) && unref(dropTeleportTarget) ? (openBlock(), createBlock(Teleport, {
|
|
66212
66248
|
key: 0,
|
|
66213
|
-
to:
|
|
66249
|
+
to: unref(dropTeleportTarget)
|
|
66214
66250
|
}, [
|
|
66215
66251
|
createVNode(Design, {
|
|
66216
66252
|
element: unref(tmpElement),
|
|
66217
66253
|
ref_key: "designRef",
|
|
66218
66254
|
ref: designRef
|
|
66219
66255
|
}, null, 8, ["element"])
|
|
66220
|
-
])) : createCommentVNode("v-if", true),
|
|
66256
|
+
], 8, ["to"])) : createCommentVNode("v-if", true),
|
|
66221
66257
|
unref(dragWrapper).visible ? (openBlock(), createBlock(Teleport, {
|
|
66222
66258
|
key: 1,
|
|
66223
66259
|
to: "body"
|
|
@@ -88195,7 +88231,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
88195
88231
|
return openBlock(), createElementBlock(
|
|
88196
88232
|
"div",
|
|
88197
88233
|
{
|
|
88198
|
-
class: normalizeClass(["content-scale", { run: unref(appStore).currentElement.
|
|
88234
|
+
class: normalizeClass(["content-scale", { run: unref(appStore).currentElement.length === 0 }])
|
|
88199
88235
|
},
|
|
88200
88236
|
[
|
|
88201
88237
|
unref(configStore).settingPanel.miniMap.visible ? (openBlock(), createElementBlock(
|
|
@@ -88451,7 +88487,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88451
88487
|
setCurrentPanel(panel);
|
|
88452
88488
|
const props = __props;
|
|
88453
88489
|
watch(() => props.uploadUrl, (val) => {
|
|
88454
|
-
appStore.uploadUrl = val;
|
|
88490
|
+
appStore.uploadUrl = val || "";
|
|
88455
88491
|
}, { immediate: true });
|
|
88456
88492
|
const style = computed(() => {
|
|
88457
88493
|
return {
|
|
@@ -88587,10 +88623,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88587
88623
|
}
|
|
88588
88624
|
});
|
|
88589
88625
|
|
|
88590
|
-
var DesignPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
|
|
88626
|
+
var DesignPanel$1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
|
|
88591
88627
|
|
|
88592
88628
|
function mountDesign(app, props, element) {
|
|
88593
|
-
const printNode = h$5(DesignPanel, props == null ? {} : props);
|
|
88629
|
+
const printNode = h$5(DesignPanel$1, props == null ? {} : props);
|
|
88594
88630
|
let elementTmp = element;
|
|
88595
88631
|
if (elementTmp == null) {
|
|
88596
88632
|
elementTmp = document.createElement("div");
|
|
@@ -94959,7 +94995,9 @@ const install = {
|
|
|
94959
94995
|
}
|
|
94960
94996
|
};
|
|
94961
94997
|
|
|
94962
|
-
const version$1 = "1.0.
|
|
94998
|
+
const version$1 = "1.0.2";
|
|
94999
|
+
|
|
95000
|
+
const DesignPanel = DesignPanel$1;
|
|
94963
95001
|
|
|
94964
95002
|
function _typeof$1(obj) {
|
|
94965
95003
|
"@babel/helpers - typeof";
|
|
@@ -57,12 +57,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
57
57
|
element: {
|
|
58
58
|
type: any;
|
|
59
59
|
required: false;
|
|
60
|
-
default: () => import("
|
|
60
|
+
default: () => import("../../..").HandlePanel;
|
|
61
61
|
};
|
|
62
62
|
position: {
|
|
63
63
|
type: any;
|
|
64
64
|
required: true;
|
|
65
|
-
default: () => import("
|
|
65
|
+
default: () => import("../../..").HandlePanelPosition;
|
|
66
66
|
};
|
|
67
67
|
modelValue: {
|
|
68
68
|
type: BooleanConstructor;
|
|
@@ -73,7 +73,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
73
73
|
props: any;
|
|
74
74
|
appStore: import("pinia").Store<"myPrintApp", {
|
|
75
75
|
locale: string;
|
|
76
|
-
displayModel: import("
|
|
76
|
+
displayModel: import("../../..").DisplayModel;
|
|
77
77
|
client: {
|
|
78
78
|
connect: boolean;
|
|
79
79
|
};
|
|
@@ -83,12 +83,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
83
83
|
scrollX: number;
|
|
84
84
|
scrollY: number;
|
|
85
85
|
};
|
|
86
|
-
currentPanel: import("
|
|
86
|
+
currentPanel: import("../../..").Panel;
|
|
87
87
|
previewData: any[];
|
|
88
|
-
provider: import("
|
|
89
|
-
lastPageUnit: import("
|
|
90
|
-
currentElement: import("
|
|
91
|
-
auxiliaryLineTmp: import("
|
|
88
|
+
provider: import("../../..").Provider;
|
|
89
|
+
lastPageUnit: import("../../..").PageUnit;
|
|
90
|
+
currentElement: import("../../..").MyElement[];
|
|
91
|
+
auxiliaryLineTmp: import("../../..").MyAuxiliaryLine;
|
|
92
92
|
dataRotation: number | "rotate" | "none" | "ns-resize" | "move" | "col-resize";
|
|
93
93
|
uploadUrl: string;
|
|
94
94
|
}, {}, {
|
|
@@ -192,8 +192,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
192
192
|
"onPs-x-reach-end"?: (...args: any[]) => any;
|
|
193
193
|
}>, {
|
|
194
194
|
height: string;
|
|
195
|
-
tag: string;
|
|
196
195
|
options: any;
|
|
196
|
+
tag: string;
|
|
197
197
|
hoverBlod: boolean;
|
|
198
198
|
disabledScrollBar: boolean;
|
|
199
199
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -269,12 +269,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
269
269
|
element: {
|
|
270
270
|
type: any;
|
|
271
271
|
required: false;
|
|
272
|
-
default: () => import("
|
|
272
|
+
default: () => import("../../..").HandlePanel;
|
|
273
273
|
};
|
|
274
274
|
position: {
|
|
275
275
|
type: any;
|
|
276
276
|
required: true;
|
|
277
|
-
default: () => import("
|
|
277
|
+
default: () => import("../../..").HandlePanelPosition;
|
|
278
278
|
};
|
|
279
279
|
modelValue: {
|
|
280
280
|
type: BooleanConstructor;
|