color-star-custom-components 0.0.15 → 0.0.17

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 (73) hide show
  1. package/es/CustomSelect.mjs +1 -1
  2. package/es/IconRenderer.mjs +1 -1
  3. package/es/IconSelect.mjs +1 -1
  4. package/es/SearchBar.mjs +114 -117
  5. package/es/TreeShowSelect.mjs +26 -28
  6. package/es/assets/SearchBar.css +1 -1
  7. package/es/assets/TreeShowSelect.css +1 -1
  8. package/es/chunks/BatchImport.B5inubHt.js +173 -0
  9. package/es/chunks/CustomSelect.DvKTT1Kn.js +5 -0
  10. package/es/chunks/CustomTitle.BBrGK8vA.js +5 -0
  11. package/es/chunks/FileList.CLb0j2ca.js +5 -0
  12. package/es/chunks/GlassProxy.Dek3zo-k.js +176 -0
  13. package/es/chunks/IconEmpty.DoCNu0jY.js +5 -0
  14. package/es/chunks/IconRenderer.DbLSQXFZ.js +60 -0
  15. package/es/chunks/IconSelect.DjNvTfvM.js +162 -0
  16. package/es/chunks/SearchBar.Dw1qAtAa.js +582 -0
  17. package/es/chunks/TreeSelect.BkF207wh.js +5 -0
  18. package/es/chunks/TreeShowSelect.DuVWWk73.js +87 -0
  19. package/es/chunks/UploadFile.Cll5_hce.js +5 -0
  20. package/es/chunks/_plugin-vue_export-helper.BgwWMokO.js +6 -0
  21. package/es/chunks/chunk.CWVlkNTZ.js +18 -0
  22. package/es/chunks/config.SfJn1-ON.js +24 -0
  23. package/es/chunks/config.j-piuAWF.js +24 -0
  24. package/es/chunks/config.t_HHFoB9.js +18 -0
  25. package/es/chunks/global.31sZWaXJ.js +15282 -0
  26. package/es/chunks/global.BEeKea4u.js +1955 -0
  27. package/es/chunks/global.ChqJEry4.js +7973 -0
  28. package/es/chunks/global.CnGuevjX.js +8168 -0
  29. package/es/chunks/layout.4utLpDo3.js +120 -0
  30. package/es/chunks/layout.84FMC7pU.js +121 -0
  31. package/es/chunks/layout.BsFtxlIJ.js +31 -0
  32. package/es/chunks/layout.C5pEEv-d.js +207 -0
  33. package/es/chunks/layout.CokqBzin.js +338 -0
  34. package/es/chunks/layout.Dix22XYV.js +113 -0
  35. package/es/chunks/layout.FqoRQKdx.js +59 -0
  36. package/es/chunks/utils.BFFtVZUp.js +10 -0
  37. package/es/index.mjs +1 -1
  38. package/lib/CustomSelect.js +1 -1
  39. package/lib/IconRenderer.js +1 -1
  40. package/lib/IconSelect.js +1 -1
  41. package/lib/SearchBar.js +1 -1
  42. package/lib/TreeShowSelect.js +1 -1
  43. package/lib/assets/SearchBar.css +1 -1
  44. package/lib/assets/TreeShowSelect.css +1 -1
  45. package/lib/chunks/BatchImport.Be1Oddwm.js +1 -0
  46. package/lib/chunks/CustomSelect.qmizu8jb.js +1 -0
  47. package/lib/chunks/CustomTitle.C_V_RLwQ.js +1 -0
  48. package/lib/chunks/FileList.DK7Iz3hw.js +1 -0
  49. package/lib/chunks/GlassProxy.BurTd4Wo.js +1 -0
  50. package/lib/chunks/IconEmpty.MspO8cAH.js +1 -0
  51. package/lib/chunks/IconRenderer.CepZVN9N.js +1 -0
  52. package/lib/chunks/IconSelect.GFCG4dmy.js +1 -0
  53. package/lib/chunks/SearchBar.C1eP9H7z.js +1 -0
  54. package/lib/chunks/TreeSelect.CKdd24_v.js +1 -0
  55. package/lib/chunks/TreeShowSelect.D06Kgg9y.js +1 -0
  56. package/lib/chunks/UploadFile.FAeNJfgq.js +1 -0
  57. package/lib/chunks/_plugin-vue_export-helper.Bgn9wawX.js +1 -0
  58. package/lib/chunks/chunk.D6xVHP8F.js +1 -0
  59. package/lib/chunks/config.CQdd5R1R.js +1 -0
  60. package/lib/chunks/config.x7rWDsG1.js +1 -0
  61. package/lib/chunks/global.BwmaGr1r.js +1 -0
  62. package/lib/chunks/global.C-GuAavy.js +1 -0
  63. package/lib/chunks/global.CCgRKoj5.js +1 -0
  64. package/lib/chunks/layout.0C5st371.js +1 -0
  65. package/lib/chunks/layout.966lkT12.js +1 -0
  66. package/lib/chunks/layout.C4airLP9.js +1 -0
  67. package/lib/chunks/layout.ChiWtlly.js +1 -0
  68. package/lib/chunks/layout.DF2j_cdu.js +1 -0
  69. package/lib/chunks/layout.DjMFll_s.js +1 -0
  70. package/lib/chunks/layout.DutPtWqI.js +1 -0
  71. package/lib/chunks/utils.a5Y3RKNY.js +1 -0
  72. package/lib/index.js +1 -1
  73. package/package.json +7 -7
