@vipl520/dk-ui 1.0.52 → 1.0.54
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 +2012 -1428
- 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 +2011 -1429
- package/dist/tags.json +7 -0
- package/dist/web-types.json +35 -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 +1 -0
- 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 +65 -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 +39 -0
- 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 +1 -0
- 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 +69 -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 +39 -0
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createElementVNode, defineComponent, reactive, ref, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeStyle, createTextVNode, createVNode, withCtx,
|
1
|
+
import { createElementVNode, defineComponent, reactive, ref, computed, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeStyle, createTextVNode, createVNode, withCtx, createCommentVNode, normalizeClass, Fragment, renderList, unref, toDisplayString, withDirectives, vModelText } from 'vue';
|
2
2
|
import { styleBoxInputProps } from './props.mjs';
|
3
3
|
import { margins, paddings } from './html.mjs';
|
4
4
|
import { upper } from '@vipl520/utils';
|
@@ -7,44 +7,42 @@ import { useElementSize } from '@vueuse/core';
|
|
7
7
|
const _hoisted_1 = { class: "dk-style-box-input" };
|
8
8
|
const _hoisted_2 = { class: "header" };
|
9
9
|
const _hoisted_3 = { class: "items-center" };
|
10
|
-
const _hoisted_4 =
|
11
|
-
const _hoisted_5 =
|
12
|
-
const _hoisted_6 =
|
13
|
-
const _hoisted_7 =
|
14
|
-
const _hoisted_8 = ["title", "onClick"];
|
15
|
-
const _hoisted_9 = ["onUpdate:modelValue", "onBlur"];
|
16
|
-
const _hoisted_10 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
17
|
-
const _hoisted_11 = /* @__PURE__ */ createElementVNode(
|
10
|
+
const _hoisted_4 = ["title", "onDblclick"];
|
11
|
+
const _hoisted_5 = ["onUpdate:modelValue", "onBlur"];
|
12
|
+
const _hoisted_6 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
13
|
+
const _hoisted_7 = /* @__PURE__ */ createElementVNode(
|
18
14
|
"div",
|
19
15
|
{ style: { "position": "absolute", "display": "none", "width": "100%", "height": "100%" } },
|
20
16
|
null,
|
21
17
|
-1
|
22
18
|
/* HOISTED */
|
23
19
|
);
|
24
|
-
const
|
25
|
-
const
|
26
|
-
const
|
20
|
+
const _hoisted_8 = { class: "anchor-wrapper" };
|
21
|
+
const _hoisted_9 = ["onMousedown"];
|
22
|
+
const _hoisted_10 = /* @__PURE__ */ createElementVNode(
|
27
23
|
"span",
|
28
24
|
{ class: "title" },
|
29
25
|
" \u5916\u8FB9\u8DDD ",
|
30
26
|
-1
|
31
27
|
/* HOISTED */
|
32
28
|
);
|
33
|
-
const
|
34
|
-
const
|
35
|
-
const
|
36
|
-
const
|
37
|
-
const
|
38
|
-
const
|
39
|
-
const
|
29
|
+
const _hoisted_11 = { class: "tools" };
|
30
|
+
const _hoisted_12 = { class: "thumnail border" };
|
31
|
+
const _hoisted_13 = ["title", "onDblclick"];
|
32
|
+
const _hoisted_14 = ["onUpdate:modelValue", "onBlur"];
|
33
|
+
const _hoisted_15 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
34
|
+
const _hoisted_16 = { class: "anchor-wrapper" };
|
35
|
+
const _hoisted_17 = ["onMousedown"];
|
36
|
+
const _hoisted_18 = /* @__PURE__ */ createElementVNode(
|
40
37
|
"span",
|
41
38
|
{ class: "title" },
|
42
39
|
" \u5185\u8FB9\u8DDD ",
|
43
40
|
-1
|
44
41
|
/* HOISTED */
|
45
42
|
);
|
46
|
-
const
|
47
|
-
const
|
43
|
+
const _hoisted_19 = { class: "tools" };
|
44
|
+
const _hoisted_20 = { class: "title" };
|
45
|
+
const _hoisted_21 = /* @__PURE__ */ createElementVNode(
|
48
46
|
"span",
|
49
47
|
null,
|
50
48
|
" x ",
|
@@ -82,8 +80,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
80
|
});
|
83
81
|
const box = ref(null);
|
84
82
|
const { width } = useElementSize(box);
|
83
|
+
const bind = reactive({
|
84
|
+
padding: false,
|
85
|
+
margin: false,
|
86
|
+
size: false
|
87
|
+
});
|
85
88
|
const height = computed(() => {
|
86
|
-
console.log("props.height", props.height);
|
87
89
|
if (props.height === "auto") {
|
88
90
|
const h = width.value / 1.8;
|
89
91
|
return h > 300 ? 300 : h;
|
@@ -168,6 +170,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
168
170
|
difference = -difference;
|
169
171
|
}
|
170
172
|
styles[value] = (parseInt(styles[value]) || 0) + difference + "px";
|
173
|
+
if (bind[type]) {
|
174
|
+
styles[type + "Top"] = styles[value];
|
175
|
+
styles[type + "Bottom"] = styles[value];
|
176
|
+
styles[type + "Left"] = styles[value];
|
177
|
+
styles[type + "Right"] = styles[value];
|
178
|
+
}
|
171
179
|
startPosition[axis] = event[clientAxis];
|
172
180
|
};
|
173
181
|
if (p === "left" || p === "right") {
|
@@ -274,6 +282,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
274
282
|
styles[value] = "";
|
275
283
|
} else {
|
276
284
|
styles[value] = number + "px";
|
285
|
+
if (value.indexOf("padding") == 0 && bind.padding) {
|
286
|
+
styles.paddingTop = styles[value];
|
287
|
+
styles.paddingRight = styles[value];
|
288
|
+
styles.paddingBottom = styles[value];
|
289
|
+
styles.paddingLeft = styles[value];
|
290
|
+
}
|
291
|
+
if (value.indexOf("margin") == 0 && bind.padding) {
|
292
|
+
styles.marginTop = styles[value];
|
293
|
+
styles.marginRight = styles[value];
|
294
|
+
styles.marginBottom = styles[value];
|
295
|
+
styles.marginLeft = styles[value];
|
296
|
+
}
|
277
297
|
}
|
278
298
|
}
|
279
299
|
};
|
@@ -293,6 +313,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
293
313
|
styles.paddingBottom = "";
|
294
314
|
}
|
295
315
|
};
|
316
|
+
const onBind = (type) => {
|
317
|
+
bind[type] = !bind[type];
|
318
|
+
};
|
296
319
|
return (_ctx, _cache) => {
|
297
320
|
const _component_dk_icon = resolveComponent("dk-icon");
|
298
321
|
const _component_el_popover = resolveComponent("el-popover");
|
@@ -329,62 +352,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
329
352
|
/* STABLE */
|
330
353
|
}, 8, ["content"])
|
331
354
|
]),
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
})
|
350
|
-
]),
|
351
|
-
createElementVNode("div", _hoisted_6, [
|
352
|
-
createVNode(_component_el_tooltip, {
|
353
|
-
class: "box-item",
|
354
|
-
effect: "dark",
|
355
|
-
content: "\u91CD\u7F6E\u5185\u8FB9\u8DDD",
|
356
|
-
placement: "top-start"
|
357
|
-
}, {
|
358
|
-
default: withCtx(() => [
|
359
|
-
createVNode(_component_dk_icon, {
|
360
|
-
icon: "Refresh",
|
361
|
-
color: "var(--el-color-success)",
|
362
|
-
onClick: _cache[1] || (_cache[1] = ($event) => onRefresh("padding"))
|
363
|
-
})
|
364
|
-
]),
|
365
|
-
_: 1
|
366
|
-
/* STABLE */
|
367
|
-
})
|
368
|
-
]),
|
369
|
-
createElementVNode("div", _hoisted_7, [
|
370
|
-
createVNode(_component_el_tooltip, {
|
371
|
-
class: "box-item",
|
372
|
-
effect: "dark",
|
373
|
-
content: "\u91CD\u7F6E\u5916\u8FB9\u8DDD",
|
374
|
-
placement: "top-start"
|
375
|
-
}, {
|
376
|
-
default: withCtx(() => [
|
377
|
-
createVNode(_component_dk_icon, {
|
378
|
-
icon: "Refresh",
|
379
|
-
color: "var(--el-color-warning)",
|
380
|
-
onClick: _cache[2] || (_cache[2] = ($event) => onRefresh("margin"))
|
381
|
-
})
|
382
|
-
]),
|
383
|
-
_: 1
|
384
|
-
/* STABLE */
|
385
|
-
})
|
386
|
-
])
|
387
|
-
]),
|
355
|
+
createCommentVNode(' <div class="float-right cursor-pointer">'),
|
356
|
+
createCommentVNode(' <div class="name-header-operations">'),
|
357
|
+
createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u9AD8\u5BBD" placement="top-start">'),
|
358
|
+
createCommentVNode(` <dk-icon icon="Refresh" color="#303133" @click="onRefresh('widthHeight')"></dk-icon>`),
|
359
|
+
createCommentVNode(" </el-tooltip>"),
|
360
|
+
createCommentVNode(" </div>"),
|
361
|
+
createCommentVNode(' <div class="name-header-operations">'),
|
362
|
+
createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5185\u8FB9\u8DDD" placement="top-start">'),
|
363
|
+
createCommentVNode(` <dk-icon icon="Refresh" color="var(--el-color-success)" @click="onRefresh('padding')"></dk-icon>`),
|
364
|
+
createCommentVNode(" </el-tooltip>"),
|
365
|
+
createCommentVNode(" </div>"),
|
366
|
+
createCommentVNode(' <div class="name-header-operations">'),
|
367
|
+
createCommentVNode(' <el-tooltip class="box-item" effect="dark" content="\u91CD\u7F6E\u5916\u8FB9\u8DDD" placement="top-start">'),
|
368
|
+
createCommentVNode(` <dk-icon icon="Refresh" color="var(--el-color-warning)" @click="onRefresh('margin')"></dk-icon>`),
|
369
|
+
createCommentVNode(" </el-tooltip>"),
|
370
|
+
createCommentVNode(" </div>"),
|
371
|
+
createCommentVNode(" </div>"),
|
388
372
|
createElementVNode(
|
389
373
|
"div",
|
390
374
|
{
|
@@ -399,8 +383,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
399
383
|
"div",
|
400
384
|
{
|
401
385
|
class: normalizeClass(["thumnail margin", moves.margin ? "thumnail-heightlight" : ""]),
|
402
|
-
onMousemove: _cache[
|
403
|
-
onMouseleave: _cache[
|
386
|
+
onMousemove: _cache[14] || (_cache[14] = ($event) => onMouseMove("margin", "move", $event)),
|
387
|
+
onMouseleave: _cache[15] || (_cache[15] = ($event) => onMouseMove("margin", "leave", $event))
|
404
388
|
},
|
405
389
|
[
|
406
390
|
createCommentVNode("\u5916\u8FB9\u8DDD Margin"),
|
@@ -413,7 +397,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
413
397
|
createElementVNode("span", {
|
414
398
|
title: item.title,
|
415
399
|
class: normalizeClass(`anchor-tip-${item.position} value-indicator`),
|
416
|
-
|
400
|
+
onDblclick: ($event) => onDblclick(item.value, key)
|
417
401
|
}, [
|
418
402
|
createElementVNode(
|
419
403
|
"span",
|
@@ -422,7 +406,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
422
406
|
1
|
423
407
|
/* TEXT */
|
424
408
|
)
|
425
|
-
],
|
409
|
+
], 42, _hoisted_4),
|
426
410
|
withDirectives(createElementVNode("input", {
|
427
411
|
ref_for: true,
|
428
412
|
ref_key: "inputField",
|
@@ -430,7 +414,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
430
414
|
"onUpdate:modelValue": ($event) => styles[item.value] = $event,
|
431
415
|
class: normalizeClass("input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")),
|
432
416
|
onBlur: ($event) => onBlur(item.value)
|
433
|
-
}, null, 42,
|
417
|
+
}, null, 42, _hoisted_5), [
|
434
418
|
[vModelText, styles[item.value]]
|
435
419
|
]),
|
436
420
|
(openBlock(), createElementBlock("svg", {
|
@@ -442,15 +426,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
442
426
|
style: normalizeStyle(item.svg.style),
|
443
427
|
class: "esm-modal-svg",
|
444
428
|
innerHTML: item.svg.content
|
445
|
-
}, null, 12,
|
429
|
+
}, null, 12, _hoisted_6))
|
446
430
|
]);
|
447
431
|
}),
|
448
432
|
128
|
449
433
|
/* KEYED_FRAGMENT */
|
450
434
|
))
|
451
435
|
]),
|
452
|
-
|
453
|
-
createElementVNode("div",
|
436
|
+
_hoisted_7,
|
437
|
+
createElementVNode("div", _hoisted_8, [
|
454
438
|
(openBlock(), createElementBlock(
|
455
439
|
Fragment,
|
456
440
|
null,
|
@@ -461,22 +445,59 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
461
445
|
onMousemove: handleMouseMove,
|
462
446
|
onMousedown: ($event) => handleMouseDown("margin", item, $event),
|
463
447
|
onMouseup: handleMouseUp
|
464
|
-
}, null, 42,
|
448
|
+
}, null, 42, _hoisted_9);
|
465
449
|
}),
|
466
450
|
64
|
467
451
|
/* STABLE_FRAGMENT */
|
468
452
|
))
|
469
453
|
]),
|
470
|
-
|
454
|
+
_hoisted_10,
|
455
|
+
createElementVNode("div", _hoisted_11, [
|
456
|
+
createVNode(_component_el_tooltip, {
|
457
|
+
"show-after": 1e3,
|
458
|
+
class: "box-item",
|
459
|
+
effect: "dark",
|
460
|
+
content: "\u8054\u52A8",
|
461
|
+
placement: "top-start"
|
462
|
+
}, {
|
463
|
+
default: withCtx(() => [
|
464
|
+
createVNode(_component_dk_icon, {
|
465
|
+
style: { "margin-right": "5px" },
|
466
|
+
icon: "Connection",
|
467
|
+
color: bind.margin ? "#f00" : "#303133",
|
468
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onBind("margin"))
|
469
|
+
}, null, 8, ["color"])
|
470
|
+
]),
|
471
|
+
_: 1
|
472
|
+
/* STABLE */
|
473
|
+
}),
|
474
|
+
createVNode(_component_el_tooltip, {
|
475
|
+
"show-after": 1e3,
|
476
|
+
class: "box-item",
|
477
|
+
effect: "dark",
|
478
|
+
content: "\u91CD\u7F6E\u5916\u8FB9\u8DDD",
|
479
|
+
placement: "top-start"
|
480
|
+
}, {
|
481
|
+
default: withCtx(() => [
|
482
|
+
createVNode(_component_dk_icon, {
|
483
|
+
icon: "Refresh",
|
484
|
+
color: "#303133",
|
485
|
+
onClick: _cache[1] || (_cache[1] = ($event) => onRefresh("margin"))
|
486
|
+
})
|
487
|
+
]),
|
488
|
+
_: 1
|
489
|
+
/* STABLE */
|
490
|
+
})
|
491
|
+
]),
|
471
492
|
createCommentVNode("\u5916\u8FB9\u8DDD Margin END"),
|
472
493
|
createCommentVNode("\u5185\u8FB9\u8DDD Padding"),
|
473
|
-
createElementVNode("div",
|
494
|
+
createElementVNode("div", _hoisted_12, [
|
474
495
|
createElementVNode(
|
475
496
|
"div",
|
476
497
|
{
|
477
498
|
class: normalizeClass(["thumnail padding", moves.padding ? "thumnail-heightlight" : ""]),
|
478
|
-
onMousemove: _cache[
|
479
|
-
onMouseleave: _cache[
|
499
|
+
onMousemove: _cache[12] || (_cache[12] = ($event) => onMouseMove("padding", "move", $event)),
|
500
|
+
onMouseleave: _cache[13] || (_cache[13] = ($event) => onMouseMove("padding", "leave", $event))
|
480
501
|
},
|
481
502
|
[
|
482
503
|
createElementVNode("div", null, [
|
@@ -488,7 +509,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
488
509
|
createElementVNode("span", {
|
489
510
|
title: item.title,
|
490
511
|
class: normalizeClass(`anchor-tip-${item.position} value-indicator`),
|
491
|
-
|
512
|
+
onDblclick: ($event) => onDblclick(item.value, key + 4)
|
492
513
|
}, [
|
493
514
|
createElementVNode(
|
494
515
|
"span",
|
@@ -497,7 +518,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
497
518
|
1
|
498
519
|
/* TEXT */
|
499
520
|
)
|
500
|
-
],
|
521
|
+
], 42, _hoisted_13),
|
501
522
|
withDirectives(createElementVNode("input", {
|
502
523
|
ref_for: true,
|
503
524
|
ref_key: "inputField",
|
@@ -505,7 +526,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
505
526
|
"onUpdate:modelValue": ($event) => styles[item.value] = $event,
|
506
527
|
class: normalizeClass("input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")),
|
507
528
|
onBlur: ($event) => onBlur(item.value)
|
508
|
-
}, null, 42,
|
529
|
+
}, null, 42, _hoisted_14), [
|
509
530
|
[vModelText, styles[item.value]]
|
510
531
|
]),
|
511
532
|
(openBlock(), createElementBlock("svg", {
|
@@ -517,14 +538,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
517
538
|
style: normalizeStyle(item.svg.style),
|
518
539
|
class: "esm-modal-svg",
|
519
540
|
innerHTML: item.svg.content
|
520
|
-
}, null, 12,
|
541
|
+
}, null, 12, _hoisted_15))
|
521
542
|
]);
|
522
543
|
}),
|
523
544
|
128
|
524
545
|
/* KEYED_FRAGMENT */
|
525
546
|
))
|
526
547
|
]),
|
527
|
-
createElementVNode("div",
|
548
|
+
createElementVNode("div", _hoisted_16, [
|
528
549
|
(openBlock(), createElementBlock(
|
529
550
|
Fragment,
|
530
551
|
null,
|
@@ -535,43 +556,86 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
535
556
|
onMousemove: handleMouseMove,
|
536
557
|
onMousedown: ($event) => handleMouseDown("padding", item, $event),
|
537
558
|
onMouseup: handleMouseUp
|
538
|
-
}, null, 42,
|
559
|
+
}, null, 42, _hoisted_17);
|
539
560
|
}),
|
540
561
|
64
|
541
562
|
/* STABLE_FRAGMENT */
|
542
563
|
))
|
543
564
|
]),
|
544
|
-
|
565
|
+
_hoisted_18,
|
566
|
+
createElementVNode("div", _hoisted_19, [
|
567
|
+
createVNode(_component_el_tooltip, {
|
568
|
+
"show-after": 1e3,
|
569
|
+
class: "box-item",
|
570
|
+
effect: "dark",
|
571
|
+
content: "\u8054\u52A8",
|
572
|
+
placement: "top-start"
|
573
|
+
}, {
|
574
|
+
default: withCtx(() => [
|
575
|
+
createVNode(_component_dk_icon, {
|
576
|
+
style: { "margin-right": "5px" },
|
577
|
+
icon: "Connection",
|
578
|
+
color: bind.padding ? "#f00" : "#303133",
|
579
|
+
onClick: _cache[2] || (_cache[2] = ($event) => onBind("padding"))
|
580
|
+
}, null, 8, ["color"])
|
581
|
+
]),
|
582
|
+
_: 1
|
583
|
+
/* STABLE */
|
584
|
+
}),
|
585
|
+
createVNode(_component_el_tooltip, {
|
586
|
+
"show-after": 1e3,
|
587
|
+
class: "box-item",
|
588
|
+
effect: "dark",
|
589
|
+
content: "\u91CD\u7F6E\u5185\u8FB9\u8DDD",
|
590
|
+
placement: "top-start"
|
591
|
+
}, {
|
592
|
+
default: withCtx(() => [
|
593
|
+
createVNode(_component_dk_icon, {
|
594
|
+
icon: "Refresh",
|
595
|
+
color: "#303133",
|
596
|
+
onClick: _cache[3] || (_cache[3] = ($event) => onRefresh("padding"))
|
597
|
+
})
|
598
|
+
]),
|
599
|
+
_: 1
|
600
|
+
/* STABLE */
|
601
|
+
})
|
602
|
+
]),
|
545
603
|
createCommentVNode("\u5185\u8FB9\u8DDD END"),
|
546
604
|
createElementVNode(
|
547
605
|
"div",
|
548
606
|
{
|
549
607
|
class: normalizeClass(["thumnail width-height", moves.widthHeight ? "thumnail-heightlight" : ""]),
|
550
|
-
onMousemove: _cache[
|
551
|
-
onMouseleave: _cache[
|
608
|
+
onMousemove: _cache[10] || (_cache[10] = ($event) => onMouseMove("widthHeight", "move", $event)),
|
609
|
+
onMouseleave: _cache[11] || (_cache[11] = ($event) => onMouseMove("widthHeight", "leave", $event))
|
552
610
|
},
|
553
611
|
[
|
554
|
-
createElementVNode("span",
|
555
|
-
createElementVNode(
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
612
|
+
createElementVNode("span", _hoisted_20, [
|
613
|
+
createElementVNode(
|
614
|
+
"span",
|
615
|
+
{
|
616
|
+
class: "content-unit left-0",
|
617
|
+
onDblclick: _cache[4] || (_cache[4] = ($event) => onDblclick("width", 9))
|
618
|
+
},
|
619
|
+
[
|
620
|
+
createElementVNode(
|
621
|
+
"em",
|
622
|
+
null,
|
623
|
+
toDisplayString(getValue(styles["width"])),
|
624
|
+
1
|
625
|
+
/* TEXT */
|
626
|
+
)
|
627
|
+
],
|
628
|
+
32
|
629
|
+
/* HYDRATE_EVENTS */
|
630
|
+
),
|
567
631
|
withDirectives(createElementVNode(
|
568
632
|
"input",
|
569
633
|
{
|
570
634
|
ref_key: "inputWidth",
|
571
635
|
ref: inputWidth,
|
572
|
-
"onUpdate:modelValue": _cache[
|
636
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => styles.width = $event),
|
573
637
|
class: normalizeClass(["input-box absolute left-5% top-10px", showStyles["width"] ? " show" : ""]),
|
574
|
-
onBlur: _cache[
|
638
|
+
onBlur: _cache[6] || (_cache[6] = ($event) => onBlur("width"))
|
575
639
|
},
|
576
640
|
null,
|
577
641
|
34
|
@@ -579,27 +643,33 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
579
643
|
), [
|
580
644
|
[vModelText, styles.width]
|
581
645
|
]),
|
582
|
-
|
583
|
-
createElementVNode(
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
646
|
+
_hoisted_21,
|
647
|
+
createElementVNode(
|
648
|
+
"span",
|
649
|
+
{
|
650
|
+
class: "content-unit right-0",
|
651
|
+
onDblclick: _cache[7] || (_cache[7] = ($event) => onDblclick("height", 9))
|
652
|
+
},
|
653
|
+
[
|
654
|
+
createElementVNode(
|
655
|
+
"em",
|
656
|
+
null,
|
657
|
+
toDisplayString(getValue(styles["height"])),
|
658
|
+
1
|
659
|
+
/* TEXT */
|
660
|
+
)
|
661
|
+
],
|
662
|
+
32
|
663
|
+
/* HYDRATE_EVENTS */
|
664
|
+
),
|
595
665
|
withDirectives(createElementVNode(
|
596
666
|
"input",
|
597
667
|
{
|
598
668
|
ref_key: "inputHeight",
|
599
669
|
ref: inputHeight,
|
600
|
-
"onUpdate:modelValue": _cache[
|
670
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => styles.height = $event),
|
601
671
|
class: normalizeClass(["input-box absolute right-5% top-10px", showStyles["height"] ? " show" : ""]),
|
602
|
-
onBlur: _cache[
|
672
|
+
onBlur: _cache[9] || (_cache[9] = ($event) => onBlur("height"))
|
603
673
|
},
|
604
674
|
null,
|
605
675
|
34
|