yahee-components 0.0.20 → 0.0.22

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,4 +1,4 @@
1
- import { defineComponent as oe, toRefs as re, ref as i, openBlock as c, createBlock as f, unref as e, withCtx as t, createElementVNode as C, createVNode as o, withKeys as se, createSlots as ne, createElementBlock as T, Fragment as _, renderList as I, createTextVNode as g, toDisplayString as v, createCommentVNode as P } from "vue";
1
+ import { defineComponent as oe, toRefs as re, ref as u, openBlock as i, createBlock as f, unref as e, withCtx as t, createElementVNode as C, createVNode as o, withKeys as se, createSlots as ne, createElementBlock as T, Fragment as _, renderList as I, createTextVNode as S, toDisplayString as v, createCommentVNode as P } from "vue";
2
2
  import y from "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js";
3
3
  import { ElConfigProvider as ue, ElInput as K, ElIcon as ie, ElSelect as G, ElOption as U, ElCheckbox as ce, ElLink as de, ElDialog as pe, ElButton as L, ElForm as me, ElRow as E, ElFormItem as N } from "element-plus";
4
4
  import "element-plus/theme-chalk/src/base.scss";
@@ -50,7 +50,7 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
50
50
  normalOptions: Y,
51
51
  showSelect: $,
52
52
  searchItem: r
53
- } = re(D), S = i(H.value), d = i(""), m = i(!1), V = i(!1), h = i(!1), x = i(null), s = i({ searchType: "WHOLE_SEARCH", searchContent: "" }), j = {
53
+ } = re(D), g = u(H.value), c = u(""), m = u(!1), V = u(!1), h = u(!1), x = u(null), s = u({ searchType: "WHOLE_SEARCH", searchContent: "" }), j = {
54
54
  selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
55
55
  searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
56
56
  }, M = () => {
@@ -60,32 +60,32 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
60
60
  }, Q = () => {
61
61
  m.value || (delete r.value.simpleSearch, p("filterChangeGrandson", r.value));
62
62
  }, Z = () => r.value, k = () => {
63
- d.value ? le() : p("filterChangeGrandson", Z());
64
- }, ee = (n, l) => {
65
- const a = { ...n };
66
- return y.map(F.value, (u) => u.key).includes(l.filterKey) ? F.value.forEach((u) => delete a[u.key]) : delete a[l.filterKey], a;
63
+ c.value ? le() : p("filterChangeGrandson", Z());
64
+ }, ee = (d, l) => {
65
+ const a = { ...d };
66
+ return y.map(F.value, (n) => n.key).includes(l.filterKey) ? F.value.forEach((n) => delete a[n.key]) : delete a[l.filterKey], a;
67
67
  };
