widget.qw 1.0.95 → 1.0.96
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 +6 -6
- package/build/widget.qw.es.js +8 -8
- package/build/widget.qw.umd.js +8 -8
- package/package.json +1 -1
- package/src/components/ObjsEditor.vue +11 -9
package/build/style.css
CHANGED
|
@@ -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-2b1d30d7] {
|
|
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-2b1d30d7] {
|
|
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-2b1d30d7] .van-field__label {
|
|
896
896
|
margin: auto;
|
|
897
897
|
}
|
|
898
|
-
[data-v-
|
|
898
|
+
[data-v-2b1d30d7] .van-cell {
|
|
899
899
|
font-size: 12px;
|
|
900
900
|
padding: 5px 5px;
|
|
901
901
|
}
|
|
902
|
-
[data-v-
|
|
902
|
+
[data-v-2b1d30d7] .van-icon {
|
|
903
903
|
font-size: 12px;
|
|
904
904
|
}
|
|
905
|
-
[data-v-
|
|
905
|
+
[data-v-2b1d30d7] .van-popup .van-cell {
|
|
906
906
|
padding: 5px 25px;
|
|
907
907
|
}
|
package/build/widget.qw.es.js
CHANGED
|
@@ -22679,7 +22679,7 @@ const _sfc_main$1 = {
|
|
|
22679
22679
|
}
|
|
22680
22680
|
};
|
|
22681
22681
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e7bb4e5c"]]);
|
|
22682
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
22682
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-2b1d30d7] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-2b1d30d7] {\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-2b1d30d7] .van-field__label {\n margin: auto;\n}\n[data-v-2b1d30d7] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-2b1d30d7] .van-icon {\n font-size: 12px;\n}\n[data-v-2b1d30d7] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
|
|
22683
22683
|
const _hoisted_1 = {
|
|
22684
22684
|
class: "widget-box"
|
|
22685
22685
|
};
|
|
@@ -22910,9 +22910,9 @@ const _sfc_main = {
|
|
|
22910
22910
|
};
|
|
22911
22911
|
return (_ctx, _cache) => {
|
|
22912
22912
|
const _component_van_icon = resolveComponent("van-icon");
|
|
22913
|
-
const _component_van_field = resolveComponent("van-field");
|
|
22914
22913
|
const _component_van_switch = resolveComponent("van-switch");
|
|
22915
22914
|
const _component_ObjsEditor = resolveComponent("ObjsEditor", true);
|
|
22915
|
+
const _component_van_field = resolveComponent("van-field");
|
|
22916
22916
|
const _component_van_button = resolveComponent("van-button");
|
|
22917
22917
|
const _component_van_form = resolveComponent("van-form");
|
|
22918
22918
|
return !unref(isGone2) ? (openBlock(), createBlock(_component_van_field, {
|
|
@@ -22970,16 +22970,16 @@ const _sfc_main = {
|
|
|
22970
22970
|
}, {
|
|
22971
22971
|
input: withCtx(() => {
|
|
22972
22972
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
22973
|
-
return [props2.schema[key].type == "String" && !((_b = (_a = props2.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) ? (openBlock(), createBlock(
|
|
22973
|
+
return [props2.schema[key].type == "String" && !((_b = (_a = props2.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) ? (openBlock(), createBlock(Input, {
|
|
22974
22974
|
key: 0,
|
|
22975
|
-
|
|
22975
|
+
auth: props2.schema[key].auth,
|
|
22976
22976
|
modelValue: data2.inputValue[key],
|
|
22977
22977
|
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
22978
22978
|
placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
|
|
22979
22979
|
type: "text"
|
|
22980
|
-
}, null, 8, ["
|
|
22980
|
+
}, null, 8, ["auth", "modelValue", "onUpdate:modelValue", "placeholder"])) : createCommentVNode("", true), props2.schema[key].type == "Number" && !((_d = (_c = props2.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options) ? (openBlock(), createBlock(Input, {
|
|
22981
22981
|
key: 1,
|
|
22982
|
-
|
|
22982
|
+
auth: props2.schema[key].auth,
|
|
22983
22983
|
modelValue: data2.inputValue[key],
|
|
22984
22984
|
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
22985
22985
|
modelModifiers: {
|
|
@@ -22987,7 +22987,7 @@ const _sfc_main = {
|
|
|
22987
22987
|
},
|
|
22988
22988
|
placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
|
|
22989
22989
|
type: "number"
|
|
22990
|
-
}, null, 8, ["
|
|
22990
|
+
}, null, 8, ["auth", "modelValue", "onUpdate:modelValue", "placeholder"])) : createCommentVNode("", true), props2.schema[key].type == "Boolean" ? (openBlock(), createBlock(_component_van_switch, {
|
|
22991
22991
|
key: 2,
|
|
22992
22992
|
disabled: props2.schema[key].auth === "readonly",
|
|
22993
22993
|
modelValue: data2.inputValue[key],
|
|
@@ -23052,7 +23052,7 @@ const _sfc_main = {
|
|
|
23052
23052
|
};
|
|
23053
23053
|
}
|
|
23054
23054
|
};
|
|
23055
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
23055
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b1d30d7"]]);
|
|
23056
23056
|
const secret_notify = () => {
|
|
23057
23057
|
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 });
|
|
23058
23058
|
};
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -22682,7 +22682,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22682
22682
|
}
|
|
22683
22683
|
};
|
|
22684
22684
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e7bb4e5c"]]);
|
|
22685
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
22685
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-2b1d30d7] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-2b1d30d7] {\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-2b1d30d7] .van-field__label {\n margin: auto;\n}\n[data-v-2b1d30d7] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-2b1d30d7] .van-icon {\n font-size: 12px;\n}\n[data-v-2b1d30d7] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
|
|
22686
22686
|
const _hoisted_1 = {
|
|
22687
22687
|
class: "widget-box"
|
|
22688
22688
|
};
|
|
@@ -22913,9 +22913,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22913
22913
|
};
|
|
22914
22914
|
return (_ctx, _cache) => {
|
|
22915
22915
|
const _component_van_icon = vue.resolveComponent("van-icon");
|
|
22916
|
-
const _component_van_field = vue.resolveComponent("van-field");
|
|
22917
22916
|
const _component_van_switch = vue.resolveComponent("van-switch");
|
|
22918
22917
|
const _component_ObjsEditor = vue.resolveComponent("ObjsEditor", true);
|
|
22918
|
+
const _component_van_field = vue.resolveComponent("van-field");
|
|
22919
22919
|
const _component_van_button = vue.resolveComponent("van-button");
|
|
22920
22920
|
const _component_van_form = vue.resolveComponent("van-form");
|
|
22921
22921
|
return !vue.unref(isGone2) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
|
|
@@ -22973,16 +22973,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22973
22973
|
}, {
|
|
22974
22974
|
input: vue.withCtx(() => {
|
|
22975
22975
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
22976
|
-
return [props2.schema[key].type == "String" && !((_b = (_a = props2.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) ? (vue.openBlock(), vue.createBlock(
|
|
22976
|
+
return [props2.schema[key].type == "String" && !((_b = (_a = props2.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) ? (vue.openBlock(), vue.createBlock(Input, {
|
|
22977
22977
|
key: 0,
|
|
22978
|
-
|
|
22978
|
+
auth: props2.schema[key].auth,
|
|
22979
22979
|
modelValue: data2.inputValue[key],
|
|
22980
22980
|
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
22981
22981
|
placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
|
|
22982
22982
|
type: "text"
|
|
22983
|
-
}, null, 8, ["
|
|
22983
|
+
}, null, 8, ["auth", "modelValue", "onUpdate:modelValue", "placeholder"])) : vue.createCommentVNode("", true), props2.schema[key].type == "Number" && !((_d = (_c = props2.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options) ? (vue.openBlock(), vue.createBlock(Input, {
|
|
22984
22984
|
key: 1,
|
|
22985
|
-
|
|
22985
|
+
auth: props2.schema[key].auth,
|
|
22986
22986
|
modelValue: data2.inputValue[key],
|
|
22987
22987
|
"onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
|
|
22988
22988
|
modelModifiers: {
|
|
@@ -22990,7 +22990,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
22990
22990
|
},
|
|
22991
22991
|
placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
|
|
22992
22992
|
type: "number"
|
|
22993
|
-
}, null, 8, ["
|
|
22993
|
+
}, null, 8, ["auth", "modelValue", "onUpdate:modelValue", "placeholder"])) : vue.createCommentVNode("", true), props2.schema[key].type == "Boolean" ? (vue.openBlock(), vue.createBlock(_component_van_switch, {
|
|
22994
22994
|
key: 2,
|
|
22995
22995
|
disabled: props2.schema[key].auth === "readonly",
|
|
22996
22996
|
modelValue: data2.inputValue[key],
|
|
@@ -23055,7 +23055,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
23055
23055
|
};
|
|
23056
23056
|
}
|
|
23057
23057
|
};
|
|
23058
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
23058
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b1d30d7"]]);
|
|
23059
23059
|
const secret_notify = () => {
|
|
23060
23060
|
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 });
|
|
23061
23061
|
};
|
package/package.json
CHANGED
|
@@ -40,15 +40,16 @@
|
|
|
40
40
|
|
|
41
41
|
<template #input>
|
|
42
42
|
<!-- 根据字段的类型,显示对应的输入框 -->
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
:placeholder="`请输入${key2name(key)}`"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
:
|
|
51
|
-
v-model.number="data.inputValue[key]"
|
|
43
|
+
<Input v-if="props.schema[key].type == 'String' && !props.schema[key]?.schema?.options"
|
|
44
|
+
:auth="props.schema[key].auth"
|
|
45
|
+
v-model="data.inputValue[key]"
|
|
46
|
+
:placeholder="`请输入${key2name(key)}`"
|
|
47
|
+
type="text" />
|
|
48
|
+
|
|
49
|
+
<Input v-if="props.schema[key].type == 'Number' && !props.schema[key]?.schema?.options"
|
|
50
|
+
:auth="props.schema[key].auth"
|
|
51
|
+
v-model.number="data.inputValue[key]"
|
|
52
|
+
:placeholder="`请输入${key2name(key)}`"
|
|
52
53
|
type="number" />
|
|
53
54
|
|
|
54
55
|
<van-switch v-if="props.schema[key].type == 'Boolean'"
|
|
@@ -94,6 +95,7 @@ import util from '@/util'
|
|
|
94
95
|
import DatetimePicker from './DatetimePicker.vue'
|
|
95
96
|
import DateSelector from './data_selector.vue'
|
|
96
97
|
import ImagesPicker from './images_picker.vue'
|
|
98
|
+
import Input from './Input.vue'
|
|
97
99
|
|
|
98
100
|
const props = defineProps({
|
|
99
101
|
modelValue: {
|