@web-utils/component 2.30.1 → 2.30.2

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 (94) hide show
  1. package/chat/index.mjs +4 -2
  2. package/chunks/{FormTemp.FX8xmbVB.mjs → FormTemp.CtpL-vJy.mjs} +2 -2
  3. package/chunks/{confirmable-mixin.rTUMhoRH.mjs → confirmable-mixin.GqdyYLEM.mjs} +16 -6
  4. package/chunks/{dataformat.X_61lMA7.mjs → dataformat.Ab9PZnVk.mjs} +1 -1
  5. package/chunks/{dic.6tk91Dmq.mjs → dic.7JBaVHv6.mjs} +8 -10
  6. package/chunks/{event.NHA7rYFE.mjs → event.lbJYeMJp.mjs} +2 -2
  7. package/chunks/{init.Ac4dKUJB.mjs → init.6oF7OO2W.mjs} +2 -2
  8. package/chunks/{util.C2Bhx22L.mjs → util.y1gUGRqi.mjs} +24 -18
  9. package/code-mirror-editor/index.mjs +380 -151
  10. package/confirm-button/index.mjs +1 -1
  11. package/confirmable/index.mjs +1 -1
  12. package/count-up/index.mjs +5 -9
  13. package/custom-scrollbar/index.mjs +4 -8
  14. package/dialog-form/index.mjs +1 -1
  15. package/element-dialog/index.mjs +5 -1
  16. package/flex-item/index.mjs +10 -4
  17. package/flow/index.mjs +22 -8
  18. package/flow-designer/index.mjs +125 -32
  19. package/flow-node/index.mjs +1 -1
  20. package/flow-viewer/index.mjs +16 -7
  21. package/form-block/index.mjs +10 -7
  22. package/form-cascader/index.mjs +3 -1
  23. package/form-checkbox-group/index.mjs +3 -1
  24. package/form-date-picker/index.mjs +37 -8
  25. package/form-holder/index.mjs +4 -1
  26. package/form-input/index.mjs +3 -1
  27. package/form-input-email/index.mjs +9 -5
  28. package/form-input-id-card/index.mjs +9 -5
  29. package/form-input-number/index.mjs +3 -1
  30. package/form-input-phone-number/index.mjs +9 -5
  31. package/form-input-time/index.mjs +3 -1
  32. package/form-item/index.mjs +28 -22
  33. package/form-item-group/index.mjs +11 -8
  34. package/form-radio-group/index.mjs +3 -1
  35. package/form-select/index.mjs +3 -1
  36. package/form-switch/index.mjs +3 -1
  37. package/form-textarea/index.mjs +3 -1
  38. package/form-view/index.mjs +25 -3
  39. package/fy-array/index.mjs +2 -2
  40. package/fy-cascader/index.mjs +1 -1
  41. package/fy-checkbox/index.mjs +1 -1
  42. package/fy-code/index.mjs +1 -1
  43. package/fy-curd/index.mjs +113 -95
  44. package/fy-date/index.mjs +1 -1
  45. package/fy-draggable/index.mjs +2 -2
  46. package/fy-dynamic/index.mjs +42 -34
  47. package/fy-empty/index.mjs +1 -1
  48. package/fy-form/index.mjs +5 -5
  49. package/fy-form-design/index.mjs +537 -419
  50. package/fy-form-design/style.css +1 -1
  51. package/fy-input/index.mjs +1 -1
  52. package/fy-input-color/index.mjs +1 -1
  53. package/fy-input-icon/index.mjs +1 -1
  54. package/fy-input-map/index.mjs +14 -8
  55. package/fy-input-number/index.mjs +1 -1
  56. package/fy-input-table/index.mjs +12 -9
  57. package/fy-input-tree/index.mjs +1 -1
  58. package/fy-radio/index.mjs +1 -1
  59. package/fy-rate/index.mjs +1 -1
  60. package/fy-select/index.mjs +3 -3
  61. package/fy-slider/index.mjs +2 -2
  62. package/fy-switch/index.mjs +1 -1
  63. package/fy-time/index.mjs +1 -1
  64. package/fy-title/index.mjs +1 -1
  65. package/fy-tree/index.mjs +4 -7
  66. package/fy-u-editor/index.mjs +32 -30
  67. package/fy-upload/index.mjs +14 -14
  68. package/image-cropper/index.mjs +1 -1
  69. package/image-preview/index.mjs +1 -1
  70. package/keep-view-alive/index.mjs +5 -1
  71. package/keyboard/index.mjs +9 -8
  72. package/license/index.mjs +1 -1
  73. package/login/index.mjs +1 -1
  74. package/not-implement/index.mjs +1 -1
  75. package/notice/index.mjs +4 -4
  76. package/package.json +1 -1
  77. package/pageable-table/index.mjs +9 -14
  78. package/pageable-view/index.mjs +9 -14
  79. package/photo-swipe/index.mjs +3 -1
  80. package/present-view/index.mjs +24 -2
  81. package/record-video/index.mjs +1 -1
  82. package/search/index.mjs +3 -3
  83. package/search-popover/index.mjs +1 -1
  84. package/sign/index.mjs +1 -1
  85. package/sign-panel/index.mjs +3 -3
  86. package/split-pane/index.mjs +1 -4
  87. package/table-column/index.mjs +9 -5
  88. package/table-view/index.mjs +22 -2
  89. package/text-ellipsis/index.mjs +2 -5
  90. package/tinymce-editor/index.mjs +14 -14
  91. package/verify/index.mjs +1 -1
  92. package/vue-tree-select/index.mjs +24 -21
  93. package/vue-video-player/index.mjs +8 -5
  94. package/web-types.json +31 -31