@@ -1,5 +1,5 @@
1
1
  import { w as t } from "./chunks/index.bCzIhWFw.js";
2
- import { _ as o } from "./chunks/layout.CR6q_HFP.js";
2
+ import { _ as o } from "./chunks/layout.84FMC7pU.js";
3
3
  const m = t(o);
4
4
  export {
5
5
  m as CustomSelect,
@@ -1,7 +1,7 @@
1
1
  import { w as s } from "./chunks/index.bCzIhWFw.js";
2
2
  import { useCssVars as u, shallowRef as m, ref as f, watch as d, onMounted as p, createBlock as c, createCommentVNode as y, openBlock as l, unref as v, mergeProps as g, withCtx as b, resolveDynamicComponent as C } from "vue";
3
3
  import { ElIcon as I } from "element-plus";
4
- import { i, g as N } from "./chunks/config.vx0Pd_KA.js";
4
+ import { i, g as N } from "./chunks/config.j-piuAWF.js";
5
5
  import { _ as h } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
6
6
  import './assets/IconRenderer.css';const w = /* @__PURE__ */ Object.assign({
7
7
  name: "IconRenderer"
package/es/IconSelect.mjs CHANGED
@@ -2,7 +2,7 @@ import { w as M } from "./chunks/index.bCzIhWFw.js";
2
2
  import { useCssVars as $, ref as r, shallowRef as F, computed as P, watch as x, onMounted as R, createBlock as i, openBlock as l, unref as u, withCtx as s, createElementVNode as k, createVNode as I, createElementBlock as d, createSlots as U, resolveDynamicComponent as h, Fragment as V, renderList as D, normalizeClass as j, createCommentVNode as T, createTextVNode as q, markRaw as z } from "vue";
3
3
  import { ElPopover as G, ElInput as H, ElIcon as w } from "element-plus";
4
4
  import { _ as J } from "./chunks/layout.CJWd6Qr3.js";
5
- import { i as N, g as K, a as Q } from "./chunks/config.vx0Pd_KA.js";
5
+ import { i as N, g as K, a as Q } from "./chunks/config.j-piuAWF.js";
6
6
  import { _ as W } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
7
7
  import './assets/IconSelect.css';const X = { class: "icon-select-content flex flex-col overflow-hidden" }, Y = {
8
8
  key: 0,
package/es/SearchBar.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { w as be } from "./chunks/index.bCzIhWFw.js";
2
- import { renderSlot as b, createElementBlock as $, openBlock as i, Fragment as F, renderList as E, createBlock as c, unref as t, withCtx as r, createTextVNode as V, toDisplayString as M, useCssVars as le, ref as p, computed as W, withModifiers as ke, normalizeClass as N, mergeProps as g, createCommentVNode as O, withKeys as ge, onMounted as we, watch as Ve, createElementVNode as w, createVNode as m, createSlots as x, normalizeProps as H, guardReactiveProps as K, normalizeStyle as Ce } from "vue";
3
- import { ElButton as T, ElForm as De, ElFormItem as oe, ElInput as Z, ElDatePicker as $e, ElInputNumber as Ee, ElSwitch as xe, ElRadioGroup as We, ElRadio as Fe, ElCheckboxGroup as Me, ElCheckbox as Be, ElAutoResizer as _, ElPopover as Ue, ElIcon as ee, ElDrawer as Ie } from "element-plus";
4
- import { IconMagnify as Le, IconCheck as Pe, IconUp as Se, IconDown as Ne, IconShrink as Oe } from "color-message-lingyun-vue";
5
- import { operationConfigMap as D, emitsMap as f, labelPositionMap as P, componentType as v, dateParamsMap as Te, dateFormat as ae } from "color-star-custom-methods";
6
- import { _ as ze } from "./chunks/layout.CR6q_HFP.js";
1
+ import { w as ke } from "./chunks/index.bCzIhWFw.js";
2
+ import { renderSlot as b, createElementBlock as x, openBlock as i, Fragment as M, renderList as W, createBlock as c, unref as t, withCtx as r, createTextVNode as C, toDisplayString as B, useCssVars as le, ref as k, computed as $, withModifiers as be, normalizeClass as N, mergeProps as w, createCommentVNode as O, withKeys as ge, onMounted as we, watch as Ve, createElementVNode as V, createVNode as m, createSlots as F, normalizeProps as H, guardReactiveProps as K, normalizeStyle as Ce } from "vue";
3
+ import { ElButton as T, ElForm as De, ElFormItem as oe, ElInput as Z, ElDatePicker as $e, ElInputNumber as Ee, ElSwitch as xe, ElRadioGroup as We, ElRadio as Fe, ElCheckboxGroup as Me, ElCheckbox as Be, ElAutoResizer as _, ElPopover as Ue, ElIcon as ee, ElDrawer as Le } from "element-plus";
4
+ import { IconMagnify as Ie, IconCheck as Pe, IconUp as Se, IconDown as Ne, IconShrink as Oe } from "color-message-lingyun-vue";
5
+ import { operationConfigMap as E, emitsMap as f, labelPositionMap as P, componentType as p, dateParamsMap as Te, dateFormat as ae } from "color-star-custom-methods";
6
+ import { _ as ze } from "./chunks/layout.84FMC7pU.js";
7
7
  import { _ as Re } from "./chunks/layout.8QJjTbpS.js";
8
8
  import { _ as ne } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
9
9
  import { C as te } from "./chunks/layout.DBrUEnal.js";
@@ -11,12 +11,12 @@ import './assets/SearchBar.css';const je = [
11
11
  {
12
12
  type: "primary",
13
13
  label: "查询",
14
- value: D.search
14
+ value: E.search
15
15
  },
16
16
  {
17
17
  type: "default",
18
18
  label: "重置",
19
- value: D.reset,
19
+ value: E.reset,
20
20
  plain: !0
21
21
  }
22
22
  ], re = 320, q = {
@@ -28,22 +28,22 @@ import './assets/SearchBar.css';const je = [
28
28
  }
29
29
  },
30
30
  emits: [f.operation],
31
- setup(a, { emit: B }) {
32
- const C = B, u = (h) => {
33
- C(f.operation, h);
31
+ setup(a, { emit: U }) {
32
+ const v = U, u = (h) => {
33
+ v(f.operation, h);
34
34
  };
35
- return (h, n) => h.$slots.operation ? b(h.$slots, "operation", {
35
+ return (h, y) => h.$slots.operation ? b(h.$slots, "operation", {
36
36
  key: 0,
37
37
  operationList: a.operationList
38
- }) : (i(!0), $(F, { key: 1 }, E(a.operationList, (y) => (i(), c(t(T), {
39
- key: y.value,
40
- type: y.type,
41
- icon: y.icon,
42
- plain: y.plain,
43
- onClick: (e) => u(y.value)
38
+ }) : (i(!0), x(M, { key: 1 }, W(a.operationList, (n) => (i(), c(t(T), {
39
+ key: n.value,
40
+ type: n.type,
41
+ icon: n.icon,
42
+ plain: n.plain,
43
+ onClick: (D) => u(n.value)
44
44
  }, {
45
45
  default: r(() => [
46
- V(M(y.label), 1)
46
+ C(B(n.label), 1)
47
47
  ]),
48
48
  _: 2
49
49
  }, 1032, ["type", "icon", "plain", "onClick"]))), 128));
@@ -109,12 +109,12 @@ import './assets/SearchBar.css';const je = [
109
109
  }
110
110
  },
111
111
  emits: [f.change, f.enter],
112
- setup(a, { expose: B }) {
112
+ setup(a, { expose: U }) {
113
113
  le((n) => ({
114
- v1bc7ee80: a.minWidth + "px"
114
+ f41bc21a: a.minWidth + "px"
115
115
  }));
116
- const C = a, u = p(null), h = W(() => C.isFilter ? "filter-form" : C.isFilterPreview ? "filter-preview-form" : C.fixedWidth ? "search-bar-form search-bar-form-fixed" : "search-bar-form");
117
- return B({
116
+ const v = a, u = k(null), h = $(() => v.isFilter ? "filter-form" : v.isFilterPreview ? "filter-preview-form" : v.fixedWidth ? "search-bar-form search-bar-form-fixed" : "search-bar-form"), y = $(() => v.showLabel ? v.labelWidth : "");
117
+ return U({
118
118
  validate: (n) => u.value ? u.value.validate(n) : Promise.resolve(!0),
119
119
  resetFields: () => {
120
120
  u.value && u.value.resetFields();
@@ -125,11 +125,11 @@ import './assets/SearchBar.css';const je = [
125
125
  scrollToField: (n) => {
126
126
  u.value && u.value.scrollToField(n);
127
127
  }
128
- }), (n, y) => (i(), c(t(De), {
128
+ }), (n, D) => (i(), c(t(De), {
129
129
  ref_key: "formRef",
130
130
  ref: u,
131
131
  model: a.formData,
132
- "label-width": a.labelWidth,
132
+ "label-width": y.value,
133
133
  "label-position": a.labelPosition,
134
134
  inline: a.inline,
135
135
  rules: a.rules,
@@ -137,11 +137,11 @@ import './assets/SearchBar.css';const je = [
137
137
  [h.value]: !0,
138
138
  "items-end display-grid": !a.isFilterPreview
139
139
  }),
140
- onSubmit: y[0] || (y[0] = ke(() => {
140
+ onSubmit: D[0] || (D[0] = be(() => {
141
141
  }, ["prevent", "stop"]))
142
142
  }, {
143
143
  default: r(() => [
144
- (i(!0), $(F, null, E(a.items, (e) => (i(), c(t(oe), g({
144
+ (i(!0), x(M, null, W(a.items, (e) => (i(), c(t(oe), w({
145
145
  key: e.key,
146
146
  label: a.showLabel ? e.label : "",
147
147
  prop: e.key,
@@ -157,7 +157,7 @@ import './assets/SearchBar.css';const je = [
157
157
  item: e,
158
158
  formData: a.formData
159
159
  }, () => [
160
- e.type === t(v).text ? (i(), c(t(Z), g({
160
+ e.type === t(p).text ? (i(), c(t(Z), w({
161
161
  key: 0,
162
162
  modelValue: a.formData[e.key],
163
163
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
@@ -165,7 +165,7 @@ import './assets/SearchBar.css';const je = [
165
165
  class: "w-full",
166
166
  onChange: (l) => n.$emit(t(f).change, e.key, a.formData[e.key]),
167
167
  onKeyup: ge((l) => n.$emit(t(f).enter, e.key, a.formData[e.key]), ["enter"])
168
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onKeyup"])) : e.type === t(v).select ? (i(), c(ze, g({
168
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onKeyup"])) : e.type === t(p).select ? (i(), c(ze, w({
169
169
  key: 1,
170
170
  modelValue: a.formData[e.key],
171
171
  "onUpdate:modelValue": (l) => a.formData[e.key] = l,
@@ -173,7 +173,7 @@ import './assets/SearchBar.css';const je = [
173
173
  }, { ref_for: !0 }, e, {
174
174
  onChange: (l) => n.$emit(t(f).change, e.key, a.formData[e.key]),
175
175
  class: "w-full"
176
- }), null, 16, ["modelValue", "onUpdate:modelValue", "static-options", "onChange"])) : e.type === t(v).date ? (i(), c(t($e), g({
176
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "static-options", "onChange"])) : e.type === t(p).date ? (i(), c(t($e), w({
177
177
  key: 2,
178
178
  modelValue: a.formData[e.key],
179
179
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
@@ -186,60 +186,60 @@ import './assets/SearchBar.css';const je = [
186
186
  "value-format": e.valueFormat || t(ae).dateTime,
187
187
  class: "w-full",
188
188
  onChange: (l) => n.$emit(t(f).change, e.key, a.formData[e.key])
189
- }), null, 16, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "onChange"])) : e.type === t(v).inputNumber ? (i(), c(t(Ee), g({
189
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "type", "format", "value-format", "onChange"])) : e.type === t(p).inputNumber ? (i(), c(t(Ee), w({
190
190
  key: 3,
191
191
  modelValue: a.formData[e.key],
192
192
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
193
193
  }, { ref_for: !0 }, e, {
194
194
  class: "w-full",
195
195
  onChange: (l) => n.$emit(t(f).change, e.key, a.formData[e.key])
196
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(v).switch ? (i(), c(t(xe), g({
196
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).switch ? (i(), c(t(xe), w({
197
197
  key: 4,
198
198
  modelValue: a.formData[e.key],
199
199
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
200
200
  }, { ref_for: !0 }, e, {
201
201
  onChange: (l) => n.$emit(t(f).change, e.key, a.formData[e.key])
202
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(v).radio ? (i(), c(t(We), {
202
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).radio ? (i(), c(t(We), {
203
203
  key: 5,
204
204
  modelValue: a.formData[e.key],
205
205
  "onUpdate:modelValue": (l) => a.formData[e.key] = l,
206
206
  onChange: (l) => n.$emit(t(f).change, e.key, a.formData[e.key])
207
207
  }, {
208
208
  default: r(() => [
209
- (i(!0), $(F, null, E(e.options, (l) => (i(), c(t(Fe), {
209
+ (i(!0), x(M, null, W(e.options, (l) => (i(), c(t(Fe), {
210
210
  key: l.value,
211
211
  label: l.value,
212
212
  value: l.value,
213
213
  disabled: l.disabled
214
214
  }, {
215
215
  default: r(() => [
216
- V(M(l.label), 1)
216
+ C(B(l.label), 1)
217
217
  ]),
218
218
  _: 2
219
219
  }, 1032, ["label", "value", "disabled"]))), 128))
220
220
  ]),
221
221
  _: 2
222
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(v).checkbox ? (i(), c(t(Me), {
222
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).checkbox ? (i(), c(t(Me), {
223
223
  key: 6,
224
224
  modelValue: a.formData[e.key],
225
225
  "onUpdate:modelValue": (l) => a.formData[e.key] = l,
226
226
  onChange: (l) => n.$emit(t(f).change, e.key, a.formData[e.key])
227
227
  }, {
228
228
  default: r(() => [
229
- (i(!0), $(F, null, E(e.options, (l) => (i(), c(t(Be), {
229
+ (i(!0), x(M, null, W(e.options, (l) => (i(), c(t(Be), {
230
230
  key: l.value,
231
231
  label: l.value,
232
232
  value: l.value,
233
233
  disabled: l.disabled
234
234
  }, {
235
235
  default: r(() => [
236
- V(M(l.label), 1)
236
+ C(B(l.label), 1)
237
237
  ]),
238
238
  _: 2
239
239
  }, 1032, ["label", "value", "disabled"]))), 128))
240
240
  ]),
241
241
  _: 2
242
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(v).textarea ? (i(), c(t(Z), g({
242
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).textarea ? (i(), c(t(Z), w({
243
243
  key: 7,
244
244
  modelValue: a.formData[e.key],
245
245
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
@@ -247,7 +247,7 @@ import './assets/SearchBar.css';const je = [
247
247
  class: "w-full",
248
248
  type: "textarea",
249
249
  onChange: (l) => n.$emit(t(f).change, e.key, a.formData[e.key])
250
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(v).upload ? (i(), c(Re, g({
250
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange"])) : e.type === t(p).upload ? (i(), c(Re, w({
251
251
  key: 8,
252
252
  modelValue: a.formData[e.key],
253
253
  "onUpdate:modelValue": (l) => a.formData[e.key] = l
@@ -261,7 +261,7 @@ import './assets/SearchBar.css';const je = [
261
261
  _: 3
262
262
  }, 8, ["model", "label-width", "label-position", "inline", "rules", "class"]));
263
263
  }
264
- }), G = /* @__PURE__ */ ne(Ae, [["__scopeId", "data-v-79352bf5"]]), He = { class: "h-32 w-full" }, Ke = { class: "flex items-center justify-between pd-b-20" }, qe = { class: "text-right" }, Ge = { class: "drawer-header" }, Je = { class: "flex-1 pd-l-16 pd-r-16 overflow-y-auto" }, Qe = { class: "text-right border-top pd-t-16 pd-l-16 pd-r-16" }, Xe = /* @__PURE__ */ Object.assign({
264
+ }), G = /* @__PURE__ */ ne(Ae, [["__scopeId", "data-v-8a6daca8"]]), He = { class: "h-32 w-full" }, Ke = { class: "flex items-center justify-between pd-b-20" }, qe = { class: "text-right" }, Ge = { class: "drawer-header" }, Je = { class: "flex-1 pd-l-16 pd-r-16 overflow-y-auto" }, Qe = { class: "text-right border-top pd-t-16 pd-l-16 pd-r-16" }, Xe = /* @__PURE__ */ Object.assign({
265
265
  name: "SearchBar"
266
266
  }, {
267
267
  __name: "layout",
@@ -323,12 +323,12 @@ import './assets/SearchBar.css';const je = [
323
323
  }
324
324
  },
325
325
  emits: [f.updateModelValue, f.operation, f.change],
326
- setup(a, { expose: B, emit: C }) {
326
+ setup(a, { expose: U, emit: v }) {
327
327
  le((o) => ({
328
- c43334b4: a.maxHeight + "px",
329
- v002cf482: S.value ? S.value + "px" : "100%"
328
+ v6f01ec42: a.maxHeight + "px",
329
+ v0a879a66: S.value ? S.value + "px" : "100%"
330
330
  }));
331
- const u = a, h = C, n = p({}), y = p(!u.isExpand), e = p(null), l = p(!1), U = p(!1), z = p(!1), ie = W(() => {
331
+ const u = a, h = v, y = k({}), n = k(!u.isExpand), D = k(null), e = k(!1), l = k(!1), z = k(!1), ie = $(() => {
332
332
  const o = {};
333
333
  return u.items.forEach((d) => {
334
334
  if (d.required) {
@@ -336,35 +336,35 @@ import './assets/SearchBar.css';const je = [
336
336
  typeof d.validator == "function" && s.push({ validator: d.validator, trigger: "blur" }), o[d.key] = s;
337
337
  }
338
338
  }), o;
339
- }), R = W(() => u.items?.filter((o) => !o.hidden) || []), J = W(() => u.filterMode ? R.value?.slice(0, 2) || [] : R.value), I = W(() => u.filterMode ? R.value.slice(2) : []), Q = (o) => {
340
- n.value = { ...o };
339
+ }), R = $(() => u.items?.filter((o) => !o.hidden) || []), J = $(() => u.filterMode ? R.value?.slice(0, 2) || [] : R.value), L = $(() => u.filterMode ? R.value.slice(2) : []), Q = (o) => {
340
+ y.value = { ...o };
341
341
  }, ue = () => {
342
- h(f.updateModelValue, { ...n.value });
342
+ h(f.updateModelValue, { ...y.value });
343
343
  }, de = (o, d) => {
344
- n.value[o] = d, z.value = !0, L(D.search), setTimeout(() => {
344
+ y.value[o] = d, z.value = !0, I(E.search), setTimeout(() => {
345
345
  z.value = !1;
346
346
  }, 200), j(o, d);
347
347
  }, j = (o, d) => {
348
348
  o && h(f.change, o, d);
349
- }, se = () => n.value, A = (o, d) => {
350
- z.value || h(f.operation, D.search, n.value);
351
- }, L = (o) => {
352
- ue(), h(f.operation, o, n.value), (o === D.search || o === D.reset) && (l.value = !1, U.value = !1);
353
- }, fe = (o) => e.value.validate(o), S = p(0), me = (o) => {
349
+ }, se = () => y.value, A = (o, d) => {
350
+ z.value || h(f.operation, E.search, y.value);
351
+ }, I = (o) => {
352
+ ue(), h(f.operation, o, y.value), (o === E.search || o === E.reset) && (e.value = !1, l.value = !1);
353
+ }, fe = (o) => D.value.validate(o), S = k(0), me = (o) => {
354
354
  if (u.fixedWidth) {
355
355
  S.value = 132;
356
356
  return;
357
357
  }
358
358
  S.value = o + 32;
359
359
  }, ce = () => {
360
- y.value = !y.value;
360
+ n.value = !n.value;
361
361
  }, ye = () => {
362
- l.value = !1, U.value = !0;
362
+ e.value = !1, l.value = !0;
363
363
  }, he = () => {
364
- U.value = !1, l.value = !0;
365
- }, X = p(!1), Y = (o) => {
364
+ l.value = !1, e.value = !0;
365
+ }, X = k(!1), Y = (o) => {
366
366
  X.value = o > u.maxHeight;
367
- }, ve = W(() => u.filterMode || y.value ? "10px" : "0");
367
+ }, ve = $(() => u.filterMode || n.value ? "10px" : "0");
368
368
  return we(() => {
369
369
  Q(u.modelValue), Y();
370
370
  }), Ve(
@@ -373,29 +373,29 @@ import './assets/SearchBar.css';const je = [
373
373
  Q(o);
374
374
  },
375
375
  { immediate: !0, deep: !0 }
376
- ), B({
376
+ ), U({
377
377
  validate: fe,
378
378
  getFormData: se,
379
379
  // clearValidate,
380
380
  // resetFields,
381
381
  // scrollToField,
382
- formRef: e
383
- }), (o, d) => (i(), $("div", {
382
+ formRef: D
383
+ }), (o, d) => (i(), x("div", {
384
384
  class: N(["relative overflow-hidden w-full", { flex: a.filterMode }])
385
385
  }, [
386
- w("div", {
386
+ V("div", {
387
387
  class: N({
388
- "is-collapsed overflow-hidden": !y.value
388
+ "is-collapsed overflow-hidden": !n.value
389
389
  })
390
390
  }, [
391
391
  m(t(_), null, {
392
392
  default: r(({ height: s }) => [
393
- V(M(Y(s)) + " ", 1),
393
+ C(B(Y(s)) + " ", 1),
394
394
  m(G, {
395
395
  ref_key: "formRef",
396
- ref: e,
396
+ ref: D,
397
397
  items: J.value,
398
- "form-data": n.value,
398
+ "form-data": y.value,
399
399
  rules: ie.value,
400
400
  "label-width": a.labelWidth,
401
401
  "label-position": a.labelPosition,
@@ -406,17 +406,14 @@ import './assets/SearchBar.css';const je = [
406
406
  fixedWidth: a.fixedWidth,
407
407
  onChange: de,
408
408
  onEnter: A
409
- }, x({
409
+ }, F({
410
410
  default: r(() => [
411
- a.isExpand && !a.filterMode ? (i(), c(t(oe), {
412
- key: 0,
413
- "label-width": "0"
414
- }, {
411
+ a.isExpand && !a.filterMode ? (i(), c(t(oe), { key: 0 }, {
415
412
  default: r(() => [
416
- w("div", He, [
413
+ V("div", He, [
417
414
  m(t(_), null, {
418
- default: r(({ width: k }) => [
419
- V(M(me(k)), 1)
415
+ default: r(({ width: g }) => [
416
+ C(B(me(g)), 1)
420
417
  ]),
421
418
  _: 1
422
419
  })
@@ -427,10 +424,10 @@ import './assets/SearchBar.css';const je = [
427
424
  ]),
428
425
  _: 2
429
426
  }, [
430
- E(J.value, (k) => ({
431
- name: k.key,
427
+ W(J.value, (g) => ({
428
+ name: g.key,
432
429
  fn: r((pe) => [
433
- b(o.$slots, k.key, H(K(pe)), void 0, !0)
430
+ b(o.$slots, g.key, H(K(pe)), void 0, !0)
434
431
  ])
435
432
  }))
436
433
  ]), 1032, ["items", "form-data", "rules", "label-width", "label-position", "show-label", "min-width", "is-filter-preview", "fixedWidth"])
@@ -438,7 +435,7 @@ import './assets/SearchBar.css';const je = [
438
435
  _: 3
439
436
  })
440
437
  ], 2),
441
- w("div", {
438
+ V("div", {
442
439
  class: N(["operation-buttons", {
443
440
  "absolute right-0 text-right": a.isExpand && !a.filterMode,
444
441
  "text-left": a.filterMode,
@@ -446,37 +443,37 @@ import './assets/SearchBar.css';const je = [
446
443
  }]),
447
444
  style: Ce({ bottom: ve.value })
448
445
  }, [
449
- a.filterMode ? (i(), $(F, { key: 0 }, [
446
+ a.filterMode ? (i(), x(M, { key: 0 }, [
450
447
  m(t(T), {
451
- onClick: d[0] || (d[0] = (s) => L(t(D).reset)),
448
+ onClick: d[0] || (d[0] = (s) => I(t(E).reset)),
452
449
  type: "default"
453
450
  }, {
454
451
  default: r(() => [...d[3] || (d[3] = [
455
- V("重置", -1)
452
+ C("重置", -1)
456
453
  ])]),
457
454
  _: 1
458
455
  }),
459
- I.value?.length ? (i(), c(t(Ue), {
456
+ L.value?.length ? (i(), c(t(Ue), {
460
457
  key: 0,
461
- visible: l.value,
458
+ visible: e.value,
462
459
  placement: "bottom-start",
463
460
  width: 628,
464
461
  trigger: "click"
465
462
  }, {
466
463
  reference: r(() => [
467
464
  m(t(T), {
468
- onClick: d[1] || (d[1] = (s) => l.value = !l.value),
465
+ onClick: d[1] || (d[1] = (s) => e.value = !e.value),
469
466
  icon: t(Pe),
470
467
  type: "default"
471
468
  }, {
472
469
  default: r(() => [...d[4] || (d[4] = [
473
- V(" 筛选器 ", -1)
470
+ C(" 筛选器 ", -1)
474
471
  ])]),
475
472
  _: 1
476
473
  }, 8, ["icon"])
477
474
  ]),
478
475
  default: r(() => [
479
- w("div", Ke, [
476
+ V("div", Ke, [
480
477
  m(te, {
481
478
  content: "筛选器",
482
479
  fontSize: 16
@@ -486,14 +483,14 @@ import './assets/SearchBar.css';const je = [
486
483
  onClick: ye
487
484
  }, {
488
485
  default: r(() => [
489
- m(t(Le))
486
+ m(t(Ie))
490
487
  ]),
491
488
  _: 1
492
489
  })
493
490
  ]),
494
491
  m(G, {
495
- items: I.value,
496
- "form-data": n.value,
492
+ items: L.value,
493
+ "form-data": y.value,
497
494
  "label-width": "auto",
498
495
  "label-position": "top",
499
496
  inline: !1,
@@ -503,19 +500,19 @@ import './assets/SearchBar.css';const je = [
503
500
  class: "filter-form-popover overflow-y-auto",
504
501
  onChange: j,
505
502
  onEnter: A
506
- }, x({ _: 2 }, [
507
- E(I.value, (s) => ({
503
+ }, F({ _: 2 }, [
504
+ W(L.value, (s) => ({
508
505
  name: s.key,
509
- fn: r((k) => [
510
- b(o.$slots, s.key, H(K(k)), void 0, !0)
506
+ fn: r((g) => [
507
+ b(o.$slots, s.key, H(K(g)), void 0, !0)
511
508
  ])
512
509
  }))
513
510
  ]), 1032, ["items", "form-data", "min-width"]),
514
- w("div", qe, [
511
+ V("div", qe, [
515
512
  m(q, {
516
513
  "operation-list": a.operationList,
517
- onOperation: L
518
- }, x({ _: 2 }, [
514
+ onOperation: I
515
+ }, F({ _: 2 }, [
519
516
  o.$slots.operation ? {
520
517
  name: "operation",
521
518
  fn: r(({ operationList: s }) => [
@@ -528,22 +525,22 @@ import './assets/SearchBar.css';const je = [
528
525
  ]),
529
526
  _: 3
530
527
  }, 8, ["visible"])) : O("", !0)
531
- ], 64)) : (i(), $(F, { key: 1 }, [
528
+ ], 64)) : (i(), x(M, { key: 1 }, [
532
529
  X.value && a.isExpand && a.hideExpandButton ? (i(), c(t(T), {
533
530
  key: 0,
534
- icon: y.value ? t(Se) : t(Ne),
531
+ icon: n.value ? t(Se) : t(Ne),
535
532
  text: "",
536
533
  onClick: ce
537
534
  }, {
538
535
  default: r(() => [
539
- V(M(y.value ? "收起" : "展开"), 1)
536
+ C(B(n.value ? "收起" : "展开"), 1)
540
537
  ]),
541
538
  _: 1
542
539
  }, 8, ["icon"])) : O("", !0),
543
540
  m(q, {
544
541
  "operation-list": a.operationList,
545
- onOperation: L
546
- }, x({ _: 2 }, [
542
+ onOperation: I
543
+ }, F({ _: 2 }, [
547
544
  o.$slots.operation ? {
548
545
  name: "operation",
549
546
  fn: r(({ operationList: s }) => [
@@ -554,14 +551,14 @@ import './assets/SearchBar.css';const je = [
554
551
  ]), 1032, ["operation-list"])
555
552
  ], 64))
556
553
  ], 6),
557
- m(t(Ie), {
558
- modelValue: U.value,
559
- "onUpdate:modelValue": d[2] || (d[2] = (s) => U.value = s),
554
+ m(t(Le), {
555
+ modelValue: l.value,
556
+ "onUpdate:modelValue": d[2] || (d[2] = (s) => l.value = s),
560
557
  size: "628",
561
558
  "show-close": !1
562
559
  }, {
563
560
  header: r(() => [
564
- w("div", Ge, [
561
+ V("div", Ge, [
565
562
  m(te, {
566
563
  content: "筛选器",
567
564
  fontSize: 16
@@ -579,10 +576,10 @@ import './assets/SearchBar.css';const je = [
579
576
  ])
580
577
  ]),
581
578
  default: r(() => [
582
- w("div", Je, [
579
+ V("div", Je, [
583
580
  m(G, {
584
- items: I.value,
585
- "form-data": n.value,
581
+ items: L.value,
582
+ "form-data": y.value,
586
583
  "label-width": "auto",
587
584
  "label-position": "top",
588
585
  inline: !1,
@@ -591,20 +588,20 @@ import './assets/SearchBar.css';const je = [
591
588
  "min-width": a.minWidth,
592
589
  onChange: j,
593
590
  onEnter: A
594
- }, x({ _: 2 }, [
595
- E(I.value, (s) => ({
591
+ }, F({ _: 2 }, [
592
+ W(L.value, (s) => ({
596
593
  name: s.key,
597
- fn: r((k) => [
598
- b(o.$slots, s.key, H(K(k)), void 0, !0)
594
+ fn: r((g) => [
595
+ b(o.$slots, s.key, H(K(g)), void 0, !0)
599
596
  ])
600
597
  }))
601
598
  ]), 1032, ["items", "form-data", "min-width"])
602
599
  ]),
603
- w("div", Qe, [
600
+ V("div", Qe, [
604
601
  m(q, {
605
602
  "operation-list": a.operationList,
606
- onOperation: L
607
- }, x({ _: 2 }, [
603
+ onOperation: I
604
+ }, F({ _: 2 }, [
608
605
  o.$slots.operation ? {
609
606
  name: "operation",
610
607
  fn: r(({ operationList: s }) => [
@@ -619,7 +616,7 @@ import './assets/SearchBar.css';const je = [
619
616
  }, 8, ["modelValue"])
620
617
  ], 2));
621
618
  }
622
- }), Ye = /* @__PURE__ */ ne(Xe, [["__scopeId", "data-v-3877c183"]]), ia = be(Ye);
619
+ }), Ye = /* @__PURE__ */ ne(Xe, [["__scopeId", "data-v-43e6f39f"]]), ia = ke(Ye);
623
620
  export {
624
621
  ia as SearchBar,
625
622
  ia as default