@web-utils/component 2.30.1 → 2.40.0

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 (302) hide show
  1. package/address-input/index.mjs +9 -9
  2. package/address-input/style.css +1 -1
  3. package/affix/index.mjs +1 -1
  4. package/affix/style.css +1 -1
  5. package/aside-menu/index.mjs +20 -20
  6. package/aside-menu/style.css +1 -1
  7. package/avatar/index.mjs +1 -1
  8. package/avatar/style.css +1 -1
  9. package/awesome-button/index.mjs +1 -1
  10. package/base.css +1 -1
  11. package/capsule-tab/index.mjs +10 -10
  12. package/capsule-tab/style.css +1 -1
  13. package/card/index.mjs +23 -23
  14. package/card/style.css +1 -1
  15. package/carousel/index.mjs +5 -5
  16. package/carousel/style.css +1 -1
  17. package/chat/index.mjs +5 -3
  18. package/chat/style.css +1 -1
  19. package/chunk-file-uploader/index.mjs +3 -3
  20. package/chunk-file-uploader/style.css +1 -1
  21. package/chunks/{FormTemp.FX8xmbVB.mjs → FormTemp.7f91629d.mjs} +4 -4
  22. package/chunks/{confirmable-mixin.rTUMhoRH.mjs → confirmable-mixin.817b542f.mjs} +16 -6
  23. package/chunks/{dataformat.X_61lMA7.mjs → dataformat.f995e2f9.mjs} +1 -1
  24. package/chunks/{dic.6tk91Dmq.mjs → dic.eaac0823.mjs} +8 -10
  25. package/chunks/{event.NHA7rYFE.mjs → event.b5d855dd.mjs} +3 -3
  26. package/chunks/{form-input-mixin.IKogWBfn.mjs → form-input-mixin.4632ad36.mjs} +2 -2
  27. package/chunks/{form-item-mixin.BilKDUlK.mjs → form-item-mixin.ad148e7b.mjs} +1 -1
  28. package/chunks/{init.Ac4dKUJB.mjs → init.47f219b4.mjs} +3 -3
  29. package/chunks/{util.C2Bhx22L.mjs → util.ae730cde.mjs} +24 -18
  30. package/code-mirror-editor/index.mjs +404 -175
  31. package/code-mirror-editor/style.css +1 -1
  32. package/color-picker/index.mjs +1 -1
  33. package/comment/index.mjs +18 -18
  34. package/comment/style.css +1 -1
  35. package/confirm-button/index.mjs +2 -2
  36. package/confirmable/index.mjs +2 -2
  37. package/context-menu/index.mjs +9 -9
  38. package/context-menu/style.css +1 -1
  39. package/count-up/index.mjs +6 -10
  40. package/custom-scrollbar/index.mjs +5 -9
  41. package/data-box/index.mjs +8 -8
  42. package/data-box/style.css +1 -1
  43. package/data-card/index.mjs +19 -19
  44. package/data-card/style.css +1 -1
  45. package/data-cardtext/index.mjs +22 -22
  46. package/data-cardtext/style.css +1 -1
  47. package/data-display/index.mjs +24 -24
  48. package/data-display/style.css +1 -1
  49. package/data-icons/index.mjs +13 -13
  50. package/data-icons/style.css +1 -1
  51. package/data-imgtext/index.mjs +18 -18
  52. package/data-imgtext/style.css +1 -1
  53. package/data-operatext/index.mjs +28 -28
  54. package/data-operatext/style.css +1 -1
  55. package/data-panel/index.mjs +15 -15
  56. package/data-panel/style.css +1 -1
  57. package/data-pay/index.mjs +7 -7
  58. package/data-pay/style.css +1 -1
  59. package/data-price/index.mjs +5 -5
  60. package/data-price/style.css +1 -1
  61. package/data-progress/index.mjs +16 -16
  62. package/data-progress/style.css +1 -1
  63. package/data-rotate/index.mjs +7 -7
  64. package/data-rotate/style.css +1 -1
  65. package/data-table-picker/index.mjs +2 -2
  66. package/data-tabs/index.mjs +6 -6
  67. package/data-tabs/style.css +1 -1
  68. package/dialog-form/index.mjs +47 -47
  69. package/dialog-form/style.css +1 -1
  70. package/dynamic-table/index.mjs +15 -15
  71. package/dynamic-table/style.css +1 -1
  72. package/e-charts/index.mjs +7 -7
  73. package/e-charts/style.css +1 -1
  74. package/easy-popup/index.mjs +15 -15
  75. package/easy-popup/style.css +1 -1
  76. package/editable-progress/index.mjs +1 -1
  77. package/editable-progress/style.css +1 -1
  78. package/editable-tree/index.mjs +5 -5
  79. package/editable-tree/style.css +1 -1
  80. package/egd-collapse/index.mjs +1 -1
  81. package/egd-collapse-item/index.mjs +1 -1
  82. package/element-dialog/index.mjs +13 -9
  83. package/element-dialog/style.css +1 -1
  84. package/empty-view/index.mjs +9 -9
  85. package/empty-view/style.css +1 -1
  86. package/error-view/index.mjs +13 -13
  87. package/error-view/style.css +1 -1
  88. package/flex-column/index.mjs +2 -2
  89. package/flex-item/index.mjs +12 -6
  90. package/flex-row/index.mjs +2 -2
  91. package/flex-scroller/index.mjs +5 -5
  92. package/flex-scroller/style.css +1 -1
  93. package/flow/index.mjs +23 -9
  94. package/flow/style.css +1 -1
  95. package/flow-designer/index.mjs +156 -63
  96. package/flow-designer/style.css +1 -1
  97. package/flow-node/index.mjs +2 -2
  98. package/flow-viewer/index.mjs +20 -11
  99. package/flow-viewer/style.css +1 -1
  100. package/form-block/index.mjs +23 -20
  101. package/form-block/style.css +1 -1
  102. package/form-button/index.mjs +1 -1
  103. package/form-cascader/index.mjs +7 -5
  104. package/form-checkbox-group/index.mjs +9 -7
  105. package/form-checkbox-group/style.css +1 -1
  106. package/form-date-picker/index.mjs +41 -12
  107. package/form-holder/index.mjs +6 -3
  108. package/form-input/index.mjs +6 -4
  109. package/form-input-email/index.mjs +12 -8
  110. package/form-input-id-card/index.mjs +12 -8
  111. package/form-input-number/index.mjs +10 -8
  112. package/form-input-number/style.css +1 -1
  113. package/form-input-phone-number/index.mjs +12 -8
  114. package/form-input-tag/index.mjs +3 -3
  115. package/form-input-time/index.mjs +6 -4
  116. package/form-item/index.mjs +43 -37
  117. package/form-item/style.css +1 -1
  118. package/form-item-config-provider/index.mjs +1 -1
  119. package/form-item-group/index.mjs +15 -12
  120. package/form-item-group/style.css +1 -1
  121. package/form-radio-group/index.mjs +40 -38
  122. package/form-radio-group/style.css +1 -1
  123. package/form-select/index.mjs +7 -5
  124. package/form-switch/index.mjs +6 -4
  125. package/form-textarea/index.mjs +6 -4
  126. package/form-view/index.mjs +32 -10
  127. package/form-view/style.css +1 -1
  128. package/fy-array/index.mjs +9 -9
  129. package/fy-array/style.css +1 -1
  130. package/fy-article/index.mjs +7 -7
  131. package/fy-article/style.css +1 -1
  132. package/fy-cascader/index.mjs +2 -2
  133. package/fy-checkbox/index.mjs +6 -6
  134. package/fy-checkbox/style.css +1 -1
  135. package/fy-code/index.mjs +2 -2
  136. package/fy-curd/index.mjs +117 -99
  137. package/fy-curd/style.css +1 -1
  138. package/fy-date/index.mjs +8 -8
  139. package/fy-date/style.css +1 -1
  140. package/fy-draggable/index.mjs +3 -3
  141. package/fy-draggable/style.css +1 -1
  142. package/fy-dynamic/index.mjs +51 -43
  143. package/fy-dynamic/style.css +1 -1
  144. package/fy-empty/index.mjs +10 -10
  145. package/fy-empty/style.css +1 -1
  146. package/fy-form/index.mjs +42 -42
  147. package/fy-form/style.css +1 -1
  148. package/fy-form-design/index.mjs +539 -421
  149. package/fy-form-design/style.css +1 -1
  150. package/fy-input/index.mjs +2 -2
  151. package/fy-input-color/index.mjs +2 -2
  152. package/fy-input-icon/index.mjs +5 -5
  153. package/fy-input-icon/style.css +1 -1
  154. package/fy-input-map/index.mjs +21 -15
  155. package/fy-input-map/style.css +1 -1
  156. package/fy-input-number/index.mjs +2 -2
  157. package/fy-input-table/index.mjs +13 -10
  158. package/fy-input-table/style.css +1 -1
  159. package/fy-input-tree/index.mjs +6 -6
  160. package/fy-input-tree/style.css +1 -1
  161. package/fy-progress/index.mjs +1 -1
  162. package/fy-radio/index.mjs +6 -6
  163. package/fy-radio/style.css +1 -1
  164. package/fy-rate/index.mjs +4 -4
  165. package/fy-rate/style.css +1 -1
  166. package/fy-select/index.mjs +27 -27
  167. package/fy-select/style.css +1 -1
  168. package/fy-slider/index.mjs +3 -3
  169. package/fy-switch/index.mjs +2 -2
  170. package/fy-tabs/index.mjs +1 -1
  171. package/fy-time/index.mjs +2 -2
  172. package/fy-title/index.mjs +14 -14
  173. package/fy-title/style.css +1 -1
  174. package/fy-tree/index.mjs +6 -9
  175. package/fy-tree/style.css +1 -1
  176. package/fy-u-editor/index.mjs +34 -32
  177. package/fy-u-editor/style.css +1 -1
  178. package/fy-upload/index.mjs +27 -27
  179. package/fy-upload/style.css +1 -1
  180. package/guide-steps/index.mjs +12 -12
  181. package/guide-steps/style.css +1 -1
  182. package/highlight-j-s/index.mjs +1 -1
  183. package/highlight-j-s/style.css +1 -1
  184. package/icon-card/index.mjs +9 -9
  185. package/icon-card/style.css +1 -1
  186. package/icon-temp/index.mjs +16 -16
  187. package/icon-temp/style.css +1 -1
  188. package/iframe-window/index.mjs +5 -5
  189. package/iframe-window/style.css +1 -1
  190. package/image-cropper/index.mjs +10 -10
  191. package/image-cropper/style.css +1 -1
  192. package/image-preview/index.mjs +7 -7
  193. package/image-preview/style.css +1 -1
  194. package/image-viewer/index.mjs +5 -5
  195. package/image-viewer/style.css +1 -1
  196. package/input-number/index.mjs +2 -2
  197. package/input-number/style.css +1 -1
  198. package/input-number-range/index.mjs +7 -7
  199. package/input-number-range/style.css +1 -1
  200. package/keep-view-alive/index.mjs +6 -2
  201. package/keyboard/index.mjs +21 -20
  202. package/keyboard/style.css +1 -1
  203. package/license/index.mjs +2 -2
  204. package/loading-view/index.mjs +5 -5
  205. package/loading-view/style.css +1 -1
  206. package/login/index.mjs +4 -4
  207. package/login/style.css +1 -1
  208. package/monaco-editor/index.mjs +2 -2
  209. package/name-avatar/index.mjs +6 -6
  210. package/name-avatar/style.css +1 -1
  211. package/nav-bar/index.mjs +8 -8
  212. package/nav-bar/style.css +1 -1
  213. package/not-implement/index.mjs +15 -15
  214. package/not-implement/style.css +1 -1
  215. package/notice/index.mjs +5 -5
  216. package/notice/style.css +1 -1
  217. package/package.json +1 -1
  218. package/page/index.mjs +8 -8
  219. package/page/style.css +1 -1
  220. package/page-header/index.mjs +6 -6
  221. package/page-header/style.css +1 -1
  222. package/page-index/index.mjs +19 -19
  223. package/page-index/style.css +1 -1
  224. package/page-index-top/index.mjs +1 -1
  225. package/page-skeleton/index.mjs +21 -21
  226. package/page-skeleton/style.css +1 -1
  227. package/page-skeleton-new/index.mjs +3 -3
  228. package/page-skeleton-new/style.css +1 -1
  229. package/pageable-table/index.mjs +21 -26
  230. package/pageable-table/style.css +1 -1
  231. package/pageable-view/index.mjs +37 -42
  232. package/pageable-view/style.css +1 -1
  233. package/photo-swipe/index.mjs +4 -2
  234. package/present-view/index.mjs +31 -9
  235. package/present-view/style.css +1 -1
  236. package/queue/index.mjs +4 -4
  237. package/queue/style.css +1 -1
  238. package/record-video/index.mjs +14 -14
  239. package/record-video/style.css +1 -1
  240. package/resize-observer/index.mjs +6 -6
  241. package/resize-observer/style.css +1 -1
  242. package/search/index.mjs +7 -7
  243. package/search/style.css +1 -1
  244. package/search-popover/index.mjs +6 -6
  245. package/search-popover/style.css +1 -1
  246. package/sign/index.mjs +31 -31
  247. package/sign/style.css +1 -1
  248. package/sign-panel/index.mjs +8 -8
  249. package/sign-panel/style.css +1 -1
  250. package/skeleton/index.mjs +10 -10
  251. package/skeleton/style.css +1 -1
  252. package/split-pane/index.mjs +19 -22
  253. package/split-pane/style.css +1 -1
  254. package/stateful/index.mjs +12 -12
  255. package/stateful/style.css +1 -1
  256. package/static-pageable-table/index.mjs +9 -9
  257. package/static-pageable-table/style.css +1 -1
  258. package/swiper/index.mjs +7 -7
  259. package/swiper/style.css +1 -1
  260. package/tab/index.mjs +2 -2
  261. package/tab/style.css +1 -1
  262. package/tab-item/index.mjs +2 -2
  263. package/table-column/index.mjs +10 -6
  264. package/table-view/index.mjs +28 -8
  265. package/table-view/style.css +1 -1
  266. package/tag-render/index.mjs +29 -29
  267. package/tag-render/style.css +1 -1
  268. package/text-ellipsis/index.mjs +9 -12
  269. package/text-ellipsis/style.css +1 -1
  270. package/tinymce-editor/index.mjs +77 -77
  271. package/tinymce-editor/style.css +1 -1
  272. package/toolbar/index.mjs +1 -1
  273. package/toolbar/style.css +1 -1
  274. package/toolbar-button/index.mjs +6 -6
  275. package/toolbar-button/style.css +1 -1
  276. package/verify/index.mjs +10 -10
  277. package/verify/style.css +1 -1
  278. package/vue-cron/index.mjs +1 -1
  279. package/vue-cron/style.css +1 -1
  280. package/vue-qr-code/index.mjs +1 -1
  281. package/vue-quill-editor/index.mjs +3 -3
  282. package/vue-quill-editor/style.css +1 -1
  283. package/vue-tags-input/index.mjs +1 -1
  284. package/vue-tags-input/style.css +1 -1
  285. package/vue-tree-select/index.mjs +25 -22
  286. package/vue-tree-select/style.css +1 -1
  287. package/vue-video-player/index.mjs +32 -29
  288. package/vue-video-player/style.css +1 -1
  289. package/watermark/index.mjs +11 -11
  290. package/watermark/style.css +1 -1
  291. package/web-types.json +31 -31
  292. package/x-input-tag/index.mjs +13 -13
  293. package/x-input-tag/style.css +1 -1
  294. /package/chunks/{form-pick-mixin.y-qhZJi6.mjs → form-pick-mixin.61ad06b2.mjs} +0 -0
  295. /package/chunks/{index.LGsb2aDq.mjs → index.57f871af.mjs} +0 -0
  296. /package/chunks/{input-number-mixin.GE2zr_3s.mjs → input-number-mixin.41a066be.mjs} +0 -0
  297. /package/chunks/{json-beautifier.fUZFSW5j.mjs → json-beautifier.21cfffea.mjs} +0 -0
  298. /package/chunks/{packages.v6r2Hr7E.mjs → packages.1fc9ccba.mjs} +0 -0
  299. /package/chunks/{permission.E9kZbW48.mjs → permission.ce5d2121.mjs} +0 -0
  300. /package/chunks/{slot.j1uMmBnG.mjs → slot.4b391395.mjs} +0 -0
  301. /package/chunks/{tab-mixin.tM9jcRT8.mjs → tab-mixin.e2b9c6a4.mjs} +0 -0
  302. /package/chunks/{vueComponentNormalizer.JwmUNtgn.mjs → vueComponentNormalizer.446f5dc4.mjs} +0 -0
