widget.qw 1.0.97 → 1.0.98
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/build/style.css +8 -8
- package/build/widget.qw.es.js +51 -31
- package/build/widget.qw.umd.js +51 -31
- package/package.json +1 -1
- package/src/components/Input.vue +12 -12
- package/src/components/ObjsEditor.vue +6 -5
package/build/style.css
CHANGED
|
@@ -89,10 +89,10 @@
|
|
|
89
89
|
:root:root {
|
|
90
90
|
--van-popover-action-width: 70vw;
|
|
91
91
|
}
|
|
92
|
-
[data-v-
|
|
92
|
+
[data-v-bdbdf60a] .label {
|
|
93
93
|
color: #000 !important;
|
|
94
94
|
}
|
|
95
|
-
[data-v-
|
|
95
|
+
[data-v-bdbdf60a] .van-field__control:disabled {
|
|
96
96
|
color: #000 !important;
|
|
97
97
|
cursor: not-allowed;
|
|
98
98
|
opacity: 1;
|
|
@@ -875,14 +875,14 @@
|
|
|
875
875
|
}
|
|
876
876
|
.widget .readonly-field[data-v-e7bb4e5c] {
|
|
877
877
|
margin: 4px 0;
|
|
878
|
-
}.widget[data-v-
|
|
878
|
+
}.widget[data-v-febc3832] {
|
|
879
879
|
background: #fff;
|
|
880
880
|
box-sizing: border-box;
|
|
881
881
|
height: 100%;
|
|
882
882
|
text-align: left;
|
|
883
883
|
font-size: 12px;
|
|
884
884
|
}
|
|
885
|
-
.option[data-v-
|
|
885
|
+
.option[data-v-febc3832] {
|
|
886
886
|
margin: 0 8px 8px 0;
|
|
887
887
|
padding: 5px 10px;
|
|
888
888
|
border-radius: 6px;
|
|
@@ -892,16 +892,16 @@
|
|
|
892
892
|
display: inline-block;
|
|
893
893
|
position: relative;
|
|
894
894
|
}
|
|
895
|
-
[data-v-
|
|
895
|
+
[data-v-febc3832] .van-field__label {
|
|
896
896
|
margin: auto;
|
|
897
897
|
}
|
|
898
|
-
[data-v-
|
|
898
|
+
[data-v-febc3832] .van-cell {
|
|
899
899
|
font-size: 12px;
|
|
900
900
|
padding: 5px 5px;
|
|
901
901
|
}
|
|
902
|
-
[data-v-
|
|
902
|
+
[data-v-febc3832] .van-icon {
|
|
903
903
|
font-size: 12px;
|
|
904
904
|
}
|
|
905
|
-
[data-v-
|
|
905
|
+
[data-v-febc3832] .van-popup .van-cell {
|
|
906
906
|
padding: 5px 25px;
|
|
907
907
|
}
|
package/build/widget.qw.es.js
CHANGED
|
@@ -17206,8 +17206,8 @@ const _hoisted_1$l = {
|
|
|
17206
17206
|
class: "widget"
|
|
17207
17207
|
};
|
|
17208
17208
|
const _hoisted_2$e = /* @__PURE__ */ createTextVNode("\u9A73\u56DE");
|
|
17209
|
-
const _hoisted_3$
|
|
17210
|
-
const _hoisted_4$
|
|
17209
|
+
const _hoisted_3$b = /* @__PURE__ */ createTextVNode("\u63D0\u4EA4");
|
|
17210
|
+
const _hoisted_4$a = /* @__PURE__ */ createTextVNode("\u7533\u8BF7");
|
|
17211
17211
|
const _hoisted_5$9 = {
|
|
17212
17212
|
key: 4,
|
|
17213
17213
|
class: "audit-title"
|
|
@@ -17514,7 +17514,7 @@ const _sfc_main$w = {
|
|
|
17514
17514
|
"native-type": "submit",
|
|
17515
17515
|
onClick: onPass
|
|
17516
17516
|
}, {
|
|
17517
|
-
default: withCtx(() => [_hoisted_3$
|
|
17517
|
+
default: withCtx(() => [_hoisted_3$b]),
|
|
17518
17518
|
_: 1
|
|
17519
17519
|
})) : createCommentVNode("", true), unref(canApply) ? (openBlock(), createBlock(_component_van_button, {
|
|
17520
17520
|
key: 3,
|
|
@@ -17523,7 +17523,7 @@ const _sfc_main$w = {
|
|
|
17523
17523
|
"native-type": "submit",
|
|
17524
17524
|
onClick: onApply
|
|
17525
17525
|
}, {
|
|
17526
|
-
default: withCtx(() => [_hoisted_4$
|
|
17526
|
+
default: withCtx(() => [_hoisted_4$a]),
|
|
17527
17527
|
_: 1
|
|
17528
17528
|
})) : createCommentVNode("", true), data2.process && data2.process.id ? (openBlock(), createElementBlock("div", _hoisted_5$9, toDisplayString(unref(formatProcessTitle)), 1)) : createCommentVNode("", true), data2.process && data2.process.id ? (openBlock(), createBlock(_component_van_steps, {
|
|
17529
17529
|
key: 5,
|
|
@@ -17618,9 +17618,25 @@ function useVModel(props2, key, emit2, options = {}) {
|
|
|
17618
17618
|
});
|
|
17619
17619
|
}
|
|
17620
17620
|
}
|
|
17621
|
-
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
17622
|
-
const _hoisted_1$k =
|
|
17623
|
-
|
|
17621
|
+
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-bdbdf60a] .label {\n color: #000 !important;\n}\n[data-v-bdbdf60a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
17622
|
+
const _hoisted_1$k = {
|
|
17623
|
+
style: {
|
|
17624
|
+
"display": "flex",
|
|
17625
|
+
"align-items": "center"
|
|
17626
|
+
}
|
|
17627
|
+
};
|
|
17628
|
+
const _hoisted_2$d = {
|
|
17629
|
+
style: {
|
|
17630
|
+
"font-size": "20px",
|
|
17631
|
+
"color": "#999"
|
|
17632
|
+
}
|
|
17633
|
+
};
|
|
17634
|
+
const _hoisted_3$a = {
|
|
17635
|
+
style: {
|
|
17636
|
+
"margin": "15px 0 0 0"
|
|
17637
|
+
}
|
|
17638
|
+
};
|
|
17639
|
+
const _hoisted_4$9 = /* @__PURE__ */ createTextVNode(" \u786E\u5B9A ");
|
|
17624
17640
|
const _sfc_main$v = {
|
|
17625
17641
|
__name: "Input",
|
|
17626
17642
|
props: {
|
|
@@ -17702,8 +17718,9 @@ const _sfc_main$v = {
|
|
|
17702
17718
|
onMounted(() => {
|
|
17703
17719
|
});
|
|
17704
17720
|
return (_ctx, _cache) => {
|
|
17705
|
-
const
|
|
17721
|
+
const _component_van_icon = resolveComponent("van-icon");
|
|
17706
17722
|
const _component_van_field = resolveComponent("van-field");
|
|
17723
|
+
const _component_van_button = resolveComponent("van-button");
|
|
17707
17724
|
const _component_van_popup = resolveComponent("van-popup");
|
|
17708
17725
|
return openBlock(), createElementBlock(Fragment, null, [!unref(isGone) && props.type === "number" ? (openBlock(), createBlock(_component_van_field, {
|
|
17709
17726
|
key: 0,
|
|
@@ -17721,35 +17738,36 @@ const _sfc_main$v = {
|
|
|
17721
17738
|
autosize: props.autosize,
|
|
17722
17739
|
rules: unref(rules)
|
|
17723
17740
|
}, {
|
|
17724
|
-
button: withCtx(() => [createVNode(
|
|
17725
|
-
|
|
17741
|
+
button: withCtx(() => [createVNode(_component_van_icon, {
|
|
17742
|
+
name: "plus",
|
|
17726
17743
|
onClick: onCalc
|
|
17727
|
-
}, {
|
|
17728
|
-
default: withCtx(() => [_hoisted_1$k]),
|
|
17729
|
-
_: 1
|
|
17730
17744
|
})]),
|
|
17731
17745
|
_: 1
|
|
17732
17746
|
}, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : createCommentVNode("", true), createVNode(_component_van_popup, {
|
|
17733
17747
|
show: data.isShowPop,
|
|
17734
17748
|
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => data.isShowPop = $event),
|
|
17735
17749
|
position: "bottom",
|
|
17736
|
-
round: ""
|
|
17750
|
+
round: "",
|
|
17751
|
+
style: {
|
|
17752
|
+
"padding": "25px 15px"
|
|
17753
|
+
}
|
|
17737
17754
|
}, {
|
|
17738
|
-
default: withCtx(() => [createVNode(_component_van_field, {
|
|
17755
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$k, [createElementVNode("span", _hoisted_2$d, toDisplayString(props.modelValue || ""), 1), createVNode(_component_van_field, {
|
|
17739
17756
|
modelValue: data.express,
|
|
17740
17757
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.express = $event),
|
|
17741
17758
|
placeholder: "\u8BF7\u8F93\u5165+/-\u6570\u5B57",
|
|
17742
|
-
type: "text"
|
|
17759
|
+
type: "text",
|
|
17760
|
+
style: {
|
|
17761
|
+
"font-size": "20px"
|
|
17762
|
+
}
|
|
17763
|
+
}, null, 8, ["modelValue"])]), createElementVNode("div", _hoisted_3$a, [createVNode(_component_van_button, {
|
|
17764
|
+
onClick: onSubmit,
|
|
17765
|
+
type: "primary",
|
|
17766
|
+
size: "large"
|
|
17743
17767
|
}, {
|
|
17744
|
-
|
|
17745
|
-
size: "small",
|
|
17746
|
-
onClick: onSubmit
|
|
17747
|
-
}, {
|
|
17748
|
-
default: withCtx(() => [_hoisted_2$d]),
|
|
17749
|
-
_: 1
|
|
17750
|
-
})]),
|
|
17768
|
+
default: withCtx(() => [_hoisted_4$9]),
|
|
17751
17769
|
_: 1
|
|
17752
|
-
}
|
|
17770
|
+
})])]),
|
|
17753
17771
|
_: 1
|
|
17754
17772
|
}, 8, ["show"]), !unref(isGone) && props.type != "number" ? (openBlock(), createBlock(_component_van_field, {
|
|
17755
17773
|
key: 1,
|
|
@@ -17767,7 +17785,7 @@ const _sfc_main$v = {
|
|
|
17767
17785
|
};
|
|
17768
17786
|
}
|
|
17769
17787
|
};
|
|
17770
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
17788
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-bdbdf60a"]]);
|
|
17771
17789
|
var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-3ae83b36] .label {\n color: #000 !important;\n}\n[data-v-3ae83b36] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
17772
17790
|
const _sfc_main$u = {
|
|
17773
17791
|
__name: "SinglePicker",
|
|
@@ -22678,7 +22696,7 @@ const _sfc_main$1 = {
|
|
|
22678
22696
|
}
|
|
22679
22697
|
};
|
|
22680
22698
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e7bb4e5c"]]);
|
|
22681
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
22699
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-febc3832] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-febc3832] {\n margin: 0 8px 8px 0;\n padding: 5px 10px;\n border-radius: 6px;\n border: 2px solid #e1e1e1;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n color: #666;\n display: inline-block;\n position: relative;\n}\n[data-v-febc3832] .van-field__label {\n margin: auto;\n}\n[data-v-febc3832] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-febc3832] .van-icon {\n font-size: 12px;\n}\n[data-v-febc3832] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
|
|
22682
22700
|
const _hoisted_1 = {
|
|
22683
22701
|
class: "widget-box"
|
|
22684
22702
|
};
|
|
@@ -22845,11 +22863,13 @@ const _sfc_main = {
|
|
|
22845
22863
|
} else if ((_b = (_a = props2.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) {
|
|
22846
22864
|
let one = (_d = (_c = props2.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options.find((item2) => item2[Object.keys(item2)[1]] === v);
|
|
22847
22865
|
return one ? one[Object.keys(one)[0]] : "";
|
|
22848
|
-
} else {
|
|
22849
|
-
|
|
22850
|
-
|
|
22866
|
+
} else if (props2.schema[key].type === "Boolean") {
|
|
22867
|
+
v = v ? "\u662F" : "\u5426";
|
|
22868
|
+
return v;
|
|
22869
|
+
} else if (v == null) {
|
|
22870
|
+
return "";
|
|
22871
|
+
} else
|
|
22851
22872
|
return v;
|
|
22852
|
-
}
|
|
22853
22873
|
};
|
|
22854
22874
|
const onEdit = (index) => {
|
|
22855
22875
|
data2.selectIndex = index;
|
|
@@ -23051,7 +23071,7 @@ const _sfc_main = {
|
|
|
23051
23071
|
};
|
|
23052
23072
|
}
|
|
23053
23073
|
};
|
|
23054
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
23074
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-febc3832"]]);
|
|
23055
23075
|
const secret_notify = () => {
|
|
23056
23076
|
showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
|
|
23057
23077
|
};
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -17209,8 +17209,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17209
17209
|
class: "widget"
|
|
17210
17210
|
};
|
|
17211
17211
|
const _hoisted_2$e = /* @__PURE__ */ vue.createTextVNode("\u9A73\u56DE");
|
|
17212
|
-
const _hoisted_3$
|
|
17213
|
-
const _hoisted_4$
|
|
17212
|
+
const _hoisted_3$b = /* @__PURE__ */ vue.createTextVNode("\u63D0\u4EA4");
|
|
17213
|
+
const _hoisted_4$a = /* @__PURE__ */ vue.createTextVNode("\u7533\u8BF7");
|
|
17214
17214
|
const _hoisted_5$9 = {
|
|
17215
17215
|
key: 4,
|
|
17216
17216
|
class: "audit-title"
|
|
@@ -17517,7 +17517,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17517
17517
|
"native-type": "submit",
|
|
17518
17518
|
onClick: onPass
|
|
17519
17519
|
}, {
|
|
17520
|
-
default: vue.withCtx(() => [_hoisted_3$
|
|
17520
|
+
default: vue.withCtx(() => [_hoisted_3$b]),
|
|
17521
17521
|
_: 1
|
|
17522
17522
|
})) : vue.createCommentVNode("", true), vue.unref(canApply) ? (vue.openBlock(), vue.createBlock(_component_van_button, {
|
|
17523
17523
|
key: 3,
|
|
@@ -17526,7 +17526,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17526
17526
|
"native-type": "submit",
|
|
17527
17527
|
onClick: onApply
|
|
17528
17528
|
}, {
|
|
17529
|
-
default: vue.withCtx(() => [_hoisted_4$
|
|
17529
|
+
default: vue.withCtx(() => [_hoisted_4$a]),
|
|
17530
17530
|
_: 1
|
|
17531
17531
|
})) : vue.createCommentVNode("", true), data2.process && data2.process.id ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$9, vue.toDisplayString(vue.unref(formatProcessTitle)), 1)) : vue.createCommentVNode("", true), data2.process && data2.process.id ? (vue.openBlock(), vue.createBlock(_component_van_steps, {
|
|
17532
17532
|
key: 5,
|
|
@@ -17621,9 +17621,25 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17621
17621
|
});
|
|
17622
17622
|
}
|
|
17623
17623
|
}
|
|
17624
|
-
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
17625
|
-
const _hoisted_1$k =
|
|
17626
|
-
|
|
17624
|
+
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-bdbdf60a] .label {\n color: #000 !important;\n}\n[data-v-bdbdf60a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
17625
|
+
const _hoisted_1$k = {
|
|
17626
|
+
style: {
|
|
17627
|
+
"display": "flex",
|
|
17628
|
+
"align-items": "center"
|
|
17629
|
+
}
|
|
17630
|
+
};
|
|
17631
|
+
const _hoisted_2$d = {
|
|
17632
|
+
style: {
|
|
17633
|
+
"font-size": "20px",
|
|
17634
|
+
"color": "#999"
|
|
17635
|
+
}
|
|
17636
|
+
};
|
|
17637
|
+
const _hoisted_3$a = {
|
|
17638
|
+
style: {
|
|
17639
|
+
"margin": "15px 0 0 0"
|
|
17640
|
+
}
|
|
17641
|
+
};
|
|
17642
|
+
const _hoisted_4$9 = /* @__PURE__ */ vue.createTextVNode(" \u786E\u5B9A ");
|
|
17627
17643
|
const _sfc_main$v = {
|
|
17628
17644
|
__name: "Input",
|
|
17629
17645
|
props: {
|
|
@@ -17705,8 +17721,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17705
17721
|
vue.onMounted(() => {
|
|
17706
17722
|
});
|
|
17707
17723
|
return (_ctx, _cache) => {
|
|
17708
|
-
const
|
|
17724
|
+
const _component_van_icon = vue.resolveComponent("van-icon");
|
|
17709
17725
|
const _component_van_field = vue.resolveComponent("van-field");
|
|
17726
|
+
const _component_van_button = vue.resolveComponent("van-button");
|
|
17710
17727
|
const _component_van_popup = vue.resolveComponent("van-popup");
|
|
17711
17728
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [!vue.unref(isGone) && props.type === "number" ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
17712
17729
|
key: 0,
|
|
@@ -17724,35 +17741,36 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17724
17741
|
autosize: props.autosize,
|
|
17725
17742
|
rules: vue.unref(rules)
|
|
17726
17743
|
}, {
|
|
17727
|
-
button: vue.withCtx(() => [vue.createVNode(
|
|
17728
|
-
|
|
17744
|
+
button: vue.withCtx(() => [vue.createVNode(_component_van_icon, {
|
|
17745
|
+
name: "plus",
|
|
17729
17746
|
onClick: onCalc
|
|
17730
|
-
}, {
|
|
17731
|
-
default: vue.withCtx(() => [_hoisted_1$k]),
|
|
17732
|
-
_: 1
|
|
17733
17747
|
})]),
|
|
17734
17748
|
_: 1
|
|
17735
17749
|
}, 8, ["label", "modelValue", "disabled", "required", "placeholder", "type", "rows", "autosize", "rules"])) : vue.createCommentVNode("", true), vue.createVNode(_component_van_popup, {
|
|
17736
17750
|
show: data.isShowPop,
|
|
17737
17751
|
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => data.isShowPop = $event),
|
|
17738
17752
|
position: "bottom",
|
|
17739
|
-
round: ""
|
|
17753
|
+
round: "",
|
|
17754
|
+
style: {
|
|
17755
|
+
"padding": "25px 15px"
|
|
17756
|
+
}
|
|
17740
17757
|
}, {
|
|
17741
|
-
default: vue.withCtx(() => [vue.createVNode(_component_van_field, {
|
|
17758
|
+
default: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$k, [vue.createElementVNode("span", _hoisted_2$d, vue.toDisplayString(props.modelValue || ""), 1), vue.createVNode(_component_van_field, {
|
|
17742
17759
|
modelValue: data.express,
|
|
17743
17760
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => data.express = $event),
|
|
17744
17761
|
placeholder: "\u8BF7\u8F93\u5165+/-\u6570\u5B57",
|
|
17745
|
-
type: "text"
|
|
17762
|
+
type: "text",
|
|
17763
|
+
style: {
|
|
17764
|
+
"font-size": "20px"
|
|
17765
|
+
}
|
|
17766
|
+
}, null, 8, ["modelValue"])]), vue.createElementVNode("div", _hoisted_3$a, [vue.createVNode(_component_van_button, {
|
|
17767
|
+
onClick: onSubmit,
|
|
17768
|
+
type: "primary",
|
|
17769
|
+
size: "large"
|
|
17746
17770
|
}, {
|
|
17747
|
-
|
|
17748
|
-
size: "small",
|
|
17749
|
-
onClick: onSubmit
|
|
17750
|
-
}, {
|
|
17751
|
-
default: vue.withCtx(() => [_hoisted_2$d]),
|
|
17752
|
-
_: 1
|
|
17753
|
-
})]),
|
|
17771
|
+
default: vue.withCtx(() => [_hoisted_4$9]),
|
|
17754
17772
|
_: 1
|
|
17755
|
-
}
|
|
17773
|
+
})])]),
|
|
17756
17774
|
_: 1
|
|
17757
17775
|
}, 8, ["show"]), !vue.unref(isGone) && props.type != "number" ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
17758
17776
|
key: 1,
|
|
@@ -17770,7 +17788,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17770
17788
|
};
|
|
17771
17789
|
}
|
|
17772
17790
|
};
|
|
17773
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
17791
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-bdbdf60a"]]);
|
|
17774
17792
|
var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-3ae83b36] .label {\n color: #000 !important;\n}\n[data-v-3ae83b36] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
17775
17793
|
const _sfc_main$u = {
|
|
17776
17794
|
__name: "SinglePicker",
|
|
@@ -22681,7 +22699,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22681
22699
|
}
|
|
22682
22700
|
};
|
|
22683
22701
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e7bb4e5c"]]);
|
|
22684
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
22702
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-febc3832] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-febc3832] {\n margin: 0 8px 8px 0;\n padding: 5px 10px;\n border-radius: 6px;\n border: 2px solid #e1e1e1;\n box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n color: #666;\n display: inline-block;\n position: relative;\n}\n[data-v-febc3832] .van-field__label {\n margin: auto;\n}\n[data-v-febc3832] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-febc3832] .van-icon {\n font-size: 12px;\n}\n[data-v-febc3832] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
|
|
22685
22703
|
const _hoisted_1 = {
|
|
22686
22704
|
class: "widget-box"
|
|
22687
22705
|
};
|
|
@@ -22848,11 +22866,13 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22848
22866
|
} else if ((_b = (_a = props2.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) {
|
|
22849
22867
|
let one = (_d = (_c = props2.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options.find((item2) => item2[Object.keys(item2)[1]] === v);
|
|
22850
22868
|
return one ? one[Object.keys(one)[0]] : "";
|
|
22851
|
-
} else {
|
|
22852
|
-
|
|
22853
|
-
|
|
22869
|
+
} else if (props2.schema[key].type === "Boolean") {
|
|
22870
|
+
v = v ? "\u662F" : "\u5426";
|
|
22871
|
+
return v;
|
|
22872
|
+
} else if (v == null) {
|
|
22873
|
+
return "";
|
|
22874
|
+
} else
|
|
22854
22875
|
return v;
|
|
22855
|
-
}
|
|
22856
22876
|
};
|
|
22857
22877
|
const onEdit = (index) => {
|
|
22858
22878
|
data2.selectIndex = index;
|
|
@@ -23054,7 +23074,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23054
23074
|
};
|
|
23055
23075
|
}
|
|
23056
23076
|
};
|
|
23057
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
23077
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-febc3832"]]);
|
|
23058
23078
|
const secret_notify = () => {
|
|
23059
23079
|
showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
|
|
23060
23080
|
};
|
package/package.json
CHANGED
package/src/components/Input.vue
CHANGED
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
:rows="props.rows" :autosize="props.autosize" :rules="rules">
|
|
6
6
|
<!-- 右侧插槽按钮 -->
|
|
7
7
|
<template #button>
|
|
8
|
-
<van-
|
|
9
|
-
+
|
|
10
|
-
</van-button>
|
|
8
|
+
<van-icon name="plus" @click="onCalc" />
|
|
11
9
|
</template>
|
|
12
10
|
</van-field>
|
|
13
|
-
<van-popup v-model:show="data.isShowPop" position="bottom" round>
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
<van-popup v-model:show="data.isShowPop" position="bottom" round style="padding: 25px 15px;">
|
|
12
|
+
<div style="display: flex; align-items: center;">
|
|
13
|
+
<span style="font-size: 20px; color: #999;">{{ props.modelValue || '' }}</span>
|
|
14
|
+
<van-field v-model="data.express" placeholder="请输入+/-数字" type="text" style="font-size: 20px;"/>
|
|
15
|
+
</div>
|
|
16
|
+
<div style="margin:15px 0 0 0;">
|
|
17
|
+
<van-button @click="onSubmit" type="primary" size="large">
|
|
18
|
+
确定
|
|
19
|
+
</van-button>
|
|
20
|
+
</div>
|
|
21
21
|
</van-popup>
|
|
22
22
|
<!-- 文本类型 -->
|
|
23
23
|
<van-field :label="props.label" v-model="modelValue" v-if="!isGone && props.type != 'number'" :disabled="isDisabled"
|
|
@@ -96,7 +96,7 @@ const onSubmit = () => {
|
|
|
96
96
|
throw new Error("非法表达式");
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
let fullExpress = modelValue.value+''+data.express
|
|
99
|
+
let fullExpress = modelValue.value + '' + data.express
|
|
100
100
|
|
|
101
101
|
modelValue.value = eval(fullExpress)
|
|
102
102
|
|
|
@@ -242,12 +242,13 @@ const key2value = (key, item) => {
|
|
|
242
242
|
let one = props.schema[key]?.schema?.options.find(item => item[Object.keys(item)[1]] === v)
|
|
243
243
|
return one ? one[Object.keys(one)[0]] : ''
|
|
244
244
|
}
|
|
245
|
-
else {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
else if (props.schema[key].type === 'Boolean'){
|
|
246
|
+
v = v ? '是' : '否'
|
|
247
|
+
return v
|
|
248
|
+
}else if(null == v){
|
|
249
|
+
return ''
|
|
250
|
+
}else
|
|
249
251
|
return v
|
|
250
|
-
}
|
|
251
252
|
}
|
|
252
253
|
|
|
253
254
|
const onEdit = (index) => {
|