ling-yun-custom-components 0.0.34 → 0.0.36

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 (107) hide show
  1. package/es/BatchImport.mjs +1 -1
  2. package/es/BuildComponents.mjs +1 -1
  3. package/es/CustomDialog.mjs +1 -1
  4. package/es/CustomDropdown.mjs +10 -10
  5. package/es/CustomTab.mjs +7 -7
  6. package/es/CustomTitle.mjs +1 -1
  7. package/es/FileList.mjs +1 -1
  8. package/es/GradientButton.mjs +7 -7
  9. package/es/IconEmpty.mjs +1 -1
  10. package/es/IconRenderer.mjs +62 -13
  11. package/es/IconSelect.mjs +3 -3
  12. package/es/PageNotFound.mjs +42 -0
  13. package/es/PaginationTable.mjs +1 -1
  14. package/es/SearchBar.mjs +1 -1
  15. package/es/TreeSelect.mjs +2 -2
  16. package/es/TreeShowSelect.mjs +1 -1
  17. package/es/UpdatePasswordDialog.mjs +3 -3
  18. package/es/UploadFile.mjs +1 -1
  19. package/es/assets/BuildComponents.css +1 -1
  20. package/es/assets/CustomDropdown.css +1 -1
  21. package/es/assets/CustomTab.css +1 -1
  22. package/es/assets/GradientButton.css +1 -1
  23. package/es/assets/IconSelect.css +1 -1
  24. package/es/assets/PageNotFound.css +0 -0
  25. package/es/assets/PaginationTable.css +1 -1
  26. package/es/assets/TreeSelect.css +1 -1
  27. package/es/assets/TreeShowSelect.css +1 -1
  28. package/es/assets/UpdatePasswordDialog.css +1 -1
  29. package/es/assets/layout2.css +1 -1
  30. package/es/assets/layout3.css +1 -1
  31. package/es/assets/layout4.css +1 -1
  32. package/es/assets/layout5.css +1 -1
  33. package/es/assets/layout6.css +1 -1
  34. package/es/chunks/global.BoqYDmws.js +8387 -0
  35. package/es/chunks/global.DBatr4rf.js +15746 -0
  36. package/es/chunks/global.DLyUBjAm.js +8080 -0
  37. package/es/chunks/{global.DYRS55FP.js → global.DpSgdQXX.js} +1839 -1761
  38. package/es/chunks/{layout.DJVruWAW.js → layout.9WADm5Lv.js} +90 -88
  39. package/es/chunks/{layout.CHE7L3Br.js → layout.BHroZ9U9.js} +12 -12
  40. package/es/chunks/{layout.B0thq8O1.js → layout.BKJPyxR8.js} +5 -5
  41. package/es/chunks/layout.BgtHhnxJ.js +66 -0
  42. package/es/chunks/{layout.kfyyRIKp.js → layout.C9yoozRN.js} +113 -107
  43. package/es/chunks/layout.CRtj9xK9.js +230 -0
  44. package/es/chunks/layout.CYgILBXq.js +592 -0
  45. package/es/chunks/{layout.z1w9j_0V.js → layout.DBgjqaxe.js} +2 -2
  46. package/es/chunks/layout.DTDMwNO7.js +231 -0
  47. package/es/chunks/{layout.CiNClIOK.js → layout.DXw3haOP.js} +1 -1
  48. package/es/chunks/layout.D_fCzVf0.js +39 -0
  49. package/es/chunks/layout.DdM4MaRr.js +149 -0
  50. package/es/chunks/{layout.ksXFwQhz.js → layout.vvR_4ki7.js} +9 -9
  51. package/es/index.mjs +49 -44
  52. package/lib/BatchImport.js +1 -1
  53. package/lib/BuildComponents.js +1 -1
  54. package/lib/CustomDialog.js +1 -1
  55. package/lib/CustomDropdown.js +1 -1
  56. package/lib/CustomTab.js +1 -1
  57. package/lib/CustomTitle.js +1 -1
  58. package/lib/FileList.js +1 -1
  59. package/lib/GradientButton.js +1 -1
  60. package/lib/IconEmpty.js +1 -1
  61. package/lib/IconRenderer.js +1 -1
  62. package/lib/IconSelect.js +1 -1
  63. package/lib/PageNotFound.js +1 -0
  64. package/lib/PaginationTable.js +1 -1
  65. package/lib/SearchBar.js +1 -1
  66. package/lib/TreeSelect.js +1 -1
  67. package/lib/TreeShowSelect.js +1 -1
  68. package/lib/UpdatePasswordDialog.js +1 -1
  69. package/lib/UploadFile.js +1 -1
  70. package/lib/assets/BuildComponents.css +1 -1
  71. package/lib/assets/CustomDropdown.css +1 -1
  72. package/lib/assets/CustomTab.css +1 -1
  73. package/lib/assets/GradientButton.css +1 -1
  74. package/lib/assets/IconSelect.css +1 -1
  75. package/lib/assets/PageNotFound.css +0 -0
  76. package/lib/assets/PaginationTable.css +1 -1
  77. package/lib/assets/TreeSelect.css +1 -1
  78. package/lib/assets/TreeShowSelect.css +1 -1
  79. package/lib/assets/UpdatePasswordDialog.css +1 -1
  80. package/lib/assets/layout2.css +1 -1
  81. package/lib/assets/layout3.css +1 -1
  82. package/lib/assets/layout4.css +1 -1
  83. package/lib/assets/layout5.css +1 -1
  84. package/lib/assets/layout6.css +1 -1
  85. package/lib/chunks/global.3UE6pLnj.js +1 -0
  86. package/lib/chunks/global.BNCddmRI.js +1 -0
  87. package/lib/chunks/global.Cmc2k3td.js +1 -0
  88. package/lib/chunks/global.DUq6tY9B.js +1 -0
  89. package/lib/chunks/{layout.TNSpahDr.js → layout.B-T_NE6r.js} +1 -1
  90. package/lib/chunks/{layout.BX7XTp-7.js → layout.B8d4J538.js} +1 -1
  91. package/lib/chunks/{layout.CKQTUDQH.js → layout.B9EVVV-O.js} +1 -1
  92. package/lib/chunks/layout.BCsKDB9S.js +1 -0
  93. package/lib/chunks/layout.BbWwZ-k5.js +1 -0
  94. package/lib/chunks/layout.BlY_nSey.js +1 -0
  95. package/lib/chunks/layout.CsWdFS5P.js +1 -0
  96. package/lib/chunks/layout.D0p4CwoO.js +1 -0
  97. package/lib/chunks/layout.D4arET4r.js +1 -0
  98. package/lib/chunks/layout.DE2mqrz_.js +1 -0
  99. package/lib/chunks/{layout.2cqUIJaF.js → layout.DWbm8gXV.js} +1 -1
  100. package/lib/chunks/layout.Js61I3wA.js +1 -0
  101. package/lib/chunks/layout.YVnsUDl7.js +1 -0
  102. package/lib/index.js +1 -1
  103. package/package.json +5 -4
  104. package/lib/chunks/global.CSN_bdu1.js +0 -1
  105. package/lib/chunks/layout.BemBeSDu.js +0 -1
  106. package/lib/chunks/layout.CBrqQREH.js +0 -1
  107. package/lib/chunks/layout.DfE3Jkpv.js +0 -1
