@web-utils/component 2.7.13 → 2.7.14

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.
Files changed (110) hide show
  1. package/dist/chunks/{ConfigSelect.vue_vue_type_template_lang.e7a9d5b7.js → ConfigSelect.vue_vue_type_template_lang.dfc91f07.js} +20 -15
  2. package/dist/chunks/{ConfigTable.vue_vue_type_template_lang.e9060616.js → ConfigTable.vue_vue_type_template_lang.b27540fd.js} +1 -1
  3. package/dist/chunks/{ConfigUpload.vue_vue_type_template_lang.48dd814b.js → ConfigUpload.vue_vue_type_template_lang.129c0ced.js} +18 -13
  4. package/dist/chunks/{WidgetConfig.vue_vue_type_template_lang.7928c468.js → WidgetConfig.vue_vue_type_template_lang.3cc74fe8.js} +16 -16
  5. package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.e3e800a6.js → WidgetForm.vue_vue_type_template_lang.d4b05679.js} +10 -10
  6. package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.6a693e5e.js → WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js} +13 -13
  7. package/dist/chunks/{WidgetFormTable.vue_vue_type_template_lang.291bf39a.js → WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js} +3 -2
  8. package/dist/chunks/{dataformat.d3fd2d1b.js → dataformat.65b92bfe.js} +36 -35
  9. package/dist/chunks/detail.d67573b1.js +28 -0
  10. package/dist/chunks/dic.70feb9b4.js +135 -0
  11. package/dist/chunks/{event.43b42228.js → event.dd6f522d.js} +3 -3
  12. package/dist/chunks/{init.3b47bb80.js → init.7c58eb34.js} +10 -10
  13. package/dist/chunks/{monaco.1dbdc960.js → monaco.cefcb9f5.js} +92 -85
  14. package/dist/chunks/{packages.6f252850.js → packages.1fc9ccba.js} +1 -1
  15. package/dist/chunks/slot.4b391395.js +27 -0
  16. package/dist/chunks/util.23fe58fb.js +261 -0
  17. package/dist/components/afd-column/index.js +1 -1
  18. package/dist/components/affix/index.js +2 -2
  19. package/dist/components/base.css +1 -1
  20. package/dist/components/carousel/index.js +2 -2
  21. package/dist/components/chat/index.js +9 -9
  22. package/dist/components/column/index.js +25 -25
  23. package/dist/components/column-default/index.js +3 -2
  24. package/dist/components/column-dynamic/index.js +1 -1
  25. package/dist/components/column-menu/index.js +11 -11
  26. package/dist/components/column-slot/index.js +54 -53
  27. package/dist/components/config-custom/index.js +3 -3
  28. package/dist/components/config-event/index.js +5 -5
  29. package/dist/components/config-rate/index.js +1 -1
  30. package/dist/components/config-rate/style.css +1 -1
  31. package/dist/components/config-select/index.js +3 -3
  32. package/dist/components/config-switch/index.js +5 -5
  33. package/dist/components/config-switch/style.css +1 -1
  34. package/dist/components/config-table/index.js +3 -3
  35. package/dist/components/config-tree/index.js +3 -3
  36. package/dist/components/config-tree/style.css +1 -1
  37. package/dist/components/config-upload/index.js +1 -1
  38. package/dist/components/dialog-excel/index.js +37 -40
  39. package/dist/components/dialog-filter/index.js +19 -19
  40. package/dist/components/dialog-form/index.js +1 -1
  41. package/dist/components/element-dialog/index.js +2 -2
  42. package/dist/components/element-dialog/style.css +1 -1
  43. package/dist/components/flow/index.js +17 -18
  44. package/dist/components/flow-node/index.js +1 -1
  45. package/dist/components/form-temp/index.js +3 -3
  46. package/dist/components/fy-array/index.js +2 -2
  47. package/dist/components/fy-cascader/index.js +13 -13
  48. package/dist/components/fy-checkbox/index.js +4 -4
  49. package/dist/components/fy-code/index.js +1 -1
  50. package/dist/components/fy-curd/index.js +68 -69
  51. package/dist/components/fy-date/index.js +1 -1
  52. package/dist/components/fy-dialog-form/index.js +11 -11
  53. package/dist/components/fy-draggable/index.js +5 -7
  54. package/dist/components/fy-dynamic/index.js +32 -28
  55. package/dist/components/fy-empty/index.js +1 -1
  56. package/dist/components/fy-form/index.js +153 -141
  57. package/dist/components/fy-form-design/index.js +31 -31
  58. package/dist/components/fy-input/index.js +60 -46
  59. package/dist/components/fy-input-color/index.js +34 -29
  60. package/dist/components/fy-input-icon/index.js +1 -1
  61. package/dist/components/fy-input-map/index.js +14 -14
  62. package/dist/components/fy-input-number/index.js +1 -1
  63. package/dist/components/fy-input-table/index.js +2 -2
  64. package/dist/components/fy-input-tree/index.js +12 -12
  65. package/dist/components/fy-radio/index.js +1 -1
  66. package/dist/components/fy-rate/index.js +1 -1
  67. package/dist/components/fy-select/index.js +3 -3
  68. package/dist/components/fy-slider/index.js +2 -2
  69. package/dist/components/fy-switch/index.js +1 -1
  70. package/dist/components/fy-tabs/index.js +2 -2
  71. package/dist/components/fy-time/index.js +2 -2
  72. package/dist/components/fy-title/index.js +1 -1
  73. package/dist/components/fy-tree/index.js +3 -3
  74. package/dist/components/fy-u-editor/index.js +26 -24
  75. package/dist/components/fy-upload/index.js +146 -282
  76. package/dist/components/header-menu/index.js +2 -2
  77. package/dist/components/header-search/index.js +16 -15
  78. package/dist/components/image-cropper/index.js +299 -0
  79. package/dist/components/image-cropper/style.css +1 -0
  80. package/dist/components/image-preview/index.js +346 -0
  81. package/dist/components/image-preview/style.css +1 -0
  82. package/dist/components/keyboard/index.js +58 -63
  83. package/dist/components/license/index.js +7 -7
  84. package/dist/components/login/index.js +37 -32
  85. package/dist/components/name-avatar/index.js +1 -1
  86. package/dist/components/pageable-table/index.js +1 -1
  87. package/dist/components/pageable-view/index.js +26 -26
  88. package/dist/components/photo-swipe/index.js +71 -166
  89. package/dist/components/queue/index.js +6 -6
  90. package/dist/components/record-video/index.js +18 -18
  91. package/dist/components/search/index.js +3 -3
  92. package/dist/components/sign/index.js +64 -59
  93. package/dist/components/skeleton/index.js +1 -1
  94. package/dist/components/table-page/index.js +5 -5
  95. package/dist/components/text-ellipsis/index.js +11 -10
  96. package/dist/components/verify/index.js +25 -25
  97. package/dist/components/widget-config/index.js +8 -8
  98. package/dist/components/widget-form/index.js +7 -7
  99. package/dist/components/widget-form-group/index.js +8 -8
  100. package/dist/components/widget-form-item/index.js +14 -13
  101. package/dist/components/widget-form-table/index.js +14 -14
  102. package/dist/index.css +109 -40
  103. package/dist/index.es.js +4048 -3732
  104. package/package.json +5 -56
  105. package/web-types.json +28 -10
  106. package/dist/chunks/detail.ac4d421a.js +0 -28
  107. package/dist/chunks/dic.79d9f595.js +0 -133
  108. package/dist/chunks/slot.1b8d2b1b.js +0 -27
  109. package/dist/chunks/util.80e28481.js +0 -250
  110. package/dist/components/photo-swipe/style.css +0 -1