68
- function O(n) {
69
- console.log("displayFilter filterChange start", n, r.value), y.forEach(n, (l) => {
68
+ function O(d) {
69
+ y.forEach(d, (l) => {
70
70
  ee(r.value, l);
71
- const { checkedValues: a, filterKey: u } = l;
72
- y.isEmpty(a) || (Y.value.includes(u) ? r.value[u] = a[0] : r.value[u] = a);
71
+ const { checkedValues: a, filterKey: n } = l;
72
+ y.isEmpty(a) || (Y.value.includes(n) ? r.value[n] = a[0] : r.value[n] = a);
73
73
  }), p("filterChangeGrandson", r.value), console.log(`searchItem - ${JSON.stringify(r.value)}`), console.log("displayFilter filterChange end");
74
74
  }
75
75
  const le = () => {
76
76
  m.value ? O([
77
77
  {
78
78
  filterKey: "simpleSearch",
79
- checkedValues: d.value
79
+ checkedValues: c.value
80
80
  }
81
81
  ]) : p("filterChangeGrandson", {
82
- simpleSearch: d.value
82
+ simpleSearch: c.value
83
83
  });
84
84
  }, ae = () => {
85
- q.value(S.value, d.value);
85
+ q.value(g.value, c.value);
86
86
  }, te = () => {
87
- x.value.validate((n) => {
88
- n && (V.value = !0, m.value ? O([
87
+ x.value.validate((d) => {
88
+ d && (V.value = !0, m.value ? O([
89
89
  {
90
90
  filterKey: "putSearch",
91
91
  checkedValues: s.value.searchContent
@@ -95,12 +95,12 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
95
95
  }), h.value = !1, V.value = !1);
96
96
  });
97
97
  };
98
- return (n, l) => (c(), f(e(ue), { locale: e(z) }, {
98
+ return (d, l) => (i(), f(e(ue), { locale: e(z) }, {
99
99
  default: t(() => [
100
100
  C("div", ve, [
101
101
  o(e(K), {
102
- modelValue: d.value,
103
- "onUpdate:modelValue": l[1] || (l[1] = (a) => d.value = a),
102
+ modelValue: c.value,
103
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => c.value = a),
104
104
  placeholder: e(X),
105
105
  class: "input-with-select",
106
106
  clearable: "",
@@ -130,13 +130,13 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
130
130
  name: "prepend",
131
131
  fn: t(() => [
132
132
  o(e(G), {
133
- modelValue: S.value,
134
- "onUpdate:modelValue": l[0] || (l[0] = (a) => S.value = a),
133
+ modelValue: g.value,
134
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => g.value = a),
135
135
  size: "small",
136
136
  class: "custom-select"
137
137
  }, {
138
138
  default: t(() => [
139
- (c(!0), T(_, null, I(e(w), (a) => (c(), f(e(U), {
139
+ (i(!0), T(_, null, I(e(w), (a) => (i(), f(e(U), {
140
140
  key: a.label,
141
141
  label: a.label,
142
142
  value: a.value
@@ -149,24 +149,24 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
149
149
  } : void 0
150
150
  ]), 1032, ["modelValue", "placeholder", "onPaste"]),
151
151
  C("div", ye, [
152
- e(J) ? (c(), f(e(ce), {
152
+ e(J) ? (i(), f(e(ce), {
153
153
  key: 0,
154
154
  modelValue: m.value,
155
155
  "onUpdate:modelValue": l[2] || (l[2] = (a) => m.value = a),
156
156
  onChange: Q
157
157
  }, {
158
158
  default: t(() => l[6] || (l[6] = [
159
- g(v("在筛选条件内查询"))
159
+ S(v("在筛选条件内查询"))
160
160
  ])),
161
161
  _: 1
162
162
  }, 8, ["modelValue"])) : P("", !0),
163
- e(A) ? (c(), f(e(de), {
163
+ e(A) ? (i(), f(e(de), {
164
164
  key: 1,
165
165
  type: "primary",
166
166
  onClick: M
167
167
  }, {
168
168
  default: t(() => l[7] || (l[7] = [
169
- g(v("批量查询"))
169
+ S(v("批量查询"))
170
170
  ])),
171
171
  _: 1
172
172
  })) : P("", !0)
@@ -189,13 +189,13 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
189
189
  onClick: te
190
190
  }, {
191
191
  default: t(() => l[9] || (l[9] = [
192
- g(v("确认"))
192
+ S(v("确认"))
193
193
  ])),
194
194
  _: 1
195
195
  }, 8, ["loading"]),
196
196
  o(e(L), { onClick: B }, {
197
197
  default: t(() => l[10] || (l[10] = [
198
- g(v("关闭"))
198
+ S(v("关闭"))
199
199
  ])),
200
200
  _: 1
201
201
  })
@@ -226,7 +226,7 @@ const ve = { class: "yahee-comporehensive-search" }, ye = { class: "search-type-
226
226
  class: "custom-select"
227
227
  }, {
228
228
  default: t(() => [
229
- (c(!0), T(_, null, I(e(w), (a) => (c(), f(e(U), {
229
+ (i(!0), T(_, null, I(e(w), (a) => (i(), f(e(U), {
230
230
  key: a.label,
231
231
  label: a.label,
232
232
  value: a.value
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.20",
4
+ "version": "0.0.22",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",