@@ -1,10 +1,10 @@
1
- import { renderSlot as p, createElementBlock as $, openBlock as r, Fragment as x, renderList as E, createBlock as m, unref as t, withCtx as n, createTextVNode as V, toDisplayString as M, useCssVars as le, defineAsyncComponent as Y, ref as w, computed as U, normalizeClass as N, mergeProps as b, createCommentVNode as O, withKeys as pe, onMounted as ke, watch as be, createElementVNode as g, createVNode as f, createSlots as F, normalizeProps as A, guardReactiveProps as H, normalizeStyle as ge } from "vue";
2
- import { ElButton as z, ElForm as we, ElFormItem as oe, ElInput as Z, ElDatePicker as Ve, ElInputNumber as De, ElSwitch as Ce, ElRadioGroup as $e, ElRadio as Ee, ElCheckboxGroup as Fe, ElCheckbox as Ue, ElAutoResizer as _, ElPopover as xe, ElIcon as ee, ElDrawer as Me } from "element-plus";
3
- import { IconMagnify as Le, IconCheck as Pe, IconUp as Se, IconDown as We, IconShrink as Be } from "color-message-lingyun-vue";
4
- import { operationConfigMap as C, labelPositionMap as I, componentType as h, dateParamsMap as Ie, dateFormat as ae, emitsMap as B } from "ling-yun-methods";
1
+ import { renderSlot as k, createElementBlock as $, openBlock as r, Fragment as x, renderList as E, createBlock as m, unref as t, withCtx as n, createTextVNode as D, toDisplayString as M, useCssVars as le, defineAsyncComponent as Y, ref as V, computed as U, withModifiers as pe, normalizeClass as N, mergeProps as g, createCommentVNode as O, withKeys as ke, onMounted as be, watch as ge, createElementVNode as w, createVNode as f, createSlots as F, normalizeProps as A, guardReactiveProps as H, normalizeStyle as we } from "vue";
2
+ import { ElButton as z, ElForm as Ve, ElFormItem as oe, ElInput as Z, ElDatePicker as De, ElInputNumber as Ce, ElSwitch as $e, ElRadioGroup as Ee, ElRadio as Fe, ElCheckboxGroup as Ue, ElCheckbox as xe, ElAutoResizer as _, ElPopover as Me, ElIcon as ee, ElDrawer as Se } from "element-plus";
3
+ import { IconMagnify as Le, IconCheck as Pe, IconUp as We, IconDown as Be, IconShrink as Ie } from "color-message-lingyun-vue";
4
+ import { operationConfigMap as C, labelPositionMap as I, componentType as p, dateParamsMap as Ne, dateFormat as ae, emitsMap as B } from "ling-yun-methods";
5
5
  import { _ as ne } from "./_plugin-vue_export-helper.CHgC5LLL.js";
