ninemoon-ui 0.1.20 → 0.2.1
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/components/carousel/carousel.vue.d.ts +2 -0
- package/dist/components/date/datepicker.vue.d.ts +1 -1
- package/dist/components/date/datepickerRange.vue.d.ts +16 -0
- package/dist/components/form/formlabel.vue.d.ts +1 -3
- package/dist/components/pagination/pagination.vue.d.ts +8 -15
- package/dist/components/popover/popover.vue.d.ts +5 -0
- package/dist/components/switch/switch.vue.d.ts +10 -0
- package/dist/components/upload/upload.vue.d.ts +5 -0
- package/dist/index.d.ts +139 -61
- package/dist/index.es.js +21 -21
- package/dist/js/arrow/arrow.js +2 -2
- package/dist/js/badge/badge.js +1 -1
- package/dist/js/calendar/calendar.js +4 -4
- package/dist/js/carousel/carousel.js +59 -38
- package/dist/js/check/checkbox.js +4 -4
- package/dist/js/date/datepicker.js +20 -8
- package/dist/js/date/datepickerRange.js +104 -69
- package/dist/js/dateArrowplus/dateArrowplus.js +2 -2
- package/dist/js/delete/delete.js +2 -2
- package/dist/js/dialog/dialog.js +41 -29
- package/dist/js/form/formlabel.js +21 -89
- package/dist/js/image/image.js +17 -18
- package/dist/js/index/index.js +273 -253
- package/dist/js/input/input.js +8 -8
- package/dist/js/menu/menu.js +1 -1
- package/dist/js/numberInput/numberinput.js +8 -8
- package/dist/js/pagination/pagination.js +17 -14
- package/dist/js/popover/popover.js +3 -239
- package/dist/js/popover.vue_vue_type_script_setup_true_lang/popover.vue_vue_type_script_setup_true_lang.js +249 -0
- package/dist/js/radio/radiobox.js +4 -4
- package/dist/js/scrollBar/scrollBar.js +4 -4
- package/dist/js/select/select.js +5 -5
- package/dist/js/select/selectoption.js +3 -3
- package/dist/js/switch/switch.js +33 -7
- package/dist/js/table/table.js +107 -77
- package/dist/js/table/tableItem.js +2 -2
- package/dist/js/tabs/tabs.js +202 -21
- package/dist/js/upload/upload.js +57 -12
- package/dist/utils/tool.d.ts +5 -0
- package/package.json +5 -2
package/dist/js/dialog/dialog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import { c as createEscapeDirective, s as selector, C as CloseIcon } from "../index/index.js";
|
|
1
|
+
import { defineComponent, ref, watch, computed, openBlock, createBlock, Teleport, unref, createVNode, Transition, withCtx, withDirectives, createElementBlock, normalizeStyle, withModifiers, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, renderSlot, vShow } from "vue";
|
|
2
|
+
import { z as zIndexManager, c as createEscapeDirective, s as selector, C as CloseIcon } from "../index/index.js";
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex w-full justify-between p-2"
|
|
@@ -20,6 +20,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
emits: ["update:visible"],
|
|
21
21
|
setup(__props, { emit: __emit }) {
|
|
22
22
|
const props = __props;
|
|
23
|
+
const currentZIndex = ref(zIndexManager.getCurrentZIndex());
|
|
24
|
+
watch(() => props.visible, (newVal) => {
|
|
25
|
+
if (newVal) {
|
|
26
|
+
currentZIndex.value = zIndexManager.getNextZIndex();
|
|
27
|
+
}
|
|
28
|
+
});
|
|
23
29
|
const showdefaultHand = computed(() => {
|
|
24
30
|
return props.headShow && !props.isDiy;
|
|
25
31
|
});
|
|
@@ -83,34 +89,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
89
|
return openBlock(), createBlock(Teleport, {
|
|
84
90
|
to: `#${unref(selector)}`
|
|
85
91
|
}, [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
class: normalizeClass(["divide-y divide-gray-300 rounded drop-shadow mt-20 mx-auto", { "w-96": !hasselfwidth.value, "bg-white": !_ctx.isDiy }]),
|
|
93
|
-
style: normalizeStyle({ width: selfwidth.value })
|
|
94
|
-
}, [
|
|
95
|
-
showdefaultHand.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
96
|
-
createElementVNode("span", null, toDisplayString(_ctx.title), 1),
|
|
97
|
-
createElementVNode("button", {
|
|
98
|
-
type: "button",
|
|
99
|
-
onClick: closeDialogHandle,
|
|
100
|
-
class: "appearance-none fill-gray-600"
|
|
101
|
-
}, [
|
|
102
|
-
createVNode(CloseIcon)
|
|
103
|
-
])
|
|
104
|
-
])) : createCommentVNode("", true),
|
|
105
|
-
createElementVNode("div", {
|
|
106
|
-
class: normalizeClass({ "p-2": !_ctx.isDiy })
|
|
92
|
+
createVNode(Transition, { name: "dialog-fade" }, {
|
|
93
|
+
default: withCtx(() => [
|
|
94
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
95
|
+
class: "fixed top-0 right-0 left-0 bottom-0 bg-black bg-opacity-30 text-sm",
|
|
96
|
+
style: normalizeStyle({ "z-index": currentZIndex.value }),
|
|
97
|
+
onClick: withModifiers(whiteSpaceClick, ["self"])
|
|
107
98
|
}, [
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
99
|
+
createElementVNode("div", {
|
|
100
|
+
class: normalizeClass(["divide-y divide-gray-300 rounded drop-shadow mt-20 mx-auto dialogBody", { "w-96": !hasselfwidth.value, "bg-white": !__props.isDiy }]),
|
|
101
|
+
style: normalizeStyle({ width: selfwidth.value })
|
|
102
|
+
}, [
|
|
103
|
+
showdefaultHand.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
104
|
+
createElementVNode("span", null, toDisplayString(__props.title), 1),
|
|
105
|
+
createElementVNode("button", {
|
|
106
|
+
type: "button",
|
|
107
|
+
onClick: closeDialogHandle,
|
|
108
|
+
class: "appearance-none fill-gray-600"
|
|
109
|
+
}, [
|
|
110
|
+
createVNode(CloseIcon)
|
|
111
|
+
])
|
|
112
|
+
])) : createCommentVNode("", true),
|
|
113
|
+
createElementVNode("div", {
|
|
114
|
+
class: normalizeClass({ "p-2": !__props.isDiy })
|
|
115
|
+
}, [
|
|
116
|
+
renderSlot(_ctx.$slots, "default")
|
|
117
|
+
], 2)
|
|
118
|
+
], 6)
|
|
119
|
+
], 4)), [
|
|
120
|
+
[vShow, __props.visible],
|
|
121
|
+
[unref(vEsc), __props.visible]
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
_: 3
|
|
125
|
+
})
|
|
114
126
|
], 8, ["to"]);
|
|
115
127
|
};
|
|
116
128
|
}
|
|
@@ -14,16 +14,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
showRequire: { type: Boolean, default: false },
|
|
15
15
|
labelPosition: { default: void 0 }
|
|
16
16
|
},
|
|
17
|
-
setup(__props
|
|
17
|
+
setup(__props) {
|
|
18
18
|
const props = __props;
|
|
19
19
|
const haslabel = computed(() => !!props.label);
|
|
20
20
|
const Rules = inject("_ParentRules_", {});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
inject("_ParentModels_", ref());
|
|
22
|
+
inject("_formRuleCheck_", () => null);
|
|
23
|
+
inject("_validateClear_", () => null);
|
|
24
24
|
const parentLineStatus = inject("_ParentLineStatus_", ref());
|
|
25
25
|
const parentLabelPosition = inject("_ParentLabelPosition_", ref());
|
|
26
|
-
|
|
26
|
+
computed(() => {
|
|
27
27
|
if (!props.prop) {
|
|
28
28
|
return [];
|
|
29
29
|
}
|
|
@@ -43,88 +43,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
return parentLabelPosition.value;
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
|
-
const checkPropHandle = async (callBack, eventName) => {
|
|
47
|
-
if (!props.prop)
|
|
48
|
-
return;
|
|
49
|
-
if (getThisRule.value.length === 0) {
|
|
50
|
-
callBack && callBack(true);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const setErrHandle = (errword) => {
|
|
54
|
-
if (errword)
|
|
55
|
-
tip.value = errword;
|
|
56
|
-
showTip.value = true;
|
|
57
|
-
callBack && callBack(false);
|
|
58
|
-
};
|
|
59
|
-
const aimdata = Model.value[props.prop];
|
|
60
|
-
const filterRule = getThisRule.value.filter(
|
|
61
|
-
(rule) => !eventName || rule.trigger === eventName
|
|
62
|
-
);
|
|
63
|
-
let i = 0;
|
|
64
|
-
for (; i < filterRule.length; i++) {
|
|
65
|
-
const { type, min, max, message, validator } = filterRule[i];
|
|
66
|
-
tip.value = message || "";
|
|
67
|
-
if (min || max) {
|
|
68
|
-
const toNum = Number(aimdata);
|
|
69
|
-
if (isNaN(toNum)) {
|
|
70
|
-
setErrHandle("请输入数字");
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
if (min && toNum < min || max && toNum > max) {
|
|
74
|
-
setErrHandle();
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
if (type) {
|
|
79
|
-
if (!validateType(aimdata, type)) {
|
|
80
|
-
setErrHandle();
|
|
81
|
-
break;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
if (validator) {
|
|
85
|
-
const result = await FunctionToPromise(validator, aimdata);
|
|
86
|
-
if (result !== void 0) {
|
|
87
|
-
setErrHandle(result);
|
|
88
|
-
break;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
if (aimdata === null || aimdata === "" || aimdata === void 0) {
|
|
92
|
-
setErrHandle();
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
if (i === getThisRule.value.length) {
|
|
97
|
-
showTip.value = false;
|
|
98
|
-
tip.value = "";
|
|
99
|
-
callBack && callBack(true);
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
const validateType = (value, type) => {
|
|
103
|
-
if (type === "array")
|
|
104
|
-
return Array.isArray(value);
|
|
105
|
-
return typeof value === type;
|
|
106
|
-
};
|
|
107
46
|
const tip = ref("");
|
|
108
47
|
const showTip = ref(false);
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
sendClear(resetField);
|
|
122
|
-
provide("inputHandle", () => checkPropHandle(void 0, "input"));
|
|
123
|
-
provide("blurHandle", () => checkPropHandle(void 0, "blur"));
|
|
124
|
-
provide("changeHandle", () => checkPropHandle(void 0, "change"));
|
|
125
|
-
__expose({
|
|
126
|
-
validateLabel: checkPropHandle
|
|
127
|
-
});
|
|
48
|
+
if (props.prop) {
|
|
49
|
+
const updateTip = (newTip, newShow) => {
|
|
50
|
+
tip.value = newTip;
|
|
51
|
+
showTip.value = newShow;
|
|
52
|
+
};
|
|
53
|
+
const validateClear = () => {
|
|
54
|
+
tip.value = "";
|
|
55
|
+
showTip.value = false;
|
|
56
|
+
};
|
|
57
|
+
provide("_updateTip_", updateTip);
|
|
58
|
+
provide("_validateClear_", validateClear);
|
|
59
|
+
}
|
|
128
60
|
return (_ctx, _cache) => {
|
|
129
61
|
return openBlock(), createElementBlock("div", {
|
|
130
62
|
class: normalizeClass([
|
|
@@ -141,17 +73,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
73
|
"text-left": labelPosition.value === "left"
|
|
142
74
|
}
|
|
143
75
|
]),
|
|
144
|
-
style: normalizeStyle({ width: `${
|
|
76
|
+
style: normalizeStyle({ width: `${__props.width}px` })
|
|
145
77
|
}, [
|
|
146
78
|
createElementVNode("span", {
|
|
147
79
|
class: normalizeClass({
|
|
148
|
-
"before:content-['*'] before:text-[#E4391D] before:mr-1":
|
|
80
|
+
"before:content-['*'] before:text-[#E4391D] before:mr-1": __props.showRequire
|
|
149
81
|
})
|
|
150
|
-
}, toDisplayString(
|
|
82
|
+
}, toDisplayString(__props.label), 3)
|
|
151
83
|
], 6)) : createCommentVNode("", true),
|
|
152
84
|
createElementVNode("div", _hoisted_1, [
|
|
153
85
|
renderSlot(_ctx.$slots, "default"),
|
|
154
|
-
createVNode(Transition, { name: "
|
|
86
|
+
createVNode(Transition, { name: "opacity" }, {
|
|
155
87
|
default: withCtx(() => [
|
|
156
88
|
showTip.value ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(tip.value), 1)) : createCommentVNode("", true)
|
|
157
89
|
]),
|
package/dist/js/image/image.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, createElementVNode, defineComponent, ref, watch, Fragment, createVNode, createCommentVNode, renderSlot, createBlock, Teleport, Transition, withCtx, withDirectives, withModifiers,
|
|
2
|
-
import { _ as _export_sfc, b as createDraggableDirective, d as createWheelDirective } from "../index/index.js";
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode, defineComponent, ref, watch, Fragment, createVNode, createCommentVNode, renderSlot, createBlock, Teleport, Transition, withCtx, normalizeStyle, withDirectives, withModifiers, normalizeClass, unref } from "vue";
|
|
2
|
+
import { _ as _export_sfc, b as createDraggableDirective, d as createWheelDirective, z as zIndexManager } from "../index/index.js";
|
|
3
3
|
import { d as delIcon } from "../delete/delete.js";
|
|
4
4
|
const _sfc_main$3 = {};
|
|
5
5
|
const _hoisted_1$3 = {
|
|
@@ -12,9 +12,9 @@ const _hoisted_1$3 = {
|
|
|
12
12
|
"aria-hidden": "true"
|
|
13
13
|
};
|
|
14
14
|
function _sfc_render$2(_ctx, _cache) {
|
|
15
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$3, _cache[0] || (_cache[0] = [
|
|
15
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$3, [..._cache[0] || (_cache[0] = [
|
|
16
16
|
createElementVNode("path", { d: "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" }, null, -1)
|
|
17
|
-
]));
|
|
17
|
+
])]);
|
|
18
18
|
}
|
|
19
19
|
const EyeIcon = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2]]);
|
|
20
20
|
const _sfc_main$2 = {};
|
|
@@ -27,10 +27,10 @@ const _hoisted_1$2 = {
|
|
|
27
27
|
"aria-hidden": "true"
|
|
28
28
|
};
|
|
29
29
|
function _sfc_render$1(_ctx, _cache) {
|
|
30
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$2, _cache[0] || (_cache[0] = [
|
|
30
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$2, [..._cache[0] || (_cache[0] = [
|
|
31
31
|
createElementVNode("path", { d: "M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z" }, null, -1),
|
|
32
32
|
createElementVNode("path", { d: "M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z" }, null, -1)
|
|
33
|
-
]));
|
|
33
|
+
])]);
|
|
34
34
|
}
|
|
35
35
|
const turnLeftIcon = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1]]);
|
|
36
36
|
const _sfc_main$1 = {};
|
|
@@ -42,16 +42,16 @@ const _hoisted_1$1 = {
|
|
|
42
42
|
"aria-hidden": "true"
|
|
43
43
|
};
|
|
44
44
|
function _sfc_render(_ctx, _cache) {
|
|
45
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$1, _cache[0] || (_cache[0] = [
|
|
45
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$1, [..._cache[0] || (_cache[0] = [
|
|
46
46
|
createElementVNode("path", { d: "M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z" }, null, -1),
|
|
47
47
|
createElementVNode("path", { d: "M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z" }, null, -1)
|
|
48
|
-
]));
|
|
48
|
+
])]);
|
|
49
49
|
}
|
|
50
50
|
const turnRightIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render]]);
|
|
51
51
|
const _hoisted_1 = { class: "relative inline-block h-full w-full" };
|
|
52
52
|
const _hoisted_2 = ["src"];
|
|
53
53
|
const _hoisted_3 = { key: 0 };
|
|
54
|
-
const _hoisted_4 = { class: "pointer-events-none fixed top-0 right-0 left-0 bottom-0
|
|
54
|
+
const _hoisted_4 = { class: "pointer-events-none fixed top-0 right-0 left-0 bottom-0 text-center" };
|
|
55
55
|
const _hoisted_5 = { class: "pointer-events-auto absolute top-0 left-0 z-10 flex w-full items-center bg-black bg-opacity-10" };
|
|
56
56
|
const _hoisted_6 = ["src"];
|
|
57
57
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -88,8 +88,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
88
|
const emit = __emit;
|
|
89
89
|
const ImgIsMoving = ref(false);
|
|
90
90
|
const showBig = ref(false);
|
|
91
|
+
const currentZIndex = ref(zIndexManager.getCurrentZIndex());
|
|
91
92
|
watch(showBig, (val) => {
|
|
92
93
|
if (val === true) {
|
|
94
|
+
currentZIndex.value = zIndexManager.getNextZIndex();
|
|
93
95
|
document.body.classList.add("overflow-hidden");
|
|
94
96
|
} else {
|
|
95
97
|
document.body.classList.remove("overflow-hidden");
|
|
@@ -102,10 +104,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
104
|
const hidenPreview = () => {
|
|
103
105
|
emit("closePreview");
|
|
104
106
|
showBig.value = false;
|
|
105
|
-
scaleNumber.value = 1;
|
|
106
|
-
transX.value = 0;
|
|
107
|
-
transY.value = 0;
|
|
108
|
-
rotateNumber.value = 0;
|
|
109
107
|
};
|
|
110
108
|
const transX = ref(0);
|
|
111
109
|
const transY = ref(0);
|
|
@@ -122,9 +120,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
120
|
createElementVNode("div", _hoisted_1, [
|
|
123
121
|
createElementVNode("img", {
|
|
124
122
|
class: "w-full align-middle",
|
|
125
|
-
src:
|
|
123
|
+
src: __props.src
|
|
126
124
|
}, null, 8, _hoisted_2),
|
|
127
|
-
|
|
125
|
+
__props.preview ? (openBlock(), createElementBlock("div", {
|
|
128
126
|
key: 0,
|
|
129
127
|
onClick: showPreview,
|
|
130
128
|
class: "absolute top-0 right-0 left-0 bottom-0 flex cursor-pointer items-center justify-center bg-black bg-opacity-50 text-white opacity-0 transition-opacity hover:opacity-100"
|
|
@@ -138,10 +136,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
136
|
default: withCtx(() => [
|
|
139
137
|
showBig.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
140
138
|
createElementVNode("div", {
|
|
141
|
-
class: "pointer-events-auto fixed top-0 right-0 left-0 bottom-0
|
|
139
|
+
class: "pointer-events-auto fixed top-0 right-0 left-0 bottom-0 bg-black bg-opacity-30",
|
|
140
|
+
style: normalizeStyle({ "z-index": currentZIndex.value }),
|
|
142
141
|
key: "1",
|
|
143
142
|
onClick: hidenPreview
|
|
144
|
-
}),
|
|
143
|
+
}, null, 4),
|
|
145
144
|
withDirectives((openBlock(), createElementBlock("div", _hoisted_4, [
|
|
146
145
|
createElementVNode("div", _hoisted_5, [
|
|
147
146
|
createElementVNode("button", {
|
|
@@ -171,7 +170,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
171
170
|
style: normalizeStyle({ transform: `translate3d(${transX.value}px, ${transY.value}px, 0px)` })
|
|
172
171
|
}, [
|
|
173
172
|
createElementVNode("img", {
|
|
174
|
-
src:
|
|
173
|
+
src: __props.src,
|
|
175
174
|
class: normalizeClass([{
|
|
176
175
|
"cursor-grab": !ImgIsMoving.value,
|
|
177
176
|
"cursor-grabbing": ImgIsMoving.value
|