widget.qw 1.0.72 → 1.0.73

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,14 +840,14 @@
840
840
  }
841
841
  .widget .readonly-field[data-v-0c8e09c0] {
842
842
  margin: 4px 0;
843
- }.widget[data-v-1fa437e7] {
843
+ }.widget[data-v-222a5036] {
844
844
  background: #fff;
845
845
  box-sizing: border-box;
846
846
  height: 100%;
847
847
  text-align: left;
848
848
  font-size: 12px;
849
849
  }
850
- .option[data-v-1fa437e7] {
850
+ .option[data-v-222a5036] {
851
851
  margin: 0 8px 8px 0;
852
852
  padding: 5px 10px;
853
853
  border-radius: 6px;
@@ -857,16 +857,16 @@
857
857
  display: inline-block;
858
858
  position: relative;
859
859
  }
860
- [data-v-1fa437e7] .van-field__label {
860
+ [data-v-222a5036] .van-field__label {
861
861
  margin: auto;
862
862
  }
863
- [data-v-1fa437e7] .van-cell {
863
+ [data-v-222a5036] .van-cell {
864
864
  font-size: 12px;
865
865
  padding: 5px 5px;
866
866
  }
867
- [data-v-1fa437e7] .van-icon {
867
+ [data-v-222a5036] .van-icon {
868
868
  font-size: 12px;
869
869
  }
870
- [data-v-1fa437e7] .van-popup .van-cell {
870
+ [data-v-222a5036] .van-popup .van-cell {
871
871
  padding: 5px 25px;
872
872
  }
@@ -21010,7 +21010,7 @@ const _sfc_main$1 = {
21010
21010
  }
21011
21011
  };
21012
21012
  var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
21013
- var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1fa437e7] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-1fa437e7] {\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-1fa437e7] .van-field__label {\n margin: auto;\n}\n[data-v-1fa437e7] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-1fa437e7] .van-icon {\n font-size: 12px;\n}\n[data-v-1fa437e7] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
21013
+ var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-222a5036] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-222a5036] {\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-222a5036] .van-field__label {\n margin: auto;\n}\n[data-v-222a5036] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-222a5036] .van-icon {\n font-size: 12px;\n}\n[data-v-222a5036] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
21014
21014
  const _hoisted_1 = {
21015
21015
  class: "widget-box"
21016
21016
  };