6
- import { C as te } from "./layout.B0thq8O1.js";
7
- import '../assets/layout3.css';const Ne = [
6
+ import { C as te } from "./layout.BKJPyxR8.js";
7
+ import '../assets/layout3.css';const Oe = [
8
8
  {
9
9
  type: "primary",
10
10
  label: "查询",
@@ -24,26 +24,26 @@ import '../assets/layout3.css';const Ne = [
24
24
  }
25
25
  },
26
26
  emits: ["operation"],
27
- setup(a, { emit: L }) {
28
- const P = L, y = (v) => {
29
- P("operation", v);
27
+ setup(a, { emit: S }) {
28
+ const L = S, c = (v) => {
29
+ L("operation", v);
30
30
  };
31
- return (v, i) => v.$slots.operation ? p(v.$slots, "operation", {
31
+ return (v, i) => v.$slots.operation ? k(v.$slots, "operation", {
32
32
  key: 0,
33
33
  operationList: a.operationList
34
- }) : (r(!0), $(x, { key: 1 }, E(a.operationList, (c) => (r(), m(t(z), {
35
- key: c.value,
36
- type: c.type,
37
- icon: c.icon,
38
- onClick: (u) => y(c.value)
34
+ }) : (r(!0), $(x, { key: 1 }, E(a.operationList, (y) => (r(), m(t(z), {
35
+ key: y.value,
36
+ type: y.type,
37
+ icon: y.icon,
38
+ onClick: (u) => c(y.value)
39
39
  }, {
40
40
  default: n(() => [
41
- V(M(c.label), 1)
41
+ D(M(y.label), 1)
42
42
  ]),
43
43
  _: 2
44
44
  }, 1032, ["type", "icon", "onClick"]))), 128));
45
45
  }
46
- }, Oe = /* @__PURE__ */ Object.assign({
46
+ }, ze = /* @__PURE__ */ Object.assign({
47
47
  name: "FormWrapper"
48
48
  }, {
49
49
  __name: "FormWrapper",
@@ -99,12 +99,12 @@ import '../assets/layout3.css';const Ne = [
99
99
  }
100
100
  },
101
101
  emits: ["change", "enter"],
102
- setup(a, { expose: L }) {
102
+ setup(a, { expose: S }) {
103
103
  le((u) => ({
104
- v30e5c290: a.minWidth + "px"
104
+ v21117ed0: a.minWidth + "px"
105
105
  }));
106
- const P = Y(() => import("./layout.2Mabaug0.js")), y = Y(() => import("./layout.CHE7L3Br.js")), v = a, i = w(null), c = U(() => v.isFilter ? "filter-form" : v.isFilterPreview ? "filter-preview-form" : "search-bar-form");
107
- return L({
106
+ const L = Y(() => import("./layout.2Mabaug0.js")), c = Y(() => import("./layout.BHroZ9U9.js")), v = a, i = V(null), y = U(() => v.isFilter ? "filter-form" : v.isFilterPreview ? "filter-preview-form" : "search-bar-form");
107
+ return S({
108
108
  validate: (u) => i.value ? i.value.validate(u) : Promise.resolve(!0),
109
109
  resetFields: () => {
110
110
  i.value && i.value.resetFields();
@@ -115,7 +115,7 @@ import '../assets/layout3.css';const Ne = [
115
115
  scrollToField: (u) => {
116
116
  i.value && i.value.scrollToField(u);
117
117
  }
118
- }), (u, D) => (r(), m(t(we), {
118
+ }), (u, h) => (r(), m(t(Ve), {
119
119
  ref_key: "formRef",
120
120
  ref: i,
121
121
  model: a.formData,
@@ -124,12 +124,14 @@ import '../assets/layout3.css';const Ne = [
124
124
  inline: a.inline,
125
125
  rules: a.rules,
126
126
  class: N({
127
- [c.value]: !0,
127
+ [y.value]: !0,
128
128
  "items-end display-grid": !a.isFilterPreview
129
- })
129
+ }),
130
+ onSubmit: h[0] || (h[0] = pe(() => {
131
+ }, ["prevent", "stop"]))
130
132
  }, {
131
133
  default: n(() => [
132
- (r(!0), $(x, null, E(a.items, (e) => (r(), m(t(oe), b({
134
+ (r(!0), $(x, null, E(a.items, (e) => (r(), m(t(oe), g({
133
135
  key: e.key,
134
136
  label: a.showLabel ? e.label : "",
135
137
  prop: e.key,
@@ -141,19 +143,19 @@ import '../assets/layout3.css';const Ne = [
141
143
  ]
142
144
  }, { ref_for: !0 }, e), {
143
145
  default: n(() => [
144
- p(u.$slots, e.key, {
146
+ k(u.$slots, e.key, {
145
147
  item: e,
146
148
  formData: a.formData
147
149
  }, () => [
148
- e.type === t(h).text ? (r(), m(t(Z), b({
150
+ e.type === t(p).text ? (r(), m(t(Z), g({
149
151
  key: 0,
150
152
  modelValue: a.formData[e.key],
151
153
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
152
154
  }, { ref_for: !0 }, e, {
153
155
  class: "w-full",
154
156
  onChange: (l) => u.$emit("change", e.key, a.formData[e.key]),
155
- onKeyup: pe((l) => u.$emit("enter", e.key, a.formData[e.key]), ["enter"])
156
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onKeyup"])) : e.type === t(h).select ? (r(), m(t(P), b({
157
+ onKeyup: ke((l) => u.$emit("enter", e.key, a.formData[e.key]), ["enter"])
158
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onKeyup"])) : e.type === t(p).select ? (r(), m(t(L), g({
157
159
  key: 1,
158
160
  modelValue: a.formData[e.key],
159
161
  "onUpdate:modelValue": (l) => a.formData[e.key] = l,
@@ -161,71 +163,72 @@ import '../assets/layout3.css';const Ne = [
161
163
  }, { ref_for: !0 }, e, {
162
164
  onChange: (l) => u.$emit("change", e.key, a.formData[e.key]),
163
165
  class: "w-full"
164
- }), null, 16, ["modelValue", "onUpdate:modelValue", "static-options", "onChange"])) : e.type === t(h).date ? (r(), m(t(Ve), b({
166
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "static-options", "onChange"])) : e.type === t(p).date ? (r(), m(t(De), g({
165
167
  key: 2,
166
168
  modelValue: a.formData[e.key],
167
169
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
168
170
  }, { ref_for: !0 }, {
169
171
  ...e,
170
- ...t(Ie)[e.dateType]
172
+ ...t(Ne)[e.dateType]
171
173
  }, {
172
174
  type: e.dateType,
173
175
  format: e.format || t(ae).date,
174
176
  "value-format": e.valueFormat || t(ae).dateTime,
175
177
  class: "w-full",
176
178
  onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
177
- }), null, 16, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "onChange"])) : e.type === t(h).inputNumber ? (r(), m(t(De), b({
179
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "onChange"])) : e.type === t(p).inputNumber ? (r(), m(t(Ce), g({
178
180
  key: 3,
179
181
  modelValue: a.formData[e.key],
180
182
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
181
183
  }, { ref_for: !0 }, e, {
182
184
  class: "w-full",
183
185
  onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
184
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(h).switch ? (r(), m(t(Ce), b({
186
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).switch ? (r(), m(t($e), g({
185
187
  key: 4,
186
188
  modelValue: a.formData[e.key],
187
189
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
188
190
  }, { ref_for: !0 }, e, {
189
191
  onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
190
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(h).radio ? (r(), m(t($e), {
192
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).radio ? (r(), m(t(Ee), {
191
193
  key: 5,
192
194
  modelValue: a.formData[e.key],
193
195
  "onUpdate:modelValue": (l) => a.formData[e.key] = l,
194
196
  onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
195
197
  }, {
196
198
  default: n(() => [
197
- (r(!0), $(x, null, E(e.options, (l) => (r(), m(t(Ee), {
199
+ (r(!0), $(x, null, E(e.options, (l) => (r(), m(t(Fe), {
198
200
  key: l.value,
199
201
  label: l.value,
200
- value: l.value
202
+ value: l.value,
203
+ disabled: l.disabled
201
204
  }, {
202
205
  default: n(() => [
203
- V(M(l.label), 1)
206
+ D(M(l.label), 1)
204
207
  ]),
205
208
  _: 2
206
- }, 1032, ["label", "value"]))), 128))
209
+ }, 1032, ["label", "value", "disabled"]))), 128))
207
210
  ]),
208
211
  _: 2
209
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(h).checkbox ? (r(), m(t(Fe), {
212
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).checkbox ? (r(), m(t(Ue), {
210
213
  key: 6,
211
214
  modelValue: a.formData[e.key],
212
215
  "onUpdate:modelValue": (l) => a.formData[e.key] = l,
213
216
  onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
214
217
  }, {
215
218
  default: n(() => [
216
- (r(!0), $(x, null, E(e.options, (l) => (r(), m(t(Ue), {
219
+ (r(!0), $(x, null, E(e.options, (l) => (r(), m(t(xe), {
217
220
  key: l.value,
218
221
  label: l.value,
219
222
  value: l.value
220
223
  }, {
221
224
  default: n(() => [
222
- V(M(l.label), 1)
225
+ D(M(l.label), 1)
223
226
  ]),
224
227
  _: 2
225
228
  }, 1032, ["label", "value"]))), 128))
226
229
  ]),
227
230
  _: 2
228
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(h).textarea ? (r(), m(t(Z), b({
231
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).textarea ? (r(), m(t(Z), g({
229
232
  key: 7,
230
233
  modelValue: a.formData[e.key],
231
234
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
@@ -233,7 +236,7 @@ import '../assets/layout3.css';const Ne = [
233
236
  class: "w-full",
234
237
  type: "textarea",
235
238
  onChange: (l) => u.$emit("change", e.key, a.formData[e.key])
236
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(h).upload ? (r(), m(t(y), b({
239
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).upload ? (r(), m(t(c), g({
237
240
  key: 8,
238
241
  modelValue: a.formData[e.key],
239
242
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
@@ -242,12 +245,12 @@ import '../assets/layout3.css';const Ne = [
242
245
  ]),
243
246
  _: 2
244
247
  }, 1040, ["label", "prop", "show-label", "class"]))), 128)),
245
- p(u.$slots, "default", {}, void 0, !0)
248
+ k(u.$slots, "default", {}, void 0, !0)
246
249
  ]),
247
250
  _: 3
248
251
  }, 8, ["model", "label-width", "label-position", "inline", "rules", "class"]));
249
252
  }
250
- }), q = /* @__PURE__ */ ne(Oe, [["__scopeId", "data-v-14db93a9"]]), ze = { class: "h-32 w-full" }, Re = { class: "flex items-center justify-between pd-b-20" }, Te = { class: "text-right" }, je = { class: "drawer-header" }, Ae = { class: "flex-1 pd-l-16 pd-r-16 overflow-y-auto" }, He = { class: "text-right border-top pd-t-16 pd-l-16 pd-r-16" }, Ke = /* @__PURE__ */ Object.assign({
253
+ }), q = /* @__PURE__ */ ne(ze, [["__scopeId", "data-v-6092c6e2"]]), Re = { class: "h-32 w-full" }, Te = { class: "flex items-center justify-between pd-b-20" }, je = { class: "text-right" }, Ae = { class: "drawer-header" }, He = { class: "flex-1 pd-l-16 pd-r-16 overflow-y-auto" }, Ke = { class: "text-right border-top pd-t-16 pd-l-16 pd-r-16" }, qe = /* @__PURE__ */ Object.assign({
251
254
  name: "SearchBar"
252
255
  }, {
253
256
  __name: "layout",
@@ -290,7 +293,7 @@ import '../assets/layout3.css';const Ne = [
290
293
  },
291
294
  operationList: {
292
295
  type: Array,
293
- default: Ne
296
+ default: Oe
294
297
  },
295
298
  // 是否为筛选器模式
296
299
  filterMode: {
@@ -299,20 +302,20 @@ import '../assets/layout3.css';const Ne = [
299
302
  }
300
303
  },
301
304
  emits: [B.updateModelValue, B.operation],
302
- setup(a, { expose: L, emit: P }) {
305
+ setup(a, { expose: S, emit: L }) {
303
306
  le((o) => ({
304
- v0b0430f6: a.maxHeight + "px",
305
- v7a26127a: j.value ? j.value + "px" : "100%"
307
+ v1bbac240: a.maxHeight + "px",
308
+ v84cfd7f0: j.value ? j.value + "px" : "100%"
306
309
  }));
307
- const y = a, v = P, i = w({}), c = w(!y.isExpand), u = w(null), D = w(!1), e = w(!1), l = U(() => {
310
+ const c = a, v = L, i = V({}), y = V(!c.isExpand), u = V(null), h = V(!1), e = V(!1), l = U(() => {
308
311
  const o = {};
309
- return y.items.forEach((s) => {
312
+ return c.items.forEach((s) => {
310
313
  if (s.required) {
311
314
  const d = [{ required: !0, message: `${s.label}不能为空`, trigger: "blur" }];
312
315
  typeof s.validator == "function" && d.push({ validator: s.validator, trigger: "blur" }), o[s.key] = d;
313
316
  }
314
317
  }), o;
315
- }), R = U(() => y.items?.filter((o) => !o.hidden) || []), G = U(() => y.filterMode ? R.value?.slice(0, 2) || [] : R.value), S = U(() => y.filterMode ? R.value.slice(2) : []), J = (o) => {
318
+ }), R = U(() => c.items?.filter((o) => !o.hidden) || []), G = U(() => c.filterMode ? R.value?.slice(0, 2) || [] : R.value), P = U(() => c.filterMode ? R.value.slice(2) : []), J = (o) => {
316
319
  i.value = { ...o };
317
320
  }, ue = () => {
318
321
  v(B.updateModelValue, { ...i.value });
@@ -321,27 +324,27 @@ import '../assets/layout3.css';const Ne = [
321
324
  }, de = () => i.value, T = (o, s) => {
322
325
  v(B.operation, C.search, i.value);
323
326
  }, W = (o) => {
324
- ue(), v(B.operation, o, i.value), (o === C.search || o === C.reset) && (D.value = !1, e.value = !1);
325
- }, se = (o) => u.value.validate(o), j = w(0), fe = (o) => {
327
+ ue(), v(B.operation, o, i.value), (o === C.search || o === C.reset) && (h.value = !1, e.value = !1);
328
+ }, se = (o) => u.value.validate(o), j = V(0), fe = (o) => {
326
329
  j.value = o + 32;
327
330
  }, me = () => {
328
- c.value = !c.value;
329
- }, ce = () => {
330
- D.value = !1, e.value = !0;
331
+ y.value = !y.value;
331
332
  }, ye = () => {
332
- e.value = !1, D.value = !0;
333
- }, Q = w(!1), X = (o) => {
334
- Q.value = o > y.maxHeight;
335
- }, ve = U(() => y.filterMode || c.value ? "10px" : "0");
336
- return ke(() => {
337
- J(y.modelValue), X();
338
- }), be(
339
- () => y.modelValue,
333
+ h.value = !1, e.value = !0;
334
+ }, ce = () => {
335
+ e.value = !1, h.value = !0;
336
+ }, Q = V(!1), X = (o) => {
337
+ Q.value = o > c.maxHeight;
338
+ }, ve = U(() => c.filterMode || y.value ? "10px" : "0");
339
+ return be(() => {
340
+ J(c.modelValue), X();
341
+ }), ge(
342
+ () => c.modelValue,
340
343
  (o) => {
341
344
  J(o);
342
345
  },
343
346
  { immediate: !0, deep: !0 }
344
- ), L({
347
+ ), S({
345
348
  validate: se,
346
349
  getFormData: de,
347
350
  // clearValidate,
@@ -351,14 +354,14 @@ import '../assets/layout3.css';const Ne = [
351
354
  }), (o, s) => (r(), $("div", {
352
355
  class: N(["relative overflow-hidden w-full", { flex: a.filterMode }])
353
356
  }, [
354
- g("div", {
357
+ w("div", {
355
358
  class: N({
356
- "is-collapsed overflow-hidden": !c.value
359
+ "is-collapsed overflow-hidden": !y.value
357
360
  })
358
361
  }, [
359
362
  f(t(_), null, {
360
363
  default: n(({ height: d }) => [
361
- V(M(X(d)) + " ", 1),
364
+ D(M(X(d)) + " ", 1),
362
365
  f(q, {
363
366
  ref_key: "formRef",
364
367
  ref: u,
@@ -375,12 +378,15 @@ import '../assets/layout3.css';const Ne = [
375
378
  onEnter: T
376
379
  }, F({
377
380
  default: n(() => [
378
- a.isExpand && !a.filterMode ? (r(), m(t(oe), { key: 0 }, {
381
+ a.isExpand && !a.filterMode ? (r(), m(t(oe), {
382
+ key: 0,
383
+ "label-width": "0"
384
+ }, {
379
385
  default: n(() => [
380
- g("div", ze, [
386
+ w("div", Re, [
381
387
  f(t(_), null, {
382
- default: n(({ width: k }) => [
383
- V(M(fe(k)), 1)
388
+ default: n(({ width: b }) => [
389
+ D(M(fe(b)), 1)
384
390
  ]),
385
391
  _: 1
386
392
  })
@@ -391,10 +397,10 @@ import '../assets/layout3.css';const Ne = [
391
397
  ]),
392
398
  _: 2
393
399
  }, [
394
- E(G.value, (k) => ({
395
- name: k.key,
400
+ E(G.value, (b) => ({
401
+ name: b.key,
396
402
  fn: n((he) => [
397
- p(o.$slots, k.key, A(H(he)), void 0, !0)
403
+ k(o.$slots, b.key, A(H(he)), void 0, !0)
398
404
  ])
399
405
  }))
400
406
  ]), 1032, ["items", "form-data", "rules", "label-width", "label-position", "show-label", "min-width", "is-filter-preview"])
@@ -402,12 +408,12 @@ import '../assets/layout3.css';const Ne = [
402
408
  _: 3
403
409
  })
404
410
  ], 2),
405
- g("div", {
411
+ w("div", {
406
412
  class: N(["operation-buttons", {
407
413
  "absolute right-0 bg-fff text-right": a.isExpand && !a.filterMode,
408
414
  "text-left": a.filterMode
409
415
  }]),
410
- style: ge({ bottom: ve.value })
416
+ style: we({ bottom: ve.value })
411
417
  }, [
412
418
  a.filterMode ? (r(), $(x, { key: 0 }, [
413
419
  f(t(z), {
@@ -415,38 +421,38 @@ import '../assets/layout3.css';const Ne = [
415
421
  type: "default"
416
422
  }, {
417
423
  default: n(() => [...s[3] || (s[3] = [
418
- V("重置", -1)
424
+ D("重置", -1)
419
425
  ])]),
420
426
  _: 1
421
427
  }),
422
- S.value?.length ? (r(), m(t(xe), {
428
+ P.value?.length ? (r(), m(t(Me), {
423
429
  key: 0,
424
- visible: D.value,
430
+ visible: h.value,
425
431
  placement: "bottom-start",
426
432
  width: 628,
427
433
  trigger: "click"
428
434
  }, {
429
435
  reference: n(() => [
430
436
  f(t(z), {
431
- onClick: s[1] || (s[1] = (d) => D.value = !D.value),
437
+ onClick: s[1] || (s[1] = (d) => h.value = !h.value),
432
438
  icon: t(Pe),
433
439
  type: "default"
434
440
  }, {
435
441
  default: n(() => [...s[4] || (s[4] = [
436
- V(" 筛选器 ", -1)
442
+ D(" 筛选器 ", -1)
437
443
  ])]),
438
444
  _: 1
439
445
  }, 8, ["icon"])
440
446
  ]),
441
447
  default: n(() => [
442
- g("div", Re, [
448
+ w("div", Te, [
443
449
  f(te, {
444
450
  content: "筛选器",
445
451
  fontSize: 16
446
452
  }),
447
453
  f(t(ee), {
448
454
  size: 16,
449
- onClick: ce
455
+ onClick: ye
450
456
  }, {
451
457
  default: n(() => [
452
458
  f(t(Le))
@@ -455,7 +461,7 @@ import '../assets/layout3.css';const Ne = [
455
461
  })
456
462
  ]),
457
463
  f(q, {
458
- items: S.value,
464
+ items: P.value,
459
465
  "form-data": i.value,
460
466
  "label-width": "auto",
461
467
  "label-position": "top",
@@ -466,14 +472,14 @@ import '../assets/layout3.css';const Ne = [
466
472
  class: "filter-form-popover overflow-y-auto",
467
473
  onEnter: T
468
474
  }, F({ _: 2 }, [
469
- E(S.value, (d) => ({
475
+ E(P.value, (d) => ({
470
476
  name: d.key,
471
- fn: n((k) => [
472
- p(o.$slots, d.key, A(H(k)), void 0, !0)
477
+ fn: n((b) => [
478
+ k(o.$slots, d.key, A(H(b)), void 0, !0)
473
479
  ])
474
480
  }))
475
481
  ]), 1032, ["items", "form-data", "min-width"]),
476
- g("div", Te, [
482
+ w("div", je, [
477
483
  f(K, {
478
484
  "operation-list": a.operationList,
479
485
  onOperation: W
@@ -481,7 +487,7 @@ import '../assets/layout3.css';const Ne = [
481
487
  o.$slots.operation ? {
482
488
  name: "operation",
483
489
  fn: n(({ operationList: d }) => [
484
- p(o.$slots, "operation", { operationList: d }, void 0, !0)
490
+ k(o.$slots, "operation", { operationList: d }, void 0, !0)
485
491
  ]),
486
492
  key: "0"
487
493
  } : void 0
@@ -493,12 +499,12 @@ import '../assets/layout3.css';const Ne = [
493
499
  ], 64)) : (r(), $(x, { key: 1 }, [
494
500
  Q.value && a.isExpand ? (r(), m(t(z), {
495
501
  key: 0,
496
- icon: c.value ? t(Se) : t(We),
502
+ icon: y.value ? t(We) : t(Be),
497
503
  text: "",
498
504
  onClick: me
499
505
  }, {
500
506
  default: n(() => [
501
- V(M(c.value ? "收起" : "展开"), 1)
507
+ D(M(y.value ? "收起" : "展开"), 1)
502
508
  ]),
503
509
  _: 1
504
510
  }, 8, ["icon"])) : O("", !0),
@@ -509,41 +515,41 @@ import '../assets/layout3.css';const Ne = [
509
515
  o.$slots.operation ? {
510
516
  name: "operation",
511
517
  fn: n(({ operationList: d }) => [
512
- p(o.$slots, "operation", { operationList: d }, void 0, !0)
518
+ k(o.$slots, "operation", { operationList: d }, void 0, !0)
513
519
  ]),
514
520
  key: "0"
515
521
  } : void 0
516
522
  ]), 1032, ["operation-list"])
517
523
  ], 64))
518
524
  ], 6),
519
- f(t(Me), {
525
+ f(t(Se), {
520
526
  modelValue: e.value,
521
527
  "onUpdate:modelValue": s[2] || (s[2] = (d) => e.value = d),
522
528
  size: "628",
523
529
  "show-close": !1
524
530
  }, {
525
531
  header: n(() => [
526
- g("div", je, [
532
+ w("div", Ae, [
527
533
  f(te, {
528
534
  content: "筛选器",
529
535
  fontSize: 16
530
536
  }),
531
537
  f(t(ee), {
532
538
  size: 16,
533
- onClick: ye,
539
+ onClick: ce,
534
540
  class: "shrink-button"
535
541
  }, {
536
542
  default: n(() => [
537
- f(t(Be))
543
+ f(t(Ie))
538
544
  ]),
539
545
  _: 1
540
546
  })
541
547
  ])
542
548
  ]),
543
549
  default: n(() => [
544
- g("div", Ae, [
550
+ w("div", He, [
545
551
  f(q, {
546
- items: S.value,
552
+ items: P.value,
547
553
  "form-data": i.value,
548
554
  "label-width": "auto",
549
555
  "label-position": "top",
@@ -553,15 +559,15 @@ import '../assets/layout3.css';const Ne = [
553
559
  "min-width": a.minWidth,
554
560
  onEnter: T
555
561
  }, F({ _: 2 }, [
556
- E(S.value, (d) => ({
562
+ E(P.value, (d) => ({
557
563
  name: d.key,
558
- fn: n((k) => [
559
- p(o.$slots, d.key, A(H(k)), void 0, !0)
564
+ fn: n((b) => [
565
+ k(o.$slots, d.key, A(H(b)), void 0, !0)
560
566
  ])
561
567
  }))
562
568
  ]), 1032, ["items", "form-data", "min-width"])
563
569
  ]),
564
- g("div", He, [
570
+ w("div", Ke, [
565
571
  f(K, {
566
572
  "operation-list": a.operationList,
567
573
  onOperation: W
@@ -569,7 +575,7 @@ import '../assets/layout3.css';const Ne = [
569
575
  o.$slots.operation ? {
570
576
  name: "operation",
571
577
  fn: n(({ operationList: d }) => [
572
- p(o.$slots, "operation", { operationList: d }, void 0, !0)
578
+ k(o.$slots, "operation", { operationList: d }, void 0, !0)
573
579
  ]),
574
580
  key: "0"
575
581
  } : void 0
@@ -580,7 +586,7 @@ import '../assets/layout3.css';const Ne = [
580
586
  }, 8, ["modelValue"])
581
587
  ], 2));
582
588
  }
583
- }), Ze = /* @__PURE__ */ ne(Ke, [["__scopeId", "data-v-e5132f07"]]);
589
+ }), _e = /* @__PURE__ */ ne(qe, [["__scopeId", "data-v-146b7880"]]);
584
590
  export {
585
- Ze as S
591
+ _e as S
586
592
  };