color-star-custom-components 0.0.16 → 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.
package/es/SearchBar.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { w as ke } from "./chunks/index.bCzIhWFw.js";
2
- import { renderSlot as k, 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 be, 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";
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
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";
@@ -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 ? k(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] = be(() => {
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,
@@ -153,11 +153,11 @@ import './assets/SearchBar.css';const je = [
153
153
  ]
154
154
  }, { ref_for: !0 }, e), {
155
155
  default: r(() => [
156
- k(n.$slots, e.key, {
156
+ b(n.$slots, e.key, {
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
@@ -256,12 +256,12 @@ import './assets/SearchBar.css';const je = [
256
256
  ]),
257
257
  _: 2
258
258
  }, 1040, ["label", "prop", "show-label", "class"]))), 128)),
259
- k(n.$slots, "default", {}, void 0, !0)
259
+ b(n.$slots, "default", {}, void 0, !0)
260
260
  ]),
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
328
  v6f01ec42: a.maxHeight + "px",
329
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,14 +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
411
  a.isExpand && !a.filterMode ? (i(), c(t(oe), { key: 0 }, {
412
412
  default: r(() => [
413
- w("div", He, [
413
+ V("div", He, [
414
414
  m(t(_), null, {
415
- default: r(({ width: b }) => [
416
- V(M(me(b)), 1)
415
+ default: r(({ width: g }) => [
416
+ C(B(me(g)), 1)
417
417
  ]),
418
418
  _: 1
419
419
  })
@@ -424,10 +424,10 @@ import './assets/SearchBar.css';const je = [
424
424
  ]),
425
425
  _: 2
426
426
  }, [
427
- E(J.value, (b) => ({
428
- name: b.key,
427
+ W(J.value, (g) => ({
428
+ name: g.key,
429
429
  fn: r((pe) => [
430
- k(o.$slots, b.key, H(K(pe)), void 0, !0)
430
+ b(o.$slots, g.key, H(K(pe)), void 0, !0)
431
431
  ])
432
432
  }))
433
433
  ]), 1032, ["items", "form-data", "rules", "label-width", "label-position", "show-label", "min-width", "is-filter-preview", "fixedWidth"])
@@ -435,7 +435,7 @@ import './assets/SearchBar.css';const je = [
435
435
  _: 3
436
436
  })
437
437
  ], 2),
438
- w("div", {
438
+ V("div", {
439
439
  class: N(["operation-buttons", {
440
440
  "absolute right-0 text-right": a.isExpand && !a.filterMode,
441
441
  "text-left": a.filterMode,
@@ -443,37 +443,37 @@ import './assets/SearchBar.css';const je = [
443
443
  }]),
444
444
  style: Ce({ bottom: ve.value })
445
445
  }, [
446
- a.filterMode ? (i(), $(F, { key: 0 }, [
446
+ a.filterMode ? (i(), x(M, { key: 0 }, [
447
447
  m(t(T), {
448
- onClick: d[0] || (d[0] = (s) => L(t(D).reset)),
448
+ onClick: d[0] || (d[0] = (s) => I(t(E).reset)),
449
449
  type: "default"
450
450
  }, {
451
451
  default: r(() => [...d[3] || (d[3] = [
452
- V("重置", -1)
452
+ C("重置", -1)
453
453
  ])]),
454
454
  _: 1
455
455
  }),
456
- I.value?.length ? (i(), c(t(Ue), {
456
+ L.value?.length ? (i(), c(t(Ue), {
457
457
  key: 0,
458
- visible: l.value,
458
+ visible: e.value,
459
459
  placement: "bottom-start",
460
460
  width: 628,
461
461
  trigger: "click"
462
462
  }, {
463
463
  reference: r(() => [
464
464
  m(t(T), {
465
- onClick: d[1] || (d[1] = (s) => l.value = !l.value),
465
+ onClick: d[1] || (d[1] = (s) => e.value = !e.value),
466
466
  icon: t(Pe),
467
467
  type: "default"
468
468
  }, {
469
469
  default: r(() => [...d[4] || (d[4] = [
470
- V(" 筛选器 ", -1)
470
+ C(" 筛选器 ", -1)
471
471
  ])]),
472
472
  _: 1
473
473
  }, 8, ["icon"])
474
474
  ]),
475
475
  default: r(() => [
476
- w("div", Ke, [
476
+ V("div", Ke, [
477
477
  m(te, {
478
478
  content: "筛选器",
479
479
  fontSize: 16
@@ -483,14 +483,14 @@ import './assets/SearchBar.css';const je = [
483
483
  onClick: ye
484
484
  }, {
485
485
  default: r(() => [
486
- m(t(Le))
486
+ m(t(Ie))
487
487
  ]),
488
488
  _: 1
489
489
  })
490
490
  ]),
491
491
  m(G, {
492
- items: I.value,
493
- "form-data": n.value,
492
+ items: L.value,
493
+ "form-data": y.value,
494
494
  "label-width": "auto",
495
495
  "label-position": "top",
496
496
  inline: !1,
@@ -500,23 +500,23 @@ import './assets/SearchBar.css';const je = [
500
500
  class: "filter-form-popover overflow-y-auto",
501
501
  onChange: j,
502
502
  onEnter: A
503
- }, x({ _: 2 }, [
504
- E(I.value, (s) => ({
503
+ }, F({ _: 2 }, [
504
+ W(L.value, (s) => ({
505
505
  name: s.key,
506
- fn: r((b) => [
507
- k(o.$slots, s.key, H(K(b)), void 0, !0)
506
+ fn: r((g) => [
507
+ b(o.$slots, s.key, H(K(g)), void 0, !0)
508
508
  ])
509
509
  }))
510
510
  ]), 1032, ["items", "form-data", "min-width"]),
511
- w("div", qe, [
511
+ V("div", qe, [
512
512
  m(q, {
513
513
  "operation-list": a.operationList,
514
- onOperation: L
515
- }, x({ _: 2 }, [
514
+ onOperation: I
515
+ }, F({ _: 2 }, [
516
516
  o.$slots.operation ? {
517
517
  name: "operation",
518
518
  fn: r(({ operationList: s }) => [
519
- k(o.$slots, "operation", { operationList: s }, void 0, !0)
519
+ b(o.$slots, "operation", { operationList: s }, void 0, !0)
520
520
  ]),
521
521
  key: "0"
522
522
  } : void 0
@@ -525,40 +525,40 @@ import './assets/SearchBar.css';const je = [
525
525
  ]),
526
526
  _: 3
527
527
  }, 8, ["visible"])) : O("", !0)
528
- ], 64)) : (i(), $(F, { key: 1 }, [
528
+ ], 64)) : (i(), x(M, { key: 1 }, [
529
529
  X.value && a.isExpand && a.hideExpandButton ? (i(), c(t(T), {
530
530
  key: 0,
531
- icon: y.value ? t(Se) : t(Ne),
531
+ icon: n.value ? t(Se) : t(Ne),
532
532
  text: "",
533
533
  onClick: ce
534
534
  }, {
535
535
  default: r(() => [
536
- V(M(y.value ? "收起" : "展开"), 1)
536
+ C(B(n.value ? "收起" : "展开"), 1)
537
537
  ]),
538
538
  _: 1
539
539
  }, 8, ["icon"])) : O("", !0),
540
540
  m(q, {
541
541
  "operation-list": a.operationList,
542
- onOperation: L
543
- }, x({ _: 2 }, [
542
+ onOperation: I
543
+ }, F({ _: 2 }, [
544
544
  o.$slots.operation ? {
545
545
  name: "operation",
546
546
  fn: r(({ operationList: s }) => [
547
- k(o.$slots, "operation", { operationList: s }, void 0, !0)
547
+ b(o.$slots, "operation", { operationList: s }, void 0, !0)
548
548
  ]),
549
549
  key: "0"
550
550
  } : void 0
551
551
  ]), 1032, ["operation-list"])
552
552
  ], 64))
553
553
  ], 6),
554
- m(t(Ie), {
555
- modelValue: U.value,
556
- "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),
557
557
  size: "628",
558
558
  "show-close": !1
559
559
  }, {
560
560
  header: r(() => [
561
- w("div", Ge, [
561
+ V("div", Ge, [
562
562
  m(te, {
563
563
  content: "筛选器",
564
564
  fontSize: 16
@@ -576,10 +576,10 @@ import './assets/SearchBar.css';const je = [
576
576
  ])
577
577
  ]),
578
578
  default: r(() => [
579
- w("div", Je, [
579
+ V("div", Je, [
580
580
  m(G, {
581
- items: I.value,
582
- "form-data": n.value,
581
+ items: L.value,
582
+ "form-data": y.value,
583
583
  "label-width": "auto",
584
584
  "label-position": "top",
585
585
  inline: !1,
@@ -588,24 +588,24 @@ import './assets/SearchBar.css';const je = [
588
588
  "min-width": a.minWidth,
589
589
  onChange: j,
590
590
  onEnter: A
591
- }, x({ _: 2 }, [
592
- E(I.value, (s) => ({
591
+ }, F({ _: 2 }, [
592
+ W(L.value, (s) => ({
593
593
  name: s.key,
594
- fn: r((b) => [
595
- k(o.$slots, s.key, H(K(b)), void 0, !0)
594
+ fn: r((g) => [
595
+ b(o.$slots, s.key, H(K(g)), void 0, !0)
596
596
  ])
597
597
  }))
598
598
  ]), 1032, ["items", "form-data", "min-width"])
599
599
  ]),
600
- w("div", Qe, [
600
+ V("div", Qe, [
601
601
  m(q, {
602
602
  "operation-list": a.operationList,
603
- onOperation: L
604
- }, x({ _: 2 }, [
603
+ onOperation: I
604
+ }, F({ _: 2 }, [
605
605
  o.$slots.operation ? {
606
606
  name: "operation",
607
607
  fn: r(({ operationList: s }) => [
608
- k(o.$slots, "operation", { operationList: s }, void 0, !0)
608
+ b(o.$slots, "operation", { operationList: s }, void 0, !0)
609
609
  ]),
610
610
  key: "0"
611
611
  } : void 0
@@ -1 +1 @@
1
- .filter-form[data-v-79352bf5]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-79352bf5]{display:flex}.filter-preview-form .el-form-item[data-v-79352bf5]{width:var(--v1bc7ee80);margin-right:10px}.search-bar-form[data-v-79352bf5]{grid-template-columns:repeat(auto-fit,minmax(var(--v1bc7ee80),1fr));gap:10px}.search-bar-form.search-bar-form-fixed[data-v-79352bf5]{grid-template-columns:repeat(auto-fit,var(--v1bc7ee80))}.search-bar-form.search-bar-form-fixed.el-form--inline .el-form-item[data-v-79352bf5]{margin-bottom:18px}.search-bar-form.el-form--inline .el-form-item[data-v-79352bf5]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-79352bf5]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-79352bf5] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-79352bf5]{display:grid}.search-bar-item--wide[data-v-79352bf5]{grid-column:span 2}.is-collapsed[data-v-43e6f39f]{max-height:var(--v6f01ec42)}.operation-buttons[data-v-43e6f39f]{width:var(--v0a879a66);z-index:1}.h-32[data-v-43e6f39f]{height:32px}.drawer-header[data-v-43e6f39f]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-43e6f39f]{margin-left:auto}.border-top[data-v-43e6f39f]{border-top:1px solid var(--parting-line)}[data-v-43e6f39f] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-43e6f39f]{max-height:400px}[data-v-43e6f39f] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
1
+ .filter-form[data-v-8a6daca8]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-8a6daca8]{display:flex}.filter-preview-form .el-form-item[data-v-8a6daca8]{width:var(--f41bc21a);margin-right:10px}.search-bar-form[data-v-8a6daca8]{grid-template-columns:repeat(auto-fit,minmax(var(--f41bc21a),1fr));gap:10px}.search-bar-form.search-bar-form-fixed[data-v-8a6daca8]{grid-template-columns:repeat(auto-fit,var(--f41bc21a))}.search-bar-form.search-bar-form-fixed.el-form--inline .el-form-item[data-v-8a6daca8]{margin-bottom:18px}.search-bar-form.el-form--inline .el-form-item[data-v-8a6daca8]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-8a6daca8]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-8a6daca8] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-8a6daca8]{display:grid}.search-bar-item--wide[data-v-8a6daca8]{grid-column:span 2}.is-collapsed[data-v-43e6f39f]{max-height:var(--v6f01ec42)}.operation-buttons[data-v-43e6f39f]{width:var(--v0a879a66);z-index:1}.h-32[data-v-43e6f39f]{height:32px}.drawer-header[data-v-43e6f39f]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-43e6f39f]{margin-left:auto}.border-top[data-v-43e6f39f]{border-top:1px solid var(--parting-line)}[data-v-43e6f39f] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-43e6f39f]{max-height:400px}[data-v-43e6f39f] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
package/lib/SearchBar.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/SearchBar.css');const K=require("./chunks/index.CkihWzK6.js"),e=require("vue"),d=require("element-plus"),g=require("color-message-lingyun-vue"),o=require("color-star-custom-methods"),G=require("./chunks/layout.DF2j_cdu.js"),J=require("./chunks/layout.whToBh0O.js"),P=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),S=require("./chunks/layout.DDB7i4jV.js"),Q=[{type:"primary",label:"查询",value:o.operationConfigMap.search},{type:"default",label:"重置",value:o.operationConfigMap.reset,plain:!0}],F=320,x={__name:"OperationButtons",props:{operationList:{type:Array,default:()=>[]}},emits:[o.emitsMap.operation],setup(a,{emit:h}){const p=h,i=c=>{p(o.emitsMap.operation,c)};return(c,n)=>c.$slots.operation?e.renderSlot(c.$slots,"operation",{key:0,operationList:a.operationList}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.operationList,f=>(e.openBlock(),e.createBlock(e.unref(d.ElButton),{key:f.value,type:f.type,icon:f.icon,plain:f.plain,onClick:t=>i(f.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.label),1)]),_:2},1032,["type","icon","plain","onClick"]))),128))}},X=Object.assign({name:"FormWrapper"},{__name:"FormWrapper",props:{items:{type:Array,default:()=>[]},formData:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},labelWidth:{type:[String,Number],default:"auto"},labelPosition:{type:String,default:o.labelPositionMap.right},showLabel:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},isFilter:{type:Boolean,default:!1},isFilterPreview:{type:Boolean,default:!1},minWidth:{type:Number,default:F},fixedWidth:{type:Boolean,default:!1}},emits:[o.emitsMap.change,o.emitsMap.enter],setup(a,{expose:h}){e.useCssVars(n=>({v1bc7ee80:a.minWidth+"px"}));const p=a,i=e.ref(null),c=e.computed(()=>p.isFilter?"filter-form":p.isFilterPreview?"filter-preview-form":p.fixedWidth?"search-bar-form search-bar-form-fixed":"search-bar-form");return h({validate:n=>i.value?i.value.validate(n):Promise.resolve(!0),resetFields:()=>{i.value&&i.value.resetFields()},clearValidate:n=>{i.value&&i.value.clearValidate(n)},scrollToField:n=>{i.value&&i.value.scrollToField(n)}}),(n,f)=>(e.openBlock(),e.createBlock(e.unref(d.ElForm),{ref_key:"formRef",ref:i,model:a.formData,"label-width":a.labelWidth,"label-position":a.labelPosition,inline:a.inline,rules:a.rules,class:e.normalizeClass({[c.value]:!0,"items-end display-grid":!a.isFilterPreview}),onSubmit:f[0]||(f[0]=e.withModifiers(()=>{},["prevent","stop"]))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,t=>(e.openBlock(),e.createBlock(e.unref(d.ElFormItem),e.mergeProps({key:t.key,label:a.showLabel?t.label:"",prop:t.key,"show-label":a.showLabel,class:[{"search-bar-item--wide":t.wide}]},{ref_for:!0},t),{default:e.withCtx(()=>[e.renderSlot(n.$slots,t.key,{item:t,formData:a.formData},()=>[t.type===e.unref(o.componentType).text?(e.openBlock(),e.createBlock(e.unref(d.ElInput),e.mergeProps({key:0,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},t,{class:"w-full",onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key]),onKeyup:e.withKeys(l=>n.$emit(e.unref(o.emitsMap).enter,t.key,a.formData[t.key]),["enter"])}),null,16,["modelValue","onUpdate:modelValue","onChange","onKeyup"])):t.type===e.unref(o.componentType).select?(e.openBlock(),e.createBlock(G._sfc_main,e.mergeProps({key:1,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l,"static-options":t.options},{ref_for:!0},t,{onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key]),class:"w-full"}),null,16,["modelValue","onUpdate:modelValue","static-options","onChange"])):t.type===e.unref(o.componentType).date?(e.openBlock(),e.createBlock(e.unref(d.ElDatePicker),e.mergeProps({key:2,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},{...e.unref(o.dateParamsMap)[t.dateType],...t},{type:t.dateType,format:t.format||e.unref(o.dateFormat).date,"value-format":t.valueFormat||e.unref(o.dateFormat).dateTime,class:"w-full",onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","type","format","value-format","onChange"])):t.type===e.unref(o.componentType).inputNumber?(e.openBlock(),e.createBlock(e.unref(d.ElInputNumber),e.mergeProps({key:3,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},t,{class:"w-full",onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(o.componentType).switch?(e.openBlock(),e.createBlock(e.unref(d.ElSwitch),e.mergeProps({key:4,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},t,{onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(o.componentType).radio?(e.openBlock(),e.createBlock(e.unref(d.ElRadioGroup),{key:5,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l,onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,l=>(e.openBlock(),e.createBlock(e.unref(d.ElRadio),{key:l.value,label:l.value,value:l.value,disabled:l.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(o.componentType).checkbox?(e.openBlock(),e.createBlock(e.unref(d.ElCheckboxGroup),{key:6,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l,onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,l=>(e.openBlock(),e.createBlock(e.unref(d.ElCheckbox),{key:l.value,label:l.value,value:l.value,disabled:l.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(o.componentType).textarea?(e.openBlock(),e.createBlock(e.unref(d.ElInput),e.mergeProps({key:7,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},t,{class:"w-full",type:"textarea",onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(o.componentType).upload?(e.openBlock(),e.createBlock(J._layout,e.mergeProps({key:8,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},t),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],!0)]),_:2},1040,["label","prop","show-label","class"]))),128)),e.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["model","label-width","label-position","inline","rules","class"]))}}),E=P._export_sfc(X,[["__scopeId","data-v-79352bf5"]]),Y={class:"h-32 w-full"},Z={class:"flex items-center justify-between pd-b-20"},_={class:"text-right"},ee={class:"drawer-header"},te={class:"flex-1 pd-l-16 pd-r-16 overflow-y-auto"},ae={class:"text-right border-top pd-t-16 pd-l-16 pd-r-16"},le=Object.assign({name:"SearchBar"},{__name:"layout",props:{items:{type:Array,default:()=>[]},modelValue:{type:Object,default:()=>({})},labelWidth:{type:[String,Number],default:"auto"},labelPosition:{type:String,default:o.labelPositionMap.right,validator:a=>[o.labelPositionMap.left,o.labelPositionMap.right,o.labelPositionMap.top].includes(a)},isExpand:{type:Boolean,default:!0},maxHeight:{type:Number,default:84},minWidth:{type:Number,default:F},operationList:{type:Array,default:Q},filterMode:{type:Boolean,default:!0},hideExpandButton:{type:Boolean,default:!0},fixedWidth:{type:Boolean,default:!1}},emits:[o.emitsMap.updateModelValue,o.emitsMap.operation,o.emitsMap.change],setup(a,{expose:h,emit:p}){e.useCssVars(r=>({v6f01ec42:a.maxHeight+"px",v0a879a66:b.value?b.value+"px":"100%"}));const i=a,c=p,n=e.ref({}),f=e.ref(!i.isExpand),t=e.ref(null),l=e.ref(!1),y=e.ref(!1),V=e.ref(!1),W=e.computed(()=>{const r={};return i.items.forEach(u=>{if(u.required){const s=[{required:!0,message:`${u.label}不能为空`,trigger:"blur"}];typeof u.validator=="function"&&s.push({validator:u.validator,trigger:"blur"}),r[u.key]=s}}),r}),w=e.computed(()=>i.items?.filter(r=>!r.hidden)||[]),M=e.computed(()=>i.filterMode?w.value?.slice(0,2)||[]:w.value),k=e.computed(()=>i.filterMode?w.value.slice(2):[]),D=r=>{n.value={...r}},L=()=>{c(o.emitsMap.updateModelValue,{...n.value})},U=(r,u)=>{n.value[r]=u,V.value=!0,v(o.operationConfigMap.search),setTimeout(()=>{V.value=!1},200),C(r,u)},C=(r,u)=>{r&&c(o.emitsMap.change,r,u)},I=()=>n.value,B=(r,u)=>{V.value||c(o.emitsMap.operation,o.operationConfigMap.search,n.value)},v=r=>{L(),c(o.emitsMap.operation,r,n.value),(r===o.operationConfigMap.search||r===o.operationConfigMap.reset)&&(l.value=!1,y.value=!1)},z=r=>t.value.validate(r),b=e.ref(0),O=r=>{if(i.fixedWidth){b.value=132;return}b.value=r+32},R=()=>{f.value=!f.value},q=()=>{l.value=!1,y.value=!0},j=()=>{y.value=!1,l.value=!0},N=e.ref(!1),$=r=>{N.value=r>i.maxHeight},A=e.computed(()=>i.filterMode||f.value?"10px":"0");return e.onMounted(()=>{D(i.modelValue),$()}),e.watch(()=>i.modelValue,r=>{D(r)},{immediate:!0,deep:!0}),h({validate:z,getFormData:I,formRef:t}),(r,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative overflow-hidden w-full",{flex:a.filterMode}])},[e.createElementVNode("div",{class:e.normalizeClass({"is-collapsed overflow-hidden":!f.value})},[e.createVNode(e.unref(d.ElAutoResizer),null,{default:e.withCtx(({height:s})=>[e.createTextVNode(e.toDisplayString($(s))+" ",1),e.createVNode(E,{ref_key:"formRef",ref:t,items:M.value,"form-data":n.value,rules:W.value,"label-width":a.labelWidth,"label-position":a.labelPosition,inline:!0,"show-label":!a.filterMode,"min-width":a.minWidth,"is-filter-preview":a.filterMode,fixedWidth:a.fixedWidth,onChange:U,onEnter:B},e.createSlots({default:e.withCtx(()=>[a.isExpand&&!a.filterMode?(e.openBlock(),e.createBlock(e.unref(d.ElFormItem),{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",Y,[e.createVNode(e.unref(d.ElAutoResizer),null,{default:e.withCtx(({width:m})=>[e.createTextVNode(e.toDisplayString(O(m)),1)]),_:1})])]),_:1})):e.createCommentVNode("",!0)]),_:2},[e.renderList(M.value,m=>({name:m.key,fn:e.withCtx(H=>[e.renderSlot(r.$slots,m.key,e.normalizeProps(e.guardReactiveProps(H)),void 0,!0)])}))]),1032,["items","form-data","rules","label-width","label-position","show-label","min-width","is-filter-preview","fixedWidth"])]),_:3})],2),e.createElementVNode("div",{class:e.normalizeClass(["operation-buttons",{"absolute right-0 text-right":a.isExpand&&!a.filterMode,"text-left":a.filterMode,"bg-fff":a.isExpand&&!a.filterMode&&!a.fixedWidth}]),style:e.normalizeStyle({bottom:A.value})},[a.filterMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(d.ElButton),{onClick:u[0]||(u[0]=s=>v(e.unref(o.operationConfigMap).reset)),type:"default"},{default:e.withCtx(()=>[...u[3]||(u[3]=[e.createTextVNode("重置",-1)])]),_:1}),k.value?.length?(e.openBlock(),e.createBlock(e.unref(d.ElPopover),{key:0,visible:l.value,placement:"bottom-start",width:628,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(e.unref(d.ElButton),{onClick:u[1]||(u[1]=s=>l.value=!l.value),icon:e.unref(g.IconCheck),type:"default"},{default:e.withCtx(()=>[...u[4]||(u[4]=[e.createTextVNode(" 筛选器 ",-1)])]),_:1},8,["icon"])]),default:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(S.CustomTitle,{content:"筛选器",fontSize:16}),e.createVNode(e.unref(d.ElIcon),{size:16,onClick:q},{default:e.withCtx(()=>[e.createVNode(e.unref(g.IconMagnify))]),_:1})]),e.createVNode(E,{items:k.value,"form-data":n.value,"label-width":"auto","label-position":"top",inline:!1,"show-label":!0,"is-filter":!0,"min-width":a.minWidth,class:"filter-form-popover overflow-y-auto",onChange:C,onEnter:B},e.createSlots({_:2},[e.renderList(k.value,s=>({name:s.key,fn:e.withCtx(m=>[e.renderSlot(r.$slots,s.key,e.normalizeProps(e.guardReactiveProps(m)),void 0,!0)])}))]),1032,["items","form-data","min-width"]),e.createElementVNode("div",_,[e.createVNode(x,{"operation-list":a.operationList,onOperation:v},e.createSlots({_:2},[r.$slots.operation?{name:"operation",fn:e.withCtx(({operationList:s})=>[e.renderSlot(r.$slots,"operation",{operationList:s},void 0,!0)]),key:"0"}:void 0]),1032,["operation-list"])])]),_:3},8,["visible"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[N.value&&a.isExpand&&a.hideExpandButton?(e.openBlock(),e.createBlock(e.unref(d.ElButton),{key:0,icon:f.value?e.unref(g.IconUp):e.unref(g.IconDown),text:"",onClick:R},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.value?"收起":"展开"),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0),e.createVNode(x,{"operation-list":a.operationList,onOperation:v},e.createSlots({_:2},[r.$slots.operation?{name:"operation",fn:e.withCtx(({operationList:s})=>[e.renderSlot(r.$slots,"operation",{operationList:s},void 0,!0)]),key:"0"}:void 0]),1032,["operation-list"])],64))],6),e.createVNode(e.unref(d.ElDrawer),{modelValue:y.value,"onUpdate:modelValue":u[2]||(u[2]=s=>y.value=s),size:"628","show-close":!1},{header:e.withCtx(()=>[e.createElementVNode("div",ee,[e.createVNode(S.CustomTitle,{content:"筛选器",fontSize:16}),e.createVNode(e.unref(d.ElIcon),{size:16,onClick:j,class:"shrink-button"},{default:e.withCtx(()=>[e.createVNode(e.unref(g.IconShrink))]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",te,[e.createVNode(E,{items:k.value,"form-data":n.value,"label-width":"auto","label-position":"top",inline:!1,"show-label":!0,"is-filter":!0,"min-width":a.minWidth,onChange:C,onEnter:B},e.createSlots({_:2},[e.renderList(k.value,s=>({name:s.key,fn:e.withCtx(m=>[e.renderSlot(r.$slots,s.key,e.normalizeProps(e.guardReactiveProps(m)),void 0,!0)])}))]),1032,["items","form-data","min-width"])]),e.createElementVNode("div",ae,[e.createVNode(x,{"operation-list":a.operationList,onOperation:v},e.createSlots({_:2},[r.$slots.operation?{name:"operation",fn:e.withCtx(({operationList:s})=>[e.renderSlot(r.$slots,"operation",{operationList:s},void 0,!0)]),key:"0"}:void 0]),1032,["operation-list"])])]),_:3},8,["modelValue"])],2))}}),oe=P._export_sfc(le,[["__scopeId","data-v-43e6f39f"]]),T=K.withInstall(oe);exports.SearchBar=T;exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./assets/SearchBar.css');const K=require("./chunks/index.CkihWzK6.js"),e=require("vue"),d=require("element-plus"),g=require("color-message-lingyun-vue"),o=require("color-star-custom-methods"),G=require("./chunks/layout.DF2j_cdu.js"),J=require("./chunks/layout.whToBh0O.js"),P=require("./chunks/_plugin-vue_export-helper.BHFhmbuH.js"),S=require("./chunks/layout.DDB7i4jV.js"),Q=[{type:"primary",label:"查询",value:o.operationConfigMap.search},{type:"default",label:"重置",value:o.operationConfigMap.reset,plain:!0}],F=320,x={__name:"OperationButtons",props:{operationList:{type:Array,default:()=>[]}},emits:[o.emitsMap.operation],setup(a,{emit:y}){const m=y,i=c=>{m(o.emitsMap.operation,c)};return(c,f)=>c.$slots.operation?e.renderSlot(c.$slots,"operation",{key:0,operationList:a.operationList}):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.operationList,n=>(e.openBlock(),e.createBlock(e.unref(d.ElButton),{key:n.value,type:n.type,icon:n.icon,plain:n.plain,onClick:h=>i(n.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.label),1)]),_:2},1032,["type","icon","plain","onClick"]))),128))}},X=Object.assign({name:"FormWrapper"},{__name:"FormWrapper",props:{items:{type:Array,default:()=>[]},formData:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},labelWidth:{type:[String,Number],default:"auto"},labelPosition:{type:String,default:o.labelPositionMap.right},showLabel:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},isFilter:{type:Boolean,default:!1},isFilterPreview:{type:Boolean,default:!1},minWidth:{type:Number,default:F},fixedWidth:{type:Boolean,default:!1}},emits:[o.emitsMap.change,o.emitsMap.enter],setup(a,{expose:y}){e.useCssVars(n=>({f41bc21a:a.minWidth+"px"}));const m=a,i=e.ref(null),c=e.computed(()=>m.isFilter?"filter-form":m.isFilterPreview?"filter-preview-form":m.fixedWidth?"search-bar-form search-bar-form-fixed":"search-bar-form"),f=e.computed(()=>m.showLabel?m.labelWidth:"");return y({validate:n=>i.value?i.value.validate(n):Promise.resolve(!0),resetFields:()=>{i.value&&i.value.resetFields()},clearValidate:n=>{i.value&&i.value.clearValidate(n)},scrollToField:n=>{i.value&&i.value.scrollToField(n)}}),(n,h)=>(e.openBlock(),e.createBlock(e.unref(d.ElForm),{ref_key:"formRef",ref:i,model:a.formData,"label-width":f.value,"label-position":a.labelPosition,inline:a.inline,rules:a.rules,class:e.normalizeClass({[c.value]:!0,"items-end display-grid":!a.isFilterPreview}),onSubmit:h[0]||(h[0]=e.withModifiers(()=>{},["prevent","stop"]))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,t=>(e.openBlock(),e.createBlock(e.unref(d.ElFormItem),e.mergeProps({key:t.key,label:a.showLabel?t.label:"",prop:t.key,"show-label":a.showLabel,class:[{"search-bar-item--wide":t.wide}]},{ref_for:!0},t),{default:e.withCtx(()=>[e.renderSlot(n.$slots,t.key,{item:t,formData:a.formData},()=>[t.type===e.unref(o.componentType).text?(e.openBlock(),e.createBlock(e.unref(d.ElInput),e.mergeProps({key:0,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},t,{class:"w-full",onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key]),onKeyup:e.withKeys(l=>n.$emit(e.unref(o.emitsMap).enter,t.key,a.formData[t.key]),["enter"])}),null,16,["modelValue","onUpdate:modelValue","onChange","onKeyup"])):t.type===e.unref(o.componentType).select?(e.openBlock(),e.createBlock(G._sfc_main,e.mergeProps({key:1,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l,"static-options":t.options},{ref_for:!0},t,{onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key]),class:"w-full"}),null,16,["modelValue","onUpdate:modelValue","static-options","onChange"])):t.type===e.unref(o.componentType).date?(e.openBlock(),e.createBlock(e.unref(d.ElDatePicker),e.mergeProps({key:2,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},{...e.unref(o.dateParamsMap)[t.dateType],...t},{type:t.dateType,format:t.format||e.unref(o.dateFormat).date,"value-format":t.valueFormat||e.unref(o.dateFormat).dateTime,class:"w-full",onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","type","format","value-format","onChange"])):t.type===e.unref(o.componentType).inputNumber?(e.openBlock(),e.createBlock(e.unref(d.ElInputNumber),e.mergeProps({key:3,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},t,{class:"w-full",onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(o.componentType).switch?(e.openBlock(),e.createBlock(e.unref(d.ElSwitch),e.mergeProps({key:4,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},t,{onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(o.componentType).radio?(e.openBlock(),e.createBlock(e.unref(d.ElRadioGroup),{key:5,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l,onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,l=>(e.openBlock(),e.createBlock(e.unref(d.ElRadio),{key:l.value,label:l.value,value:l.value,disabled:l.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(o.componentType).checkbox?(e.openBlock(),e.createBlock(e.unref(d.ElCheckboxGroup),{key:6,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l,onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,l=>(e.openBlock(),e.createBlock(e.unref(d.ElCheckbox),{key:l.value,label:l.value,value:l.value,disabled:l.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.label),1)]),_:2},1032,["label","value","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(o.componentType).textarea?(e.openBlock(),e.createBlock(e.unref(d.ElInput),e.mergeProps({key:7,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},t,{class:"w-full",type:"textarea",onChange:l=>n.$emit(e.unref(o.emitsMap).change,t.key,a.formData[t.key])}),null,16,["modelValue","onUpdate:modelValue","onChange"])):t.type===e.unref(o.componentType).upload?(e.openBlock(),e.createBlock(J._layout,e.mergeProps({key:8,modelValue:a.formData[t.key],"onUpdate:modelValue":l=>a.formData[t.key]=l},{ref_for:!0},t),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)],!0)]),_:2},1040,["label","prop","show-label","class"]))),128)),e.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3},8,["model","label-width","label-position","inline","rules","class"]))}}),E=P._export_sfc(X,[["__scopeId","data-v-8a6daca8"]]),Y={class:"h-32 w-full"},Z={class:"flex items-center justify-between pd-b-20"},_={class:"text-right"},ee={class:"drawer-header"},te={class:"flex-1 pd-l-16 pd-r-16 overflow-y-auto"},ae={class:"text-right border-top pd-t-16 pd-l-16 pd-r-16"},le=Object.assign({name:"SearchBar"},{__name:"layout",props:{items:{type:Array,default:()=>[]},modelValue:{type:Object,default:()=>({})},labelWidth:{type:[String,Number],default:"auto"},labelPosition:{type:String,default:o.labelPositionMap.right,validator:a=>[o.labelPositionMap.left,o.labelPositionMap.right,o.labelPositionMap.top].includes(a)},isExpand:{type:Boolean,default:!0},maxHeight:{type:Number,default:84},minWidth:{type:Number,default:F},operationList:{type:Array,default:Q},filterMode:{type:Boolean,default:!0},hideExpandButton:{type:Boolean,default:!0},fixedWidth:{type:Boolean,default:!1}},emits:[o.emitsMap.updateModelValue,o.emitsMap.operation,o.emitsMap.change],setup(a,{expose:y,emit:m}){e.useCssVars(r=>({v6f01ec42:a.maxHeight+"px",v0a879a66:b.value?b.value+"px":"100%"}));const i=a,c=m,f=e.ref({}),n=e.ref(!i.isExpand),h=e.ref(null),t=e.ref(!1),l=e.ref(!1),V=e.ref(!1),L=e.computed(()=>{const r={};return i.items.forEach(u=>{if(u.required){const s=[{required:!0,message:`${u.label}不能为空`,trigger:"blur"}];typeof u.validator=="function"&&s.push({validator:u.validator,trigger:"blur"}),r[u.key]=s}}),r}),w=e.computed(()=>i.items?.filter(r=>!r.hidden)||[]),M=e.computed(()=>i.filterMode?w.value?.slice(0,2)||[]:w.value),k=e.computed(()=>i.filterMode?w.value.slice(2):[]),D=r=>{f.value={...r}},W=()=>{c(o.emitsMap.updateModelValue,{...f.value})},U=(r,u)=>{f.value[r]=u,V.value=!0,v(o.operationConfigMap.search),setTimeout(()=>{V.value=!1},200),C(r,u)},C=(r,u)=>{r&&c(o.emitsMap.change,r,u)},I=()=>f.value,B=(r,u)=>{V.value||c(o.emitsMap.operation,o.operationConfigMap.search,f.value)},v=r=>{W(),c(o.emitsMap.operation,r,f.value),(r===o.operationConfigMap.search||r===o.operationConfigMap.reset)&&(t.value=!1,l.value=!1)},z=r=>h.value.validate(r),b=e.ref(0),O=r=>{if(i.fixedWidth){b.value=132;return}b.value=r+32},R=()=>{n.value=!n.value},q=()=>{t.value=!1,l.value=!0},j=()=>{l.value=!1,t.value=!0},N=e.ref(!1),$=r=>{N.value=r>i.maxHeight},A=e.computed(()=>i.filterMode||n.value?"10px":"0");return e.onMounted(()=>{D(i.modelValue),$()}),e.watch(()=>i.modelValue,r=>{D(r)},{immediate:!0,deep:!0}),y({validate:z,getFormData:I,formRef:h}),(r,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative overflow-hidden w-full",{flex:a.filterMode}])},[e.createElementVNode("div",{class:e.normalizeClass({"is-collapsed overflow-hidden":!n.value})},[e.createVNode(e.unref(d.ElAutoResizer),null,{default:e.withCtx(({height:s})=>[e.createTextVNode(e.toDisplayString($(s))+" ",1),e.createVNode(E,{ref_key:"formRef",ref:h,items:M.value,"form-data":f.value,rules:L.value,"label-width":a.labelWidth,"label-position":a.labelPosition,inline:!0,"show-label":!a.filterMode,"min-width":a.minWidth,"is-filter-preview":a.filterMode,fixedWidth:a.fixedWidth,onChange:U,onEnter:B},e.createSlots({default:e.withCtx(()=>[a.isExpand&&!a.filterMode?(e.openBlock(),e.createBlock(e.unref(d.ElFormItem),{key:0},{default:e.withCtx(()=>[e.createElementVNode("div",Y,[e.createVNode(e.unref(d.ElAutoResizer),null,{default:e.withCtx(({width:p})=>[e.createTextVNode(e.toDisplayString(O(p)),1)]),_:1})])]),_:1})):e.createCommentVNode("",!0)]),_:2},[e.renderList(M.value,p=>({name:p.key,fn:e.withCtx(H=>[e.renderSlot(r.$slots,p.key,e.normalizeProps(e.guardReactiveProps(H)),void 0,!0)])}))]),1032,["items","form-data","rules","label-width","label-position","show-label","min-width","is-filter-preview","fixedWidth"])]),_:3})],2),e.createElementVNode("div",{class:e.normalizeClass(["operation-buttons",{"absolute right-0 text-right":a.isExpand&&!a.filterMode,"text-left":a.filterMode,"bg-fff":a.isExpand&&!a.filterMode&&!a.fixedWidth}]),style:e.normalizeStyle({bottom:A.value})},[a.filterMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(d.ElButton),{onClick:u[0]||(u[0]=s=>v(e.unref(o.operationConfigMap).reset)),type:"default"},{default:e.withCtx(()=>[...u[3]||(u[3]=[e.createTextVNode("重置",-1)])]),_:1}),k.value?.length?(e.openBlock(),e.createBlock(e.unref(d.ElPopover),{key:0,visible:t.value,placement:"bottom-start",width:628,trigger:"click"},{reference:e.withCtx(()=>[e.createVNode(e.unref(d.ElButton),{onClick:u[1]||(u[1]=s=>t.value=!t.value),icon:e.unref(g.IconCheck),type:"default"},{default:e.withCtx(()=>[...u[4]||(u[4]=[e.createTextVNode(" 筛选器 ",-1)])]),_:1},8,["icon"])]),default:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(S.CustomTitle,{content:"筛选器",fontSize:16}),e.createVNode(e.unref(d.ElIcon),{size:16,onClick:q},{default:e.withCtx(()=>[e.createVNode(e.unref(g.IconMagnify))]),_:1})]),e.createVNode(E,{items:k.value,"form-data":f.value,"label-width":"auto","label-position":"top",inline:!1,"show-label":!0,"is-filter":!0,"min-width":a.minWidth,class:"filter-form-popover overflow-y-auto",onChange:C,onEnter:B},e.createSlots({_:2},[e.renderList(k.value,s=>({name:s.key,fn:e.withCtx(p=>[e.renderSlot(r.$slots,s.key,e.normalizeProps(e.guardReactiveProps(p)),void 0,!0)])}))]),1032,["items","form-data","min-width"]),e.createElementVNode("div",_,[e.createVNode(x,{"operation-list":a.operationList,onOperation:v},e.createSlots({_:2},[r.$slots.operation?{name:"operation",fn:e.withCtx(({operationList:s})=>[e.renderSlot(r.$slots,"operation",{operationList:s},void 0,!0)]),key:"0"}:void 0]),1032,["operation-list"])])]),_:3},8,["visible"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[N.value&&a.isExpand&&a.hideExpandButton?(e.openBlock(),e.createBlock(e.unref(d.ElButton),{key:0,icon:n.value?e.unref(g.IconUp):e.unref(g.IconDown),text:"",onClick:R},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value?"收起":"展开"),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0),e.createVNode(x,{"operation-list":a.operationList,onOperation:v},e.createSlots({_:2},[r.$slots.operation?{name:"operation",fn:e.withCtx(({operationList:s})=>[e.renderSlot(r.$slots,"operation",{operationList:s},void 0,!0)]),key:"0"}:void 0]),1032,["operation-list"])],64))],6),e.createVNode(e.unref(d.ElDrawer),{modelValue:l.value,"onUpdate:modelValue":u[2]||(u[2]=s=>l.value=s),size:"628","show-close":!1},{header:e.withCtx(()=>[e.createElementVNode("div",ee,[e.createVNode(S.CustomTitle,{content:"筛选器",fontSize:16}),e.createVNode(e.unref(d.ElIcon),{size:16,onClick:j,class:"shrink-button"},{default:e.withCtx(()=>[e.createVNode(e.unref(g.IconShrink))]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",te,[e.createVNode(E,{items:k.value,"form-data":f.value,"label-width":"auto","label-position":"top",inline:!1,"show-label":!0,"is-filter":!0,"min-width":a.minWidth,onChange:C,onEnter:B},e.createSlots({_:2},[e.renderList(k.value,s=>({name:s.key,fn:e.withCtx(p=>[e.renderSlot(r.$slots,s.key,e.normalizeProps(e.guardReactiveProps(p)),void 0,!0)])}))]),1032,["items","form-data","min-width"])]),e.createElementVNode("div",ae,[e.createVNode(x,{"operation-list":a.operationList,onOperation:v},e.createSlots({_:2},[r.$slots.operation?{name:"operation",fn:e.withCtx(({operationList:s})=>[e.renderSlot(r.$slots,"operation",{operationList:s},void 0,!0)]),key:"0"}:void 0]),1032,["operation-list"])])]),_:3},8,["modelValue"])],2))}}),oe=P._export_sfc(le,[["__scopeId","data-v-43e6f39f"]]),T=K.withInstall(oe);exports.SearchBar=T;exports.default=T;
@@ -1 +1 @@
1
- .filter-form[data-v-79352bf5]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-79352bf5]{display:flex}.filter-preview-form .el-form-item[data-v-79352bf5]{width:var(--v1bc7ee80);margin-right:10px}.search-bar-form[data-v-79352bf5]{grid-template-columns:repeat(auto-fit,minmax(var(--v1bc7ee80),1fr));gap:10px}.search-bar-form.search-bar-form-fixed[data-v-79352bf5]{grid-template-columns:repeat(auto-fit,var(--v1bc7ee80))}.search-bar-form.search-bar-form-fixed.el-form--inline .el-form-item[data-v-79352bf5]{margin-bottom:18px}.search-bar-form.el-form--inline .el-form-item[data-v-79352bf5]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-79352bf5]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-79352bf5] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-79352bf5]{display:grid}.search-bar-item--wide[data-v-79352bf5]{grid-column:span 2}.is-collapsed[data-v-43e6f39f]{max-height:var(--v6f01ec42)}.operation-buttons[data-v-43e6f39f]{width:var(--v0a879a66);z-index:1}.h-32[data-v-43e6f39f]{height:32px}.drawer-header[data-v-43e6f39f]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-43e6f39f]{margin-left:auto}.border-top[data-v-43e6f39f]{border-top:1px solid var(--parting-line)}[data-v-43e6f39f] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-43e6f39f]{max-height:400px}[data-v-43e6f39f] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
1
+ .filter-form[data-v-8a6daca8]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-8a6daca8]{display:flex}.filter-preview-form .el-form-item[data-v-8a6daca8]{width:var(--f41bc21a);margin-right:10px}.search-bar-form[data-v-8a6daca8]{grid-template-columns:repeat(auto-fit,minmax(var(--f41bc21a),1fr));gap:10px}.search-bar-form.search-bar-form-fixed[data-v-8a6daca8]{grid-template-columns:repeat(auto-fit,var(--f41bc21a))}.search-bar-form.search-bar-form-fixed.el-form--inline .el-form-item[data-v-8a6daca8]{margin-bottom:18px}.search-bar-form.el-form--inline .el-form-item[data-v-8a6daca8]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-8a6daca8]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-8a6daca8] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-8a6daca8]{display:grid}.search-bar-item--wide[data-v-8a6daca8]{grid-column:span 2}.is-collapsed[data-v-43e6f39f]{max-height:var(--v6f01ec42)}.operation-buttons[data-v-43e6f39f]{width:var(--v0a879a66);z-index:1}.h-32[data-v-43e6f39f]{height:32px}.drawer-header[data-v-43e6f39f]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-43e6f39f]{margin-left:auto}.border-top[data-v-43e6f39f]{border-top:1px solid var(--parting-line)}[data-v-43e6f39f] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-43e6f39f]{max-height:400px}[data-v-43e6f39f] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "color-star-custom-components",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "keywords": [
5
5
  "color-star-custom-components",
6
6
  "component library",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "exports": {
31
31
  ".": {
32
- "import": "./es/index.mjs",
32
+ "import": "./index.js",
33
33
  "require": "./lib/index.js"
34
34
  },
35
35
  "./es": {
@@ -175,9 +175,9 @@
175
175
  "axios": "^1.8.2",
176
176
  "vue": "^3.5.26",
177
177
  "color-message-aibox-vue": "0.0.80",
178
+ "color-star-atom-style": "0.0.2",
178
179
  "color-star-custom-methods": "0.0.17",
179
- "color-message-lingyun-vue": "0.0.30",
180
- "color-star-atom-style": "0.0.2"
180
+ "color-message-lingyun-vue": "0.0.30"
181
181
  },
182
182
  "optionalDependencies": {
183
183
  "@ast-grep/napi-linux-x64-musl": "^0.39.6",