@vipl520/dk-ui 1.0.53 → 1.0.55
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/attributes.json +8 -0
- package/dist/index.css +1 -1
- package/dist/index.js +2036 -1431
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +4 -4
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +2035 -1432
- package/dist/tags.json +7 -0
- package/dist/web-types.json +35 -1
- package/es/attachment/src/attachment.vue2.mjs +7 -1
- package/es/attachment/src/attachment.vue2.mjs.map +1 -1
- package/es/attachment-dialog/src/attachment-dialog.vue2.mjs +2 -0
- package/es/attachment-dialog/src/attachment-dialog.vue2.mjs.map +1 -1
- package/es/form/src/form.vue2.mjs +0 -1
- package/es/form/src/form.vue2.mjs.map +1 -1
- package/es/group/src/group.vue2.mjs +14 -1
- package/es/group/src/group.vue2.mjs.map +1 -1
- package/es/hot-area-input/src/component/hot-area-content.vue2.mjs +23 -21
- package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
- package/es/icon/style/index.css +0 -1
- package/es/icon/style/index.scss +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +5 -2
- package/es/index.mjs.map +1 -1
- package/es/index.scss +1 -0
- package/es/page-diy/src/config/rule/min/common/DkMinGrid.d.ts +81 -0
- package/es/page-diy/src/config/rule/min/common/DkMinGrid.mjs +114 -0
- package/es/page-diy/src/config/rule/min/common/DkMinGrid.mjs.map +1 -0
- package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +8 -0
- package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs +7 -1
- package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +35 -30
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +76 -62
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/common/index.d.ts +240 -60
- package/es/page-diy/src/config/rule/min/common/index.mjs +4 -2
- package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
- package/es/page-diy/src/config/rule/min/index.d.ts +240 -60
- package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs +1 -1
- package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs.map +1 -1
- package/es/page-diy/src/props.mjs +1 -1
- package/es/page-diy/src/props.mjs.map +1 -1
- package/es/page-diy/src/views/min/DkMinGrid.vue.d.ts +22 -0
- package/es/page-diy/src/views/min/DkMinGrid.vue.mjs +66 -0
- package/es/page-diy/src/views/min/DkMinGrid.vue.mjs.map +1 -0
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +9 -0
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +7 -2
- package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
- package/es/page-diy/src/views/min/DkMinTitle.vue.d.ts +62 -17
- package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +59 -30
- package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
- package/es/page-diy/src/views/min/index.mjs +3 -1
- package/es/page-diy/src/views/min/index.mjs.map +1 -1
- package/es/page-diy/style/drag-tool.css +1 -1
- package/es/page-diy/style/drag-tool.scss +4 -0
- package/es/page-diy/style/index.css +1 -1
- package/es/page-diy/style/minViews/index.scss +8 -0
- package/es/style-box-input/src/style-box-input.vue2.mjs +200 -130
- package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
- package/es/style-box-input/style/index.css +1 -1
- package/es/style-box-input/style/index.scss +13 -3
- package/es/style-font-input/src/style-font-input.vue2.mjs +105 -272
- package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
- package/es/style-input/src/style-input.vue2.mjs +1 -0
- package/es/style-input/src/style-input.vue2.mjs.map +1 -1
- package/es/style-shadow-input/src/style-shadow-input.vue2.mjs +1 -1
- package/es/style-shadow-input/src/style-shadow-input.vue2.mjs.map +1 -1
- package/es/test/index.d.ts +4 -2
- package/es/test/src/test.vue.d.ts +4 -2
- package/es/test/src/test.vue2.mjs +14 -3
- package/es/test/src/test.vue2.mjs.map +1 -1
- package/es/tiny-editor/src/tiny-editor.vue2.mjs +1 -1
- package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
- package/es/uni-icon/style/index.css +1 -1
- package/es/uni-icon/style/index.scss +1 -1
- package/es/url-input/index.d.ts +35 -0
- package/es/url-input/index.mjs +8 -0
- package/es/url-input/index.mjs.map +1 -0
- package/es/url-input/src/props.d.ts +16 -0
- package/es/url-input/src/props.mjs +13 -0
- package/es/url-input/src/props.mjs.map +1 -0
- package/es/url-input/src/url-input-content.vue.d.ts +25 -0
- package/es/url-input/src/url-input-content.vue.mjs +7 -0
- package/es/url-input/src/url-input-content.vue.mjs.map +1 -0
- package/es/url-input/src/url-input-content.vue2.mjs +301 -0
- package/es/url-input/src/url-input-content.vue2.mjs.map +1 -0
- package/es/url-input/src/url-input-table.vue.d.ts +16 -0
- package/es/url-input/src/url-input-table.vue.mjs +7 -0
- package/es/url-input/src/url-input-table.vue.mjs.map +1 -0
- package/es/url-input/src/url-input-table.vue2.mjs +63 -0
- package/es/url-input/src/url-input-table.vue2.mjs.map +1 -0
- package/es/url-input/src/url-input.vue.d.ts +34 -0
- package/es/url-input/src/url-input.vue.mjs +7 -0
- package/es/url-input/src/url-input.vue.mjs.map +1 -0
- package/es/url-input/src/url-input.vue2.mjs +69 -0
- package/es/url-input/src/url-input.vue2.mjs.map +1 -0
- package/es/url-input/style/index.css +1 -0
- package/es/url-input/style/index.scss +38 -0
- package/lib/attachment/src/attachment.vue2.js +7 -1
- package/lib/attachment/src/attachment.vue2.js.map +1 -1
- package/lib/attachment-dialog/src/attachment-dialog.vue2.js +2 -0
- package/lib/attachment-dialog/src/attachment-dialog.vue2.js.map +1 -1
- package/lib/form/src/form.vue2.js +0 -1
- package/lib/form/src/form.vue2.js.map +1 -1
- package/lib/group/src/group.vue2.js +14 -1
- package/lib/group/src/group.vue2.js.map +1 -1
- package/lib/hot-area-input/src/component/hot-area-content.vue2.js +23 -21
- package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
- package/lib/icon/style/index.css +0 -1
- package/lib/icon/style/index.scss +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +8 -3
- package/lib/index.js.map +1 -1
- package/lib/index.scss +1 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinGrid.d.ts +81 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinGrid.js +118 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinGrid.js.map +1 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +8 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js +7 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +35 -30
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +76 -62
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/index.d.ts +240 -60
- package/lib/page-diy/src/config/rule/min/common/index.js +4 -2
- package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
- package/lib/page-diy/src/config/rule/min/index.d.ts +240 -60
- package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js +1 -1
- package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js.map +1 -1
- package/lib/page-diy/src/props.js +1 -1
- package/lib/page-diy/src/props.js.map +1 -1
- package/lib/page-diy/src/views/min/DkMinGrid.vue.d.ts +22 -0
- package/lib/page-diy/src/views/min/DkMinGrid.vue.js +70 -0
- package/lib/page-diy/src/views/min/DkMinGrid.vue.js.map +1 -0
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +9 -0
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +7 -2
- package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
- package/lib/page-diy/src/views/min/DkMinTitle.vue.d.ts +62 -17
- package/lib/page-diy/src/views/min/DkMinTitle.vue.js +58 -29
- package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
- package/lib/page-diy/src/views/min/index.js +3 -1
- package/lib/page-diy/src/views/min/index.js.map +1 -1
- package/lib/page-diy/style/drag-tool.css +1 -1
- package/lib/page-diy/style/drag-tool.scss +4 -0
- package/lib/page-diy/style/index.css +1 -1
- package/lib/page-diy/style/minViews/index.scss +8 -0
- package/lib/style-box-input/src/style-box-input.vue2.js +199 -129
- package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
- package/lib/style-box-input/style/index.css +1 -1
- package/lib/style-box-input/style/index.scss +13 -3
- package/lib/style-font-input/src/style-font-input.vue2.js +105 -272
- package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
- package/lib/style-input/src/style-input.vue2.js +1 -0
- package/lib/style-input/src/style-input.vue2.js.map +1 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue2.js +1 -1
- package/lib/style-shadow-input/src/style-shadow-input.vue2.js.map +1 -1
- package/lib/test/index.d.ts +4 -2
- package/lib/test/src/test.vue.d.ts +4 -2
- package/lib/test/src/test.vue2.js +14 -3
- package/lib/test/src/test.vue2.js.map +1 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js +1 -1
- package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
- package/lib/uni-icon/style/index.css +1 -1
- package/lib/uni-icon/style/index.scss +1 -1
- package/lib/url-input/index.d.ts +35 -0
- package/lib/url-input/index.js +14 -0
- package/lib/url-input/index.js.map +1 -0
- package/lib/url-input/src/props.d.ts +16 -0
- package/lib/url-input/src/props.js +15 -0
- package/lib/url-input/src/props.js.map +1 -0
- package/lib/url-input/src/url-input-content.vue.d.ts +25 -0
- package/lib/url-input/src/url-input-content.vue.js +11 -0
- package/lib/url-input/src/url-input-content.vue.js.map +1 -0
- package/lib/url-input/src/url-input-content.vue2.js +305 -0
- package/lib/url-input/src/url-input-content.vue2.js.map +1 -0
- package/lib/url-input/src/url-input-table.vue.d.ts +16 -0
- package/lib/url-input/src/url-input-table.vue.js +11 -0
- package/lib/url-input/src/url-input-table.vue.js.map +1 -0
- package/lib/url-input/src/url-input-table.vue2.js +67 -0
- package/lib/url-input/src/url-input-table.vue2.js.map +1 -0
- package/lib/url-input/src/url-input.vue.d.ts +34 -0
- package/lib/url-input/src/url-input.vue.js +11 -0
- package/lib/url-input/src/url-input.vue.js.map +1 -0
- package/lib/url-input/src/url-input.vue2.js +73 -0
- package/lib/url-input/src/url-input.vue2.js.map +1 -0
- package/lib/url-input/style/index.css +1 -0
- package/lib/url-input/style/index.scss +38 -0
- package/package.json +1 -1
@@ -11,44 +11,42 @@ var core = require('@vueuse/core');
|
|
11
11
|
const _hoisted_1 = { class: "dk-style-box-input" };
|
12
12
|
const _hoisted_2 = { class: "header" };
|
13
13
|
const _hoisted_3 = { class: "items-center" };
|
14
|
-
const _hoisted_4 =
|
15
|
-
const _hoisted_5 =
|
16
|
-
const _hoisted_6 =
|
17
|
-
const _hoisted_7 =
|
18
|
-
const _hoisted_8 = ["title", "onClick"];
|
19
|
-
const _hoisted_9 = ["onUpdate:modelValue", "onBlur"];
|
20
|
-
const _hoisted_10 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
21
|
-
const _hoisted_11 = /* @__PURE__ */ vue.createElementVNode(
|
14
|
+
const _hoisted_4 = ["title", "onDblclick"];
|
15
|
+
const _hoisted_5 = ["onUpdate:modelValue", "onBlur"];
|
16
|
+
const _hoisted_6 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
17
|
+
const _hoisted_7 = /* @__PURE__ */ vue.createElementVNode(
|
22
18
|
"div",
|
23
19
|
{ style: { "position": "absolute", "display": "none", "width": "100%", "height": "100%" } },
|
24
20
|
null,
|
25
21
|
-1
|
26
22
|
/* HOISTED */
|
27
23
|
);
|
28
|
-
const
|
29
|
-
const
|
30
|
-
const
|
24
|
+
const _hoisted_8 = { class: "anchor-wrapper" };
|
25
|
+
const _hoisted_9 = ["onMousedown"];
|
26
|
+
const _hoisted_10 = /* @__PURE__ */ vue.createElementVNode(
|
31
27
|
"span",
|
32
28
|
{ class: "title" },
|
33
29
|
" \u5916\u8FB9\u8DDD ",
|
34
30
|
-1
|
35
31
|
/* HOISTED */
|
36
32
|
);
|
37
|
-
const
|
38
|
-
const
|
39
|
-
const
|
40
|
-
const
|
41
|
-
const
|
42
|
-
const
|
43
|
-
const
|
33
|
+
const _hoisted_11 = { class: "tools" };
|
34
|
+
const _hoisted_12 = { class: "thumnail border" };
|
35
|
+
const _hoisted_13 = ["title", "onDblclick"];
|
36
|
+
const _hoisted_14 = ["onUpdate:modelValue", "onBlur"];
|
37
|
+
const _hoisted_15 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
38
|
+
const _hoisted_16 = { class: "anchor-wrapper" };
|
39
|
+
const _hoisted_17 = ["onMousedown"];
|
40
|
+
const _hoisted_18 = /* @__PURE__ */ vue.createElementVNode(
|
44
41
|
"span",
|
45
42
|
{ class: "title" },
|
46
43
|
" \u5185\u8FB9\u8DDD ",
|
47
44
|
-1
|
48
45
|
/* HOISTED */
|
49
46
|
);
|
50
|
-
const
|
51
|
-
const
|
47
|
+
const _hoisted_19 = { class: "tools" };
|
48
|
+
const _hoisted_20 = { class: "title" };
|
49
|
+
const _hoisted_21 = /* @__PURE__ */ vue.createElementVNode(
|
52
50
|
"span",
|
53
51
|
null,
|
54
52
|
" x ",
|
@@ -86,8 +84,12 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
86
84
|
});
|
87
85
|
const box = vue.ref(null);
|
88
86
|
const { width } = core.useElementSize(box);
|
87
|
+
const bind = vue.reactive({
|
88
|
+
padding: false,
|
89
|
+
margin: false,
|
90
|
+
size: false
|
91
|
+
});
|
89
92
|
const height = vue.computed(() => {
|
90
|
-
console.log("props.height", props.height);
|
91
93
|
if (props.height === "auto") {
|
92
94
|
const h = width.value / 1.8;
|
93
95
|
return h > 300 ? 300 : h;
|
@@ -172,6 +174,12 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
172
174
|
difference = -difference;
|
173
175
|
}
|
174
176
|
styles[value] = (parseInt(styles[value]) || 0) + difference + "px";
|
177
|
+
if (bind[type]) {
|
178
|
+
styles[type + "Top"] = styles[value];
|
179
|
+
styles[type + "Bottom"] = styles[value];
|
180
|
+
styles[type + "Left"] = styles[value];
|
181
|
+
styles[type + "Right"] = styles[value];
|
182
|
+
}
|
175
183
|
startPosition[axis] = event[clientAxis];
|
176
184
|
};
|
177
185
|
if (p === "left" || p === "right") {
|
@@ -278,6 +286,18 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
278
286
|
styles[value] = "";
|
279
287
|
} else {
|
280
288
|
styles[value] = number + "px";
|
289
|
+
if (value.indexOf("padding") == 0 && bind.padding) {
|
290
|
+
styles.paddingTop = styles[value];
|
291
|
+
styles.paddingRight = styles[value];
|
292
|
+
styles.paddingBottom = styles[value];
|
293
|
+
styles.paddingLeft = styles[value];
|
294
|
+
}
|
295
|
+
if (value.indexOf("margin") == 0 && bind.padding) {
|
296
|
+
styles.marginTop = styles[value];
|
297
|
+
styles.marginRight = styles[value];
|
298
|
+
styles.marginBottom = styles[value];
|
299
|
+
styles.marginLeft = styles[value];
|
300
|
+
}
|
281
301
|
}
|
282
302
|
}
|
283
303
|
};
|
@@ -297,6 +317,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
297
317
|
styles.paddingBottom = "";
|
298
318
|
}
|
299
319
|
};
|
320
|
+
const onBind = (type) => {
|
321
|
+
bind[type] = !bind[type];
|
322
|
+
};
|
300
323
|
return (_ctx, _cache) => {
|
301
324
|
const _component_dk_icon = vue.resolveComponent("dk-icon");
|
302
325
|
const _component_el_popover = vue.resolveComponent("el-popover");
|
@@ -333,62 +356,23 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
333
356
|
/* STABLE */
|
334
357
|
}, 8, ["content"])
|
335
358
|
]),
|
336
|
-
vue.
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
})
|
354
|
-
]),
|
355
|
-
vue.createElementVNode("div", _hoisted_6, [
|
356
|
-
vue.createVNode(_component_el_tooltip, {
|
357
|
-
class: "box-item",
|
358
|
-
effect: "dark",
|
359
|
-
content: "\u91CD\u7F6E\u5185\u8FB9\u8DDD",
|
360
|
-
placement: "top-start"
|
361
|
-
}, {
|
362
|
-
default: vue.withCtx(() => [
|
363
|
-
vue.createVNode(_component_dk_icon, {
|
364
|
-
icon: "Refresh",
|
365
|
-
color: "var(--el-color-success)",
|
366
|
-
onClick: _cache[1] || (_cache[1] = ($event) => onRefresh("padding"))
|
367
|
-
})
|
368
|
-
]),
|
369
|
-
_: 1
|
370
|
-
/* STABLE */
|
371
|
-
})
|
372
|
-
]),
|
373
|
-
vue.createElementVNode("div", _hoisted_7, [
|
374
|
-
vue.createVNode(_component_el_tooltip, {
|
375
|
-
class: "box-item",
|
376
|
-
effect: "dark",
|
377
|
-
content: "\u91CD\u7F6E\u5916\u8FB9\u8DDD",
|
378
|
-
placement: "top-start"
|
379
|
-
}, {
|
380
|
-
default: vue.withCtx(() => [
|
381
|
-
vue.createVNode(_component_dk_icon, {
|
382
|
-
icon: "Refresh",
|
383
|
-
color: "var(--el-color-warning)",
|
384
|
-
onClick: _cache[2] || (_cache[2] = ($event) => onRefresh("margin"))
|
385
|
-
})
|
386
|
-
]),
|
387
|
-
_: 1
|
388
|
-
/* STABLE */
|
389
|
-
})
|
390
|
-
])
|
391
|
-
]),
|
359
|
+
vue.createCommentVNode(' <div class="float-right cursor-pointer">'),
|
360
|
+
vue.createCommentVNode(' <div class="name-header-operations">'),
|
361
|
+
vue.createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u9AD8\u5BBD" placement="top-start">'),
|
362
|
+
vue.createCommentVNode(` <dk-icon icon="Refresh" color="#303133" @click="onRefresh('widthHeight')"></dk-icon>`),
|
363
|
+
vue.createCommentVNode(" </el-tooltip>"),
|
364
|
+
vue.createCommentVNode(" </div>"),
|
365
|
+
vue.createCommentVNode(' <div class="name-header-operations">'),
|
366
|
+
vue.createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5185\u8FB9\u8DDD" placement="top-start">'),
|
367
|
+
vue.createCommentVNode(` <dk-icon icon="Refresh" color="var(--el-color-success)" @click="onRefresh('padding')"></dk-icon>`),
|
368
|
+
vue.createCommentVNode(" </el-tooltip>"),
|
369
|
+
vue.createCommentVNode(" </div>"),
|
370
|
+
vue.createCommentVNode(' <div class="name-header-operations">'),
|
371
|
+
vue.createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5916\u8FB9\u8DDD" placement="top-start">'),
|
372
|
+
vue.createCommentVNode(` <dk-icon icon="Refresh" color="var(--el-color-warning)" @click="onRefresh('margin')"></dk-icon>`),
|
373
|
+
vue.createCommentVNode(" </el-tooltip>"),
|
374
|
+
vue.createCommentVNode(" </div>"),
|
375
|
+
vue.createCommentVNode(" </div>"),
|
392
376
|
vue.createElementVNode(
|
393
377
|
"div",
|
394
378
|
{
|
@@ -403,8 +387,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
403
387
|
"div",
|
404
388
|
{
|
405
389
|
class: vue.normalizeClass(["thumnail margin", moves.margin ? "thumnail-heightlight" : ""]),
|
406
|
-
onMousemove: _cache[
|
407
|
-
onMouseleave: _cache[
|
390
|
+
onMousemove: _cache[14] || (_cache[14] = ($event) => onMouseMove("margin", "move", $event)),
|
391
|
+
onMouseleave: _cache[15] || (_cache[15] = ($event) => onMouseMove("margin", "leave", $event))
|
408
392
|
},
|
409
393
|
[
|
410
394
|
vue.createCommentVNode("\u5916\u8FB9\u8DDD Margin"),
|
@@ -417,7 +401,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
417
401
|
vue.createElementVNode("span", {
|
418
402
|
title: item.title,
|
419
403
|
class: vue.normalizeClass(`anchor-tip-${item.position} value-indicator`),
|
420
|
-
|
404
|
+
onDblclick: ($event) => onDblclick(item.value, key)
|
421
405
|
}, [
|
422
406
|
vue.createElementVNode(
|
423
407
|
"span",
|
@@ -426,7 +410,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
426
410
|
1
|
427
411
|
/* TEXT */
|
428
412
|
)
|
429
|
-
],
|
413
|
+
], 42, _hoisted_4),
|
430
414
|
vue.withDirectives(vue.createElementVNode("input", {
|
431
415
|
ref_for: true,
|
432
416
|
ref_key: "inputField",
|
@@ -434,7 +418,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
434
418
|
"onUpdate:modelValue": ($event) => styles[item.value] = $event,
|
435
419
|
class: vue.normalizeClass("input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")),
|
436
420
|
onBlur: ($event) => onBlur(item.value)
|
437
|
-
}, null, 42,
|
421
|
+
}, null, 42, _hoisted_5), [
|
438
422
|
[vue.vModelText, styles[item.value]]
|
439
423
|
]),
|
440
424
|
(vue.openBlock(), vue.createElementBlock("svg", {
|
@@ -446,15 +430,15 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
446
430
|
style: vue.normalizeStyle(item.svg.style),
|
447
431
|
class: "esm-modal-svg",
|
448
432
|
innerHTML: item.svg.content
|
449
|
-
}, null, 12,
|
433
|
+
}, null, 12, _hoisted_6))
|
450
434
|
]);
|
451
435
|
}),
|
452
436
|
128
|
453
437
|
/* KEYED_FRAGMENT */
|
454
438
|
))
|
455
439
|
]),
|
456
|
-
|
457
|
-
vue.createElementVNode("div",
|
440
|
+
_hoisted_7,
|
441
|
+
vue.createElementVNode("div", _hoisted_8, [
|
458
442
|
(vue.openBlock(), vue.createElementBlock(
|
459
443
|
vue.Fragment,
|
460
444
|
null,
|
@@ -465,22 +449,59 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
465
449
|
onMousemove: handleMouseMove,
|
466
450
|
onMousedown: ($event) => handleMouseDown("margin", item, $event),
|
467
451
|
onMouseup: handleMouseUp
|
468
|
-
}, null, 42,
|
452
|
+
}, null, 42, _hoisted_9);
|
469
453
|
}),
|
470
454
|
64
|
471
455
|
/* STABLE_FRAGMENT */
|
472
456
|
))
|
473
457
|
]),
|
474
|
-
|
458
|
+
_hoisted_10,
|
459
|
+
vue.createElementVNode("div", _hoisted_11, [
|
460
|
+
vue.createVNode(_component_el_tooltip, {
|
461
|
+
"show-after": 1e3,
|
462
|
+
class: "box-item",
|
463
|
+
effect: "dark",
|
464
|
+
content: "\u8054\u52A8",
|
465
|
+
placement: "top-start"
|
466
|
+
}, {
|
467
|
+
default: vue.withCtx(() => [
|
468
|
+
vue.createVNode(_component_dk_icon, {
|
469
|
+
style: { "margin-right": "5px" },
|
470
|
+
icon: "Connection",
|
471
|
+
color: bind.margin ? "#f00" : "#303133",
|
472
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onBind("margin"))
|
473
|
+
}, null, 8, ["color"])
|
474
|
+
]),
|
475
|
+
_: 1
|
476
|
+
/* STABLE */
|
477
|
+
}),
|
478
|
+
vue.createVNode(_component_el_tooltip, {
|
479
|
+
"show-after": 1e3,
|
480
|
+
class: "box-item",
|
481
|
+
effect: "dark",
|
482
|
+
content: "\u91CD\u7F6E\u5916\u8FB9\u8DDD",
|
483
|
+
placement: "top-start"
|
484
|
+
}, {
|
485
|
+
default: vue.withCtx(() => [
|
486
|
+
vue.createVNode(_component_dk_icon, {
|
487
|
+
icon: "Refresh",
|
488
|
+
color: "#303133",
|
489
|
+
onClick: _cache[1] || (_cache[1] = ($event) => onRefresh("margin"))
|
490
|
+
})
|
491
|
+
]),
|
492
|
+
_: 1
|
493
|
+
/* STABLE */
|
494
|
+
})
|
495
|
+
]),
|
475
496
|
vue.createCommentVNode("\u5916\u8FB9\u8DDD Margin END"),
|
476
497
|
vue.createCommentVNode("\u5185\u8FB9\u8DDD Padding"),
|
477
|
-
vue.createElementVNode("div",
|
498
|
+
vue.createElementVNode("div", _hoisted_12, [
|
478
499
|
vue.createElementVNode(
|
479
500
|
"div",
|
480
501
|
{
|
481
502
|
class: vue.normalizeClass(["thumnail padding", moves.padding ? "thumnail-heightlight" : ""]),
|
482
|
-
onMousemove: _cache[
|
483
|
-
onMouseleave: _cache[
|
503
|
+
onMousemove: _cache[12] || (_cache[12] = ($event) => onMouseMove("padding", "move", $event)),
|
504
|
+
onMouseleave: _cache[13] || (_cache[13] = ($event) => onMouseMove("padding", "leave", $event))
|
484
505
|
},
|
485
506
|
[
|
486
507
|
vue.createElementVNode("div", null, [
|
@@ -492,7 +513,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
492
513
|
vue.createElementVNode("span", {
|
493
514
|
title: item.title,
|
494
515
|
class: vue.normalizeClass(`anchor-tip-${item.position} value-indicator`),
|
495
|
-
|
516
|
+
onDblclick: ($event) => onDblclick(item.value, key + 4)
|
496
517
|
}, [
|
497
518
|
vue.createElementVNode(
|
498
519
|
"span",
|
@@ -501,7 +522,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
501
522
|
1
|
502
523
|
/* TEXT */
|
503
524
|
)
|
504
|
-
],
|
525
|
+
], 42, _hoisted_13),
|
505
526
|
vue.withDirectives(vue.createElementVNode("input", {
|
506
527
|
ref_for: true,
|
507
528
|
ref_key: "inputField",
|
@@ -509,7 +530,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
509
530
|
"onUpdate:modelValue": ($event) => styles[item.value] = $event,
|
510
531
|
class: vue.normalizeClass("input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")),
|
511
532
|
onBlur: ($event) => onBlur(item.value)
|
512
|
-
}, null, 42,
|
533
|
+
}, null, 42, _hoisted_14), [
|
513
534
|
[vue.vModelText, styles[item.value]]
|
514
535
|
]),
|
515
536
|
(vue.openBlock(), vue.createElementBlock("svg", {
|
@@ -521,14 +542,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
521
542
|
style: vue.normalizeStyle(item.svg.style),
|
522
543
|
class: "esm-modal-svg",
|
523
544
|
innerHTML: item.svg.content
|
524
|
-
}, null, 12,
|
545
|
+
}, null, 12, _hoisted_15))
|
525
546
|
]);
|
526
547
|
}),
|
527
548
|
128
|
528
549
|
/* KEYED_FRAGMENT */
|
529
550
|
))
|
530
551
|
]),
|
531
|
-
vue.createElementVNode("div",
|
552
|
+
vue.createElementVNode("div", _hoisted_16, [
|
532
553
|
(vue.openBlock(), vue.createElementBlock(
|
533
554
|
vue.Fragment,
|
534
555
|
null,
|
@@ -539,43 +560,86 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
539
560
|
onMousemove: handleMouseMove,
|
540
561
|
onMousedown: ($event) => handleMouseDown("padding", item, $event),
|
541
562
|
onMouseup: handleMouseUp
|
542
|
-
}, null, 42,
|
563
|
+
}, null, 42, _hoisted_17);
|
543
564
|
}),
|
544
565
|
64
|
545
566
|
/* STABLE_FRAGMENT */
|
546
567
|
))
|
547
568
|
]),
|
548
|
-
|
569
|
+
_hoisted_18,
|
570
|
+
vue.createElementVNode("div", _hoisted_19, [
|
571
|
+
vue.createVNode(_component_el_tooltip, {
|
572
|
+
"show-after": 1e3,
|
573
|
+
class: "box-item",
|
574
|
+
effect: "dark",
|
575
|
+
content: "\u8054\u52A8",
|
576
|
+
placement: "top-start"
|
577
|
+
}, {
|
578
|
+
default: vue.withCtx(() => [
|
579
|
+
vue.createVNode(_component_dk_icon, {
|
580
|
+
style: { "margin-right": "5px" },
|
581
|
+
icon: "Connection",
|
582
|
+
color: bind.padding ? "#f00" : "#303133",
|
583
|
+
onClick: _cache[2] || (_cache[2] = ($event) => onBind("padding"))
|
584
|
+
}, null, 8, ["color"])
|
585
|
+
]),
|
586
|
+
_: 1
|
587
|
+
/* STABLE */
|
588
|
+
}),
|
589
|
+
vue.createVNode(_component_el_tooltip, {
|
590
|
+
"show-after": 1e3,
|
591
|
+
class: "box-item",
|
592
|
+
effect: "dark",
|
593
|
+
content: "\u91CD\u7F6E\u5185\u8FB9\u8DDD",
|
594
|
+
placement: "top-start"
|
595
|
+
}, {
|
596
|
+
default: vue.withCtx(() => [
|
597
|
+
vue.createVNode(_component_dk_icon, {
|
598
|
+
icon: "Refresh",
|
599
|
+
color: "#303133",
|
600
|
+
onClick: _cache[3] || (_cache[3] = ($event) => onRefresh("padding"))
|
601
|
+
})
|
602
|
+
]),
|
603
|
+
_: 1
|
604
|
+
/* STABLE */
|
605
|
+
})
|
606
|
+
]),
|
549
607
|
vue.createCommentVNode("\u5185\u8FB9\u8DDD END"),
|
550
608
|
vue.createElementVNode(
|
551
609
|
"div",
|
552
610
|
{
|
553
611
|
class: vue.normalizeClass(["thumnail width-height", moves.widthHeight ? "thumnail-heightlight" : ""]),
|
554
|
-
onMousemove: _cache[
|
555
|
-
onMouseleave: _cache[
|
612
|
+
onMousemove: _cache[10] || (_cache[10] = ($event) => onMouseMove("widthHeight", "move", $event)),
|
613
|
+
onMouseleave: _cache[11] || (_cache[11] = ($event) => onMouseMove("widthHeight", "leave", $event))
|
556
614
|
},
|
557
615
|
[
|
558
|
-
vue.createElementVNode("span",
|
559
|
-
vue.createElementVNode(
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
vue.
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
616
|
+
vue.createElementVNode("span", _hoisted_20, [
|
617
|
+
vue.createElementVNode(
|
618
|
+
"span",
|
619
|
+
{
|
620
|
+
class: "content-unit left-0",
|
621
|
+
onDblclick: _cache[4] || (_cache[4] = ($event) => onDblclick("width", 9))
|
622
|
+
},
|
623
|
+
[
|
624
|
+
vue.createElementVNode(
|
625
|
+
"em",
|
626
|
+
null,
|
627
|
+
vue.toDisplayString(getValue(styles["width"])),
|
628
|
+
1
|
629
|
+
/* TEXT */
|
630
|
+
)
|
631
|
+
],
|
632
|
+
32
|
633
|
+
/* HYDRATE_EVENTS */
|
634
|
+
),
|
571
635
|
vue.withDirectives(vue.createElementVNode(
|
572
636
|
"input",
|
573
637
|
{
|
574
638
|
ref_key: "inputWidth",
|
575
639
|
ref: inputWidth,
|
576
|
-
"onUpdate:modelValue": _cache[
|
640
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => styles.width = $event),
|
577
641
|
class: vue.normalizeClass(["input-box absolute left-5% top-10px", showStyles["width"] ? " show" : ""]),
|
578
|
-
onBlur: _cache[
|
642
|
+
onBlur: _cache[6] || (_cache[6] = ($event) => onBlur("width"))
|
579
643
|
},
|
580
644
|
null,
|
581
645
|
34
|
@@ -583,27 +647,33 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
583
647
|
), [
|
584
648
|
[vue.vModelText, styles.width]
|
585
649
|
]),
|
586
|
-
|
587
|
-
vue.createElementVNode(
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
vue.
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
650
|
+
_hoisted_21,
|
651
|
+
vue.createElementVNode(
|
652
|
+
"span",
|
653
|
+
{
|
654
|
+
class: "content-unit right-0",
|
655
|
+
onDblclick: _cache[7] || (_cache[7] = ($event) => onDblclick("height", 9))
|
656
|
+
},
|
657
|
+
[
|
658
|
+
vue.createElementVNode(
|
659
|
+
"em",
|
660
|
+
null,
|
661
|
+
vue.toDisplayString(getValue(styles["height"])),
|
662
|
+
1
|
663
|
+
/* TEXT */
|
664
|
+
)
|
665
|
+
],
|
666
|
+
32
|
667
|
+
/* HYDRATE_EVENTS */
|
668
|
+
),
|
599
669
|
vue.withDirectives(vue.createElementVNode(
|
600
670
|
"input",
|
601
671
|
{
|
602
672
|
ref_key: "inputHeight",
|
603
673
|
ref: inputHeight,
|
604
|
-
"onUpdate:modelValue": _cache[
|
674
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => styles.height = $event),
|
605
675
|
class: vue.normalizeClass(["input-box absolute right-5% top-10px", showStyles["height"] ? " show" : ""]),
|
606
|
-
onBlur: _cache[
|
676
|
+
onBlur: _cache[9] || (_cache[9] = ($event) => onBlur("height"))
|
607
677
|
},
|
608
678
|
null,
|
609
679
|
34
|