@@ -68,7 +68,9 @@ var y = function() {
68
68
  }], null, !0)
69
69
  }, "FormItem", e.formItemProps, !1));
70
70
  }, g = [];
71
- const b = Object.keys(l.props || l.default.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), x = {
71
+ const b = Object.keys(l.props || l.default.props).filter(
72
+ (e) => !["value", "placeholder", "disabled"].includes(e)
73
+ ), x = {
72
74
  name: "FormInputTime",
73
75
  mixins: [f],
74
76
  props: {
@@ -73,22 +73,25 @@ const B = {
73
73
  let m = f, c = u, p = u, C = k, I = y;
74
74
  d && (w(d, "block") && (C = d.block), w(d, "wrapCol") && (I = d.wrapCol));
75
75
  const j = C && $ && I ? `calc( 50% - ${this.gutter / 2}px)` : "";
76
- return E || a != null && a.disabled ? (m = [], l && !l.required && !((b = l.requiredFields) != null && b.includes(i)) && (p = !1)) : (l && !l.required && !((q = l.requiredFields) != null && q.includes(i)) && (c = !1), c && !(m != null && m.length) && i ? m = [W()] : c || (p = !1, m && (m = m.filter((H) => !H.required)))), R ? e("ElFormItem", {
77
- style: {
78
- width: j
79
- },
80
- key: `${i}-${c}`,
81
- class: p ? `form-item required ${n || ""}` : `${n || ""}`,
82
- scopedSlots: s,
83
- props: h({}, o),
84
- attrs: {
85
- label: r,
86
- "label-width": t,
87
- prop: i,
88
- rules: m
89
- },
90
- ref: "formItem"
91
- }) : e("div", [(g = s.default) == null ? void 0 : g.call(s)]);
76
+ return E || a != null && a.disabled ? (m = [], l && !l.required && !((b = l.requiredFields) != null && b.includes(i)) && (p = !1)) : (l && !l.required && !((q = l.requiredFields) != null && q.includes(i)) && (c = !1), c && !(m != null && m.length) && i ? m = [W()] : c || (p = !1, m && (m = m.filter((H) => !H.required)))), R ? (
77
+ // eslint-disable-next-line no-undef
78
+ e("ElFormItem", {
79
+ style: {
80
+ width: j
81
+ },
82
+ key: `${i}-${c}`,
83
+ class: p ? `form-item required ${n || ""}` : `${n || ""}`,
84
+ scopedSlots: s,
85
+ props: h({}, o),
86
+ attrs: {
87
+ label: r,
88
+ "label-width": t,
89
+ prop: i,
90
+ rules: m
91
+ },
92
+ ref: "formItem"
93
+ })
94
+ ) : e("div", [(g = s.default) == null ? void 0 : g.call(s)]);
92
95
  },
93
96
  clearValidate() {
94
97
  return _(this, null, function* () {
@@ -115,12 +118,15 @@ const B = {
115
118
  unwrap: a
116
119
  } = this;
117
120
  let l = t;
118
- return i && w(i, "wrapCol") && (l = i.wrapCol), a ? e("div", [(n = o.default) == null ? void 0 : n.call(o)]) : l ? e("ElCol", {
119
- props: h({}, s),
120
- attrs: {
121
- span: r
122
- }
123
- }, [f(), (u = o == null ? void 0 : o.below) == null ? void 0 : u.call(o)]) : f();
121
+ return i && w(i, "wrapCol") && (l = i.wrapCol), a ? e("div", [(n = o.default) == null ? void 0 : n.call(o)]) : l ? (
122
+ // eslint-disable-next-line no-undef
123
+ e("ElCol", {
124
+ props: h({}, s),
125
+ attrs: {
126
+ span: r
127
+ }
128
+ }, [f(), (u = o == null ? void 0 : o.below) == null ? void 0 : u.call(o)])
129
+ ) : f();
124
130
  }
125
131
  };
126
132
  let N, O;
@@ -90,14 +90,17 @@ const r = ["disabled", "size", "statusIcon", "inlineMessage", "autoLabelWidth",
90
90
  formConfig: i,
91
91
  $scopedSlots: o
92
92
  } = this;
93
- return m(o.default) ? t ? e("ElRow", {
94
- attrs: {
95
- gutter: s
96
- },
97
- class: "form-item-group-row"
98
- }, [o.default({
99
- disabled: i.disabled
100
- })]) : o.default({
93
+ return m(o.default) ? t ? (
94
+ // eslint-disable-next-line no-undef
95
+ e("ElRow", {
96
+ attrs: {
97
+ gutter: s
98
+ },
99
+ class: "form-item-group-row"
100
+ }, [o.default({
101
+ disabled: i.disabled
102
+ })])
103
+ ) : o.default({
101
104
  disabled: i.disabled
102
105
  }) : e("EmptyView", {
103
106
  attrs: {
@@ -87,7 +87,9 @@ var _ = function() {
87
87
  }], null, !0)
88
88
  }, "FormItem", e.formItemProps, !1));
89
89
  }, b = [];
90
- const g = Object.keys(a.props || a.default.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), K = {
90
+ const g = Object.keys(a.props || a.default.props).filter(
91
+ (e) => !["value", "placeholder", "disabled"].includes(e)
92
+ ), K = {
91
93
  name: "FormRadioGroup",
92
94
  mixins: [h, d],
93
95
  props: {
@@ -74,7 +74,9 @@ var v = function() {
74
74
  }], null, !0)
75
75
  }, "FormItem", e.formItemProps, !1));
76
76
  }, b = [];
