@web-utils/component 2.7.2 → 2.7.4

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 (128) hide show
  1. package/dist/chunks/AfdColumn.vue_vue_type_template_lang.768f2ed2.js +302 -0
  2. package/dist/chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js +51 -0
  3. package/dist/chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js +24 -0
  4. package/dist/chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js +52 -0
  5. package/dist/chunks/ConfigDate.vue_vue_type_template_lang.420fa897.js +104 -0
  6. package/dist/chunks/ConfigDynamic.vue_vue_type_template_lang.82d24ab0.js +133 -0
  7. package/dist/chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js +96 -0
  8. package/dist/chunks/ConfigGroup.vue_vue_type_template_lang.44117322.js +48 -0
  9. package/dist/chunks/ConfigInput.vue_vue_type_template_lang.cc1eb052.js +96 -0
  10. package/dist/chunks/ConfigMap.vue_vue_type_template_lang.daee4d38.js +31 -0
  11. package/dist/chunks/ConfigNumber.vue_vue_type_template_lang.d60231d7.js +130 -0
  12. package/dist/chunks/ConfigRate.vue_vue_type_style_index_0_scoped_true_lang.cf5d437d.js +125 -0
  13. package/dist/chunks/ConfigSelect.vue_vue_type_template_lang.7db7e57f.js +483 -0
  14. package/dist/chunks/ConfigSlider.vue_vue_type_template_lang.27b8cc7b.js +99 -0
  15. package/dist/chunks/ConfigSwitch.vue_vue_type_style_index_0_scoped_true_lang.4caf1bd0.js +54 -0
  16. package/dist/chunks/ConfigTable.vue_vue_type_template_lang.3e8136d9.js +341 -0
  17. package/dist/chunks/ConfigTextarea.vue_vue_type_template_lang.5cddf41c.js +88 -0
  18. package/dist/chunks/ConfigTitle.vue_vue_type_template_lang.57d9deb5.js +87 -0
  19. package/dist/chunks/ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.3770c37e.js +464 -0
  20. package/dist/chunks/ConfigUEditor.vue_vue_type_template_lang.9726b4f5.js +240 -0
  21. package/dist/chunks/ConfigUpload.vue_vue_type_template_lang.531a9b2a.js +471 -0
  22. package/dist/chunks/FormConfig.vue_vue_type_template_lang.85b4ee87.js +232 -0
  23. package/dist/chunks/WidgetConfig.vue_vue_type_template_lang.f903c9b2.js +1765 -0
  24. package/dist/chunks/WidgetForm.vue_vue_type_template_lang.82248338.js +242 -0
  25. package/dist/chunks/WidgetFormGroup.vue_vue_type_template_lang.c636aabd.js +266 -0
  26. package/dist/chunks/WidgetFormItem.vue_vue_type_template_lang.48d55a5c.js +24 -0
  27. package/dist/chunks/WidgetFormTable.vue_vue_type_template_lang.30625146.js +228 -0
  28. package/dist/chunks/dataformat.d3fd2d1b.js +157 -0
  29. package/dist/chunks/{detail.a3249549.js → detail.ac4d421a.js} +7 -7
  30. package/dist/chunks/{dic.5f7e3523.js → dic.79d9f595.js} +28 -27
  31. package/dist/chunks/{event.50c365eb.js → event.43b42228.js} +7 -6
  32. package/dist/chunks/{init.352281f5.js → init.3b47bb80.js} +8 -7
  33. package/dist/chunks/{packages.5d7a86c4.js → packages.6f252850.js} +5 -61
  34. package/dist/chunks/{util.5053d54e.js → util.80e28481.js} +37 -51
  35. package/dist/components/afd-column/index.js +54 -0
  36. package/dist/components/chat/index.js +1 -1
  37. package/dist/components/code/index.js +1 -1
  38. package/dist/components/column/index.js +8 -7
  39. package/dist/components/column-default/index.js +1 -1
  40. package/dist/components/column-dynamic/index.js +1 -1
  41. package/dist/components/column-menu/index.js +1 -1
  42. package/dist/components/column-slot/index.js +27 -26
  43. package/dist/components/config-array/index.js +26 -0
  44. package/dist/components/config-color/index.js +26 -0
  45. package/dist/components/config-custom/index.js +60 -0
  46. package/dist/components/config-date/index.js +26 -0
  47. package/dist/components/config-dynamic/index.js +26 -0
  48. package/dist/components/config-event/index.js +72 -0
  49. package/dist/components/config-group/index.js +34 -0
  50. package/dist/components/config-input/index.js +26 -0
  51. package/dist/components/config-map/index.js +26 -0
  52. package/dist/components/config-number/index.js +26 -0
  53. package/dist/components/config-rate/index.js +69 -0
  54. package/dist/components/config-rate/style.css +1 -0
  55. package/dist/components/config-select/index.js +88 -0
  56. package/dist/components/config-slider/index.js +26 -0
  57. package/dist/components/config-switch/index.js +31 -0
  58. package/dist/components/config-switch/style.css +1 -0
  59. package/dist/components/config-table/index.js +120 -0
  60. package/dist/components/config-textarea/index.js +26 -0
  61. package/dist/components/config-title/index.js +31 -0
  62. package/dist/components/config-tree/index.js +120 -0
  63. package/dist/components/config-tree/style.css +1 -0
  64. package/dist/components/config-u-editor/index.js +32 -0
  65. package/dist/components/config-upload/index.js +56 -0
  66. package/dist/components/custom-scrollbar/index.js +6 -1
  67. package/dist/components/dialog-excel/index.js +2 -2
  68. package/dist/components/dialog-filter/index.js +1 -1
  69. package/dist/components/dialog-form/index.js +8 -7
  70. package/dist/components/flex-item/index.js +4 -1
  71. package/dist/components/flow/index.js +1 -1
  72. package/dist/components/flow-node/index.js +1 -1
  73. package/dist/components/form-config/index.js +26 -0
  74. package/dist/components/form-group/index.js +1 -1
  75. package/dist/components/form-temp/index.js +2 -2
  76. package/dist/components/{array → fy-array}/index.js +5 -5
  77. package/dist/components/{array → fy-array}/style.css +0 -0
  78. package/dist/components/fy-cascader/index.js +1 -1
  79. package/dist/components/fy-checkbox/index.js +1 -1
  80. package/dist/components/fy-curd/index.js +37 -131
  81. package/dist/components/fy-date/index.js +1 -1
  82. package/dist/components/fy-dialog-form/index.js +9 -8
  83. package/dist/components/{draggable → fy-draggable}/index.js +2 -2
  84. package/dist/components/{draggable → fy-draggable}/style.css +0 -0
  85. package/dist/components/fy-dynamic/index.js +2 -2
  86. package/dist/components/{empty → fy-empty}/index.js +6 -6
  87. package/dist/components/{empty → fy-empty}/style.css +0 -0
  88. package/dist/components/fy-form/index.js +9 -8
  89. package/dist/components/fy-form-design/index.js +1371 -0
  90. package/dist/components/fy-form-design/style.css +1 -0
  91. package/dist/components/fy-input/index.js +1 -1
  92. package/dist/components/fy-input-color/index.js +1 -1
  93. package/dist/components/fy-input-icon/index.js +1 -1
  94. package/dist/components/fy-input-map/index.js +4 -4
  95. package/dist/components/fy-input-number/index.js +1 -1
  96. package/dist/components/fy-input-table/index.js +4 -4
  97. package/dist/components/fy-input-tree/index.js +2 -2
  98. package/dist/components/fy-radio/index.js +1 -1
  99. package/dist/components/fy-rate/index.js +1 -1
  100. package/dist/components/fy-select/index.js +18 -17
  101. package/dist/components/fy-slider/index.js +2 -2
  102. package/dist/components/fy-switch/index.js +1 -1
  103. package/dist/components/fy-time/index.js +2 -2
  104. package/dist/components/fy-title/index.js +1 -1
  105. package/dist/components/fy-tree/index.js +7 -6
  106. package/dist/components/fy-upload/index.js +11 -10
  107. package/dist/components/header-menu/index.js +1 -1
  108. package/dist/components/header-search/index.js +2 -2
  109. package/dist/components/license/index.js +5 -5
  110. package/dist/components/login/index.js +9 -8
  111. package/dist/components/record-video/index.js +1 -1
  112. package/dist/components/search/index.js +10 -9
  113. package/dist/components/sign/index.js +1 -1
  114. package/dist/components/table-column/index.js +4 -1
  115. package/dist/components/table-page/index.js +9 -6
  116. package/dist/components/text-ellipsis/index.js +1 -1
  117. package/dist/components/verify/index.js +1 -1
  118. package/dist/components/watermark/index.js +5 -1
  119. package/dist/components/widget-config/index.js +107 -0
  120. package/dist/components/widget-form/index.js +68 -0
  121. package/dist/components/widget-form-group/index.js +91 -0
  122. package/dist/components/widget-form-item/index.js +70 -0
  123. package/dist/components/widget-form-table/index.js +90 -0
  124. package/dist/index.css +761 -201
  125. package/dist/index.es.js +24037 -16605
  126. package/package.json +6 -4
  127. package/web-types.json +1880 -1781
  128. package/dist/chunks/dataformat.fb35ee10.js +0 -61
