@vipl520/dk-ui 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +27 -41
- package/dist/index.min.js +7 -7
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +6 -6
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +27 -41
- package/dist/web-types.json +1 -1
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
- package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +2 -1
- 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 +2 -0
- package/es/page-diy/src/config/rule/min/index.d.ts +2 -0
- package/es/style-number-input/index.d.ts +2 -1
- package/es/style-number-input/src/style-number-input.vue.d.ts +2 -1
- package/es/style-number-input/src/style-number-input.vue2.mjs +3 -2
- package/es/style-number-input/src/style-number-input.vue2.mjs.map +1 -1
- package/es/style-position-input/src/style-position-input.vue2.mjs +23 -39
- package/es/style-position-input/src/style-position-input.vue2.mjs.map +1 -1
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +1 -0
- package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +2 -1
- 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 +2 -0
- package/lib/page-diy/src/config/rule/min/index.d.ts +2 -0
- package/lib/style-number-input/index.d.ts +2 -1
- package/lib/style-number-input/src/style-number-input.vue.d.ts +2 -1
- package/lib/style-number-input/src/style-number-input.vue2.js +3 -2
- package/lib/style-number-input/src/style-number-input.vue2.js.map +1 -1
- package/lib/style-position-input/src/style-position-input.vue2.js +22 -38
- package/lib/style-position-input/src/style-position-input.vue2.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -16701,49 +16701,40 @@
|
|
16701
16701
|
{ label: "\u5DE6\u4E0A", value: "left-top" },
|
16702
16702
|
{ label: "\u5DE6\u4E0B", value: "left-down" },
|
16703
16703
|
{ label: "\u53F3\u4E0A", value: "right-top" },
|
16704
|
-
{ label: "\u53F3\u4E0B", value: "right-down" }
|
16704
|
+
{ label: "\u53F3\u4E0B", value: "right-down" },
|
16705
|
+
{ label: "\u4E0B\u5C45\u4E2D", value: "down-center" },
|
16706
|
+
{ label: "\u4E0A\u5C45\u4E2D", value: "up-center" }
|
16705
16707
|
];
|
16708
|
+
const change = require$$0.ref(false);
|
16706
16709
|
const positionChange = (value) => {
|
16710
|
+
change.value = true;
|
16707
16711
|
switch (value) {
|
16708
16712
|
case "left-top":
|
16709
|
-
form.value = {
|
16710
|
-
left: "1px",
|
16711
|
-
top: "0px",
|
16712
|
-
right: "",
|
16713
|
-
bottom: ""
|
16714
|
-
};
|
16713
|
+
form.value = { left: "1px", top: "1px", right: "", bottom: "" };
|
16715
16714
|
break;
|
16716
16715
|
case "left-down":
|
16717
|
-
form.value = {
|
16718
|
-
left: "0px",
|
16719
|
-
top: "",
|
16720
|
-
right: "",
|
16721
|
-
bottom: "0px"
|
16722
|
-
};
|
16716
|
+
form.value = { left: "1px", bottom: "1px", right: "", up: "" };
|
16723
16717
|
break;
|
16724
16718
|
case "right-top":
|
16725
|
-
form.value = {
|
16726
|
-
left: "",
|
16727
|
-
top: "0px",
|
16728
|
-
right: "0px",
|
16729
|
-
bottom: ""
|
16730
|
-
};
|
16719
|
+
form.value = { top: "1px", right: "1px", left: "", bottom: "" };
|
16731
16720
|
break;
|
16732
16721
|
case "right-down":
|
16733
|
-
form.value = {
|
16734
|
-
|
16735
|
-
|
16736
|
-
|
16737
|
-
|
16738
|
-
|
16722
|
+
form.value = { right: "1px", bottom: "1px", left: "", up: "" };
|
16723
|
+
break;
|
16724
|
+
case "down-center":
|
16725
|
+
form.value = { left: "1px", right: "1px", bottom: "1px", up: "" };
|
16726
|
+
break;
|
16727
|
+
case "up-center":
|
16728
|
+
form.value = { left: "1px", top: "1px", right: "1px", bottom: "" };
|
16739
16729
|
break;
|
16740
16730
|
}
|
16741
|
-
emitValue();
|
16742
16731
|
};
|
16743
16732
|
const emitValue = () => {
|
16744
16733
|
const data = Object.keys(form.value).reduce((prev, cur) => {
|
16745
|
-
if (form.value[cur] && cur !== "position") {
|
16746
|
-
|
16734
|
+
if (change.value && form.value[cur] != "0px" || !change.value && cur !== "position") {
|
16735
|
+
if (form.value[cur]) {
|
16736
|
+
prev[cur] = form.value[cur];
|
16737
|
+
}
|
16747
16738
|
}
|
16748
16739
|
return prev;
|
16749
16740
|
}, {});
|
@@ -16820,15 +16811,7 @@
|
|
16820
16811
|
]),
|
16821
16812
|
_: 1
|
16822
16813
|
/* STABLE */
|
16823
|
-
})
|
16824
|
-
require$$0.createCommentVNode(' <el-select v-model="form.position" placeholder="Select">'),
|
16825
|
-
require$$0.createCommentVNode(" <el-option"),
|
16826
|
-
require$$0.createCommentVNode(' v-for="item in positions"'),
|
16827
|
-
require$$0.createCommentVNode(' :key="item.value"'),
|
16828
|
-
require$$0.createCommentVNode(' :label="item.label"'),
|
16829
|
-
require$$0.createCommentVNode(' :value="item.value"'),
|
16830
|
-
require$$0.createCommentVNode(" />"),
|
16831
|
-
require$$0.createCommentVNode(" </el-select>")
|
16814
|
+
})
|
16832
16815
|
]),
|
16833
16816
|
_: 1
|
16834
16817
|
/* STABLE */
|
@@ -16870,7 +16853,8 @@
|
|
16870
16853
|
default: require$$0.withCtx(() => [
|
16871
16854
|
require$$0.createVNode(_component_dk_style_number_input, {
|
16872
16855
|
modelValue: form.value[item.value],
|
16873
|
-
"onUpdate:modelValue": ($event) => form.value[item.value] = $event
|
16856
|
+
"onUpdate:modelValue": ($event) => form.value[item.value] = $event,
|
16857
|
+
onInput: _cache[0] || (_cache[0] = ($event) => change.value = false)
|
16874
16858
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
16875
16859
|
]),
|
16876
16860
|
_: 2
|
@@ -16945,7 +16929,7 @@
|
|
16945
16929
|
var _sfc_main$F = /* @__PURE__ */ require$$0.defineComponent({
|
16946
16930
|
...__default__$f,
|
16947
16931
|
props: styleNumberInputProps,
|
16948
|
-
emits: ["update:modelValue"],
|
16932
|
+
emits: ["input", "update:modelValue"],
|
16949
16933
|
setup(__props, { emit }) {
|
16950
16934
|
const props = __props;
|
16951
16935
|
const values = splitUnit(props.modelValue, props.units);
|
@@ -17027,7 +17011,8 @@
|
|
17027
17011
|
modelValue: form.number,
|
17028
17012
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.number = $event),
|
17029
17013
|
type: "text",
|
17030
|
-
controls: false
|
17014
|
+
controls: false,
|
17015
|
+
onInput: _cache[2] || (_cache[2] = ($event) => emit("input", $event))
|
17031
17016
|
}, require$$0.createSlots({
|
17032
17017
|
prefix: require$$0.withCtx(() => [
|
17033
17018
|
require$$0.createElementVNode(
|
@@ -20789,7 +20774,8 @@
|
|
20789
20774
|
title: "\u4E3B\u6807\u9898",
|
20790
20775
|
subtitle: "\u526F\u6807\u9898"
|
20791
20776
|
},
|
20792
|
-
showStyle: true
|
20777
|
+
showStyle: true,
|
20778
|
+
fixed: true
|
20793
20779
|
};
|
20794
20780
|
},
|
20795
20781
|
props() {
|