@@ -271,18 +271,23 @@ var c = function() {
271
271
  attrs: {
272
272
  label: "是否可拖拽",
273
273
  "label-width": "110px"
274
- }
275
- }, [t("template", {
276
- slot: "label"
277
- }, [t("ElLink", {
278
- attrs: {
279
- underline: !1,
280
- href: "https://avuejs.com/form/form-select.html#%E6%8B%96%E6%8B%BD",
281
- target: "_blank"
282
- }
283
- }, [a._v(" 是否可拖拽 "), t("i", {
284
- staticClass: "el-icon-question"
285
- })])], 1), t("ElSwitch", {
274
+ },
275
+ scopedSlots: a._u([{
276
+ key: "label",
277
+ fn: function() {
278
+ return [t("ElLink", {
279
+ attrs: {
280
+ underline: !1,
281
+ href: "https://avuejs.com/form/form-select.html#%E6%8B%96%E6%8B%BD",
282
+ target: "_blank"
283
+ }
284
+ }, [a._v(" 是否可拖拽 "), t("i", {
285
+ staticClass: "el-icon-question"
286
+ })])];
287
+ },
288
+ proxy: !0
289
+ }], null, !1, 2120444940)
290
+ }, [t("ElSwitch", {
286
291
  model: {
287
292
  value: a.data.drag,
288
293
  callback: function(e) {
@@ -290,7 +295,7 @@ var c = function() {
290
295
  },
291
296
  expression: "data.drag"
292
297
  }
293
- })], 2) : a._e(), a.data.multiple ? t("ElFormItem", {
298
+ })], 1) : a._e(), a.data.multiple ? t("ElFormItem", {
294
299
  attrs: {
295
300
  label: "多选数量限制",
296
301
  "label-width": "110px"
@@ -476,8 +481,8 @@ var c = function() {
476
481
  label: "mini"
477
482
  }
478
483
  }, [a._v(" 超小 ")])], 1)], 1) : a._e()], 2);
479
- }, d = [];
484
+ }, r = [];
480
485
  export {
481
486
  c as r,
482
- d as s
487
+ r as s
483
488
  };
@@ -1,5 +1,5 @@
1
1
  import { s as o, r as s, f as n } from "./AfdColumn.vue_vue_type_template_lang.768f2ed2.js";
2
- import { d } from "./util.80e28481.js";
2
+ import { d } from "./util.23fe58fb.js";
3
3
  import { n as i } from "./vueComponentNormalizer.71e2aa87.js";