@@ -1,3 +1,4 @@
1
+ import { isBlank, getObjType } from "@web-utils/core";
1
2
  const KEY_COMPONENT_NAME = "fy-", DIC_PROPS = {
2
3
  rowKey: "id",
3
4
  rowParentKey: "parentId",
@@ -33,7 +34,7 @@ const KEY_COMPONENT_NAME = "fy-", DIC_PROPS = {
33
34
  img: /\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,
34
35
  video: /\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,
35
36
  audio: /\.(mp3|wav|MP3|WAV)/
36
- }, isBlank = (e) => e instanceof Date || typeof e == "boolean" || typeof e == "number" ? !1 : e instanceof Array ? e.length === 0 : e instanceof Object ? Object.keys(e).length === 0 : e === "null" || e == null || e === "undefined" || e === void 0 || e === "", isMediaType = (e, r) => {
37
+ }, isMediaType = (e, r) => {
37
38
  if (!isBlank(e))
38
39
  return typeList.audio.test(e) || r === "audio" ? "audio" : typeList.video.test(e) || r === "video" ? "video" : typeList.img.test(e) || r === "img" ? "img" : !1;
39
40
  };
@@ -79,23 +80,23 @@ function strCorNum(e) {
79
80
  }), e;
80
81
  }
81
82
  function extend() {
82
- var e = arguments[0] || {}, r = !1, n = Array.prototype.slice.call(arguments), t = 1, a, i, l, o, s = !1;
83
+ var e = arguments[0] || {}, r = !1, n = Array.prototype.slice.call(arguments), t = 1, a, i, l, s, o = !1;
83
84
  for (typeof e == "boolean" && (r = e, t++, e = arguments[1]); t < n.length; t++)
84
85
  if ((a = n[t]) != null)
85
86
  for (l in a)
86
- o = a[l], i = e[l], r && (toString.call(o) === "[object Object]" || (s = toString.call(o) === "[object Array]")) ? (s ? i = toString.call(i) === "[object Array]" ? i : [] : i = toString.call(i) === "[object Object]" ? i : {}, e[l] = extend(r, i, o)) : o !== void 0 && o !== i && (e[l] = o);
87
+ s = a[l], i = e[l], r && (toString.call(s) === "[object Object]" || (o = toString.call(s) === "[object Array]")) ? (o ? i = toString.call(i) === "[object Array]" ? i : [] : i = toString.call(i) === "[object Object]" ? i : {}, e[l] = extend(r, i, s)) : s !== void 0 && s !== i && (e[l] = s);
87
88
  return e;
88
89
  }