@@ -21286,12 +21286,14 @@ const _sfc_main = {
21286
21286
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
21287
21287
  return [props.schema[key].type == "String" && !((_b = (_a = props.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) ? (openBlock(), createBlock(_component_van_field, {
21288
21288
  key: 0,
21289
+ disabled: props.schema[key].auth === "readonly",
21289
21290
  modelValue: data2.inputValue[key],
21290
21291
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21291
21292
  placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
21292
21293
  type: "text"
21293
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : createCommentVNode("", true), props.schema[key].type == "Number" && !((_d = (_c = props.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options) ? (openBlock(), createBlock(_component_van_field, {
21294
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder"])) : createCommentVNode("", true), props.schema[key].type == "Number" && !((_d = (_c = props.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options) ? (openBlock(), createBlock(_component_van_field, {
21294
21295
  key: 1,
21296
+ disabled: props.schema[key].auth === "readonly",
21295
21297
  modelValue: data2.inputValue[key],
21296
21298
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21297
21299
  modelModifiers: {
@@ -21299,23 +21301,27 @@ const _sfc_main = {
21299
21301
  },
21300
21302
  placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
21301
21303
  type: "number"
21302
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : createCommentVNode("", true), props.schema[key].type == "Boolean" ? (openBlock(), createBlock(_component_van_switch, {
21304
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder"])) : createCommentVNode("", true), props.schema[key].type == "Boolean" ? (openBlock(), createBlock(_component_van_switch, {
21303
21305
  key: 2,
21306
+ disabled: props.schema[key].auth === "readonly",
21304
21307
  modelValue: data2.inputValue[key],
21305
21308
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event
21306
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), props.schema[key].type == "Datetime" ? (openBlock(), createBlock(_sfc_main$o, {
21309
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), props.schema[key].type == "Datetime" ? (openBlock(), createBlock(_sfc_main$o, {
21307
21310
  key: 3,
21311
+ auth: props.schema[key].auth,
21308
21312
  modelValue: data2.inputValue[key],
21309
21313
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21310
21314
  placeholder: "\u9009\u62E9\u65F6\u95F4"
21311
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), props.schema[key].type == "Images" ? (openBlock(), createBlock(ImagesPicker, {
21315
+ }, null, 8, ["auth", "modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), props.schema[key].type == "Images" ? (openBlock(), createBlock(ImagesPicker, {
21312
21316
  key: 4,
21317
+ auth: props.schema[key].auth,
21313
21318
  modelValue: data2.inputValue[key],
21314
21319
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event
21315
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), ((_f = (_e = props.schema[key]) == null ? void 0 : _e.schema) == null ? void 0 : _f.options) ? (openBlock(), createBlock(DataSelector, {
21320
+ }, null, 8, ["auth", "modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true), ((_f = (_e = props.schema[key]) == null ? void 0 : _e.schema) == null ? void 0 : _f.options) ? (openBlock(), createBlock(DataSelector, {
21316
21321
  key: 5,
21317
21322
  modelValue: data2.inputValue[key],
21318
21323
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21324
+ auth: props.schema[key].auth,
21319
21325
  options: (_h = (_g = props.schema[key]) == null ? void 0 : _g.schema) == null ? void 0 : _h.options,
21320
21326
  placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
21321
21327
  columnsFieldNames: {
@@ -21323,12 +21329,13 @@ const _sfc_main = {
21323
21329
  value: (((_l = (_k = props.schema[key]) == null ? void 0 : _k.schema) == null ? void 0 : _l.options) || []).length > 0 ? Object.keys(props.schema[key].schema.options[0])[1] : ""
21324
21330
  },
21325
21331
  onSelect: ($event) => onChangeOption(key)
21326
- }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "placeholder", "columnsFieldNames", "onSelect"])) : createCommentVNode("", true), props.schema[key].type == "Array" && props.schema[key].auth != "gone" ? (openBlock(), createBlock(_component_ObjsEditor, {
21332
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "auth", "options", "placeholder", "columnsFieldNames", "onSelect"])) : createCommentVNode("", true), props.schema[key].type == "Array" && props.schema[key].auth != "gone" ? (openBlock(), createBlock(_component_ObjsEditor, {
21327
21333
  key: 6,
21334
+ auth: props.schema[key].auth,
21328
21335
  modelValue: data2.inputValue[key],
21329
21336
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21330
21337
  schema: props.schema[key].schema
21331
- }, null, 8, ["modelValue", "onUpdate:modelValue", "schema"])) : createCommentVNode("", true)];
21338
+ }, null, 8, ["auth", "modelValue", "onUpdate:modelValue", "schema"])) : createCommentVNode("", true)];
21332
21339
  }),
21333
21340
  _: 2
21334
21341
  }, 1032, ["label", "required", "disabled"])), [[vShow, props.schema[key].auth != "gone"]]);
@@ -21359,7 +21366,7 @@ const _sfc_main = {
21359
21366
  };
21360
21367
  }
21361
21368
  };
21362
- var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1fa437e7"]]);
21369
+ var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-222a5036"]]);
21363
21370
  const secret_notify = () => {
21364
21371
  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 });
21365
21372
  };
@@ -21013,7 +21013,7 @@ var __async = (__this, __arguments, generator) => {
21013
21013
  }
21014
21014
  };
21015
21015
  var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-0c8e09c0"]]);
21016
- var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1fa437e7] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-1fa437e7] {\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-1fa437e7] .van-field__label {\n margin: auto;\n}\n[data-v-1fa437e7] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-1fa437e7] .van-icon {\n font-size: 12px;\n}\n[data-v-1fa437e7] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
21016
+ var ObjsEditor_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-222a5036] {\n background: #fff;\n box-sizing: border-box;\n height: 100%;\n text-align: left;\n font-size: 12px;\n}\n.option[data-v-222a5036] {\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-222a5036] .van-field__label {\n margin: auto;\n}\n[data-v-222a5036] .van-cell {\n font-size: 12px;\n padding: 5px 5px;\n}\n[data-v-222a5036] .van-icon {\n font-size: 12px;\n}\n[data-v-222a5036] .van-popup .van-cell {\n padding: 5px 25px;\n}")();
21017
21017
  const _hoisted_1 = {
21018
21018
  class: "widget-box"
21019
21019
  };
@@ -21289,12 +21289,14 @@ var __async = (__this, __arguments, generator) => {
21289
21289
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
21290
21290
  return [props.schema[key].type == "String" && !((_b = (_a = props.schema[key]) == null ? void 0 : _a.schema) == null ? void 0 : _b.options) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
21291
21291
  key: 0,
21292
+ disabled: props.schema[key].auth === "readonly",
21292
21293
  modelValue: data2.inputValue[key],
21293
21294
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21294
21295
  placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
21295
21296
  type: "text"
21296
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : vue.createCommentVNode("", true), props.schema[key].type == "Number" && !((_d = (_c = props.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
21297
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder"])) : vue.createCommentVNode("", true), props.schema[key].type == "Number" && !((_d = (_c = props.schema[key]) == null ? void 0 : _c.schema) == null ? void 0 : _d.options) ? (vue.openBlock(), vue.createBlock(_component_van_field, {
21297
21298
  key: 1,
21299
+ disabled: props.schema[key].auth === "readonly",
21298
21300
  modelValue: data2.inputValue[key],
21299
21301
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21300
21302
  modelModifiers: {
@@ -21302,23 +21304,27 @@ var __async = (__this, __arguments, generator) => {
21302
21304
  },
21303
21305
  placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
21304
21306
  type: "number"
21305
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : vue.createCommentVNode("", true), props.schema[key].type == "Boolean" ? (vue.openBlock(), vue.createBlock(_component_van_switch, {
21307
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "placeholder"])) : vue.createCommentVNode("", true), props.schema[key].type == "Boolean" ? (vue.openBlock(), vue.createBlock(_component_van_switch, {
21306
21308
  key: 2,
21309
+ disabled: props.schema[key].auth === "readonly",
21307
21310
  modelValue: data2.inputValue[key],
21308
21311
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event
21309
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("", true), props.schema[key].type == "Datetime" ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
21312
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("", true), props.schema[key].type == "Datetime" ? (vue.openBlock(), vue.createBlock(_sfc_main$o, {
21310
21313
  key: 3,
21314
+ auth: props.schema[key].auth,
21311
21315
  modelValue: data2.inputValue[key],
21312
21316
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21313
21317
  placeholder: "\u9009\u62E9\u65F6\u95F4"
21314
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("", true), props.schema[key].type == "Images" ? (vue.openBlock(), vue.createBlock(ImagesPicker, {
21318
+ }, null, 8, ["auth", "modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("", true), props.schema[key].type == "Images" ? (vue.openBlock(), vue.createBlock(ImagesPicker, {
21315
21319
  key: 4,
21320
+ auth: props.schema[key].auth,
21316
21321
  modelValue: data2.inputValue[key],
21317
21322
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event
21318
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("", true), ((_f = (_e = props.schema[key]) == null ? void 0 : _e.schema) == null ? void 0 : _f.options) ? (vue.openBlock(), vue.createBlock(DataSelector, {
21323
+ }, null, 8, ["auth", "modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("", true), ((_f = (_e = props.schema[key]) == null ? void 0 : _e.schema) == null ? void 0 : _f.options) ? (vue.openBlock(), vue.createBlock(DataSelector, {
21319
21324
  key: 5,
21320
21325
  modelValue: data2.inputValue[key],
21321
21326
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21327
+ auth: props.schema[key].auth,
21322
21328
  options: (_h = (_g = props.schema[key]) == null ? void 0 : _g.schema) == null ? void 0 : _h.options,
21323
21329
  placeholder: `\u8BF7\u8F93\u5165${key2name(key)}`,
21324
21330
  columnsFieldNames: {
@@ -21326,12 +21332,13 @@ var __async = (__this, __arguments, generator) => {
21326
21332
  value: (((_l = (_k = props.schema[key]) == null ? void 0 : _k.schema) == null ? void 0 : _l.options) || []).length > 0 ? Object.keys(props.schema[key].schema.options[0])[1] : ""
21327
21333
  },
21328
21334
  onSelect: ($event) => onChangeOption(key)
21329
- }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "placeholder", "columnsFieldNames", "onSelect"])) : vue.createCommentVNode("", true), props.schema[key].type == "Array" && props.schema[key].auth != "gone" ? (vue.openBlock(), vue.createBlock(_component_ObjsEditor, {
21335
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "auth", "options", "placeholder", "columnsFieldNames", "onSelect"])) : vue.createCommentVNode("", true), props.schema[key].type == "Array" && props.schema[key].auth != "gone" ? (vue.openBlock(), vue.createBlock(_component_ObjsEditor, {
21330
21336
  key: 6,
21337
+ auth: props.schema[key].auth,
21331
21338
  modelValue: data2.inputValue[key],
21332
21339
  "onUpdate:modelValue": ($event) => data2.inputValue[key] = $event,
21333
21340
  schema: props.schema[key].schema
21334
- }, null, 8, ["modelValue", "onUpdate:modelValue", "schema"])) : vue.createCommentVNode("", true)];
21341
+ }, null, 8, ["auth", "modelValue", "onUpdate:modelValue", "schema"])) : vue.createCommentVNode("", true)];
21335
21342
  }),
21336
21343
  _: 2
21337
21344
  }, 1032, ["label", "required", "disabled"])), [[vue.vShow, props.schema[key].auth != "gone"]]);
@@ -21362,7 +21369,7 @@ var __async = (__this, __arguments, generator) => {
21362
21369
  };
21363
21370
  }
21364
21371
  };
21365
- var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1fa437e7"]]);
21372
+ var ObjsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-222a5036"]]);
21366
21373
  const secret_notify = () => {
21367
21374
  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 });
21368
21375
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.0.72",
4
+ "version": "1.0.73",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -12,7 +12,7 @@
12
12
  {{ `${key2name(k)}:${key2value(k, item)}` }}
13
13
  </div>
14
14
  <div v-else>
15
- <ImagesPicker v-model="item[k]" readonly/>
15
+ <ImagesPicker v-model="item[k]" readonly />
16
16
  </div>
17
17
  </div>
18
18
  </div>
@@ -38,30 +38,34 @@
38
38
  <template #input>
39
39
  <van-field
40
40
  v-if="props.schema[key].type == 'String' && !props.schema[key]?.schema?.options"
41
- v-model="data.inputValue[key]" :placeholder="`请输入${key2name(key)}`" type="text" />
41
+ :disabled="props.schema[key].auth === 'readonly'" v-model="data.inputValue[key]"
42
+ :placeholder="`请输入${key2name(key)}`" type="text" />
42
43
 
43
44
  <van-field
44
45
  v-if="props.schema[key].type == 'Number' && !props.schema[key]?.schema?.options"
46
+ :disabled="props.schema[key].auth === 'readonly'"
45
47
  v-model.number="data.inputValue[key]" :placeholder="`请输入${key2name(key)}`"
46
48
  type="number" />
47
49
 
48
- <van-switch v-if="props.schema[key].type == 'Boolean'" v-model="data.inputValue[key]" />
50
+ <van-switch v-if="props.schema[key].type == 'Boolean'"
51
+ :disabled="props.schema[key].auth === 'readonly'" v-model="data.inputValue[key]" />
49
52
 
50
53
  <DatetimePicker v-if="props.schema[key].type == 'Datetime'"
51
- v-model="data.inputValue[key]" placeholder="选择时间" />
54
+ :auth="props.schema[key].auth" v-model="data.inputValue[key]" placeholder="选择时间" />
52
55
 
53
- <ImagesPicker v-if="props.schema[key].type == 'Images'"
56
+ <ImagesPicker v-if="props.schema[key].type == 'Images'" :auth="props.schema[key].auth"
54
57
  v-model="data.inputValue[key]" />
55
58
 
56
59
  <DateSelector v-if="props.schema[key]?.schema?.options" v-model="data.inputValue[key]"
57
- :options="props.schema[key]?.schema?.options" :placeholder="`请输入${key2name(key)}`"
58
- :columnsFieldNames="{
60
+ :auth="props.schema[key].auth" :options="props.schema[key]?.schema?.options"
61
+ :placeholder="`请输入${key2name(key)}`" :columnsFieldNames="{
59
62
  text: (props.schema[key]?.schema?.options || []).length > 0 ? Object.keys(props.schema[key].schema.options[0])[0] : '',
60
63
  value: (props.schema[key]?.schema?.options || []).length > 0 ? Object.keys(props.schema[key].schema.options[0])[1] : ''
61
64
  }" @select="onChangeOption(key)" />
62
65
 
63
66
  <ObjsEditor v-if="props.schema[key].type == 'Array' && props.schema[key].auth != 'gone'"
64
- v-model="data.inputValue[key]" :schema="props.schema[key].schema" />
67
+ :auth="props.schema[key].auth" v-model="data.inputValue[key]"
68
+ :schema="props.schema[key].schema" />
65
69
  </template>
66
70
  </van-field>
67
71
 
package/src/env.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- /// <reference types="vite/client" />
2
-
3
- declare module '*.vue' {
4
- import type { DefineComponent } from 'vue'
5
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
6
- const component: DefineComponent<{}, {}, any>
7
- export default component
8
- }
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module '*.vue' {
4
+ import type { DefineComponent } from 'vue'
5
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
6
+ const component: DefineComponent<{}, {}, any>
7
+ export default component
8
+ }
Binary file
@@ -51,7 +51,7 @@ const data = reactive({
51
51
  label: '数量',
52
52
  type: 'Number',
53
53
  default: 1,
54
- auth: 'required',
54
+ auth: 'readonly',
55
55
  },
56
56
  images: {
57
57
  label: '图片',
package/tsconfig.json CHANGED
@@ -1,19 +1,19 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "useDefineForClassFields": true,
5
- "module": "esnext",
6
- "moduleResolution": "node",
7
- "strict": true,
8
- "jsx": "preserve",
9
- "sourceMap": true,
10
- "resolveJsonModule": true,
11
- "isolatedModules": true,
12
- "esModuleInterop": true,
13
- "lib": ["esnext", "dom"],
14
- "skipLibCheck": true,
15
- "allowJs": true,
16
- },
17
- "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
18
- "references": [{ "path": "./tsconfig.node.json" }]
19
- }
1
+ {
2
+ "compilerOptions": {
3
+ "target": "esnext",
4
+ "useDefineForClassFields": true,
5
+ "module": "esnext",
6
+ "moduleResolution": "node",
7
+ "strict": true,
8
+ "jsx": "preserve",
9
+ "sourceMap": true,
10
+ "resolveJsonModule": true,
11
+ "isolatedModules": true,
12
+ "esModuleInterop": true,
13
+ "lib": ["esnext", "dom"],
14
+ "skipLibCheck": true,
15
+ "allowJs": true,
16
+ },
17
+ "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
18
+ "references": [{ "path": "./tsconfig.node.json" }]
19
+ }
@@ -1,8 +1,8 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "module": "esnext",
5
- "moduleResolution": "node"
6
- },
7
- "include": ["vite.config.ts"]
8
- }
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "module": "esnext",
5
+ "moduleResolution": "node"
6
+ },
7
+ "include": ["vite.config.ts"]
8
+ }