widget.qw 1.0.60 → 1.0.62
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
CHANGED
|
@@ -840,13 +840,7 @@
|
|
|
840
840
|
}
|
|
841
841
|
.widget .readonly-field[data-v-0c8e09c0] {
|
|
842
842
|
margin: 4px 0;
|
|
843
|
-
}.
|
|
844
|
-
background: #fff;
|
|
845
|
-
box-sizing: border-box;
|
|
846
|
-
height: 100%;
|
|
847
|
-
text-align: left;
|
|
848
|
-
}
|
|
849
|
-
.widget .option[data-v-b711cbee] {
|
|
843
|
+
}.option[data-v-91e049d6] {
|
|
850
844
|
margin: 0 8px 8px 0;
|
|
851
845
|
padding: 5px 5px;
|
|
852
846
|
border-radius: 4px;
|
|
@@ -855,6 +849,6 @@
|
|
|
855
849
|
display: inline-block;
|
|
856
850
|
position: relative;
|
|
857
851
|
}
|
|
858
|
-
[data-v-
|
|
852
|
+
[data-v-91e049d6] .van-field__label {
|
|
859
853
|
margin: auto;
|
|
860
854
|
}
|
package/build/widget.qw.es.js
CHANGED
|
@@ -20946,7 +20946,7 @@ const _sfc_main$1 = {
|
|
|
20946
20946
|
}
|
|
20947
20947
|
};
|
|
20948
20948
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
|
|
20949
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".
|
|
20949
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".option[data-v-91e049d6] {\n margin: 0 8px 8px 0;\n padding: 5px 5px;\n border-radius: 4px;\n background-color: rgb(217, 236, 255);\n color: #409eff;\n display: inline-block;\n position: relative;\n}\n[data-v-91e049d6] .van-field__label {\n margin: auto;\n}")();
|
|
20950
20950
|
const _hoisted_1 = {
|
|
20951
20951
|
style: {
|
|
20952
20952
|
"display": "flex",
|
|
@@ -21000,7 +21000,7 @@ const _sfc_main = {
|
|
|
21000
21000
|
},
|
|
21001
21001
|
auth: {
|
|
21002
21002
|
type: String,
|
|
21003
|
-
default: ""
|
|
21003
|
+
default: "option"
|
|
21004
21004
|
},
|
|
21005
21005
|
schema: {
|
|
21006
21006
|
type: Object,
|
|
@@ -21268,7 +21268,7 @@ const _sfc_main = {
|
|
|
21268
21268
|
};
|
|
21269
21269
|
}
|
|
21270
21270
|
};
|
|
21271
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
21271
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-91e049d6"]]);
|
|
21272
21272
|
const secret_notify = () => {
|
|
21273
21273
|
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 });
|
|
21274
21274
|
};
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -20949,7 +20949,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20949
20949
|
}
|
|
20950
20950
|
};
|
|
20951
20951
|
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
|
|
20952
|
-
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".
|
|
20952
|
+
var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".option[data-v-91e049d6] {\n margin: 0 8px 8px 0;\n padding: 5px 5px;\n border-radius: 4px;\n background-color: rgb(217, 236, 255);\n color: #409eff;\n display: inline-block;\n position: relative;\n}\n[data-v-91e049d6] .van-field__label {\n margin: auto;\n}")();
|
|
20953
20953
|
const _hoisted_1 = {
|
|
20954
20954
|
style: {
|
|
20955
20955
|
"display": "flex",
|
|
@@ -21003,7 +21003,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21003
21003
|
},
|
|
21004
21004
|
auth: {
|
|
21005
21005
|
type: String,
|
|
21006
|
-
default: ""
|
|
21006
|
+
default: "option"
|
|
21007
21007
|
},
|
|
21008
21008
|
schema: {
|
|
21009
21009
|
type: Object,
|
|
@@ -21271,7 +21271,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
21271
21271
|
};
|
|
21272
21272
|
}
|
|
21273
21273
|
};
|
|
21274
|
-
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
21274
|
+
var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-91e049d6"]]);
|
|
21275
21275
|
const secret_notify = () => {
|
|
21276
21276
|
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 });
|
|
21277
21277
|
};
|
package/package.json
CHANGED
|
@@ -12,16 +12,21 @@
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
14
|
<div style="display: flex;flex-direction:column;cursor: pointer;">
|
|
15
|
-
<van-icon name="edit"
|
|
15
|
+
<van-icon name="edit"
|
|
16
|
+
v-if="props.schema.auth != 'readonly' && props.auth != 'readonly' && props.auth != 'disabled'"
|
|
17
|
+
@click.stop="onEdit(index)" />
|
|
16
18
|
|
|
17
19
|
<van-icon name="arrow" @click.stop="onBack(index)" style="margin:8px 0" />
|
|
18
20
|
|
|
19
|
-
<van-icon name="cross"
|
|
21
|
+
<van-icon name="cross"
|
|
22
|
+
v-if="props.schema.auth != 'readonly' && props.auth != 'readonly' && props.auth != 'disabled'"
|
|
23
|
+
@click.stop="onDelete(index)" />
|
|
20
24
|
</div>
|
|
21
25
|
</div>
|
|
22
26
|
</div>
|
|
23
27
|
|
|
24
|
-
<van-icon name="plus" v-if="!data.isShowInput && props.auth!='readonly' && props.auth!='disabled'"
|
|
28
|
+
<van-icon name="plus" v-if="!data.isShowInput && props.auth != 'readonly' && props.auth != 'disabled'"
|
|
29
|
+
@click="onNewOption" />
|
|
25
30
|
|
|
26
31
|
<van-form v-if="data.isShowInput" :model="data.inputValue">
|
|
27
32
|
<van-field v-for="(key, i) in keys" :key="i" :label="props.schema[key].label"
|
|
@@ -93,7 +98,7 @@ const props = defineProps({
|
|
|
93
98
|
},
|
|
94
99
|
auth: {
|
|
95
100
|
type: String,
|
|
96
|
-
default: ''
|
|
101
|
+
default: 'option'
|
|
97
102
|
},
|
|
98
103
|
schema: {
|
|
99
104
|
type: Object,
|
|
@@ -261,22 +266,14 @@ const onChangeOption = (key) => {
|
|
|
261
266
|
</script>
|
|
262
267
|
|
|
263
268
|
<style lang="scss" scoped>
|
|
264
|
-
.
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
padding: 5px 5px;
|
|
273
|
-
border-radius: 4px;
|
|
274
|
-
background-color: rgb(217, 236, 255);
|
|
275
|
-
color: #409eff;
|
|
276
|
-
display: inline-block;
|
|
277
|
-
position: relative;
|
|
278
|
-
}
|
|
279
|
-
|
|
269
|
+
.option {
|
|
270
|
+
margin: 0 8px 8px 0;
|
|
271
|
+
padding: 5px 5px;
|
|
272
|
+
border-radius: 4px;
|
|
273
|
+
background-color: rgb(217, 236, 255);
|
|
274
|
+
color: #409eff;
|
|
275
|
+
display: inline-block;
|
|
276
|
+
position: relative;
|
|
280
277
|
}
|
|
281
278
|
|
|
282
279
|
:deep(.van-field__label) {
|