89
90
  function createObj(e, r) {
90
91
  let n = r.split("."), t = n.splice(0, 1)[0], a = {};
91
92
  if (a[t] = {}, n.length >= 2) {
92
- let i = "{", l = "}", o = "";
93
- n.forEach((s) => {
94
- o = `${o}${i}"${s}":`;
95
- }), o = `${o}""`;
96
- for (let s = 0; s < n.length; s++)
97
- o = `${o}${l}`;
98
- o = JSON.parse(o), a[t] = o;
93
+ let i = "{", l = "}", s = "";
94
+ n.forEach((o) => {
95
+ s = `${s}${i}"${o}":`;
96
+ }), s = `${s}""`;
97
+ for (let o = 0; o < n.length; o++)
98
+ s = `${s}${l}`;
99
+ s = JSON.parse(s), a[t] = s;
99
100
  }
100
101
  return e = extend(!0, e, a), e;
101
102
  }
@@ -125,21 +126,7 @@ function randomId() {
125
126
  n += e.charAt(Math.floor(Math.random() * r));
126
127
  return n;
127
128
  }
128
- const getObjType = (e) => {
129
- var r = Object.prototype.toString, n = {
130
- "[object Boolean]": "boolean",
131
- "[object Number]": "number",
132
- "[object String]": "string",
133
- "[object Function]": "function",
134
- "[object Array]": "array",
135
- "[object Date]": "date",
136
- "[object RegExp]": "regExp",
137
- "[object Undefined]": "undefined",
138
- "[object Null]": "null",
139
- "[object Object]": "object"
140
- };
141
- return e instanceof Element ? "element" : n[r.call(e)];
142
- }, deepClone = (e) => {
129
+ const deepClone = (e) => {
143
130
  var r = getObjType(e), n;
144
131
  if (r === "array")
145
132
  n = [];
@@ -181,10 +168,10 @@ const getObjType = (e) => {
181
168
  let a;
182
169
  t || (e = detailDicGroup(e, n));
183
170
  let i = (l) => {
184
- const o = n.label || DIC_PROPS.label, s = n.value || DIC_PROPS.value, f = n.children || DIC_PROPS.children;
171
+ const s = n.label || DIC_PROPS.label, o = n.value || DIC_PROPS.value, f = n.children || DIC_PROPS.children;
185
172
  for (let u = 0; u < l.length; u++) {
186
173
  const c = l[u], d = c[f] || [];
187
- c[s] === r ? a = t ? c : c[o] : i(d);
174
+ c[o] === r ? a = t ? c : c[s] : i(d);
188
175
  }
189
176
  };
190
177
  return i(e), a;
@@ -227,38 +214,37 @@ function uploadFun(e = {}, r) {
227
214
  }
228
215
  export {
229
216
  ARRAY_VALUE_LIST as A,
230
- arraySort as B,
231
- dataURLtoFile as C,
232
- DIC_HTTP_PROPS as D,
217
+ dataURLtoFile as B,
218
+ DIC_SPLIT as D,
233
219
  INPUT_LIST as I,
234
220
  KEY_COMPONENT_NAME as K,
235
221
  MULTIPLE_LIST as M,
236
222
  RANGE_LIST as R,
237
223
  SELECT_LIST as S,
238
- DIC_PROPS as a,
239
- DIC_SPLIT as b,
240
- isBlank as c,
241
- detailDataType as d,
242
- ARRAY_LIST as e,
224
+ detailDataType as a,
225
+ ARRAY_LIST as b,
226
+ createObj as c,
227
+ deepClone as d,
228
+ DATE_LIST as e,
243
229
  findObject as f,
244
- createObj as g,
245
- DATE_LIST as h,
246
- isMediaType as i,
247
- getFixed as j,
248
- deepClone as k,
249
- setAsVal as l,
250
- getAsVal as m,
251
- filterParams as n,
230
+ getFixed as g,
231
+ setAsVal as h,
232
+ getAsVal as i,
233
+ filterParams as j,
234
+ DIC_PROPS as k,
235
+ clearVal as l,
236
+ strCorNum as m,
237
+ DIC_SHOW_SPLIT as n,
252
238
  optVal as o,
253
- clearVal as p,
254
- strCorNum as q,
239
+ getPasswordChar as p,
240
+ findByValue as q,
255
241
  randomId as r,
256
242
  setPx as s,
257
- DIC_SHOW_SPLIT as t,
243
+ detailDic as t,
258
244
  uploadFun as u,
259
- getPasswordChar as v,
260
- findByValue as w,
261
- detailDic as x,
262
- getObjValue as y,
263
- downFile as z
245
+ getObjValue as v,
246
+ downFile as w,
247
+ isMediaType as x,
248
+ DIC_HTTP_PROPS as y,
249
+ arraySort as z
264
250
  };
@@ -0,0 +1,54 @@
1
+ import { s as n, r as o, f as i } from "../../chunks/AfdColumn.vue_vue_type_template_lang.768f2ed2.js";
2
+ import { d as l } from "../../chunks/util.80e28481.js";
3
+ import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
+ const m = {
5
+ name: "AfdColumn",
6
+ props: {
7
+ column: []
8
+ },
9
+ emits: ["submit"],
10
+ data() {
11
+ return {
12
+ fields: i,
13
+ visible: !1,
14
+ list: []
15
+ };
16
+ },
17
+ watch: {
18
+ column: {
19
+ handler(e) {
20
+ this.list = e;
21
+ },
22
+ deep: !0,
23
+ immediate: !0
24
+ }
25
+ },
26
+ methods: {
27
+ handleSubmit() {
28
+ this.$emit("submit", l(this.list)), this.visible = !1;
29
+ },
30
+ handleDic(e) {
31
+ console.log(e), this.$message.error("暂未实现");
32
+ }
33
+ }
34
+ }, s = {};
35
+ var a = /* @__PURE__ */ r(
36
+ m,
37
+ o,
38
+ n,
39
+ !1,
40
+ u,
41
+ null,
42
+ null,
43
+ null
44
+ );
45
+ function u(e) {
46
+ for (let t in s)
47
+ this[t] = s[t];
48
+ }
49
+ const p = /* @__PURE__ */ function() {
50
+ return a.exports;
51
+ }();
52
+ export {
53
+ p as default
54
+ };
@@ -1,5 +1,5 @@
1
1
  import { formatDate as d } from "@web-utils/core";
2
- import { s as l } from "../../chunks/util.5053d54e.js";
2
+ import { s as l } from "../../chunks/util.80e28481.js";
3
3
  import { n as u } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var m = function() {
5
5
  var t = this, o = t.$createElement, e = t._self._c || o;
@@ -1,5 +1,5 @@
1
1
  import s from "element-ui/lib/scrollbar";
2
- import { s as o } from "../../chunks/util.5053d54e.js";
2
+ import { s as o } from "../../chunks/util.80e28481.js";
3
3
  import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var i = function() {
5
5
  var t = this, e = t.$createElement, n = t._self._c || e;
@@ -1,4 +1,5 @@
1
- import { B as s, c as p, a as l } from "../../chunks/util.5053d54e.js";
1
+ import { z as s, k as l } from "../../chunks/util.80e28481.js";
2
+ import { isBlank as p } from "@web-utils/core";
2
3
  import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
4
  var d = function() {
4
5
  var t = this, n = t.$createElement, e = t._self._c || n;
@@ -32,8 +33,8 @@ var d = function() {
32
33
  })], null, !0)
33
34
  })];