package/fy-form/index.mjs CHANGED
@@ -14,14 +14,14 @@ var D = (e, i, r) => new Promise((s, p) => {
14
14
  }, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(t, l);
15
15
  a((r = r.apply(e, i)).next());
16
16
  });
17
- import { F as B, d as I } from "../chunks/FormTemp.FX8xmbVB.mjs";
18
- import { i as M } from "../chunks/init.Ac4dKUJB.mjs";
19
- import { s as y, d as x, u as L, x as V, p as A, j as S, a as W, o as R, y as G } from "../chunks/util.C2Bhx22L.mjs";
20
- import { d as H, c as U, a as q, b as K, f as J } from "../chunks/dataformat.X_61lMA7.mjs";
21
- import { s as Q } from "../chunks/dic.6tk91Dmq.mjs";
22
- import { p as X } from "../chunks/packages.v6r2Hr7E.mjs";
23
- import { isBlank as u } from "@web-utils/core";
24
- import { n as $ } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
17
+ import { F as B, d as I } from "../chunks/FormTemp.7f91629d.mjs";
18
+ import { i as M } from "../chunks/init.47f219b4.mjs";
19
+ import { s as y, d as x, u as L, x as V, p as A, j as S, a as W, o as G, y as R } from "../chunks/util.ae730cde.mjs";
20
+ import { d as H, c as U, a as q, b as K, f as J } from "../chunks/dataformat.f995e2f9.mjs";
21
+ import { s as Q } from "../chunks/dic.eaac0823.mjs";
22
+ import { p as X } from "../chunks/packages.1fc9ccba.mjs";
23
+ import { isBlank as f } from "@web-utils/core";
24
+ import { n as $ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
25
25
  const Y = (e, i, r, s) => {
26
26
  if (!s)
27
27
  return;
@@ -33,17 +33,17 @@ const Y = (e, i, r, s) => {
33
33
  function a({ en: c }) {
34
34
  return c ? t.name(!0) : t.cname();
35
35
  }
36
- function o({ max: c, min: n, precision: f }) {
37
- if (f) {
38
- const h = `${t.float(n, c, f)}`, m = h.indexOf(".") + 1;
39
- return Number(h.substring(0, m + f));
36
+ function o({ max: c, min: n, precision: u }) {
37
+ if (u) {
38
+ const h = `${t.float(n, c, u)}`, m = h.indexOf(".") + 1;
39
+ return Number(h.substring(0, m + u));
40
40
  } else
41
41
  return t.integer(n, c);
42
42
  }
43
43
  function d({ header: c }) {
44
44
  let n = t.url();
45
- const f = n.indexOf("://");
46
- return c === !1 ? n = n.substring(f + 3) : n = `http://${n.substring(f + 3)}`, n;
45
+ const u = n.indexOf("://");
46
+ return c === !1 ? n = n.substring(u + 3) : n = `http://${n.substring(u + 3)}`, n;
47
47
  }
48
48
  function w({ format: c, now: n }) {
49
49
  return n ? t.now(c) : t.datetime(c);
@@ -54,9 +54,9 @@ const Y = (e, i, r, s) => {
54
54
  function N() {
55
55
  return t.county(!0);
56
56
  }
57
- function P({ dic: c, props: n, columnType: f, multiple: h }) {
57
+ function P({ dic: c, props: n, columnType: u, multiple: h }) {
58
58
  const m = n.value || "value", b = c.length;
59
- if (["checkbox"].includes(f) || h) {
59
+ if (["checkbox"].includes(u) || h) {
60
60
  const _ = o({ min: 1, max: b }), v = [];
61
61
  for (let g = 0; g < _; g++) {
62
62
  let O = !0;
@@ -75,28 +75,28 @@ const Y = (e, i, r, s) => {
75
75
  Object.keys(e).forEach((c) => {
76
76
  const n = e[c];
77
77
  if (n.mock && typeof n.mock == "object") {
78
- const f = n.mock;
79
- switch (f.dic = typeof n.dicData == "string" ? i[n.dicData] : n.dicData || [], f.props = n.props || {}, f.columnType = n.type, f.multiple = n.multiple, f.type) {
78
+ const u = n.mock;
79
+ switch (u.dic = typeof n.dicData == "string" ? i[n.dicData] : n.dicData || [], u.props = n.props || {}, u.columnType = n.type, u.multiple = n.multiple, u.type) {
80
80
  case "name":
81
- l[n.prop] = a(f);
81
+ l[n.prop] = a(u);
82
82
  break;
83
83
  case "number":
84
- l[n.prop] = o(f);
84
+ l[n.prop] = o(u);
85
85
  break;
86
86
  case "datetime":
87
- l[n.prop] = w(f);
87
+ l[n.prop] = w(u);
88
88
  break;
89
89
  case "word":
90
- l[n.prop] = T(f);
90
+ l[n.prop] = T(u);
91
91
  break;
92
92
  case "url":
93
- l[n.prop] = d(f);
93
+ l[n.prop] = d(u);
94
94
  break;
95
95
  case "county":
96
96
  l[n.prop] = N();
97
97
  break;
98
98
  case "dic":
99
- l[n.prop] = P(f);
99
+ l[n.prop] = P(u);
100
100
  break;
101
101
  }
102
102
  } else
@@ -306,10 +306,10 @@ function pe(e) {
306
306
  for (let i in C)
307
307
  this[i] = C[i];
308
308
  }
309
- const fe = /* @__PURE__ */ function() {
309
+ const ue = /* @__PURE__ */ function() {
310
310
  return le.exports;
311
311
  }();
312
- var ue = function() {
312
+ var fe = function() {
313
313
  var e = this, i = e.$createElement, r = e._self._c || i;
314
314
  return r("div", {
315
315
  class: ["avue-form", {
@@ -577,7 +577,7 @@ var ue = function() {
577
577
  }, ce = [];
578
578
  const de = {
579
579
  name: "FyForm",
580
- components: { FormTemp: B, FyFormMenu: fe, FormGroup: se },
580
+ components: { FormTemp: B, FyFormMenu: ue, FormGroup: se },
581
581
  mixins: [M],
582
582
  provide() {
583
583
  return {
@@ -776,7 +776,7 @@ const de = {
776
776
  const e = J(this.propOption).tableForm, i = this.value, r = {};
777
777
  Object.entries(Object.assign(e, i)).forEach((s) => {
778
778
  const p = s[0], t = s[1];
779
- u(i[p]) ? r[p] = t : r[p] = i[p];
779
+ f(i[p]) ? r[p] = t : r[p] = i[p];
780
780
  }), this.$set(this, "form", r), this.setLabel(), this.setControl(), this.setVal(), setTimeout(() => {
781
781
  this.formCreate = !0, this.clearValidate();
782
782
  });
@@ -821,7 +821,7 @@ const de = {
821
821
  setLabel() {
822
822
  this.tableOption.filterNull === !0 && (this.form = S(this.form, [""], !1)), this.tableOption.filterDic === !0 ? this.form = S(this.form, ["$"], !1) : this.propOption.forEach((e) => {
823
823
  const i = this.DIC[e.prop];
824
- if (u(i))
824
+ if (f(i))
825
825
  return;
826
826
  const r = I(this.form, e, this.tableOption, i);
827
827
  r ? this.$set(this.form, `$${e.prop}`, r) : this.$delete(this.form, `$${e.prop}`);
@@ -835,7 +835,7 @@ const de = {
835
835
  },
836
836
  getLabelWidth(e, i) {
837
837
  let r;
838
- return u(e.labelWidth) ? u(i.labelWidth) ? r = this.parentOption.labelWidth : r = i.labelWidth : r = e.labelWidth, y(r, this.labelWidth);
838
+ return f(e.labelWidth) ? f(i.labelWidth) ? r = this.parentOption.labelWidth : r = i.labelWidth : r = e.labelWidth, y(r, this.labelWidth);
839
839
  },
840
840
  // 对部分表单字段进行校验的方法
841
841
  validateField(e) {
@@ -852,16 +852,16 @@ const de = {
852
852
  const r = i.cascader, s = r.join(",");
853
853
  r.forEach((p) => {
854
854
  const t = p, l = this.form[i.prop], a = this.findObject(e, t);
855
- u(a) || (this.formList.includes(s) && r.forEach((o) => {
855
+ f(a) || (this.formList.includes(s) && r.forEach((o) => {
856
856
  this.form[o] = "", this.$set(this.DIC, o, []);
857
- }), !(u(r) || u(l) || u(a)) && Q({
857
+ }), !(f(r) || f(l) || f(a)) && Q({
858
858
  column: a,
859
859
  value: l,
860
860
  form: this.form
861
861
  }).then((o) => {
862
862
  this.formList.includes(s) || this.formList.push(s);
863
863
  const d = o || [];
864
- this.$set(this.DIC, t, d), !u(d) && !u(d) && !u(a.cascaderIndex) && u(this.form[t]) && (this.form[t] = d[a.cascaderIndex][(a.props || {}).value || W.value]);
864
+ this.$set(this.DIC, t, d), !f(d) && !f(d) && !f(a.cascaderIndex) && f(this.form[t]) && (this.form[t] = d[a.cascaderIndex][(a.props || {}).value || W.value]);
865
865
  }));
866
866
  });
867
867
  });
@@ -875,7 +875,7 @@ const de = {
875
875
  handleMock() {
876
876
  this.isMock && (this.columnOption.forEach((e) => {
877
877
  const i = Y(e.column, this.DIC, this.form, this.isMock);
878
- u(i) || Object.keys(i).forEach((r) => {
878
+ f(i) || Object.keys(i).forEach((r) => {
879
879
  this.form[r] = i[r];
880
880
  });
881
881
  }), this.$nextTick(() => {
@@ -886,7 +886,7 @@ const de = {
886
886
  let i;
887
887
  if (this.detail)
888
888
  return !1;
889
- if (!u(e.detail))
889
+ if (!f(e.detail))
890
890
  i = "detail";
891
891
  else if (this.isAdd)
892
892
  i = "addDetail";
@@ -901,7 +901,7 @@ const de = {
901
901
  let i;
902
902
  if (this.disabled)
903
903
  return !0;
904
- if (!u(e.disabled))
904
+ if (!f(e.disabled))
905
905
  i = "disabled";
906
906
  else if (this.isAdd)
907
907
  i = "addDisabled";
@@ -914,7 +914,7 @@ const de = {
914
914
  // 验证表单是否显隐
915
915
  vaildDisplay(e) {
916
916
  let i;
917
- return u(e.display) ? this.isAdd ? i = "addDisplay" : this.isEdit ? i = "editDisplay" : this.isView && (i = "viewDisplay") : i = "display", i ? R(e[i], !0) : !0;
917
+ return f(e.display) ? this.isAdd ? i = "addDisplay" : this.isEdit ? i = "editDisplay" : this.isView && (i = "viewDisplay") : i = "display", i ? G(e[i], !0) : !0;
918
918
  },
919
919
  clearValidate(e) {
920
920
  return D(this, null, function* () {
@@ -934,22 +934,22 @@ const de = {
934
934
  const s = [], p = [], t = {};
935
935
  this.dynamicOption.forEach((l) => {
936
936
  const a = l.children.type === "form";
937
- p.push(l.prop), a ? u(this.$refs[l.prop][0].$refs.temp.$refs.main) || this.$refs[l.prop][0].$refs.temp.$refs.main.forEach((o) => {
937
+ p.push(l.prop), a ? f(this.$refs[l.prop][0].$refs.temp.$refs.main) || this.$refs[l.prop][0].$refs.temp.$refs.main.forEach((o) => {
938
938
  s.push(o.validateCellForm());
939
939
  }) : s.push(this.$refs[l.prop][0].$refs.temp.$refs.main.validateCellForm());
940
940
  }), Promise.all(s).then((l) => {
941
941
  l.forEach((o, d) => {
942
- u(o) || (t[p[d]] = o);
942
+ f(o) || (t[p[d]] = o);
943
943
  });
944
944
  const a = Object.assign(t, r);
945
- u(a) ? (this.show(), e(!0, this.hide)) : e(!1, this.hide, a);
945
+ f(a) ? (this.show(), e(!0, this.hide)) : e(!1, this.hide, a);
946
946
  });
947
947
  });
948
948
  },
949
949
  resetForm(e = !0) {
950
950
  if (e) {
951
951
  const i = this.propOption.map((r) => r.prop);
952
- this.form = G(this.form, i, (this.tableOption.filterParams || []).concat([this.rowKey]));
952
+ this.form = R(this.form, i, (this.tableOption.filterParams || []).concat([this.rowKey]));
953
953
  }
954
954
  this.$nextTick(() => {
955
955
  this.clearValidate(), this.$emit("reset-change");
@@ -973,7 +973,7 @@ const de = {
973
973
  }, E = {};
974
974
  var he = /* @__PURE__ */ $(
975
975
  de,
976
- ue,
976
+ fe,
977
977
  ce,
978
978
  !1,
979
979
  me,
package/fy-form/style.css CHANGED
@@ -1 +1 @@
1
- .avue-group{width:100%}.avue-group .el-collapse,.avue-group .el-collapse-item__wrap{border-color:#fff}.avue-group .el-collapse-item__header{height:inherit;border:none;border-bottom:1px solid #eee;margin-bottom:20px}.avue-group .el-collapse-item__content,.avue-group .van-collapse-item__content{padding-bottom:0}.avue-group .van-collapse-item__content{padding:0 2px}.avue-group--arrow .el-collapse-item__arrow,.avue-group--arrow .van-icon-arrow,.avue-group .van-hairline--top-bottom:after,.avue-group .van-hairline-unset--top-bottom:after{display:none}.avue-group .van-collapse-item__title{align-items:center;padding:0 10px;display:flex}.avue-group .van-collapse-item__title:after{left:0!important}.avue-group--none{border:none!important;margin:0!important}.avue-group--header .el-collapse-item__header,.avue-group--header .van-collapse-item__title{display:none}.avue-group--collapse .el-collapse-item__arrow,.avue-group--collapse .el-collapse-item__header{display:flex!important}.avue-group__item{box-sizing:border-box;background-color:#fff;border-bottom:1px solid #eee;border-radius:5px;margin-bottom:10px}.avue-group__item:last-child{border-bottom:none}.avue-group__header{box-sizing:border-box;align-items:center;width:100%;height:50px;line-height:50px;display:flex}.avue-group__icon{color:rgba(0,0,0,.85);margin-right:8px;font-size:20px}.avue-group__title{color:rgba(0,0,0,.85);font-size:16px;font-weight:500}.avue-form{box-sizing:border-box;margin:0 auto;padding:10px;position:relative;overflow:auto}.avue-form__item--top{flex-direction:column;display:flex}.avue-form__item--top .el-form-item__label{text-align:left!important;width:100%!important}.avue-form__item--top .el-form-item__content{margin-left:0!important}.avue-form__item--left .el-form-item__label{text-align:left!important}.avue-form__menu{box-sizing:border-box;padding:5px 10px 0}.avue-form__menu--center{text-align:center}.avue-form__menu--center .el-button{margin:0 5px}.avue-form__menu--left{text-align:left}.avue-form__menu--right{text-align:right}.avue-form__tabs{box-sizing:border-box;padding:0 10px}.avue-form__group{flex-wrap:wrap;align-items:flex-start;height:auto}.avue-form__group--flex{display:flex}.avue-form__group .el-col{position:relative}.avue-form__line{height:100%;display:inline-block}.avue-form__row--block{width:100%;display:block}.avue-form__row--cursor{cursor:pointer}.avue-form__option{z-index:999;position:absolute;top:-10px;right:0}.avue-form__option i{color:#666}.avue-form__option i+i{margin-left:10px}
1
+ .avue-group{width:100%}.avue-group .el-collapse,.avue-group .el-collapse-item__wrap{border-color:#fff}.avue-group .el-collapse-item__header{height:inherit;border:none;border-bottom:1px solid #eee;margin-bottom:20px}.avue-group .el-collapse-item__content,.avue-group .van-collapse-item__content{padding-bottom:0}.avue-group .van-collapse-item__content{padding:0 2px}.avue-group--arrow .el-collapse-item__arrow,.avue-group--arrow .van-icon-arrow,.avue-group .van-hairline--top-bottom:after,.avue-group .van-hairline-unset--top-bottom:after{display:none}.avue-group .van-collapse-item__title{align-items:center;padding:0 10px;display:flex}.avue-group .van-collapse-item__title:after{left:0!important}.avue-group--none{border:none!important;margin:0!important}.avue-group--header .el-collapse-item__header,.avue-group--header .van-collapse-item__title{display:none}.avue-group--collapse .el-collapse-item__arrow,.avue-group--collapse .el-collapse-item__header{display:flex!important}.avue-group__item{box-sizing:border-box;background-color:#fff;border-bottom:1px solid #eee;border-radius:5px;margin-bottom:10px}.avue-group__item:last-child{border-bottom:none}.avue-group__header{box-sizing:border-box;align-items:center;width:100%;height:50px;line-height:50px;display:flex}.avue-group__icon{color:rgba(0,0,0,.85);margin-right:8px;font-size:20px}.avue-group__title{color:rgba(0,0,0,.85);font-size:16px;font-weight:500}.avue-form{box-sizing:border-box;margin:0 auto;padding:10px;position:relative;overflow:auto}.avue-form__item--top{flex-direction:column;display:flex}.avue-form__item--top .el-form-item__label{text-align:left!important;width:100%!important}.avue-form__item--top .el-form-item__content{margin-left:0!important}.avue-form__item--left .el-form-item__label{text-align:left!important}.avue-form__menu{box-sizing:border-box;padding:5px 10px 0}.avue-form__menu--center{text-align:center}.avue-form__menu--center .el-button{margin:0 5px}.avue-form__menu--left{text-align:left}.avue-form__menu--right{text-align:right}.avue-form__tabs{box-sizing:border-box;padding:0 10px}.avue-form__group{flex-wrap:wrap;align-items:flex-start;height:auto}.avue-form__group--flex{display:flex}.avue-form__group .el-col{position:relative}.avue-form__line{height:100%;display:inline-block}.avue-form__row--block{width:100%;display:block}.avue-form__row--cursor{cursor:pointer}.avue-form__option{z-index:999;position:absolute;top:-10px;right:0}.avue-form__option i{color:#666}.avue-form__option i+i{margin-left:10px}