yahee-components 0.0.44 → 0.0.45

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.
@@ -1,6 +1,6 @@
1
- import { defineComponent as te, mergeDefaults as oe, toRefs as re, ref as i, createBlock as d, openBlock as r, unref as l, withCtx as t, createElementVNode as x, createVNode as o, withKeys as se, createSlots as ne, createElementBlock as y, Fragment as b, renderList as g, createCommentVNode as z, createTextVNode as C, toDisplayString as V } from "vue";
1
+ import { defineComponent as te, mergeDefaults as oe, toRefs as re, ref as d, createBlock as c, openBlock as r, unref as l, withCtx as t, createElementVNode as x, createVNode as o, withKeys as se, createSlots as ue, createElementBlock as y, Fragment as b, renderList as g, createCommentVNode as z, createTextVNode as C, toDisplayString as V } from "vue";
2
2
  import F from "../_virtual/lodash.js";
3
- import { defaultComplexSearchProps as ue } from "./props.js";
3
+ import { defaultComplexSearchProps as ne } from "./props.js";
4
4
  import { ElConfigProvider as ie, ElInput as G, ElIcon as de, ElSelect as k, ElOption as S, ElCheckbox as ce, ElLink as me, ElDialog as pe, ElForm as he, ElRow as D, ElFormItem as L, ElButton as N } from "element-plus";
5
5
  import "element-plus/theme-chalk/src/base.scss";
6
6
  import "element-plus/theme-chalk/src/input.scss";
@@ -35,10 +35,10 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
35
35
  normalOptions: {},
36
36
  showSelect: { type: Boolean },
37
37
  searchItem: {}
38
- }, ue()),
38
+ }, ne()),
39
39
  emits: ["filterChangeGrandson"],