77
- const K = Object.keys(a.props || a.default.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), g = {
77
+ const K = Object.keys(a.props || a.default.props).filter(
78
+ (e) => !["value", "placeholder", "disabled"].includes(e)
79
+ ), g = {
78
80
  name: "FormSelect",
79
81
  mixins: [h, m],
80
82
  props: {
@@ -67,7 +67,9 @@ var h = function() {
67
67
  }], null, !0)
68
68
  }, "FormItem", e.formItemProps, !1));
69
69
  }, y = [];
70
- const b = Object.keys(s.props || s.default.props).filter((e) => !["value", "placeholder", "disabled"].includes(e)), S = {
70
+ const b = Object.keys(s.props || s.default.props).filter(
71
+ (e) => !["value", "placeholder", "disabled"].includes(e)
72
+ ), S = {
71
73
  name: "FormSwitch",
72
74
  mixins: [d],
73
75
  props: {
@@ -60,7 +60,9 @@ var x = function() {
60
60
  }], null, !0)
61
61
  }, "FormItem", e.formItemProps, !1));
62
62
  }, y = [];
63
- const v = Object.keys(a.props || a.default.props).filter((e) => !["value", "placeholder", "type", "rows", "resize", "showWordLimit", "maxLength", "maxlength"].includes(e)), b = {
63
+ const v = Object.keys(a.props || a.default.props).filter(
64
+ (e) => !["value", "placeholder", "type", "rows", "resize", "showWordLimit", "maxLength", "maxlength"].includes(e)
65
+ ), b = {
64
66
  name: "FormTextarea",
65
67
  mixins: [f],
66
68
  props: {
@@ -185,7 +185,7 @@ var x = function() {
185
185
  staticClass: "form-nav"
186
186
  }, [o("div", {
187
187
  staticClass: "form-nav-header"
188
- }, [t._v(" 表单导航 ")]), o("ul", {
188
+ }, [t._v("表单导航")]), o("ul", {
189
189
  staticClass: "form-nav-list"
190
190
  }, t._l(t.groups, function(r, s) {
191
191
  return o("li", {
@@ -206,7 +206,27 @@ var x = function() {
206
206
  }
207
207
  }) : t._e()], 1);
208
208
  }, $ = [];
209
- const p = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "agree", "disagree", "reject", "finish", "cancel", "enable", "exp", "imp", "del", "disabled", "reload", "slot"], S = p.map((t) => `${t}-down`), F = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
209
+ const p = [
210
+ "back",
211
+ "create",
212
+ "save",
213
+ "withdraw",
214
+ "edit",
215
+ "submit",
216
+ "publish",
217
+ "agree",
218
+ "disagree",
219
+ "reject",
220
+ "finish",
221
+ "cancel",
222
+ "enable",
223
+ "exp",
224
+ "imp",
225
+ "del",
226
+ "disabled",
227
+ "reload",
228
+ "slot"
229
+ ], S = p.map((t) => `${t}-down`), F = ["back", "withdraw", "edit"], m = ["save", "submit", "", "publish", "agree", "disagree", "reject", "finish", "cancel"], u = (t, e) => {
210
230
  if (t.classList.contains(e))
211
231
  return t;
212
232
  let o = t.parentNode;
@@ -278,7 +298,9 @@ const p = ["back", "create", "save", "withdraw", "edit", "submit", "publish", "a
278
298
  return this.toolbarProps.buttons.filter((t) => !m.includes(t) && t.indexOf(":down") < 0).map((t) => t.replace(":up", ""));
279
299
  },
280
300
  footerBarButtons() {
281
- let t = this.toolbarProps.buttons.filter((e) => !F.includes(e) && (m.includes(e) || e.indexOf(":down") > -1)).map((e) => e.replace(":down", ""));
301
+ let t = this.toolbarProps.buttons.filter(
302
+ (e) => !F.includes(e) && (m.includes(e) || e.indexOf(":down") > -1)
303
+ ).map((e) => e.replace(":down", ""));
282
304
  return t = t || [], this.$parent.isEnabled && !t.includes("cancel") && t.push("cancel"), t;
283
305
  }
284
306
  },
@@ -1,5 +1,5 @@
1
- import { p as a, e as o } from "../chunks/event.NHA7rYFE.mjs";
2
- import { i as c } from "../chunks/util.C2Bhx22L.mjs";
1
+ import { p as a, e as o } from "../chunks/event.lbJYeMJp.mjs";
2
+ import { i as c } from "../chunks/util.y1gUGRqi.mjs";
3
3
  import { n as u } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
4
4
  var p = function() {
5
5
  var t = this, n = t.$createElement, e = t._self._c || n;
@@ -1,4 +1,4 @@
1
- import { p as d, e as u } from "../chunks/event.NHA7rYFE.mjs";
1
+ import { p as d, e as u } from "../chunks/event.lbJYeMJp.mjs";
2
2
  import { n as p } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  var h = function() {
4
4
  var e = this, l = e.$createElement, s = e._self._c || l;
@@ -1,4 +1,4 @@
1
- import { p as c, e as i } from "../chunks/event.NHA7rYFE.mjs";
1
+ import { p as c, e as i } from "../chunks/event.lbJYeMJp.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  var r = function() {
4
4
  var e = this, t = e.$createElement, l = e._self._c || t;
package/fy-code/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import s from "element-ui/lib/scrollbar";
2
- import { s as o } from "../chunks/util.C2Bhx22L.mjs";
2
+ import { s as o } from "../chunks/util.y1gUGRqi.mjs";
3
3
  import { n as l } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
4
4
  var i = function() {
5
5
  var t = this, e = t.$createElement, n = t._self._c || e;
package/fy-curd/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import { p as j } from "../chunks/packages.v6r2Hr7E.mjs";
2
2
  import { p as w } from "../chunks/permission.E9kZbW48.mjs";
3
- import { i as R } from "../chunks/init.Ac4dKUJB.mjs";
4
- import { g as A, c as H, t as N, f as W } from "../chunks/dataformat.X_61lMA7.mjs";
5
- import { o as m, j as x, d as a, u as z, i as K, a as b, k as U, l as G, s as q } from "../chunks/util.C2Bhx22L.mjs";
3
+ import { i as R } from "../chunks/init.6oF7OO2W.mjs";
4
+ import { g as A, c as H, t as N, f as W } from "../chunks/dataformat.Ab9PZnVk.mjs";
5
+ import { o as m, j as x, d as a, u as z, i as K, a as b, k as U, l as G, s as q } from "../chunks/util.y1gUGRqi.mjs";
6
6
  import { isBlank as c } from "@web-utils/core";
7
7
  import { s as X } from "../chunks/slot.j1uMmBnG.mjs";
8
8
  import { n as f } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
9
- import { F as J, d as L } from "../chunks/FormTemp.FX8xmbVB.mjs";
10
- import { s as Q } from "../chunks/dic.6tk91Dmq.mjs";
9
+ import { F as J, d as L } from "../chunks/FormTemp.CtpL-vJy.mjs";
10
+ import { s as Q } from "../chunks/dic.7JBaVHv6.mjs";
11
11
  import Y from "@web-utils/component/icon-temp";
12
12
  import "@web-utils/component/icon-temp/style.css";
13
13
  const h = {
@@ -486,37 +486,43 @@ const le = {
486
486
  return {
487
487
  dateCreate: !1,
488
488
  pickerOptions: {
489
- shortcuts: [{
490
- text: "今日",
491
- onClick(e) {
492
- const t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
493
- n.setTime(n.getTime()), e.$emit("pick", [n, t]);
494
- }
495
- }, {
496
- text: "昨日",
497
- onClick(e) {
498
- const t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
499
- n.setTime(n.getTime() - 3600 * 1e3 * 24 * 1), e.$emit("pick", [n, t]);
500
- }
501
- }, {
502
- text: "最近一周",
503
- onClick(e) {
504
- const t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
505
- n.setTime(n.getTime() - 3600 * 1e3 * 24 * 7), e.$emit("pick", [n, t]);
506
- }
507
- }, {
508
- text: "最近一个月",
509
- onClick(e) {
510
- const t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
511
- n.setTime(n.getTime() - 3600 * 1e3 * 24 * 30), e.$emit("pick", [n, t]);
512
- }
513
- }, {
514
- text: "最近三个月",
515
- onClick(e) {
516
- const t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
517
- n.setTime(n.getTime() - 3600 * 1e3 * 24 * 90), e.$emit("pick", [n, t]);
489
+ shortcuts: [
490
+ {
491
+ text: "今日",
492
+ onClick(e) {
493
+ const t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
494
+ n.setTime(n.getTime()), e.$emit("pick", [n, t]);
495
+ }
496
+ },
497
+ {
498
+ text: "昨日",
499
+ onClick(e) {
500
+ const t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
501
+ n.setTime(n.getTime() - 3600 * 1e3 * 24 * 1), e.$emit("pick", [n, t]);
502
+ }
503
+ },
504
+ {
505
+ text: "最近一周",
506
+ onClick(e) {
507
+ const t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
508
+ n.setTime(n.getTime() - 3600 * 1e3 * 24 * 7), e.$emit("pick", [n, t]);
509
+ }
510
+ },
511
+ {
512
+ text: "最近一个月",
513
+ onClick(e) {
514
+ const t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
515
+ n.setTime(n.getTime() - 3600 * 1e3 * 24 * 30), e.$emit("pick", [n, t]);
516
+ }
517
+ },
518
+ {
519
+ text: "最近三个月",
520
+ onClick(e) {
521
+ const t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
522
+ n.setTime(n.getTime() - 3600 * 1e3 * 24 * 90), e.$emit("pick", [n, t]);
523
+ }
518
524
  }
519
- }]
525
+ ]
520
526
  },
521
527
  config: h
522
528
  };
@@ -736,11 +742,7 @@ const y = {}, he = {
736
742
  columnOption: Array
737
743
  },
738
744
  created() {
739
- const e = [
740
- "getColumnProp",
741
- "handleFilterMethod",
742
- "handleFilters"
743
- ];
745
+ const e = ["getColumnProp", "handleFilterMethod", "handleFilters"];
744
746
  Object.keys(this.dynamic).forEach((t) => {
745
747
  e.includes(t) && (this[t] = this.dynamic[t]);
746
748
  });
@@ -877,11 +879,7 @@ const _e = {
877
879
  columnOption: Object
878
880
  },
879
881
  created() {
880
- const e = [
881
- "getColumnProp",
882
- "handleFilterMethod",
883
- "handleFilters"
884
- ];
882
+ const e = ["getColumnProp", "handleFilterMethod", "handleFilters"];
885
883
  Object.keys(this.dynamic).forEach((t) => {
886
884
  e.includes(t) && (this[t] = this.dynamic[t]);
887
885
  });
@@ -956,18 +954,20 @@ const Ce = {
956
954
  computed: {
957
955
  list() {
958
956
  let e = [...this.columnOption];
959
- return e = G(e, "index", (t, n) => {
960
- var i, r;
961
- return ((i = this.crud.objectOption[t.prop]) == null ? void 0 : i.index) - ((r = this.crud.objectOption[n.prop]) == null ? void 0 : r.index);
962
- }), e;
957
+ return e = G(
958
+ e,
959
+ "index",
960
+ (t, n) => {
961
+ var i, r;
962
+ return ((i = this.crud.objectOption[t.prop]) == null ? void 0 : i.index) - ((r = this.crud.objectOption[n.prop]) == null ? void 0 : r.index);
963
+ }
964
+ ), e;
963
965
  }
964
966
  },
965
967
  methods: {
966
968
  // 表格筛选逻辑
967
969
  handleFilterMethod(e, t, n) {
968
- const i = this.columnOption.filter(
969
- (r) => r.prop === n.property
970
- )[0];
970
+ const i = this.columnOption.filter((r) => r.prop === n.property)[0];
971
971
  return typeof i.filterMethod == "function" ? i.filterMethod(e, t, i) : t[i.prop] === e;
972
972
  },
973
973
  // 表格筛选字典
@@ -1597,7 +1597,7 @@ var Ue = function() {
1597
1597
  on: {
1598
1598
  click: e.submit
1599
1599
  }
1600
- }, [e._v(e._s(e.option.submitText))]) : e._e(), e.optVal(e.option.emptyBtn, !0) && !e.isView ? n("ElButton", {
1600
+ }, [e._v(" " + e._s(e.option.submitText) + " ")]) : e._e(), e.optVal(e.option.emptyBtn, !0) && !e.isView ? n("ElButton", {
1601
1601
  attrs: {
1602
1602
  disabled: e.disabled,
1603
1603
  size: e.crud.controlSize,
@@ -1606,7 +1606,7 @@ var Ue = function() {
1606
1606
  on: {
1607
1607
  click: e.reset
1608
1608
  }
1609
- }, [e._v(e._s(e.option.emptyText))]) : e._e(), e._t("menuForm", null, {
1609
+ }, [e._v(" " + e._s(e.option.emptyText) + " ")]) : e._e(), e._t("menuForm", null, {
1610
1610
  disabled: e.disabled,
1611
1611
  size: e.crud.controlSize,
1612
1612
  type: e.boxType
@@ -1719,12 +1719,7 @@ const qe = {
1719
1719
  },
1720
1720
  // 保存
1721
1721
  rowSave(e) {
1722
- this.crud.$emit(
1723
- "row-save",
1724
- x(this.crud.tableForm, ["$"]),
1725
- this.closeDialog,
1726
- e
1727
- );
1722
+ this.crud.$emit("row-save", x(this.crud.tableForm, ["$"]), this.closeDialog, e);
1728
1723
  },
1729
1724
  // 更新
1730
1725
  rowUpdate(e) {
@@ -2031,14 +2026,17 @@ const ot = {
2031
2026
  prop: "type",
2032
2027
  span: 24,
2033
2028
  type: "select",
2034
- dicData: [{
2035
- label: "当前数据(当前页全部的数据)",
2036
- value: !0
2037
- }, {
2038
- label: "选中的数据(当前页选中的数据)",
2039
- disabled: this.crud.tableOption.selection !== !0,
2040
- value: !1
2041
- }]
2029
+ dicData: [
2030
+ {
2031
+ label: "当前数据(当前页全部的数据)",
2032
+ value: !0
2033
+ },
2034
+ {
2035
+ label: "选中的数据(当前页选中的数据)",
2036
+ disabled: this.crud.tableOption.selection !== !0,
2037
+ value: !1
2038
+ }
2039
+ ]
2042
2040
  },
2043
2041
  {
2044
2042
  label: "选择字段",
@@ -2057,29 +2055,36 @@ const ot = {
2057
2055
  prop: "params",
2058
2056
  type: "checkbox",
2059
2057
  span: 24,
2060
- value: ["header", "data"].concat((() => {
2061
- const e = [];
2062
- return this.crud.isHeader && e.push("headers"), this.crud.isShowSummary && e.push("sum"), e;
2063
- })()),
2064
- dicData: [{
2065
- label: "表头",
2066
- disabled: !0,
2067
- value: "header"
2068
- }, {
2069
- label: "数据源",
2070
- value: "data"
2071
- }].concat((() => {
2072
- const e = [];
2073
- return e.push({
2074
- label: "复杂表头",
2075
- value: "headers",
2076
- disabled: !this.crud.isHeader
2077
- }), e.push({
2078
- label: "合计统计",
2079
- value: "sum",
2080
- disabled: !this.crud.isShowSummary
2081
- }), e;
2082
- })())
2058
+ value: ["header", "data"].concat(
2059
+ (() => {
2060
+ const e = [];
2061
+ return this.crud.isHeader && e.push("headers"), this.crud.isShowSummary && e.push("sum"), e;
2062
+ })()
2063
+ ),
2064
+ dicData: [
2065
+ {
2066
+ label: "表头",
2067
+ disabled: !0,
2068
+ value: "header"
2069
+ },
2070
+ {
2071
+ label: "数据源",
2072
+ value: "data"
2073
+ }
2074
+ ].concat(
2075
+ (() => {
2076
+ const e = [];
2077
+ return e.push({
2078
+ label: "复杂表头",
2079
+ value: "headers",
2080
+ disabled: !this.crud.isHeader
2081
+ }), e.push({
2082
+ label: "合计统计",
2083
+ value: "sum",
2084
+ disabled: !this.crud.isShowSummary
2085
+ }), e;
2086
+ })()
2087
+ )
2083
2088
  }
2084
2089
  ]
2085
2090
  }, this.form.type = this.crud.selectLen === 0;
@@ -2323,9 +2328,11 @@ const pt = {
2323
2328
  getColumnOption() {
2324
2329
  const e = [];
2325
2330
  a(this.crud.propOption).forEach((n) => {
2326
- n.showColumn !== !1 && e.push(Object.assign(n, {
2327
- value: n.prop
2328
- }));
2331
+ n.showColumn !== !1 && e.push(
2332
+ Object.assign(n, {
2333
+ value: n.prop
2334
+ })
2335
+ );
2329
2336
  }), this.columnOption = e, this.columnObj = this.columnOption[0];
2330
2337
  },
2331
2338
  handleDelete(e) {
@@ -2590,7 +2597,18 @@ var bt = function() {
2590
2597
  }, gt = [];
2591
2598
  const _t = {
2592
2599
  name: "FyCurd",
2593
- components: { DialogFilter: ft, DialogExcel: ct, DialogColumn: it, FyDialogForm: Qe, TablePage: Ke, ColumnMenu: je, ColumnDefault: De, Column: Oe, HeaderMenu: ue, HeaderSearch: re },
2600
+ components: {
2601
+ DialogFilter: ft,
2602
+ DialogExcel: ct,
2603
+ DialogColumn: it,
2604
+ FyDialogForm: Qe,
2605
+ TablePage: Ke,
2606
+ ColumnMenu: je,
2607
+ ColumnDefault: De,
2608
+ Column: Oe,
2609
+ HeaderMenu: ue,
2610
+ HeaderSearch: re
2611
+ },
2594
2612
  directives: {
2595
2613
  permission: w
2596
2614
  },
package/fy-date/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { p as n, e as o } from "../chunks/event.NHA7rYFE.mjs";
1
+ import { p as n, e as o } from "../chunks/event.lbJYeMJp.mjs";
2
2
  import { n as i } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  var s = function() {
4
4
  var e = this, a = e.$createElement, t = e._self._c || a;
@@ -1,4 +1,4 @@
1
- import { s as l, w as a } from "../chunks/util.C2Bhx22L.mjs";
1
+ import { s as l, w as a } from "../chunks/util.y1gUGRqi.mjs";
2
2
  import { n as v } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  var g = function() {
4
4
  var e = this, t = e.$createElement, s = e._self._c || t;
@@ -42,7 +42,7 @@ var g = function() {
42
42
  }), s("div", {
43
43
  staticClass: "avue-draggable__line['label'])",
44
44
  style: e.styleLabelName
45
- }, [e._v(" " + e._s(e.baseLeft) + "," + e._s(e.baseTop) + " ")])] : e._e(), e.readonly ? e._e() : [e._l(e.rangeList, function(i, h) {
45
+ }, [e._v(e._s(e.baseLeft) + "," + e._s(e.baseTop))])] : e._e(), e.readonly ? e._e() : [e._l(e.rangeList, function(i, h) {
46
46
  return [e.active ? s("div", {
47
47
  key: h,
48
48
  staticClass: "avue-draggable__range[item.classname])",
@@ -1,5 +1,5 @@
1
- import { p as u, e as c } from "../chunks/event.NHA7rYFE.mjs";
2
- import { o as l, d as o } from "../chunks/util.C2Bhx22L.mjs";
1
+ import { p as u, e as c } from "../chunks/event.lbJYeMJp.mjs";
2
+ import { o as l, d as o } from "../chunks/util.y1gUGRqi.mjs";
3
3
  import { n as h } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
4
4
  function f(e) {
5
5
  if (e == null)
@@ -221,38 +221,46 @@ const v = {
221
221
  return this.children.column || [];
222
222
  },
223
223
  option() {
224
- return Object.assign({
225
- border: !0,
226
- header: !1,
227
- menu: !1,
228
- size: this.size,
229
- disabled: this.disabled,
230
- readonly: this.readonly,
231
- emptyBtn: !1,
232
- submitBtn: !1
233
- }, (() => {
234
- const e = o(this.children);
235
- return delete e.column, e;
236
- })(), (() => {
237
- const e = [{
238
- label: this.children.indexLabel || "#",
239
- prop: "_index",
240
- display: this.showIndex,
241
- hide: !this.showIndex,
242
- fixed: !0,
243
- align: "center",
244
- headerAlign: "center",
245
- span: 24,
246
- width: 50
247
- }];
248
- return this.columnOption.forEach((t) => {
249
- e.push(Object.assign(t, {
250
- cell: l(t.cell, this.isCrud)
251
- }));
252
- }), {
253
- column: e
254
- };
255
- })());
224
+ return Object.assign(
225
+ {
226
+ border: !0,
227
+ header: !1,
228
+ menu: !1,
229
+ size: this.size,
230
+ disabled: this.disabled,
231
+ readonly: this.readonly,
232
+ emptyBtn: !1,
233
+ submitBtn: !1
234
+ },
235
+ (() => {
236
+ const e = o(this.children);
237
+ return delete e.column, e;
238
+ })(),
239
+ (() => {
240
+ const e = [
241
+ {
242
+ label: this.children.indexLabel || "#",
243
+ prop: "_index",
244
+ display: this.showIndex,
245
+ hide: !this.showIndex,
246
+ fixed: !0,
247
+ align: "center",
248
+ headerAlign: "center",
249
+ span: 24,
250
+ width: 50
251
+ }
252
+ ];
253
+ return this.columnOption.forEach((t) => {
254
+ e.push(
255
+ Object.assign(t, {
256
+ cell: l(t.cell, this.isCrud)
257
+ })
258
+ );
259
+ }), {
260
+ column: e
261
+ };
262
+ })()
263
+ );
256
264
  }
257
265
  },
258
266
  watch: {
@@ -1,4 +1,4 @@
1
- import { s as N } from "../chunks/util.C2Bhx22L.mjs";
1
+ import { s as N } from "../chunks/util.y1gUGRqi.mjs";
2
2
  import { n as j } from "../chunks/vueComponentNormalizer.JwmUNtgn.mjs";
3
3
  var i = function() {
4
4
  var M = this, I = M.$createElement, g = M._self._c || I;