@vipl520/dk-ui 1.0.48 → 1.0.50
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +193 -92
- 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 +193 -92
- package/dist/web-types.json +1 -1
- package/es/style-box-input/index.d.ts +5 -5
- package/es/style-box-input/src/props.d.ts +2 -2
- package/es/style-box-input/src/props.mjs +2 -2
- package/es/style-box-input/src/props.mjs.map +1 -1
- package/es/style-box-input/src/style-box-input.vue.d.ts +5 -5
- package/es/style-box-input/src/style-box-input.vue2.mjs +85 -71
- package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
- package/es/style-input/index.d.ts +35 -0
- package/es/style-input/src/props.d.ts +16 -0
- package/es/style-input/src/props.mjs +18 -0
- package/es/style-input/src/props.mjs.map +1 -1
- package/es/style-input/src/style-input.vue.d.ts +35 -0
- package/es/style-input/src/style-input.vue2.mjs +73 -3
- package/es/style-input/src/style-input.vue2.mjs.map +1 -1
- package/lib/style-box-input/index.d.ts +5 -5
- package/lib/style-box-input/src/props.d.ts +2 -2
- package/lib/style-box-input/src/props.js +2 -2
- package/lib/style-box-input/src/props.js.map +1 -1
- package/lib/style-box-input/src/style-box-input.vue.d.ts +5 -5
- package/lib/style-box-input/src/style-box-input.vue2.js +84 -70
- package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
- package/lib/style-input/index.d.ts +35 -0
- package/lib/style-input/src/props.d.ts +16 -0
- package/lib/style-input/src/props.js +18 -0
- package/lib/style-input/src/props.js.map +1 -1
- package/lib/style-input/src/style-input.vue.d.ts +35 -0
- package/lib/style-input/src/style-input.vue2.js +72 -2
- package/lib/style-input/src/style-input.vue2.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -967,7 +967,7 @@
|
|
967
967
|
|
968
968
|
const _hoisted_1$V = { key: 1 };
|
969
969
|
const _hoisted_2$I = { class: "collapse-title" };
|
970
|
-
const _hoisted_3$
|
970
|
+
const _hoisted_3$w = { class: "_dk-group-handle" };
|
971
971
|
const __default__$N = vue.defineComponent({
|
972
972
|
name: "DkGroup"
|
973
973
|
});
|
@@ -1271,7 +1271,7 @@
|
|
1271
1271
|
onEmitEvent: (name, ...args) => emitEvent(name, args, index),
|
1272
1272
|
"onUpdate:api": ($f) => add$f(index, $f)
|
1273
1273
|
}, null, 8, ["model-value", "rule", "option", "onUpdate:modelValue", "onEmitEvent", "onUpdate:api"])),
|
1274
|
-
vue.createElementVNode("div", _hoisted_3$
|
1274
|
+
vue.createElementVNode("div", _hoisted_3$w, [
|
1275
1275
|
vue.createVNode(
|
1276
1276
|
_component_el_button_group,
|
1277
1277
|
null,
|
@@ -1438,7 +1438,7 @@
|
|
1438
1438
|
|
1439
1439
|
const _hoisted_1$U = { key: 0 };
|
1440
1440
|
const _hoisted_2$H = { key: 1 };
|
1441
|
-
const _hoisted_3$
|
1441
|
+
const _hoisted_3$v = { class: "text-center" };
|
1442
1442
|
const __default__$M = vue.defineComponent({
|
1443
1443
|
name: "DkTinyEditor"
|
1444
1444
|
});
|
@@ -1571,7 +1571,7 @@
|
|
1571
1571
|
"z-index": 1298
|
1572
1572
|
}, {
|
1573
1573
|
footer: vue.withCtx(() => [
|
1574
|
-
vue.createElementVNode("div", _hoisted_3$
|
1574
|
+
vue.createElementVNode("div", _hoisted_3$v, [
|
1575
1575
|
vue.createVNode(_component_el_button, {
|
1576
1576
|
type: "primary",
|
1577
1577
|
style: { "width": "200px" },
|
@@ -1800,7 +1800,7 @@
|
|
1800
1800
|
|
1801
1801
|
const _hoisted_1$S = { class: "hot-area-content" };
|
1802
1802
|
const _hoisted_2$G = { class: "hot-area-draggable" };
|
1803
|
-
const _hoisted_3$
|
1803
|
+
const _hoisted_3$u = {
|
1804
1804
|
class: "hot-item-content",
|
1805
1805
|
style: { "position": "relative", "width": "100%", "height": "100%", "background": "#0003" }
|
1806
1806
|
};
|
@@ -1958,7 +1958,7 @@
|
|
1958
1958
|
default: vue.withCtx(() => [
|
1959
1959
|
vue.createElementVNode(
|
1960
1960
|
"div",
|
1961
|
-
_hoisted_3$
|
1961
|
+
_hoisted_3$u,
|
1962
1962
|
vue.toDisplayString(key + 1),
|
1963
1963
|
1
|
1964
1964
|
/* TEXT */
|
@@ -2688,7 +2688,7 @@
|
|
2688
2688
|
-1
|
2689
2689
|
/* HOISTED */
|
2690
2690
|
);
|
2691
|
-
const _hoisted_3$
|
2691
|
+
const _hoisted_3$t = /* @__PURE__ */ vue.createElementVNode(
|
2692
2692
|
"path",
|
2693
2693
|
{
|
2694
2694
|
fill: "#B0B7BD",
|
@@ -2825,7 +2825,7 @@
|
|
2825
2825
|
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$O, [
|
2826
2826
|
vue.createElementVNode("g", null, [
|
2827
2827
|
_hoisted_2$D,
|
2828
|
-
_hoisted_3$
|
2828
|
+
_hoisted_3$t,
|
2829
2829
|
_hoisted_4$l,
|
2830
2830
|
vue.createElementVNode(
|
2831
2831
|
"path",
|
@@ -2873,7 +2873,7 @@
|
|
2873
2873
|
|
2874
2874
|
const _hoisted_1$N = { class: "dk-attachment attachment" };
|
2875
2875
|
const _hoisted_2$C = { class: "attachment-header flex justify-between pt-5px pb-5px" };
|
2876
|
-
const _hoisted_3$
|
2876
|
+
const _hoisted_3$s = { class: "header-form z" };
|
2877
2877
|
const _hoisted_4$k = { class: "header-button y" };
|
2878
2878
|
const _hoisted_5$e = /* @__PURE__ */ vue.createElementVNode(
|
2879
2879
|
"i",
|
@@ -2918,7 +2918,7 @@
|
|
2918
2918
|
const _hoisted_21$1 = { class: "file-name over" };
|
2919
2919
|
const _hoisted_22$1 = { class: "right" };
|
2920
2920
|
const _hoisted_23$1 = { class: "block p-10px" };
|
2921
|
-
const _hoisted_24
|
2921
|
+
const _hoisted_24 = {
|
2922
2922
|
key: 1,
|
2923
2923
|
style: { "display": "flex", "align-items": "center", "justify-content": "center", "height": "340px" }
|
2924
2924
|
};
|
@@ -3129,7 +3129,7 @@
|
|
3129
3129
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
|
3130
3130
|
vue.createCommentVNode(" \u9876\u90E8"),
|
3131
3131
|
vue.createElementVNode("div", _hoisted_2$C, [
|
3132
|
-
vue.createElementVNode("div", _hoisted_3$
|
3132
|
+
vue.createElementVNode("div", _hoisted_3$s, [
|
3133
3133
|
vue.createVNode(_component_el_input, {
|
3134
3134
|
modelValue: searchFileName.value,
|
3135
3135
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchFileName.value = $event),
|
@@ -3418,7 +3418,7 @@
|
|
3418
3418
|
])
|
3419
3419
|
])), [
|
3420
3420
|
[_directive_loading, loading.value]
|
3421
|
-
]) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_24
|
3421
|
+
]) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_24, [
|
3422
3422
|
vue.createVNode(_component_el_empty, { description: "\u6682\u65E0\u6570\u636E" })
|
3423
3423
|
])),
|
3424
3424
|
(vue.openBlock(), vue.createBlock(_component_dk_form, {
|
@@ -3556,7 +3556,7 @@
|
|
3556
3556
|
|
3557
3557
|
const _hoisted_1$L = { class: "show m-t-5px" };
|
3558
3558
|
const _hoisted_2$B = { class: "image-error" };
|
3559
|
-
const _hoisted_3$
|
3559
|
+
const _hoisted_3$r = { class: "image-slot" };
|
3560
3560
|
const _hoisted_4$j = { class: "no-image" };
|
3561
3561
|
const __default__$C = vue.defineComponent({
|
3562
3562
|
name: "DkFileInput"
|
@@ -3693,7 +3693,7 @@
|
|
3693
3693
|
style: { "width": "100%", "height": "100%" }
|
3694
3694
|
}, {
|
3695
3695
|
error: vue.withCtx(() => [
|
3696
|
-
vue.createElementVNode("div", _hoisted_3$
|
3696
|
+
vue.createElementVNode("div", _hoisted_3$r, [
|
3697
3697
|
vue.createElementVNode("div", _hoisted_4$j, [
|
3698
3698
|
vue.createVNode(_component_el_icon, null, {
|
3699
3699
|
default: vue.withCtx(() => [
|
@@ -3953,7 +3953,7 @@
|
|
3953
3953
|
|
3954
3954
|
const _hoisted_1$K = { class: "dk-image-list" };
|
3955
3955
|
const _hoisted_2$A = ["onClick"];
|
3956
|
-
const _hoisted_3$
|
3956
|
+
const _hoisted_3$q = { key: 0 };
|
3957
3957
|
const __default__$y = vue.defineComponent({
|
3958
3958
|
name: "DkFileListInput"
|
3959
3959
|
});
|
@@ -4063,7 +4063,7 @@
|
|
4063
4063
|
128
|
4064
4064
|
/* KEYED_FRAGMENT */
|
4065
4065
|
)),
|
4066
|
-
_ctx.limit > input.value.length && !_ctx.disabled ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_3$
|
4066
|
+
_ctx.limit > input.value.length && !_ctx.disabled ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_3$q, [
|
4067
4067
|
vue.createElementVNode(
|
4068
4068
|
"div",
|
4069
4069
|
{
|
@@ -4325,7 +4325,7 @@
|
|
4325
4325
|
class: "text-center",
|
4326
4326
|
style: { "font-size": "12px", "color": "#999" }
|
4327
4327
|
};
|
4328
|
-
const _hoisted_3$
|
4328
|
+
const _hoisted_3$p = { class: "search-icon" };
|
4329
4329
|
const __default__$u = vue.defineComponent({
|
4330
4330
|
name: "DkIconContent"
|
4331
4331
|
});
|
@@ -4539,7 +4539,7 @@
|
|
4539
4539
|
_: 1
|
4540
4540
|
/* STABLE */
|
4541
4541
|
}, 8, ["modelValue"]),
|
4542
|
-
vue.createElementVNode("div", _hoisted_3$
|
4542
|
+
vue.createElementVNode("div", _hoisted_3$p, [
|
4543
4543
|
vue.createVNode(_component_el_input, {
|
4544
4544
|
modelValue: searchIcon.value,
|
4545
4545
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchIcon.value = $event),
|
@@ -4862,6 +4862,24 @@
|
|
4862
4862
|
return {};
|
4863
4863
|
},
|
4864
4864
|
type: Object
|
4865
|
+
},
|
4866
|
+
isDrawer: {
|
4867
|
+
default: false,
|
4868
|
+
type: Boolean
|
4869
|
+
},
|
4870
|
+
drawerProps: {
|
4871
|
+
default: () => {
|
4872
|
+
return {
|
4873
|
+
title: "\u7F16\u8F91\u6837\u5F0F",
|
4874
|
+
direction: "rtl",
|
4875
|
+
size: "400px"
|
4876
|
+
};
|
4877
|
+
},
|
4878
|
+
type: Object
|
4879
|
+
},
|
4880
|
+
drawerText: {
|
4881
|
+
default: "\u7F16\u8F91\u6837\u5F0F",
|
4882
|
+
type: String
|
4865
4883
|
}
|
4866
4884
|
};
|
4867
4885
|
|
@@ -4870,6 +4888,7 @@
|
|
4870
4888
|
key: 0,
|
4871
4889
|
class: "p-5px"
|
4872
4890
|
};
|
4891
|
+
const _hoisted_3$o = { key: 1 };
|
4873
4892
|
const __default__$r = vue.defineComponent({
|
4874
4893
|
name: "DkStyleInput"
|
4875
4894
|
});
|
@@ -4879,6 +4898,7 @@
|
|
4879
4898
|
emits: ["update:modelValue"],
|
4880
4899
|
setup(__props, { emit }) {
|
4881
4900
|
const props = __props;
|
4901
|
+
const drawer = vue.ref(false);
|
4882
4902
|
const activeNames = vue.ref([0]);
|
4883
4903
|
const values = vue.ref({});
|
4884
4904
|
const loading = vue.ref(true);
|
@@ -4927,9 +4947,12 @@
|
|
4927
4947
|
return (_ctx, _cache) => {
|
4928
4948
|
const _component_el_collapse_item = vue.resolveComponent("el-collapse-item");
|
4929
4949
|
const _component_el_collapse = vue.resolveComponent("el-collapse");
|
4950
|
+
const _component_el_button = vue.resolveComponent("el-button");
|
4951
|
+
const _component_el_drawer = vue.resolveComponent("el-drawer");
|
4930
4952
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
|
4931
4953
|
!loading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$y, [
|
4932
|
-
vue.
|
4954
|
+
!props.isDrawer ? (vue.openBlock(), vue.createBlock(_component_el_collapse, {
|
4955
|
+
key: 0,
|
4933
4956
|
modelValue: activeNames.value,
|
4934
4957
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeNames.value = $event)
|
4935
4958
|
}, {
|
@@ -4967,7 +4990,72 @@
|
|
4967
4990
|
]),
|
4968
4991
|
_: 1
|
4969
4992
|
/* STABLE */
|
4970
|
-
}, 8, ["modelValue"])
|
4993
|
+
}, 8, ["modelValue"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$o, [
|
4994
|
+
vue.createVNode(_component_el_button, {
|
4995
|
+
type: "primary",
|
4996
|
+
plain: "",
|
4997
|
+
style: { "width": "100%" },
|
4998
|
+
onClick: _cache[1] || (_cache[1] = ($event) => drawer.value = true)
|
4999
|
+
}, {
|
5000
|
+
default: vue.withCtx(() => [
|
5001
|
+
vue.createTextVNode(
|
5002
|
+
vue.toDisplayString(props.drawerText),
|
5003
|
+
1
|
5004
|
+
/* TEXT */
|
5005
|
+
)
|
5006
|
+
]),
|
5007
|
+
_: 1
|
5008
|
+
/* STABLE */
|
5009
|
+
}),
|
5010
|
+
vue.createVNode(_component_el_drawer, vue.mergeProps({
|
5011
|
+
modelValue: drawer.value,
|
5012
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => drawer.value = $event)
|
5013
|
+
}, props.drawerProps), {
|
5014
|
+
default: vue.withCtx(() => [
|
5015
|
+
vue.createVNode(_component_el_collapse, {
|
5016
|
+
modelValue: activeNames.value,
|
5017
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => activeNames.value = $event)
|
5018
|
+
}, {
|
5019
|
+
default: vue.withCtx(() => [
|
5020
|
+
(vue.openBlock(true), vue.createElementBlock(
|
5021
|
+
vue.Fragment,
|
5022
|
+
null,
|
5023
|
+
vue.renderList(_components.value, (item, key) => {
|
5024
|
+
return vue.openBlock(), vue.createBlock(_component_el_collapse_item, {
|
5025
|
+
key,
|
5026
|
+
title: "",
|
5027
|
+
name: key
|
5028
|
+
}, {
|
5029
|
+
title: vue.withCtx(() => [
|
5030
|
+
vue.createTextVNode(
|
5031
|
+
vue.toDisplayString(item.title),
|
5032
|
+
1
|
5033
|
+
/* TEXT */
|
5034
|
+
)
|
5035
|
+
]),
|
5036
|
+
default: vue.withCtx(() => [
|
5037
|
+
activeNames.value.includes(key) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(item.name), vue.mergeProps({
|
5038
|
+
key: 0,
|
5039
|
+
modelValue: values.value[item.name],
|
5040
|
+
"onUpdate:modelValue": ($event) => values.value[item.name] = $event
|
5041
|
+
}, item.props, { onChange }), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
5042
|
+
]),
|
5043
|
+
_: 2
|
5044
|
+
/* DYNAMIC */
|
5045
|
+
}, 1032, ["name"]);
|
5046
|
+
}),
|
5047
|
+
128
|
5048
|
+
/* KEYED_FRAGMENT */
|
5049
|
+
))
|
5050
|
+
]),
|
5051
|
+
_: 1
|
5052
|
+
/* STABLE */
|
5053
|
+
}, 8, ["modelValue"])
|
5054
|
+
]),
|
5055
|
+
_: 1
|
5056
|
+
/* STABLE */
|
5057
|
+
}, 16, ["modelValue"])
|
5058
|
+
]))
|
4971
5059
|
])) : vue.createCommentVNode("v-if", true)
|
4972
5060
|
]);
|
4973
5061
|
};
|
@@ -5365,8 +5453,8 @@
|
|
5365
5453
|
default: () => ({})
|
5366
5454
|
},
|
5367
5455
|
height: {
|
5368
|
-
type: Number,
|
5369
|
-
default:
|
5456
|
+
type: [Number, String],
|
5457
|
+
default: "auto"
|
5370
5458
|
},
|
5371
5459
|
help: {
|
5372
5460
|
type: String,
|
@@ -5490,50 +5578,46 @@
|
|
5490
5578
|
const _hoisted_5$d = { class: "name-header-operations" };
|
5491
5579
|
const _hoisted_6$b = { class: "name-header-operations" };
|
5492
5580
|
const _hoisted_7$b = { class: "name-header-operations" };
|
5493
|
-
const _hoisted_8$9 = ["title"];
|
5494
|
-
const _hoisted_9$7 = ["
|
5495
|
-
const _hoisted_10$5 = ["
|
5496
|
-
const _hoisted_11$5 =
|
5497
|
-
const _hoisted_12$4 = /* @__PURE__ */ vue.createElementVNode(
|
5581
|
+
const _hoisted_8$9 = ["title", "onClick"];
|
5582
|
+
const _hoisted_9$7 = ["onUpdate:modelValue", "onBlur"];
|
5583
|
+
const _hoisted_10$5 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
5584
|
+
const _hoisted_11$5 = /* @__PURE__ */ vue.createElementVNode(
|
5498
5585
|
"div",
|
5499
5586
|
{ style: { "position": "absolute", "display": "none", "width": "100%", "height": "100%" } },
|
5500
5587
|
null,
|
5501
5588
|
-1
|
5502
5589
|
/* HOISTED */
|
5503
5590
|
);
|
5504
|
-
const
|
5505
|
-
const
|
5506
|
-
const
|
5591
|
+
const _hoisted_12$4 = { class: "anchor-wrapper" };
|
5592
|
+
const _hoisted_13$3 = ["onMousedown"];
|
5593
|
+
const _hoisted_14$3 = /* @__PURE__ */ vue.createElementVNode(
|
5507
5594
|
"span",
|
5508
5595
|
{ class: "title" },
|
5509
5596
|
" \u5916\u8FB9\u8DDD ",
|
5510
5597
|
-1
|
5511
5598
|
/* HOISTED */
|
5512
5599
|
);
|
5513
|
-
const
|
5514
|
-
const
|
5515
|
-
const
|
5516
|
-
const
|
5517
|
-
const
|
5518
|
-
const
|
5519
|
-
const
|
5520
|
-
const _hoisted_23 = /* @__PURE__ */ vue.createElementVNode(
|
5600
|
+
const _hoisted_15$2 = { class: "thumnail border" };
|
5601
|
+
const _hoisted_16$2 = ["title", "onClick"];
|
5602
|
+
const _hoisted_17$1 = ["onUpdate:modelValue", "onBlur"];
|
5603
|
+
const _hoisted_18 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
|
5604
|
+
const _hoisted_19 = { class: "anchor-wrapper" };
|
5605
|
+
const _hoisted_20 = ["onMousedown"];
|
5606
|
+
const _hoisted_21 = /* @__PURE__ */ vue.createElementVNode(
|
5521
5607
|
"span",
|
5522
5608
|
{ class: "title" },
|
5523
5609
|
" \u5185\u8FB9\u8DDD ",
|
5524
5610
|
-1
|
5525
5611
|
/* HOISTED */
|
5526
5612
|
);
|
5527
|
-
const
|
5528
|
-
const
|
5529
|
-
const _hoisted_26 = /* @__PURE__ */ vue.createElementVNode(
|
5613
|
+
const _hoisted_22 = { class: "title" };
|
5614
|
+
const _hoisted_23 = /* @__PURE__ */ vue.createElementVNode(
|
5530
5615
|
"span",
|
5531
5616
|
null,
|
5532
5617
|
" x ",
|
5533
5618
|
-1
|
5534
5619
|
/* HOISTED */
|
5535
5620
|
);
|
5536
|
-
const _hoisted_27 = { class: "content-unit right-0" };
|
5537
5621
|
const __default__$p = vue.defineComponent({
|
5538
5622
|
name: "DkStyleBoxInput"
|
5539
5623
|
});
|
@@ -5563,13 +5647,17 @@
|
|
5563
5647
|
width: props.modelValue.width || "",
|
5564
5648
|
height: props.modelValue.height || ""
|
5565
5649
|
});
|
5566
|
-
vue.ref(
|
5567
|
-
|
5568
|
-
|
5569
|
-
()
|
5570
|
-
|
5650
|
+
const box = vue.ref(null);
|
5651
|
+
const { width } = core.useElementSize(box);
|
5652
|
+
const height = vue.computed(() => {
|
5653
|
+
console.log("props.height", props.height);
|
5654
|
+
if (props.height === "auto") {
|
5655
|
+
const h = width.value / 1.8;
|
5656
|
+
return h > 300 ? 300 : h;
|
5657
|
+
} else {
|
5658
|
+
return props.height;
|
5571
5659
|
}
|
5572
|
-
);
|
5660
|
+
});
|
5573
5661
|
vue.watch(
|
5574
5662
|
() => props.modelValue,
|
5575
5663
|
(newVal, oldVal) => {
|
@@ -5662,17 +5750,16 @@
|
|
5662
5750
|
stopChangeBound.value = handleMouseUp.bind(event);
|
5663
5751
|
document.addEventListener("mouseup", stopChangeBound.value);
|
5664
5752
|
dragging.value = true;
|
5665
|
-
const height2 = props.height;
|
5666
5753
|
const wrapperElement = document.querySelector(".wrapper");
|
5667
|
-
const
|
5754
|
+
const width2 = wrapperElement ? wrapperElement.offsetWidth : 0;
|
5668
5755
|
const multiples = {
|
5669
5756
|
margin: 0.9,
|
5670
5757
|
padding: 0.9 * 0.7
|
5671
5758
|
};
|
5672
5759
|
const { clientX, clientY } = event;
|
5673
|
-
const setCursorAndDimensions = (cursor, left, top,
|
5760
|
+
const setCursorAndDimensions = (cursor, left, top, width3, height2) => {
|
5674
5761
|
document.body.style.cursor = cursor;
|
5675
|
-
Object.assign(positionStyle, { left, top, width:
|
5762
|
+
Object.assign(positionStyle, { left, top, width: width3, height: height2, display: "block" });
|
5676
5763
|
};
|
5677
5764
|
startPosition.x = clientX;
|
5678
5765
|
startPosition.y = clientY;
|
@@ -5680,16 +5767,16 @@
|
|
5680
5767
|
setCursorAndDimensions(
|
5681
5768
|
"ew-resize",
|
5682
5769
|
clientX + "px",
|
5683
|
-
clientY -
|
5770
|
+
clientY - height.value * 0.5 * multiples[type] + "px",
|
5684
5771
|
"0.1px",
|
5685
|
-
|
5772
|
+
height.value * multiples[type] + "px"
|
5686
5773
|
);
|
5687
5774
|
} else {
|
5688
5775
|
setCursorAndDimensions(
|
5689
5776
|
"ns-resize",
|
5690
|
-
clientX -
|
5777
|
+
clientX - width2 * 0.5 * multiples[type] + "px",
|
5691
5778
|
clientY + "px",
|
5692
|
-
|
5779
|
+
width2 * multiples[type] + "px",
|
5693
5780
|
"0.1px"
|
5694
5781
|
);
|
5695
5782
|
}
|
@@ -5868,9 +5955,11 @@
|
|
5868
5955
|
vue.createElementVNode(
|
5869
5956
|
"div",
|
5870
5957
|
{
|
5958
|
+
ref_key: "box",
|
5959
|
+
ref: box,
|
5871
5960
|
tabindex: "0",
|
5872
5961
|
class: "wrapper",
|
5873
|
-
style: vue.normalizeStyle([{ "margin-top": "10px" }, { height:
|
5962
|
+
style: vue.normalizeStyle([{ "margin-top": "10px" }, { height: height.value + "px" }])
|
5874
5963
|
},
|
5875
5964
|
[
|
5876
5965
|
vue.createElementVNode(
|
@@ -5890,11 +5979,16 @@
|
|
5890
5979
|
return vue.openBlock(), vue.createElementBlock("div", { key }, [
|
5891
5980
|
vue.createElementVNode("span", {
|
5892
5981
|
title: item.title,
|
5893
|
-
class: vue.normalizeClass(`anchor-tip-${item.position} value-indicator`)
|
5982
|
+
class: vue.normalizeClass(`anchor-tip-${item.position} value-indicator`),
|
5983
|
+
onClick: ($event) => onDblclick(item.value, key)
|
5894
5984
|
}, [
|
5895
|
-
vue.createElementVNode(
|
5896
|
-
|
5897
|
-
|
5985
|
+
vue.createElementVNode(
|
5986
|
+
"span",
|
5987
|
+
null,
|
5988
|
+
vue.toDisplayString(getValue(styles[item.value])),
|
5989
|
+
1
|
5990
|
+
/* TEXT */
|
5991
|
+
)
|
5898
5992
|
], 10, _hoisted_8$9),
|
5899
5993
|
vue.withDirectives(vue.createElementVNode("input", {
|
5900
5994
|
ref_for: true,
|
@@ -5903,7 +5997,7 @@
|
|
5903
5997
|
"onUpdate:modelValue": ($event) => styles[item.value] = $event,
|
5904
5998
|
class: vue.normalizeClass("input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")),
|
5905
5999
|
onBlur: ($event) => onBlur(item.value)
|
5906
|
-
}, null, 42,
|
6000
|
+
}, null, 42, _hoisted_9$7), [
|
5907
6001
|
[vue.vModelText, styles[item.value]]
|
5908
6002
|
]),
|
5909
6003
|
(vue.openBlock(), vue.createElementBlock("svg", {
|
@@ -5915,15 +6009,15 @@
|
|
5915
6009
|
style: vue.normalizeStyle(item.svg.style),
|
5916
6010
|
class: "esm-modal-svg",
|
5917
6011
|
innerHTML: item.svg.content
|
5918
|
-
}, null, 12,
|
6012
|
+
}, null, 12, _hoisted_10$5))
|
5919
6013
|
]);
|
5920
6014
|
}),
|
5921
6015
|
128
|
5922
6016
|
/* KEYED_FRAGMENT */
|
5923
6017
|
))
|
5924
6018
|
]),
|
5925
|
-
|
5926
|
-
vue.createElementVNode("div",
|
6019
|
+
_hoisted_11$5,
|
6020
|
+
vue.createElementVNode("div", _hoisted_12$4, [
|
5927
6021
|
(vue.openBlock(), vue.createElementBlock(
|
5928
6022
|
vue.Fragment,
|
5929
6023
|
null,
|
@@ -5934,16 +6028,16 @@
|
|
5934
6028
|
onMousemove: handleMouseMove,
|
5935
6029
|
onMousedown: ($event) => handleMouseDown("margin", item, $event),
|
5936
6030
|
onMouseup: handleMouseUp
|
5937
|
-
}, null, 42,
|
6031
|
+
}, null, 42, _hoisted_13$3);
|
5938
6032
|
}),
|
5939
6033
|
64
|
5940
6034
|
/* STABLE_FRAGMENT */
|
5941
6035
|
))
|
5942
6036
|
]),
|
5943
|
-
|
6037
|
+
_hoisted_14$3,
|
5944
6038
|
vue.createCommentVNode("\u5916\u8FB9\u8DDD Margin END"),
|
5945
6039
|
vue.createCommentVNode("\u5185\u8FB9\u8DDD Padding"),
|
5946
|
-
vue.createElementVNode("div",
|
6040
|
+
vue.createElementVNode("div", _hoisted_15$2, [
|
5947
6041
|
vue.createElementVNode(
|
5948
6042
|
"div",
|
5949
6043
|
{
|
@@ -5960,12 +6054,17 @@
|
|
5960
6054
|
return vue.openBlock(), vue.createElementBlock("div", { key }, [
|
5961
6055
|
vue.createElementVNode("span", {
|
5962
6056
|
title: item.title,
|
5963
|
-
class: vue.normalizeClass(`anchor-tip-${item.position} value-indicator`)
|
6057
|
+
class: vue.normalizeClass(`anchor-tip-${item.position} value-indicator`),
|
6058
|
+
onClick: ($event) => onDblclick(item.value, key + 4)
|
5964
6059
|
}, [
|
5965
|
-
vue.createElementVNode(
|
5966
|
-
|
5967
|
-
|
5968
|
-
|
6060
|
+
vue.createElementVNode(
|
6061
|
+
"span",
|
6062
|
+
null,
|
6063
|
+
vue.toDisplayString(getValue(styles[item.value])),
|
6064
|
+
1
|
6065
|
+
/* TEXT */
|
6066
|
+
)
|
6067
|
+
], 10, _hoisted_16$2),
|
5969
6068
|
vue.withDirectives(vue.createElementVNode("input", {
|
5970
6069
|
ref_for: true,
|
5971
6070
|
ref_key: "inputField",
|
@@ -5973,7 +6072,7 @@
|
|
5973
6072
|
"onUpdate:modelValue": ($event) => styles[item.value] = $event,
|
5974
6073
|
class: vue.normalizeClass("input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")),
|
5975
6074
|
onBlur: ($event) => onBlur(item.value)
|
5976
|
-
}, null, 42,
|
6075
|
+
}, null, 42, _hoisted_17$1), [
|
5977
6076
|
[vue.vModelText, styles[item.value]]
|
5978
6077
|
]),
|
5979
6078
|
(vue.openBlock(), vue.createElementBlock("svg", {
|
@@ -5985,14 +6084,14 @@
|
|
5985
6084
|
style: vue.normalizeStyle(item.svg.style),
|
5986
6085
|
class: "esm-modal-svg",
|
5987
6086
|
innerHTML: item.svg.content
|
5988
|
-
}, null, 12,
|
6087
|
+
}, null, 12, _hoisted_18))
|
5989
6088
|
]);
|
5990
6089
|
}),
|
5991
6090
|
128
|
5992
6091
|
/* KEYED_FRAGMENT */
|
5993
6092
|
))
|
5994
6093
|
]),
|
5995
|
-
vue.createElementVNode("div",
|
6094
|
+
vue.createElementVNode("div", _hoisted_19, [
|
5996
6095
|
(vue.openBlock(), vue.createElementBlock(
|
5997
6096
|
vue.Fragment,
|
5998
6097
|
null,
|
@@ -6003,13 +6102,13 @@
|
|
6003
6102
|
onMousemove: handleMouseMove,
|
6004
6103
|
onMousedown: ($event) => handleMouseDown("padding", item, $event),
|
6005
6104
|
onMouseup: handleMouseUp
|
6006
|
-
}, null, 42,
|
6105
|
+
}, null, 42, _hoisted_20);
|
6007
6106
|
}),
|
6008
6107
|
64
|
6009
6108
|
/* STABLE_FRAGMENT */
|
6010
6109
|
))
|
6011
6110
|
]),
|
6012
|
-
|
6111
|
+
_hoisted_21,
|
6013
6112
|
vue.createCommentVNode("\u5185\u8FB9\u8DDD END"),
|
6014
6113
|
vue.createElementVNode(
|
6015
6114
|
"div",
|
@@ -6019,16 +6118,17 @@
|
|
6019
6118
|
onMouseleave: _cache[10] || (_cache[10] = ($event) => onMouseMove("widthHeight", "leave", $event))
|
6020
6119
|
},
|
6021
6120
|
[
|
6022
|
-
vue.createElementVNode("span",
|
6023
|
-
vue.createElementVNode("span",
|
6121
|
+
vue.createElementVNode("span", _hoisted_22, [
|
6122
|
+
vue.createElementVNode("span", {
|
6123
|
+
class: "content-unit left-0",
|
6124
|
+
onClick: _cache[3] || (_cache[3] = ($event) => onDblclick("width", 9))
|
6125
|
+
}, [
|
6024
6126
|
vue.createElementVNode(
|
6025
6127
|
"em",
|
6026
|
-
|
6027
|
-
onMouseenter: _cache[3] || (_cache[3] = ($event) => onDblclick("width", 9))
|
6028
|
-
},
|
6128
|
+
null,
|
6029
6129
|
vue.toDisplayString(getValue(styles["width"])),
|
6030
|
-
|
6031
|
-
/* TEXT
|
6130
|
+
1
|
6131
|
+
/* TEXT */
|
6032
6132
|
)
|
6033
6133
|
]),
|
6034
6134
|
vue.withDirectives(vue.createElementVNode(
|
@@ -6046,16 +6146,17 @@
|
|
6046
6146
|
), [
|
6047
6147
|
[vue.vModelText, styles.width]
|
6048
6148
|
]),
|
6049
|
-
|
6050
|
-
vue.createElementVNode("span",
|
6149
|
+
_hoisted_23,
|
6150
|
+
vue.createElementVNode("span", {
|
6151
|
+
class: "content-unit right-0",
|
6152
|
+
onClick: _cache[6] || (_cache[6] = ($event) => onDblclick("height", 9))
|
6153
|
+
}, [
|
6051
6154
|
vue.createElementVNode(
|
6052
6155
|
"em",
|
6053
|
-
|
6054
|
-
onMouseenter: _cache[6] || (_cache[6] = ($event) => onDblclick("height", 9))
|
6055
|
-
},
|
6156
|
+
null,
|
6056
6157
|
vue.toDisplayString(getValue(styles["height"])),
|
6057
|
-
|
6058
|
-
/* TEXT
|
6158
|
+
1
|
6159
|
+
/* TEXT */
|
6059
6160
|
)
|
6060
6161
|
]),
|
6061
6162
|
vue.withDirectives(vue.createElementVNode(
|