4
4
  const c = {
5
5
  name: "AfdColumn",
@@ -36,18 +36,23 @@ var s = function() {
36
36
  })], 1), t("ElFormItem", {
37
37
  attrs: {
38
38
  label: "OSS"
39
- }
40
- }, [t("template", {
41
- slot: "label"
42
- }, [t("ElLink", {
43
- attrs: {
44
- underline: !1,
45
- href: "https://avuejs.com/form/form-upload.html#%E9%98%BF%E9%87%8C%E4%BA%91oss%E4%B8%8A%E4%BC%A0",
46
- target: "_blank"
47
- }
48
- }, [a._v(" OSS "), t("i", {
49
- staticClass: "el-icon-question"
50
- })])], 1), t("ElSelect", {
39
+ },
40
+ scopedSlots: a._u([{
41
+ key: "label",
42
+ fn: function() {
43
+ return [t("ElLink", {
44
+ attrs: {
45
+ underline: !1,
46
+ href: "https://avuejs.com/form/form-upload.html#%E9%98%BF%E9%87%8C%E4%BA%91oss%E4%B8%8A%E4%BC%A0",
47
+ target: "_blank"
48
+ }
49
+ }, [a._v(" OSS "), t("i", {
50
+ staticClass: "el-icon-question"
51
+ })])];
52
+ },
53
+ proxy: !0
54
+ }])
55
+ }, [t("ElSelect", {
51
56
  staticStyle: {
52
57
  width: "100%"
53
58
  },
@@ -72,7 +77,7 @@ var s = function() {
72
77
  label: "七牛",
73
78
  value: "qiniu"
74
79
  }
75
- })], 1)], 2), t("ElFormItem", {
80
+ })], 1)], 1), t("ElFormItem", {
76
81
  attrs: {
77
82
  label: "拖拽上传",
78
83
  "label-width": "110px"
@@ -1,4 +1,4 @@
1
- import { M as MonacoEditor } from "./monaco.1dbdc960.js";
1
+ import { M as MonacoEditor } from "./monaco.cefcb9f5.js";
2
2
  import { s as staticRenderFns$1, r as render$1 } from "./ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js";
3
3
  import { n as normalizeComponent } from "./vueComponentNormalizer.71e2aa87.js";
4
4
  import { s as staticRenderFns$2, r as render$2 } from "./ConfigInput.vue_vue_type_template_lang.cc1eb052.js";
@@ -10,17 +10,17 @@ import { s as staticRenderFns$7, r as render$7 } from "./ConfigRate.vue_vue_type
10
10
  import { s as staticRenderFns$8, r as render$8 } from "./ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js";
11
11
  import { s as staticRenderFns$9, r as render$9 } from "./ConfigColor.vue_vue_type_template_lang.cd880091.js";
12
12
  import Draggable from "vuedraggable";
13
- import { s as staticRenderFns$a, r as render$a } from "./ConfigSelect.vue_vue_type_template_lang.e7a9d5b7.js";
13
+ import { s as staticRenderFns$a, r as render$a } from "./ConfigSelect.vue_vue_type_template_lang.dfc91f07.js";
14
14
  import { s as staticRenderFns$b, r as render$b } from "./ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.89ec5376.js";
15
15
  import { s as staticRenderFns$c, r as render$c } from "./ConfigDate.vue_vue_type_template_lang.116fbad4.js";
16
- import { s as staticRenderFns$d, r as render$d } from "./ConfigUpload.vue_vue_type_template_lang.48dd814b.js";
16
+ import { s as staticRenderFns$d, r as render$d } from "./ConfigUpload.vue_vue_type_template_lang.129c0ced.js";
17
17
  import { s as staticRenderFns$e, r as render$e } from "./ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js";
18
18
  import { s as staticRenderFns$f, r as render$f } from "./ConfigMap.vue_vue_type_template_lang.daee4d38.js";
19
19
  import { s as staticRenderFns$g, r as render$g } from "./ConfigGroup.vue_vue_type_template_lang.44117322.js";
20
20
  import { s as staticRenderFns$h, r as render$h } from "./ConfigArray.vue_vue_type_template_lang.66483daa.js";
21
21
  import { s as staticRenderFns$i, r as render$i } from "./ConfigTitle.vue_vue_type_template_lang.57d9deb5.js";
22
22
  import { s as staticRenderFns$j, r as render$j } from "./ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js";
23
- import { s as staticRenderFns$k, r as render$k, A as AfdColumn } from "./ConfigTable.vue_vue_type_template_lang.e9060616.js";
23
+ import { s as staticRenderFns$k, r as render$k, A as AfdColumn } from "./ConfigTable.vue_vue_type_template_lang.b27540fd.js";
24
24
  const fields = [
25
25
  {
26
26
  title: "布局字段",
@@ -454,13 +454,13 @@ const fields = [
454
454
  },
455
455
  params(val) {
456
456
  try {
457
- this.data.params = eval("(" + val + ")");
457
+ this.data.params = eval(`(${val})`);
458
458
  } catch (t) {
459
459
  }
460
460
  },
461
461
  event(val) {
462
462
  try {
463
- this.data.event = eval("(" + val + ")");
463
+ this.data.event = eval(`(${val})`);
464
464
  } catch (t) {
465
465
  }
466
466
  }
@@ -588,7 +588,7 @@ var __component__$e = /* @__PURE__ */ normalizeComponent(
588
588
  staticRenderFns$6,
589
589
  !1,
590
590
  __vue2_injectStyles$e,
591
- "6adc7180",
591
+ "2c9c8280",
592
592
  null,
593
593
  null
594
594
  );
@@ -653,7 +653,7 @@ var __component__$d = /* @__PURE__ */ normalizeComponent(
653
653
  staticRenderFns$7,
654
654
  !1,
655
655
  __vue2_injectStyles$d,
656
- "110d9f36",
656
+ "64e64f97",
657
657
  null,
658
658
  null
659
659
  );
@@ -739,7 +739,7 @@ const ConfigColor = /* @__PURE__ */ function() {
739
739
  "data.prop": {
740
740
  handler() {
741
741
  const { dicFormatter: t } = this.data;
742
- this.dicFormatter = t ? t + "" : `(res) => {\r
742
+ this.dicFormatter = t ? `${t}` : `(res) => {\r
743
743
  return res.data\r
744
744
  }`;
745
745
  },
@@ -831,7 +831,7 @@ const ConfigSelect = /* @__PURE__ */ function() {
831
831
  handler() {
832
832
  this.$set(this.data, "cascader", this.data.cascaderItem), this.$delete(this.data, "cascaderItem");
833
833
  const { dicFormatter: t } = this.data;
834
- this.dicFormatter = t ? t + "" : `(res) => {\r
834
+ this.dicFormatter = t ? `${t}` : `(res) => {\r
835
835
  return res.data\r
836
836
  }`;
837
837
  },
@@ -893,7 +893,7 @@ var __component__$9 = /* @__PURE__ */ normalizeComponent(
893
893
  staticRenderFns$b,
894
894
  !1,
895
895
  __vue2_injectStyles$9,
896
- "657de8b2",
896
+ "42ed5e40",
897
897
  null,
898
898
  null
899
899
  );
@@ -1130,13 +1130,13 @@ const ConfigTitle = /* @__PURE__ */ function() {
1130
1130
  "data.prop": {
1131
1131
  handler() {
1132
1132
  const { change: t, click: l, focus: a, blur: s } = this.data;
1133
- this.$set(this, "change", t ? t + "" : `({value}) => {\r
1133
+ this.$set(this, "change", t ? `${t}` : `({value}) => {\r
1134
1134
  \r
1135
- }`), this.$set(this, "click", l ? l + "" : `({value}) => {\r
1135
+ }`), this.$set(this, "click", l ? `${l}` : `({value}) => {\r
1136
1136
  \r
1137
- }`), this.$set(this, "focus", a ? a + "" : `({value}) => {\r
1137
+ }`), this.$set(this, "focus", a ? `${a}` : `({value}) => {\r
1138
1138
  \r
1139
- }`), this.$set(this, "blur", s ? s + "" : `({value}) => {\r
1139
+ }`), this.$set(this, "blur", s ? `${s}` : `({value}) => {\r
1140
1140
  \r
1141
1141
  }`);
1142
1142
  },
@@ -1195,7 +1195,7 @@ const ConfigEvent = /* @__PURE__ */ function() {
1195
1195
  "data.prop": {
1196
1196
  handler() {
1197
1197
  const { onLoad: t, formatter: l } = this.data;
1198
- this.onLoad = t ? t + "" : "", this.formatter = l ? l + "" : "";
1198
+ this.onLoad = t ? `${t}` : "", this.formatter = l ? `${l}` : "";
1199
1199
  },
1200
1200
  immediate: !0
1201
1201
  },
@@ -1,7 +1,7 @@
1
- import { W as r } from "./WidgetFormTable.vue_vue_type_template_lang.291bf39a.js";
2
- import { s as o, r as d, W as h } from "./WidgetFormGroup.vue_vue_type_template_lang.6a693e5e.js";
1
+ import { W as r } from "./WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js";
2
+ import { s as o, r as d, W as h } from "./WidgetFormGroup.vue_vue_type_template_lang.bdcb6d37.js";
3
3
  import p from "vuedraggable";
4
- import { d as n } from "./util.80e28481.js";
4
+ import { d as n } from "./util.23fe58fb.js";
5
5
  import { n as g } from "./vueComponentNormalizer.71e2aa87.js";
6
6
  const m = {
7
7
  name: "WidgetFormGroup",
@@ -41,9 +41,9 @@ const m = {
41
41
  });
42
42
  },
43
43
  handleWidgetCloneTable(e) {
44
- let i = n(this.data.column[e]);
45
- i.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999), i.children.column.forEach((t) => {
46
- t.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999);
44
+ const i = n(this.data.column[e]);
45
+ i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, i.children.column.forEach((t) => {
46
+ t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
47
47
  }), this.data.column.splice(e, 0, i), this.$nextTick(() => {
48
48
  this.handleSelectWidget(e + 1), this.$emit("change");
49
49
  });
@@ -53,7 +53,7 @@ const m = {
53
53
  },
54
54
  handleWidgetTableClone(e, i) {
55
55
  const t = n(i);
56
- t.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999), this.$set(e.children.column, e.children.column.length, { ...t }), this.$nextTick(() => {
56
+ t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(e.children.column, e.children.column.length, { ...t }), this.$nextTick(() => {
57
57
  this.selectWidget = e.children.column[e.children.column.length - 1], this.$emit("change");
58
58
  });
59
59
  },
@@ -70,7 +70,7 @@ const m = {
70
70
  return;
71
71
  }
72
72
  const l = n(i.children.column[t]);
73
- l.prop || (l.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999)), delete l.icon, l.type === "dynamic" ? l.span = 24 : l.span = 12, this.$set(i.children.column, t, { ...l }), this.selectWidget = i.children.column[t], this.$emit("change");
73
+ l.prop || (l.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), delete l.icon, l.type === "dynamic" ? l.span = 24 : l.span = 12, this.$set(i.children.column, t, { ...l }), this.selectWidget = i.children.column[t], this.$emit("change");
74
74
  }
75
75
  }
76
76
  }, c = {};
@@ -189,10 +189,10 @@ var C = function() {
189
189
  class: [{
190
190
  active: e.selectWidget.prop === a.prop,
191
191
  required: a.required
192
- }, "avue-form__item--" + a.labelPosition || ""],
192
+ }, `avue-form__item--${a.labelPosition}` || ""],
193
193
  attrs: {
194
194
  label: a.label,
195
- "label-width": a.labelWidth && a.labelWidth + "px",
195
+ "label-width": a.labelWidth && `${a.labelWidth}px`,
196
196
  prop: a.prop
197
197
  },
198
198
  nativeOn: {
@@ -1,6 +1,6 @@
1
- import { s, r, W as d } from "./WidgetFormTable.vue_vue_type_template_lang.291bf39a.js";
1
+ import { s, r, W as d } from "./WidgetFormTable.vue_vue_type_template_lang.e2b788ba.js";
2
2
  import h from "vuedraggable";
3
- import { d as c } from "./util.80e28481.js";
3
+ import { d as c } from "./util.23fe58fb.js";
4
4
  import { n as p } from "./vueComponentNormalizer.71e2aa87.js";
5
5
  const g = {
6
6
  name: "WidgetFormTable",
@@ -40,9 +40,9 @@ const g = {
40
40
  });
41
41
  },
42
42
  handleWidgetCloneTable(e) {
43
- let i = c(this.data.column[e]);
44
- i.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999), i.children.column.forEach((t) => {
45
- t.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999);
43
+ const i = c(this.data.column[e]);
44
+ i.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, i.children.column.forEach((t) => {
45
+ t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`;
46
46
  }), this.data.column.splice(e, 0, i), this.$nextTick(() => {
47
47
  this.handleSelectWidget(e + 1), this.$emit("change");
48
48
  });
@@ -55,14 +55,14 @@ const g = {
55
55
  return;
56
56
  }
57
57
  const n = c(i.children.column[t]);
58
- n.prop || (n.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999)), n.subfield = !0, delete n.icon, this.$set(i.children.column, t, { ...n }), this.selectWidget = i.children.column[t], this.$emit("change");
58
+ n.prop || (n.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`), n.subfield = !0, delete n.icon, this.$set(i.children.column, t, { ...n }), this.selectWidget = i.children.column[t], this.$emit("change");
59
59
  },
60
60
  handleWidgetTableSelect(e) {
61
61
  this.selectWidget = e;
62
62
  },
63
63
  handleWidgetTableClone(e, i) {
64
64
  const t = c(i);
65
- t.prop = "a" + Date.now() + Math.ceil(Math.random() * 99999), this.$set(e.children.column, e.children.column.length, { ...t }), this.$nextTick(() => {
65
+ t.prop = `a${Date.now()}${Math.ceil(Math.random() * 99999)}`, this.$set(e.children.column, e.children.column.length, { ...t }), this.$nextTick(() => {
66
66
  this.selectWidget = e.children.column[e.children.column.length - 1], this.$emit("change");
67
67
  });
68
68
  },
@@ -87,10 +87,10 @@ function m(e) {
87
87
  for (let i in o)
88
88
  this[i] = o[i];
89
89
  }
90
- const C = /* @__PURE__ */ function() {
90
+ const b = /* @__PURE__ */ function() {
91
91
  return u.exports;
92
92
  }();
93
- var w = function() {
93
+ var C = function() {
94
94
  var e = this, i = e.$createElement, t = e._self._c || i;
95
95
  return t("div", [t("h4", {
96
96
  directives: [{
@@ -263,9 +263,9 @@ var w = function() {
263
263
  }, [t("i", {
264
264
  staticClass: "iconfont icon-copy"
265
265
  })]) : e._e()], 1);
266
- }, v = [];
266
+ }, w = [];
267
267
  export {
268
- C as W,
269
- w as r,
270
- v as s
268
+ b as W,
269
+ C as r,
270
+ w as s
271
271
  };
@@ -1,4 +1,4 @@
1
- import { d as s } from "./util.80e28481.js";
1
+ import { d as s } from "./util.23fe58fb.js";
2
2
  import { s as o, r as c } from "./WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js";
3
3
  import { n as d } from "./vueComponentNormalizer.71e2aa87.js";
4
4
  const u = {
@@ -39,7 +39,8 @@ const u = {
39
39
  },
40
40
  methods: {
41
41
  getComponent(e, n) {
42
- let i = "fy-", t = "input";
42
+ const i = "fy-";
43
+ let t = "input";
43
44
  return n || (["array", "img", "url"].includes(e) ? t = "array" : e === "select" ? t = "select" : e === "radio" ? t = "radio" : e === "checkbox" ? t = "checkbox" : ["time", "timerange"].includes(e) ? t = "time" : ["dates", "date", "datetime", "datetimerange", "daterange", "week", "month", "year"].includes(e) ? t = "date" : e === "cascader" ? t = "cascader" : e === "number" ? t = "input-number" : e === "password" ? t = "input" : e === "switch" ? t = "switch" : e === "rate" ? t = "rate" : e === "upload" ? t = "upload" : e === "slider" ? t = "slider" : e === "dynamic" ? t = "dynamic" : e === "icon" ? t = "input-icon" : e === "color" ? t = "input-color" : e === "map" && (t = "input-map"), i + t);
44
45
  },
45
46
  getPlaceholder(e) {
@@ -1,5 +1,5 @@
1
- import { isBlank as c } from "@web-utils/core";
2
- import { f as E, M as f, A as h, R as T, a as u, b as m, K as A, c as I, S as L, D as S, e as B, I as _ } from "./util.80e28481.js";
1
+ import { isBlank as l } from "@web-utils/core";
2
+ import { f as E, M as f, A as h, R as T, a as u, b as m, K as A, c as I, S as L, D as S, e as B, I as _ } from "./util.23fe58fb.js";
3
3
  const P = {
4
4
  common: {
5
5
  condition: "条件",
@@ -82,25 +82,25 @@ const P = {
82
82
  }, k = (e, n) => {
83
83
  n = n || "";
84
84
  const t = n.split(".");
85
- let a = e, s = null;
86
- for (let l = 0, d = t.length; l < d; l++) {
87
- const o = t[l];
85
+ let a = e, i = null;
86
+ for (let c = 0, o = t.length; c < o; c++) {
87
+ const d = t[c];
88
88
  if (!a)
89
89
  break;
90
- if (l === d - 1) {
91
- s = a[o];
90
+ if (c === o - 1) {
91
+ i = a[d];
92
92
  break;
93
93
  }
94
- a = a[o];
94
+ a = a[d];
95
95
  }
96
- return s;
96
+ return i;
97
97
  }, p = (e) => k(P, e), R = (e = []) => (e.forEach((n) => {
98
- let t = n.cascader;
99
- if (!c(t)) {
100
- let a = n.prop;
101
- t.forEach((s) => {
102
- let l = E(e, s);
103
- l !== -1 && (l.parentProp = a);
98
+ const t = n.cascader;
99
+ if (!l(t)) {
100
+ const a = n.prop;
101
+ t.forEach((i) => {
102
+ const c = E(e, i);
103
+ c !== -1 && (c.parentProp = a);
104
104
  });
105
105
  }
106
106
  }), e);
@@ -109,12 +109,13 @@ const C = (e, n = 12, t = !1) => {
109
109
  t && (r = 0);
110
110
  const a = 24;
111
111
  return r = r + (e.span || n) + (e.offset || 0), r === a ? r = 0 : r > a ? r = (e.span || n) + (e.offset || 0) : e.row && r !== a && (e.count = a - r, r = 0), e;
112
- }, v = (e, n) => {
113
- let { type: t, multiple: a, dataType: s, separator: l = S, alone: d, emitPath: o, range: y } = n, i = e;
114
- return f.includes(t) && a === !0 || h.includes(t) && o !== !1 || T.includes(t) && y === !0 ? (Array.isArray(i) || (c(i) ? i = [] : i = (i + "").split(l) || []), i.forEach((b, g) => {
115
- i[g] = u(b, s);
116
- }), m.includes(t) && c(i) && d && (i = [""])) : i = u(i, s), i;
117
- }, N = (e) => {
112
+ }, $ = (e, n) => {
113
+ const { type: t, multiple: a, dataType: i, separator: c = S, alone: o, emitPath: d, range: y } = n;
114
+ let s = e;
115
+ return f.includes(t) && a === !0 || h.includes(t) && d !== !1 || T.includes(t) && y === !0 ? (Array.isArray(s) || (l(s) ? s = [] : s = `${s}`.split(c) || []), s.forEach((b, g) => {
116
+ s[g] = u(b, i);
117
+ }), m.includes(t) && l(s) && o && (s = [""])) : s = u(s, i), s;
118
+ }, v = (e) => {
118
119
  const n = e.type, t = e.searchRange;
119
120
  let a = n;
120
121
  if (e.searchType)
@@ -122,36 +123,36 @@ const C = (e, n = 12, t = !1) => {
122
123
  if (["radio", "checkbox", "switch"].includes(n))
123
124
  a = "select";
124
125
  else if (B.includes(n)) {
125
- let s = "range";
126
- t ? n.includes(s) ? a = n : a = n + s : a = n.replace(s, "");
126
+ const i = "range";
127
+ t ? n.includes(i) ? a = n : a = n + i : a = n.replace(i, "");
127
128
  } else
128
129
  ["textarea"].includes(n) && (a = "input");
129
130
  return a;
130
- }, M = (e, n) => {
131
+ }, N = (e, n) => {
131
132
  let t = e || "input";
132
- if (c(n))
133
- m.includes(e) ? t = "array" : ["time", "timerange"].includes(e) ? t = "time" : B.includes(e) ? t = "date" : ["password", "textarea", "search"].includes(e) ? t = "input" : _.includes(e) && (t = "input-" + e);
133
+ if (l(n))
134
+ m.includes(e) ? t = "array" : ["time", "timerange"].includes(e) ? t = "time" : B.includes(e) ? t = "date" : ["password", "textarea", "search"].includes(e) ? t = "input" : _.includes(e) && (t = `input-${e}`);
134
135
  else
135
136
  return n;
136
137
  return A + t;
137
- }, O = (e = []) => {
138
+ }, M = (e = []) => {
138
139
  let n = {};
139
140
  return e.forEach((t) => {
140
- h.includes(t.type) && t.emitPath !== !1 || f.includes(t.type) && t.multiple || t.dataType === "array" ? n[t.prop] = [] : T.includes(t.type) && t.range === !0 ? n[t.prop] = [0, 0] : ["rate", "slider", "number"].includes(t.type) || t.dataType === "number" ? n[t.prop] = void 0 : n[t.prop] = "", t.bind && (n = I(n, t.bind)), c(t.value) || (n[t.prop] = t.value);
141
+ h.includes(t.type) && t.emitPath !== !1 || f.includes(t.type) && t.multiple || t.dataType === "array" ? n[t.prop] = [] : T.includes(t.type) && t.range === !0 ? n[t.prop] = [0, 0] : ["rate", "slider", "number"].includes(t.type) || t.dataType === "number" ? n[t.prop] = void 0 : n[t.prop] = "", t.bind && (n = I(n, t.bind)), l(t.value) || (n[t.prop] = t.value);
141
142
  }), {
142
143
  tableForm: n
143
144
  };
144
- }, V = function(e) {
145
+ }, O = function(e) {
145
146
  const n = e.placeholder, t = e.label;
146
- return c(n) ? L.includes(e.type) ? `${p("tip.select")} ${t}` : `${p("tip.input")} ${t}` : n;
147
+ return l(n) ? L.includes(e.type) ? `${p("tip.select")} ${t}` : `${p("tip.input")} ${t}` : n;
147
148
  };
148
149
  export {
149
- V as a,
150
+ O as a,
150
151
  R as b,
151
152
  C as c,
152
- N as d,
153
- O as f,
154
- M as g,
155
- v as i,
153
+ v as d,
154
+ M as f,
155
+ N as g,
156
+ $ as i,
156
157
  p as t
157
158
  };
@@ -0,0 +1,28 @@
1
+ import { isBlank as T, formatDate as f } from "@web-utils/core";
2
+ import { i as Y, M as I, A as L, D as n, m as _, b as S, n as o, p as $, e as b, q as h } from "./util.23fe58fb.js";
3
+ const P = (r = {}, t = {}, l = {}, A = []) => {
4
+ let e = r[t.prop];
5
+ const a = t.type, s = t.separator;
6
+ if (t.bind && (e = Y(r, t.bind)), T(e))
7
+ e = "";
8
+ else {
9
+ const g = I.includes(t.type) && t.multiple, D = L.includes(t.type);
10
+ if ((["string", "number"].includes(t.dataType) || g || D) && !Array.isArray(e) && (e = `${e}`.split(s || n), t.dataType === "number" && (e = _(e))), S.includes(a))
11
+ Array.isArray(e) ? e = e.join(s || o) : e = e.split(s || n).join(s || o);
12
+ else if (a === "password")
13
+ e = $(e, "*");
14
+ else if (b.includes(a) && t.format) {
15
+ const d = t.format.replace("dd", "DD").replace("yyyy", "YYYY"), y = f(Date.now(), "YYYY-MM-DD");
16
+ if (a.indexOf("range") !== -1) {
17
+ let i = e[0] || "", p = e[1] || "";
18
+ a === "timerange" && i.length <= 8 && p.length < 8 && (i = `${y} ${i}`, p = `${y} ${p}`), e = [f(i, d), f(p, d)].join(t.separator || "~");
19
+ } else
20
+ a === "time" && e.length <= 8 && (e = `${y} ${e}`), e = f(e, d);
21
+ }
22
+ e = h(A, e, t.props || l.props);
23
+ }
24
+ return t.formatter && typeof t.formatter == "function" && (e = t.formatter(r, r[t.prop], e, t)), e;
25
+ };
26
+ export {
27
+ P as d
28
+ };
@@ -0,0 +1,135 @@
1
+ import { isBlank as w } from "@web-utils/core";
2
+ import { t as D, v as x } from "./util.23fe58fb.js";
3
+ const F = (d, t = []) => new Promise((i, o) => {
4
+ const c = [], a = [], s = {};
5
+ d.forEach((e) => {
6
+ e.parentProp && c.push(e);
7
+ }), t.forEach((e, n) => {
8
+ c.forEach((r) => {
9
+ r.hide !== !0 && r.dicFlag !== !1 && a.push(
10
+ new Promise((u) => {
11
+ w(e[r.parentProp]) ? u({
12
+ prop: r.prop,
13
+ data: [],
14
+ index: n
15
+ }) : r.dicUrl && g({
16
+ url: `${r.dicUrl.replace("{{key}}", e[r.parentProp])}`,
17
+ props: r.props,
18
+ method: r.dicMethod,
19
+ headers: r.dicHeaders,
20
+ formatter: r.dicFormatter,
21
+ query: r.dicQuery,
22
+ form: e
23
+ }).then((l) => {
24
+ u({
25
+ prop: r.prop,
26
+ data: l,
27
+ index: n
28
+ });
29
+ });
30
+ })
31
+ );
32
+ });
33
+ }), Promise.all(a).then((e) => {
34
+ e.forEach((n) => {
35
+ w(s[n.index]) && (s[n.index] = {}), s[n.index][n.prop] = n.data;
36
+ }), i(s);
37
+ });
38
+ }), U = (d) => {
39
+ let t = [];
40
+ return new Promise((i, o) => {
41
+ t = E(d).ajaxdic, k(t).then((a) => {
42
+ i(a);
43
+ }).catch((a) => {
44
+ o(a);
45
+ });
46
+ });
47
+ }, K = (d) => {
48
+ const t = {}, i = d.dicData || {};
49
+ return d.column.forEach((o) => {
50
+ o.dicData && (t[o.prop] = D(o.dicData, o.props, o.dataType));
51
+ }), Object.assign(i, t);
52
+ };
53
+ function E(d) {
54
+ const t = d.column || [], i = [], o = {};
55
+ let c = [];
56
+ return t.forEach((a) => {
57
+ const s = a.dicData, e = a.dicUrl, n = a.prop, r = a.parentProp;
58
+ c = c.concat(a.cascader || []), Array.isArray(s) && (o[n] = s), !(a.dicFlag === !1 || a.lazy === !0 || c.includes(n)) && e && !r && i.push({
59
+ url: e,
60
+ name: n,
61
+ method: a.dicMethod,
62
+ headers: t.dicHeaders,
63
+ formatter: a.dicFormatter,
64
+ props: a.props,
65
+ dataType: a.dataType,
66
+ resKey: (a.props || {}).res,
67
+ query: a.dicQuery || {}
68
+ });
69
+ }), {
70
+ ajaxdic: i,
71
+ locationdic: o
72
+ };
73
+ }
74
+ function k(d) {
75
+ const t = {}, i = [];
76
+ return new Promise((o) => {
77
+ d.forEach((c) => {
78
+ i.push(
79
+ new Promise((a) => {
80
+ g(Object.assign(c, {
81
+ url: `${c.url.replace("{{key}}", "")}`
82
+ })).then((s) => {
83
+ s = D(s, c.props, c.dataType), a(s);
84
+ }).catch(() => {
85
+ a([]);
86
+ });
87
+ })
88
+ );
89
+ }), Promise.all(i).then((c) => {
90
+ d.forEach((a, s) => {
91
+ t[a.name] = c[s];
92
+ }), o(t);
93
+ });
94
+ });
95
+ }
96
+ const g = (d) => {
97
+ let { url: t, query: i, method: o, resKey: c, props: a, formatter: s, headers: e = {}, value: n = "", column: r, form: u = {} } = d;
98
+ r && (t = r.dicUrl, o = r.dicMethod, e = r.headers || {}, i = r.dicQuery || {}, s = r.dicFormatter, a = r.props);
99
+ const l = "key";
100
+ t = t || "";
101
+ let y = [];
102
+ const m = {};
103
+ return y = t.match(/[^{}]+(?=})/g) || [], y.forEach((p) => {
104
+ const f = `{{${p}}}`, h = u[p];
105
+ p === l ? t = t.replace(f, n) : t = t.replace(f, h);
106
+ }), o === "post" && (y = Object.keys(i), y.forEach((p) => {
107
+ const f = i[p];
108
+ typeof f == "string" && f.match(/\{{|}}/g) ? m[p] = u[f.replace(/\{{|}}/g, "")] : m[p] = f;
109
+ })), a && (c = (a || {}).res || c), new Promise((p) => {
110
+ const f = (h) => {
111
+ let P = [];
112
+ typeof s == "function" ? P = s(h.data) : P = x(h.data, c), p(P);
113
+ };
114
+ o === "post" ? window.axios.post(t, m, {
115
+ headers: e
116
+ }).then(function(h) {
117
+ f(h);
118
+ }).catch(() => [
119
+ p([])
120
+ ]) : window.axios.get(t, {
121
+ params: i,
122
+ headers: e
123
+ }).then(function(h) {
124
+ f(h);
125
+ }).catch(() => [
126
+ p([])
127
+ ]);
128
+ });
129
+ };
130
+ export {
131
+ U as a,
132
+ F as b,
133
+ K as l,
134
+ g as s
135
+ };
@@ -1,7 +1,7 @@
1
- import { y as r, k as i, D as a } from "./util.80e28481.js";
2
- import { s as l } from "./slot.1b8d2b1b.js";
1
+ import { z as r, k as i, D as a } from "./util.23fe58fb.js";
2
+ import { s as l } from "./slot.4b391395.js";
3
3
  import { isBlank as s } from "@web-utils/core";
4
- import { i as p } from "./dataformat.d3fd2d1b.js";
4
+ import { i as p } from "./dataformat.65b92bfe.js";
5
5
  const f = {
6
6
  mixins: [l],
7
7
  data() {