34
35
  }), t._t("footer")], 2);
35
- }, a = [];
36
- const f = {
36
+ }, f = [];
37
+ const a = {
37
38
  name: "Column",
38
39
  inject: ["crud"],
39
40
  provide() {
@@ -93,9 +94,9 @@ const f = {
93
94
  }
94
95
  }, u = {};
95
96
  var h = /* @__PURE__ */ c(
96
- f,
97
- d,
98
97
  a,
98
+ d,
99
+ f,
99
100
  !1,
100
101
  _,
101
102
  null,
@@ -106,9 +107,9 @@ function _(t) {
106
107
  for (let n in u)
107
108
  this[n] = u[n];
108
109
  }
109
- const x = /* @__PURE__ */ function() {
110
+ const C = /* @__PURE__ */ function() {
110
111
  return h.exports;
111
112
  }();
112
113
  export {
113
- x as default
114
+ C as default
114
115
  };
@@ -1,5 +1,5 @@
1
1
  import { c as r } from "../../chunks/config.46422d7f.js";
2
- import { o as d } from "../../chunks/util.5053d54e.js";
2
+ import { o as d } from "../../chunks/util.80e28481.js";
3
3
  import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
4
  var a = function() {
5
5
  var e = this, n = e.$createElement, t = e._self._c || n;
@@ -1,4 +1,4 @@
1
- import { o as u } from "../../chunks/util.5053d54e.js";
1
+ import { o as u } from "../../chunks/util.80e28481.js";
2
2
  import { n as c } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
3
  var p = function() {
4
4
  var n = this, t = n.$createElement, l = n._self._c || t;
@@ -1,6 +1,6 @@
1
1
  import { c as u } from "../../chunks/config.46422d7f.js";
2
2
  import { p as d } from "../../chunks/permission.ce5d2121.js";
3
- import { o as a } from "../../chunks/util.5053d54e.js";
3
+ import { o as a } from "../../chunks/util.80e28481.js";
4
4
  import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
5
5
  var m = function() {
6
6
  var e = this, o = e.$createElement, r = e._self._c || o;
@@ -1,6 +1,7 @@
1
- import { d as h } from "../../chunks/detail.a3249549.js";
2
- import { c as i, o as f, u as b, i as g, a as p, t as y, k as _ } from "../../chunks/util.5053d54e.js";
3
- import { s as C } from "../../chunks/dic.5f7e3523.js";
1
+ import { d as h } from "../../chunks/detail.ac4d421a.js";
2
+ import { o as f, u as b, x as g, k as p, n as y, d as _ } from "../../chunks/util.80e28481.js";
3
+ import { s as C } from "../../chunks/dic.79d9f595.js";
4
+ import { isBlank as a } from "@web-utils/core";
4
5
  import { n as $ } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
5
6
  var v = function() {
6
7
  var e = this, t = e.$createElement, l = e._self._c || t;
@@ -39,26 +40,26 @@ var v = function() {
39
40
  }, {
40
41
  key: "default",
41
42
  fn: function(n) {
42
- var r = n.row, a = n.$index;
43
+ var r = n.row, i = n.$index;
43
44
  return [r.$cellEdit && e.column.cell ? l("ElFormItem", {
44
45
  attrs: {
45
- prop: e.crud.isTree ? "" : `list.${a}.${e.column.prop}`,
46
+ prop: e.crud.isTree ? "" : `list.${i}.${e.column.prop}`,
46
47
  label: e.vaildLabel(e.column, r, " "),
47
48
  "label-width": e.vaildLabel(e.column, r, "1px"),
48
49
  rules: e.column.rules
49
50
  }
50
51
  }, [l("ElTooltip", {
51
52
  attrs: {
52
- content: (e.crud.listError[`list.${a}.${e.column.prop}`] || {}).msg,
53
- disabled: !(e.crud.listError[`list.${a}.${e.column.prop}`] || {}).valid,
53
+ content: (e.crud.listError[`list.${i}.${e.column.prop}`] || {}).msg,
54
+ disabled: !(e.crud.listError[`list.${i}.${e.column.prop}`] || {}).valid,
54
55
  placement: "top"
55
56
  }
56
57
  }, [e.crud.getSlotName(e.column, "F", e.crud.$scopedSlots) ? e._t(e.crud.getSlotName(e.column, "F"), null, null, {
57
58
  row: r,
58
59
  dic: e.crud.DIC[e.column.prop],
59
60
  size: e.crud.isMediumSize,
60
- index: a,
61
- disabled: e.crud.btnDisabledList[a],
61
+ index: i,
62
+ disabled: e.crud.btnDisabledList[i],
62
63
  label: e.handleDetail(r, e.column),
63
64
  $cell: r.$cellEdit
64
65
  }) : l("FormTemp", e._b({
@@ -66,20 +67,20 @@ var v = function() {
66
67
  column: e.column,
67
68
  size: e.crud.isMediumSize,
68
69
  "table-data": {
69
- index: a,
70
+ index: i,
70
71
  row: r,
71
72
  label: e.handleDetail(r, e.column)
72
73
  },
73
- dic: (e.crud.cascaderDIC[a] || {})[e.column.prop] || e.crud.DIC[e.column.prop],
74
+ dic: (e.crud.cascaderDIC[i] || {})[e.column.prop] || e.crud.DIC[e.column.prop],
74
75
  props: e.column.props || e.crud.tableOption.props,
75
76
  readonly: e.column.readonly,
76
- disabled: e.crud.disabled || e.crud.tableOption.disabled || e.column.disabled || e.crud.btnDisabledList[a],
77
+ disabled: e.crud.disabled || e.crud.tableOption.disabled || e.column.disabled || e.crud.btnDisabledList[i],
77
78
  clearable: e.optVal(e.column.clearable, !1),
78
79
  "column-slot": e.crud.mainSlot
79
80
  },
80
81
  on: {
81
82
  change: function(o) {
82
- return e.columnChange(r, e.column, a);
83
+ return e.columnChange(r, e.column, i);
83
84
  }
84
85
  },
85
86
  scopedSlots: e._u([e._l(e.crud.mainSlot, function(o) {
@@ -99,7 +100,7 @@ var v = function() {
99
100
  }
100
101
  }, "FormTemp", e.uploadFun(e.column, e.crud), !1))], 2)], 1) : e.crud.$scopedSlots[e.column.prop] ? e._t(e.column.prop, null, {
101
102
  row: r,
102
- index: a,
103
+ index: i,
103
104
  dic: e.crud.DIC[e.column.prop],
104
105
  size: e.crud.isMediumSize,
105
106
  label: e.handleDetail(r, e.column)
@@ -189,7 +190,7 @@ const d = {}, D = {
189
190
  });
190
191
  },
191
192
  methods: {
192
- isBlank: i,
193
+ isBlank: a,
193
194
  optVal: f,
194
195
  uploadFun: b,
195
196
  isMediaType(e, t) {
@@ -208,35 +209,35 @@ const d = {}, D = {
208
209
  [...this.crud.propOption];
209
210
  const l = e.cascader;
210
211
  l.join(","), l.forEach((n) => {
211
- const r = n, a = t[e.prop], o = t.$index, c = this.findObject(this.columnOption, r);
212
- i(c) || (i(this.crud.cascaderDIC[o]) && this.$set(this.crud.cascaderDIC, o, {}), this.crud.cascaderIndexList.includes(o) && l.forEach((s) => {
212
+ const r = n, i = t[e.prop], o = t.$index, c = this.findObject(this.columnOption, r);
213
+ a(c) || (a(this.crud.cascaderDIC[o]) && this.$set(this.crud.cascaderDIC, o, {}), this.crud.cascaderIndexList.includes(o) && l.forEach((s) => {
213
214
  this.$set(this.crud.cascaderDIC[o], s.prop, []), l.forEach((u) => t[u] = "");
214
- }), !(i(l) || i(a) || i(c)) && C({
215
+ }), !(a(l) || a(i) || a(c)) && C({
215
216
  column: c,
216
- value: a,
217
+ value: i,
217
218
  form: t
218
219
  }).then((s) => {
219
220
  const u = s || [];
220
- this.crud.cascaderIndexList.includes(o) || this.crud.cascaderIndexList.push(o), this.crud.cascaderDicList[o] || this.$set(this.crud.cascaderDicList, o, {}), this.crud.cascaderDicList[o][r] || this.$set(this.crud.cascaderDicList[o], r, u), this.$set(this.crud.cascaderDIC[o], r, u), !i(u[c.cascaderIndex]) && !i(u) && !i(c.cascaderIndex) && (t[r] = u[c.cascaderIndex][(c.props || {}).value || p.value]);
221
+ this.crud.cascaderIndexList.includes(o) || this.crud.cascaderIndexList.push(o), this.crud.cascaderDicList[o] || this.$set(this.crud.cascaderDicList, o, {}), this.crud.cascaderDicList[o][r] || this.$set(this.crud.cascaderDicList[o], r, u), this.$set(this.crud.cascaderDIC[o], r, u), !a(u[c.cascaderIndex]) && !a(u) && !a(c.cascaderIndex) && (t[r] = u[c.cascaderIndex][(c.props || {}).value || p.value]);
221
222
  }));
222
223
  });
223
224
  });
224
225
  },
225
226
  handleDetail(e, t) {
226
227
  let l, n = t.parentProp ? (this.crud.cascaderDIC[e.$index] || {})[t.prop] : this.crud.DIC[t.prop];
227
- return l = h(e, t, this.crud.tableOption, n), !i(n) && this.crud.tableOption.filterDic !== !0 && (e["$" + t.prop] = l), l;
228
+ return l = h(e, t, this.crud.tableOption, n), !a(n) && this.crud.tableOption.filterDic !== !0 && (e["$" + t.prop] = l), l;
228
229
  },
229
230
  corArray(e, t) {
230
231
  let l = this.handleDetail(e, t);
231
- return Array.isArray(l) || (l = i(l) ? [] : l.split(y)), _(l);
232
+ return Array.isArray(l) || (l = a(l) ? [] : l.split(y)), _(l);
232
233
  },
233
234
  openImg(e, t, l) {
234
235
  let n = this.getImgList(e, t);
235
236
  n = n.map((r) => ({ thumbUrl: r, url: r, type: t.fileType })), this.$ImagePreview(n, l);
236
237
  },
237
238
  getImgList(e, t) {
238
- var a, o;
239
- let l = ((a = t.propsHttp) == null ? void 0 : a.home) || "", n = ((o = t.props) == null ? void 0 : o.value) || p.value, r = this.corArray(e, t);
239
+ var i, o;
240
+ let l = ((i = t.propsHttp) == null ? void 0 : i.home) || "", n = ((o = t.props) == null ? void 0 : o.value) || p.value, r = this.corArray(e, t);
240
241
  return r.forEach((c, s) => {
241
242
  r[s] = l + (c[n] ? c[n] : c);
242
243
  }), r;
@@ -257,9 +258,9 @@ function k(e) {
257
258
  for (let t in m)
258
259
  this[t] = m[t];
259
260
  }
260
- const E = /* @__PURE__ */ function() {
261
+ const O = /* @__PURE__ */ function() {
261
262
  return x.exports;
262
263
  }();
263
264
  export {
264
- E as default
265
+ O as default
265
266
  };
@@ -0,0 +1,26 @@
1
+ import { s as t, r } from "../../chunks/ConfigArray.vue_vue_type_template_lang.66483daa.js";
2
+ import { n as e } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ const s = {
4
+ name: "ConfigArray",
5
+ props: ["data"]
6
+ }, o = {};
7
+ var a = /* @__PURE__ */ e(
8
+ s,
9
+ r,
10
+ t,
11
+ !1,
12
+ i,
13
+ null,
14
+ null,
15
+ null
16
+ );
17
+ function i(l) {
18
+ for (let n in o)
19
+ this[n] = o[n];
20
+ }
21
+ const u = /* @__PURE__ */ function() {
22
+ return a.exports;
23
+ }();
24
+ export {
25
+ u as default
26
+ };
@@ -0,0 +1,26 @@
1
+ import { s as t, r as e } from "../../chunks/ConfigColor.vue_vue_type_template_lang.cd880091.js";
2
+ import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ const s = {
4
+ name: "ConfigColor",
5
+ props: ["data"]
6
+ }, n = {};
7
+ var l = /* @__PURE__ */ r(
8
+ s,
9
+ e,
10
+ t,
11
+ !1,
12
+ a,
13
+ null,
14
+ null,
15
+ null
16
+ );
17
+ function a(i) {
18
+ for (let o in n)
19
+ this[o] = n[o];
20
+ }
21
+ const u = /* @__PURE__ */ function() {
22
+ return l.exports;
23
+ }();
24
+ export {
25
+ u as default
26
+ };
@@ -0,0 +1,60 @@
1
+ import MonacoEditor from "../../form-design/utils/monaco-editor";
2
+ import { s as staticRenderFns, r as render } from "../../chunks/ConfigCustom.vue_vue_type_template_lang.6e03d7fd.js";
3
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
+ const __vue2_script = {
5
+ name: "ConfigCustom",
6
+ components: { MonacoEditor },
7
+ props: ["data"],
8
+ data() {
9
+ return {
10
+ params: this.data.params || {},
11
+ event: this.data.event || {},
12
+ options: {
13
+ fullScreen: !0,
14
+ minimap: {
15
+ enabled: !1
16
+ }
17
+ }
18
+ };
19
+ },
20
+ watch: {
21
+ "data.params"(t) {
22
+ this.params = t || {};
23
+ },
24
+ "data.event"(t) {
25
+ this.event = t || {};
26
+ },
27
+ params(val) {
28
+ try {
29
+ this.data.params = eval("(" + val + ")");
30
+ } catch (t) {
31
+ }
32
+ },
33
+ event(val) {
34
+ try {
35
+ this.data.event = eval("(" + val + ")");
36
+ } catch (t) {
37
+ }
38
+ }
39
+ }
40
+ }, __cssModules = {};
41
+ var __component__ = /* @__PURE__ */ normalizeComponent(
42
+ __vue2_script,
43
+ render,
44
+ staticRenderFns,
45
+ !1,
46
+ __vue2_injectStyles,
47
+ null,
48
+ null,
49
+ null
50
+ );
51
+ function __vue2_injectStyles(t) {
52
+ for (let e in __cssModules)
53
+ this[e] = __cssModules[e];
54
+ }
55
+ const ConfigCustom = /* @__PURE__ */ function() {
56
+ return __component__.exports;
57
+ }();
58
+ export {
59
+ ConfigCustom as default
60
+ };
@@ -0,0 +1,26 @@
1
+ import { s as o, r as e } from "../../chunks/ConfigDate.vue_vue_type_template_lang.420fa897.js";
2
+ import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ const r = {
4
+ name: "ConfigDate",
5
+ props: ["data"]
6
+ }, t = {};
7
+ var a = /* @__PURE__ */ s(
8
+ r,
9
+ e,
10
+ o,
11
+ !1,
12
+ i,
13
+ null,
14
+ null,
15
+ null
16
+ );
17
+ function i(l) {
18
+ for (let n in t)
19
+ this[n] = t[n];
20
+ }
21
+ const u = /* @__PURE__ */ function() {
22
+ return a.exports;
23
+ }();
24
+ export {
25
+ u as default
26
+ };
@@ -0,0 +1,26 @@
1
+ import { s as t, r as e } from "../../chunks/ConfigDynamic.vue_vue_type_template_lang.82d24ab0.js";
2
+ import { n as s } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ const r = {
4
+ name: "ConfigDynamic",
5
+ props: ["data"]
6
+ }, o = {};
7
+ var a = /* @__PURE__ */ s(
8
+ r,
9
+ e,
10
+ t,
11
+ !1,
12
+ i,
13
+ null,
14
+ null,
15
+ null
16
+ );
17
+ function i(c) {
18
+ for (let n in o)
19
+ this[n] = o[n];
20
+ }
21
+ const m = /* @__PURE__ */ function() {
22
+ return a.exports;
23
+ }();
24
+ export {
25
+ m as default
26
+ };
@@ -0,0 +1,72 @@
1
+ import MonacoEditor from "../../form-design/utils/monaco-editor";
2
+ import { s as staticRenderFns, r as render } from "../../chunks/ConfigEvent.vue_vue_type_template_lang.5e8ed6cc.js";
3
+ import { n as normalizeComponent } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
+ const __vue2_script = {
5
+ name: "ConfigEvent",
6
+ components: { MonacoEditor },
7
+ props: ["data"],
8
+ data() {
9
+ return {
10
+ change: "",
11
+ click: "",
12
+ focus: "",
13
+ blur: "",
14
+ options: {
15
+ fullScreen: !0,
16
+ minimap: {
17
+ enabled: !1
18
+ }
19
+ }
20
+ };
21
+ },
22
+ watch: {
23
+ "data.prop": {
24
+ handler() {
25
+ const { change: n, click: t, focus: s, blur: o } = this.data;
26
+ this.$set(this, "change", n ? n + "" : `({value}) => {\r
27
+ \r
28
+ }`), this.$set(this, "click", t ? t + "" : `({value}) => {\r
29
+ \r
30
+ }`), this.$set(this, "focus", s ? s + "" : `({value}) => {\r
31
+ \r
32
+ }`), this.$set(this, "blur", o ? o + "" : `({value}) => {\r
33
+ \r
34
+ }`);
35
+ },
36
+ immediate: !0
37
+ }
38
+ },
39
+ mounted() {
40
+ this.$nextTick(() => {
41
+ const event = ["change", "click", "focus", "blur"];
42
+ event.forEach((e) => {
43
+ this.$watch(`${e}`, (val) => {
44
+ try {
45
+ this.$set(this.data, e, eval(val));
46
+ } catch (n) {
47
+ }
48
+ });
49
+ });
50
+ });
51
+ }
52
+ }, __cssModules = {};
53
+ var __component__ = /* @__PURE__ */ normalizeComponent(
54
+ __vue2_script,
55
+ render,
56
+ staticRenderFns,
57
+ !1,
58
+ __vue2_injectStyles,
59
+ null,
60
+ null,
61
+ null
62
+ );
63
+ function __vue2_injectStyles(n) {
64
+ for (let t in __cssModules)
65
+ this[t] = __cssModules[t];
66
+ }
67
+ const ConfigEvent = /* @__PURE__ */ function() {
68
+ return __component__.exports;
69
+ }();
70
+ export {
71
+ ConfigEvent as default
72
+ };