40
40
  setup(R, { emit: W }) {
41
- const q = ve, m = W, X = R, {
41
+ const q = ve, p = W, X = R, {
42
42
  defaultSearch: Y,
43
43
  pasteFormat: T,
44
44
  options: B,
@@ -49,7 +49,7 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
49
49
  normalOptions: J,
50
50
  showSelect: O,
51
51
  searchItem: n
52
- } = re(X), v = i(Y.value || "integrated"), p = i(""), h = i(!1), w = i(!1), f = i(!1), U = i(null), s = i({ searchType: "integrated", searchContent: "" }), M = {
52
+ } = re(X), s = d(Y.value || "integrated"), h = d(""), f = d(!1), w = d(!1), v = d(!1), U = d(null), u = d({ searchType: "integrated", searchContent: "" }), M = {
53
53
  selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
54
54
  searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
55
55
  }, I = [
@@ -58,51 +58,59 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
58
58
  label: "综合搜索"
59
59
  }
60
60
  ], Q = () => {
61
- f.value = !0;
61
+ v.value = !0;
62
62
  }, K = () => {
63
- f.value = !1;
63
+ v.value = !1;
64
64
  }, Z = () => {
65
- h.value || (delete n.value.putSearch, m("filterChangeGrandson", n.value));
65
+ f.value || (delete n.value.putSearch, p("filterChangeGrandson", n.value, s.value));
66
66
  }, $ = () => n.value, E = () => {
67
- p.value ? le() : m("filterChangeGrandson", $());
68
- }, ee = (c, a) => {
69
- const e = { ...c };
70
- return F.map(P.value, (u) => u.key).includes(a.filterKey) ? P.value.forEach((u) => delete e[u.key]) : delete e[a.filterKey], e;
67
+ h.value ? le() : p("filterChangeGrandson", $(), s.value);
68
+ }, ee = (m, a) => {
69
+ const e = { ...m };
70
+ return F.map(P.value, (i) => i.key).includes(a.filterKey) ? P.value.forEach((i) => delete e[i.key]) : delete e[a.filterKey], e;
71
71
  };
72
- function _(c) {
73
- F.forEach(c, (a) => {
72
+ function _(m) {
73
+ F.forEach(m, (a) => {
74
74
  ee(n.value, a);
75
- const { checkedValues: e, filterKey: u } = a;
76
- F.isEmpty(e) || (J.value.includes(u) ? n.value[u] = e[0] : n.value[u] = e);
77
- }), m("filterChangeGrandson", n.value);
75
+ const { checkedValues: e, filterKey: i } = a;
76
+ F.isEmpty(e) || (J.value.includes(i) ? n.value[i] = e[0] : n.value[i] = e);
77
+ }), p("filterChangeGrandson", n.value, s.value);
78
78
  }
79
79
  const le = () => {
80
- h.value ? _([
80
+ f.value ? _([
81
81
  {
82
82
  filterKey: "putSearch",
83
- checkedValues: p.value
83
+ checkedValues: h.value
84
84
  }
85
- ]) : m("filterChangeGrandson", {
86
- putSearch: p.value
87
- });
85
+ ]) : p(
86
+ "filterChangeGrandson",
87
+ {
88
+ putSearch: h.value
89
+ },
90
+ s.value
91
+ );
88
92
  }, ae = () => {
89
- U.value.validate((c) => {
90
- c && (w.value = !0, h.value ? _([
93
+ U.value.validate((m) => {
94
+ m && (w.value = !0, f.value ? _([
91
95
  {
92
96
  filterKey: "putSearch",
93
- checkedValues: s.value.searchContent
97
+ checkedValues: u.value.searchContent
94
98
  }
95
- ]) : m("filterChangeGrandson", {
96
- putSearch: s.value.searchContent
97
- }), f.value = !1, w.value = !1);
99
+ ]) : p(
100
+ "filterChangeGrandson",
101
+ {
102
+ putSearch: u.value.searchContent
103
+ },
104
+ s.value
105
+ ), v.value = !1, w.value = !1);
98
106
  });
99
107
  };
100
- return (c, a) => (r(), d(l(ie), { locale: l(q) }, {
108
+ return (m, a) => (r(), c(l(ie), { locale: l(q) }, {
101
109
  default: t(() => [
102
110
  x("div", ye, [
103
111
  o(l(G), {
104
- modelValue: p.value,
105
- "onUpdate:modelValue": a[2] || (a[2] = (e) => p.value = e),
112
+ modelValue: h.value,
113
+ "onUpdate:modelValue": a[2] || (a[2] = (e) => h.value = e),
106
114
  placeholder: l(H),
107
115
  class: "input-with-select",
108
116
  clearable: "",
@@ -110,7 +118,7 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
110
118
  onChange: E,
111
119
  onKeyup: se(E, ["enter"]),
112
120
  onPaste: l(T)
113
- }, ne({
121
+ }, ue({
114
122
  append: t(() => [
115
123
  o(l(de), {
116
124
  size: "12",
@@ -131,13 +139,13 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
131
139
  name: "prepend",
132
140
  fn: t(() => [
133
141
  o(l(k), {
134
- modelValue: v.value,
135
- "onUpdate:modelValue": a[0] || (a[0] = (e) => v.value = e),
142
+ modelValue: s.value,
143
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => s.value = e),
136
144
  size: "small",
137
145
  class: "custom-select"
138
146
  }, {
139
147
  default: t(() => [
140
- (r(!0), y(b, null, g(l(B), (e) => (r(), d(l(S), {
148
+ (r(!0), y(b, null, g(l(B), (e) => (r(), c(l(S), {
141
149
  key: e.label,
142
150
  label: e.label,
143
151
  value: e.value
@@ -151,8 +159,8 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
151
159
  name: "prepend",
152
160
  fn: t(() => [
153
161
  o(l(k), {
154
- modelValue: v.value,
155
- "onUpdate:modelValue": a[1] || (a[1] = (e) => v.value = e),
162
+ modelValue: s.value,
163
+ "onUpdate:modelValue": a[1] || (a[1] = (e) => s.value = e),
156
164
  size: "small",
157
165
  class: "custom-select",
158
166
  disabled: ""
@@ -171,10 +179,10 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
171
179
  }
172
180
  ]), 1032, ["modelValue", "placeholder", "onPaste"]),
173
181
  x("div", be, [
174
- l(A) ? (r(), d(l(ce), {
182
+ l(A) ? (r(), c(l(ce), {
175
183
  key: 0,
176
- modelValue: h.value,
177
- "onUpdate:modelValue": a[3] || (a[3] = (e) => h.value = e),
184
+ modelValue: f.value,
185
+ "onUpdate:modelValue": a[3] || (a[3] = (e) => f.value = e),
178
186
  onChange: Z
179
187
  }, {
180
188
  default: t(() => a[8] || (a[8] = [
@@ -182,7 +190,7 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
182
190
  ])),
183
191
  _: 1
184
192
  }, 8, ["modelValue"])) : z("", !0),
185
- l(j) ? (r(), d(l(me), {
193
+ l(j) ? (r(), c(l(me), {
186
194
  key: 1,
187
195
  type: "primary",
188
196
  onClick: Q
@@ -195,8 +203,8 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
195
203
  ])
196
204
  ]),
197
205
  o(l(pe), {
198
- modelValue: f.value,
199
- "onUpdate:modelValue": a[7] || (a[7] = (e) => f.value = e),
206
+ modelValue: v.value,
207
+ "onUpdate:modelValue": a[7] || (a[7] = (e) => v.value = e),
200
208
  title: "批量查询",
201
209
  width: "30%",
202
210
  "before-close": K,
@@ -227,7 +235,7 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
227
235
  o(l(he), {
228
236
  ref_key: "batchSearchFormRef",
229
237
  ref: U,
230
- model: s.value,
238
+ model: u.value,
231
239
  rules: M
232
240
  }, {
233
241
  default: t(() => [
@@ -235,25 +243,25 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
235
243
  default: t(() => [
236
244
  o(l(L), { prop: "searchType" }, {
237
245
  default: t(() => [
238
- l(O) ? (r(), d(l(k), {
246
+ l(O) ? (r(), c(l(k), {
239
247
  key: 0,
240
- modelValue: s.value.searchType,
241
- "onUpdate:modelValue": a[4] || (a[4] = (e) => s.value.searchType = e),
248
+ modelValue: u.value.searchType,
249
+ "onUpdate:modelValue": a[4] || (a[4] = (e) => u.value.searchType = e),
242
250
  size: "small",
243
251
  style: { width: "95px", "background-color": "white" }
244
252
  }, {
245
253
  default: t(() => [
246
- (r(!0), y(b, null, g(l(B), (e) => (r(), d(l(S), {
254
+ (r(!0), y(b, null, g(l(B), (e) => (r(), c(l(S), {
247
255
  key: e.label,
248
256
  label: e.label,
249
257
  value: e.value
250
258
  }, null, 8, ["label", "value"]))), 128))
251
259
  ]),
252
260
  _: 1
253
- }, 8, ["modelValue"])) : (r(), d(l(k), {
261
+ }, 8, ["modelValue"])) : (r(), c(l(k), {
254
262
  key: 1,
255
- modelValue: s.value.searchType,
256
- "onUpdate:modelValue": a[5] || (a[5] = (e) => s.value.searchType = e),
263
+ modelValue: u.value.searchType,
264
+ "onUpdate:modelValue": a[5] || (a[5] = (e) => u.value.searchType = e),
257
265
  size: "small",
258
266
  style: { width: "95px", "background-color": "white" },
259
267
  disabled: ""
@@ -281,8 +289,8 @@ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbo
281
289
  }, {
282
290
  default: t(() => [
283
291
  o(l(G), {
284
- modelValue: s.value.searchContent,
285
- "onUpdate:modelValue": a[6] || (a[6] = (e) => s.value.searchContent = e),
292
+ modelValue: u.value.searchContent,
293
+ "onUpdate:modelValue": a[6] || (a[6] = (e) => u.value.searchContent = e),
286
294
  placeholder: "请输入批量查询内容,从EXCEL复制可自动替换为`,`",
287
295
  type: "textarea",
288
296
  rows: 5,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.44",
4
+ "version": "0.0.45",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",