yahee-components 0.0.40 → 0.0.41

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 (42) hide show
  1. package/es/annex-upload/annex-upload.vue.js +154 -69
  2. package/es/annex-upload/annex-upload.vue2.js +2 -119
  3. package/es/annex-upload/index.js +3 -3
  4. package/es/api/tool.js +1 -1
  5. package/es/complex-search/complex-search.vue.js +294 -240
  6. package/es/complex-search/complex-search.vue2.js +2 -130
  7. package/es/complex-search/index.js +5 -5
  8. package/es/copy/copy.vue.js +55 -39
  9. package/es/copy/copy.vue2.js +2 -34
  10. package/es/copy/index.js +3 -3
  11. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +204 -158
  12. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
  13. package/es/drop-down-condition/drop-down-condition.vue.js +211 -193
  14. package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
  15. package/es/image-upload/image-upload.vue.js +113 -76
  16. package/es/image-upload/image-upload.vue2.js +2 -91
  17. package/es/image-upload/index.js +3 -3
  18. package/es/input/index.js +3 -3
  19. package/es/input/input.vue.js +38 -17
  20. package/es/input/input.vue2.js +2 -33
  21. package/es/left-condition/index.js +5 -5
  22. package/es/left-condition/left-condition-sub.vue.js +86 -55
  23. package/es/left-condition/left-condition-sub.vue2.js +2 -76
  24. package/es/left-condition/left-condition.vue.js +209 -91
  25. package/es/left-condition/left-condition.vue2.js +2 -152
  26. package/es/left-condition-enum/index.js +3 -3
  27. package/es/left-condition-enum/left-condition-enum.vue.js +77 -19
  28. package/es/left-condition-enum/left-condition-enum.vue2.js +2 -69
  29. package/es/operation-log/operation-log-content.vue.js +88 -78
  30. package/es/operation-log/operation-log-content.vue2.js +2 -35
  31. package/es/operation-log/operation-log-dialog.vue.js +68 -57
  32. package/es/operation-log/operation-log-dialog.vue2.js +2 -38
  33. package/es/operation-log/operation-log-form.vue.js +183 -132
  34. package/es/operation-log/operation-log-form.vue2.js +2 -104
  35. package/es/operation-log/operation-log.vue.js +222 -183
  36. package/es/operation-log/operation-log.vue2.js +2 -133
  37. package/es/packages/components/api/log-server.js +5 -5
  38. package/es/packages/components/api/upload-server.js +1 -1
  39. package/es/packages/components/hooks/useImg.js +8 -8
  40. package/es/utils/translate.js +19 -19
  41. package/package.json +1 -1
  42. package/es/_virtual/_plugin-vue_export-helper.js +0 -9
@@ -1,256 +1,310 @@
1
- import E from "./complex-search.vue2.js";
2
- import { createBlock as n, openBlock as t, withCtx as o, createElementVNode as h, createVNode as r, withKeys as f, createSlots as b, createElementBlock as d, Fragment as c, renderList as u, createCommentVNode as s, createTextVNode as m, toDisplayString as i } from "vue";
3
- import y from "../_virtual/_plugin-vue_export-helper.js";
4
- const S = { class: "yahee-complex-search" }, F = { class: "search-type-checkbox" }, V = { class: "dialog-footer" };
5
- function k(C, a, w, e, B, v) {
6
- return t(), n(e.ElConfigProvider, { locale: e.locale }, {
7
- default: o(() => [
8
- h("div", S, [
9
- r(e.ElInput, {
10
- modelValue: e.putSearch,
11
- "onUpdate:modelValue": a[2] || (a[2] = (l) => e.putSearch = l),
12
- placeholder: e.placeholderText,
13
- class: "input-with-select",
14
- clearable: "",
15
- maxlength: "30",
16
- onChange: e.handleSearch,
17
- onKeyup: f(e.handleSearch, ["enter"]),
18
- onPaste: e.pasteFormat
19
- }, b({
20
- append: o(() => [
21
- r(e.ElIcon, {
22
- size: "12",
23
- color: "#3366cc",
24
- style: { cursor: "pointer" },
25
- class: "icon-cusor",
26
- onClick: e.handleSearch
27
- }, {
28
- default: o(() => [
29
- r(e.Search)
30
- ]),
31
- _: 1
32
- /* STABLE */
33
- })
34
- ]),
35
- _: 2
36
- /* DYNAMIC */
37
- }, [
38
- e.showSelect ? {
39
- name: "prepend",
40
- fn: o(() => [
41
- r(e.ElSelect, {
42
- modelValue: e.selectedSearchType,
43
- "onUpdate:modelValue": a[0] || (a[0] = (l) => e.selectedSearchType = l),
44
- size: "small",
45
- class: "custom-select"
46
- }, {
47
- default: o(() => [
48
- (t(!0), d(
49
- c,
50
- null,
51
- u(e.options, (l) => (t(), n(e.ElOption, {
52
- key: l.label,
53
- label: l.label,
54
- value: l.value
55
- }, null, 8, ["label", "value"]))),
56
- 128
57
- /* KEYED_FRAGMENT */
58
- ))
59
- ]),
60
- _: 1
61
- /* STABLE */
62
- }, 8, ["modelValue"])
63
- ]),
64
- key: "0"
65
- } : {
66
- name: "prepend",
67
- fn: o(() => [
68
- r(e.ElSelect, {
69
- modelValue: e.selectedSearchType,
70
- "onUpdate:modelValue": a[1] || (a[1] = (l) => e.selectedSearchType = l),
71
- size: "small",
72
- class: "custom-select",
73
- disabled: ""
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";
2
+ import F from "../_virtual/lodash.js";
3
+ import { defaultComplexSearchProps as ue } from "./props.js";
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
+ import "element-plus/theme-chalk/src/base.scss";
6
+ import "element-plus/theme-chalk/src/input.scss";
7
+ import "element-plus/theme-chalk/src/checkbox.scss";
8
+ import "element-plus/theme-chalk/src/tag.scss";
9
+ import "element-plus/theme-chalk/src/option.scss";
10
+ import "element-plus/theme-chalk/src/option-group.scss";
11
+ import "element-plus/theme-chalk/src/scrollbar.scss";
12
+ import "element-plus/theme-chalk/src/popper.scss";
13
+ import "element-plus/theme-chalk/src/select.scss";
14
+ import "element-plus/theme-chalk/src/dialog.scss";
15
+ import "element-plus/theme-chalk/src/overlay.scss";
16
+ import "element-plus/theme-chalk/src/form.scss";
17
+ import "element-plus/theme-chalk/src/form-item.scss";
18
+ import "element-plus/theme-chalk/src/row.scss";
19
+ import "element-plus/theme-chalk/src/button.scss";
20
+ import "element-plus/theme-chalk/src/link.scss";
21
+ import "element-plus/theme-chalk/src/config-provider.scss";
22
+ import { Search as fe } from "@element-plus/icons-vue";
23
+ import ve from "../packages/components/node_modules/element-plus/es/locale/lang/zh-cn.js";
24
+ const ye = { class: "yahee-complex-search" }, be = { class: "search-type-checkbox" }, ge = { class: "dialog-footer" }, qe = /* @__PURE__ */ te({
25
+ name: "YaheeComplexSearch",
26
+ __name: "complex-search",
27
+ props: /* @__PURE__ */ oe({
28
+ pasteFormat: { type: Function },
29
+ defaultSearch: {},
30
+ options: {},
31
+ placeholderText: {},
32
+ showPatchSearch: { type: Boolean },
33
+ showWithinFilterCheckbox: { type: Boolean },
34
+ specialOptions: {},
35
+ normalOptions: {},
36
+ showSelect: { type: Boolean },
37
+ searchItem: {}
38
+ }, ue()),
39
+ emits: ["filterChangeGrandson"],
40
+ setup(R, { emit: W }) {
41
+ const q = ve, m = W, X = R, {
42
+ defaultSearch: Y,
43
+ pasteFormat: T,
44
+ options: B,
45
+ showPatchSearch: j,
46
+ specialOptions: P,
47
+ showWithinFilterCheckbox: A,
48
+ placeholderText: H,
49
+ normalOptions: J,
50
+ showSelect: O,
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 = {
53
+ selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
54
+ searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
55
+ }, I = [
56
+ {
57
+ value: "integrated",
58
+ label: "综合搜索"
59
+ }
60
+ ], Q = () => {
61
+ f.value = !0;
62
+ }, K = () => {
63
+ f.value = !1;
64
+ }, Z = () => {
65
+ h.value || (delete n.value.putSearch, m("filterChangeGrandson", n.value));
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;
71
+ };
72
+ function _(c) {
73
+ F.forEach(c, (a) => {
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);
78
+ }
79
+ const le = () => {
80
+ h.value ? _([
81
+ {
82
+ filterKey: "putSearch",
83
+ checkedValues: p.value
84
+ }
85
+ ]) : m("filterChangeGrandson", {
86
+ putSearch: p.value
87
+ });
88
+ }, ae = () => {
89
+ U.value.validate((c) => {
90
+ c && (w.value = !0, h.value ? _([
91
+ {
92
+ filterKey: "putSearch",
93
+ checkedValues: s.value.searchContent
94
+ }
95
+ ]) : m("filterChangeGrandson", {
96
+ putSearch: s.value.searchContent
97
+ }), f.value = !1, w.value = !1);
98
+ });
99
+ };
100
+ return (c, a) => (r(), d(l(ie), { locale: l(q) }, {
101
+ default: t(() => [
102
+ x("div", ye, [
103
+ o(l(G), {
104
+ modelValue: p.value,
105
+ "onUpdate:modelValue": a[2] || (a[2] = (e) => p.value = e),
106
+ placeholder: l(H),
107
+ class: "input-with-select",
108
+ clearable: "",
109
+ maxlength: "30",
110
+ onChange: E,
111
+ onKeyup: se(E, ["enter"]),
112
+ onPaste: l(T)
113
+ }, ne({
114
+ append: t(() => [
115
+ o(l(de), {
116
+ size: "12",
117
+ color: "#3366cc",
118
+ style: { cursor: "pointer" },
119
+ class: "icon-cusor",
120
+ onClick: E
74
121
  }, {
75
- default: o(() => [
76
- (t(), d(
77
- c,
78
- null,
79
- u(e.defalutOptions, (l) => r(e.ElOption, {
80
- key: l.label,
81
- label: l.label,
82
- value: l.value
83
- }, null, 8, ["label", "value"])),
84
- 64
85
- /* STABLE_FRAGMENT */
86
- ))
122
+ default: t(() => [
123
+ o(l(fe))
87
124
  ]),
88
125
  _: 1
89
- /* STABLE */
90
- }, 8, ["modelValue"])
126
+ })
91
127
  ]),
92
- key: "1"
93
- }
94
- ]), 1032, ["modelValue", "placeholder", "onPaste"]),
95
- h("div", F, [
96
- e.showWithinFilterCheckbox ? (t(), n(e.ElCheckbox, {
97
- key: 0,
98
- modelValue: e.isWithinFilterOptions,
99
- "onUpdate:modelValue": a[3] || (a[3] = (l) => e.isWithinFilterOptions = l),
100
- onChange: e.searchWithinFilterOptions
101
- }, {
102
- default: o(() => a[8] || (a[8] = [
103
- m(i("在筛选条件内查询"))
104
- ])),
105
- _: 1
106
- /* STABLE */
107
- }, 8, ["modelValue"])) : s("v-if", !0),
108
- e.showPatchSearch ? (t(), n(e.ElLink, {
109
- key: 1,
110
- type: "primary",
111
- onClick: e.showBatchSearchDialog
112
- }, {
113
- default: o(() => a[9] || (a[9] = [
114
- m(i("批量查询"))
115
- ])),
116
- _: 1
117
- /* STABLE */
118
- })) : s("v-if", !0)
119
- ])
120
- ]),
121
- r(e.ElDialog, {
122
- modelValue: e.showBatchSearch,
123
- "onUpdate:modelValue": a[7] || (a[7] = (l) => e.showBatchSearch = l),
124
- title: "批量查询",
125
- width: "30%",
126
- "before-close": e.handleBatchSearchClose,
127
- "append-to-body": !0,
128
- draggable: ""
129
- }, {
130
- footer: o(() => [
131
- h("div", V, [
132
- r(e.ElButton, {
133
- type: "primary",
134
- loading: e.confirmLoading,
135
- onClick: e.confirmSearch
128
+ _: 2
129
+ }, [
130
+ l(O) ? {
131
+ name: "prepend",
132
+ fn: t(() => [
133
+ o(l(k), {
134
+ modelValue: v.value,
135
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => v.value = e),
136
+ size: "small",
137
+ class: "custom-select"
138
+ }, {
139
+ default: t(() => [
140
+ (r(!0), y(b, null, g(l(B), (e) => (r(), d(l(S), {
141
+ key: e.label,
142
+ label: e.label,
143
+ value: e.value
144
+ }, null, 8, ["label", "value"]))), 128))
145
+ ]),
146
+ _: 1
147
+ }, 8, ["modelValue"])
148
+ ]),
149
+ key: "0"
150
+ } : {
151
+ name: "prepend",
152
+ fn: t(() => [
153
+ o(l(k), {
154
+ modelValue: v.value,
155
+ "onUpdate:modelValue": a[1] || (a[1] = (e) => v.value = e),
156
+ size: "small",
157
+ class: "custom-select",
158
+ disabled: ""
159
+ }, {
160
+ default: t(() => [
161
+ (r(), y(b, null, g(I, (e) => o(l(S), {
162
+ key: e.label,
163
+ label: e.label,
164
+ value: e.value
165
+ }, null, 8, ["label", "value"])), 64))
166
+ ]),
167
+ _: 1
168
+ }, 8, ["modelValue"])
169
+ ]),
170
+ key: "1"
171
+ }
172
+ ]), 1032, ["modelValue", "placeholder", "onPaste"]),
173
+ x("div", be, [
174
+ l(A) ? (r(), d(l(ce), {
175
+ key: 0,
176
+ modelValue: h.value,
177
+ "onUpdate:modelValue": a[3] || (a[3] = (e) => h.value = e),
178
+ onChange: Z
136
179
  }, {
137
- default: o(() => a[10] || (a[10] = [
138
- m(i("确认"))
180
+ default: t(() => a[8] || (a[8] = [
181
+ C(V("在筛选条件内查询"))
139
182
  ])),
140
183
  _: 1
141
- /* STABLE */
142
- }, 8, ["loading"]),
143
- r(e.ElButton, { onClick: e.handleBatchSearchClose }, {
144
- default: o(() => a[11] || (a[11] = [
145
- m(i("关闭"))
184
+ }, 8, ["modelValue"])) : z("", !0),
185
+ l(j) ? (r(), d(l(me), {
186
+ key: 1,
187
+ type: "primary",
188
+ onClick: Q
189
+ }, {
190
+ default: t(() => a[9] || (a[9] = [
191
+ C(V("批量查询"))
146
192
  ])),
147
193
  _: 1
148
- /* STABLE */
149
- })
194
+ })) : z("", !0)
150
195
  ])
151
196
  ]),
152
- default: o(() => [
153
- r(e.ElForm, {
154
- ref: "batchSearchFormRef",
155
- model: e.batchSearchForm,
156
- rules: e.rules
157
- }, {
158
- default: o(() => [
159
- r(e.ElRow, { class: "row-class" }, {
160
- default: o(() => [
161
- r(e.ElFormItem, { prop: "searchType" }, {
162
- default: o(() => [
163
- e.showSelect ? (t(), n(e.ElSelect, {
164
- key: 0,
165
- modelValue: e.batchSearchForm.searchType,
166
- "onUpdate:modelValue": a[4] || (a[4] = (l) => e.batchSearchForm.searchType = l),
167
- size: "small",
168
- style: { width: "95px", "background-color": "white" }
169
- }, {
170
- default: o(() => [
171
- (t(!0), d(
172
- c,
173
- null,
174
- u(e.options, (l) => (t(), n(e.ElOption, {
175
- key: l.label,
176
- label: l.label,
177
- value: l.value
178
- }, null, 8, ["label", "value"]))),
179
- 128
180
- /* KEYED_FRAGMENT */
181
- ))
182
- ]),
183
- _: 1
184
- /* STABLE */
185
- }, 8, ["modelValue"])) : (t(), n(e.ElSelect, {
186
- key: 1,
187
- modelValue: e.batchSearchForm.searchType,
188
- "onUpdate:modelValue": a[5] || (a[5] = (l) => e.batchSearchForm.searchType = l),
189
- size: "small",
190
- style: { width: "95px", "background-color": "white" },
191
- disabled: ""
192
- }, {
193
- default: o(() => [
194
- (t(), d(
195
- c,
196
- null,
197
- u(e.defalutOptions, (l) => r(e.ElOption, {
198
- key: l.label,
199
- label: l.label,
200
- value: l.value
201
- }, null, 8, ["label", "value"])),
202
- 64
203
- /* STABLE_FRAGMENT */
204
- ))
205
- ]),
206
- _: 1
207
- /* STABLE */
208
- }, 8, ["modelValue"]))
209
- ]),
210
- _: 1
211
- /* STABLE */
212
- })
213
- ]),
197
+ o(l(pe), {
198
+ modelValue: f.value,
199
+ "onUpdate:modelValue": a[7] || (a[7] = (e) => f.value = e),
200
+ title: "批量查询",
201
+ width: "30%",
202
+ "before-close": K,
203
+ "append-to-body": !0,
204
+ draggable: ""
205
+ }, {
206
+ footer: t(() => [
207
+ x("div", ge, [
208
+ o(l(N), {
209
+ type: "primary",
210
+ loading: w.value,
211
+ onClick: ae
212
+ }, {
213
+ default: t(() => a[10] || (a[10] = [
214
+ C(V("确认"))
215
+ ])),
214
216
  _: 1
215
- /* STABLE */
216
- }),
217
- r(e.ElRow, { class: "row-class" }, {
218
- default: o(() => [
219
- r(e.ElFormItem, {
220
- prop: "searchContent",
221
- style: { width: "100%" }
222
- }, {
223
- default: o(() => [
224
- r(e.ElInput, {
225
- modelValue: e.batchSearchForm.searchContent,
226
- "onUpdate:modelValue": a[6] || (a[6] = (l) => e.batchSearchForm.searchContent = l),
227
- placeholder: "请输入批量查询内容,从EXCEL复制可自动替换为`,`",
228
- type: "textarea",
229
- rows: 5,
230
- onPaste: e.pasteFormat
231
- }, null, 8, ["modelValue", "onPaste"])
232
- ]),
233
- _: 1
234
- /* STABLE */
235
- })
236
- ]),
217
+ }, 8, ["loading"]),
218
+ o(l(N), { onClick: K }, {
219
+ default: t(() => a[11] || (a[11] = [
220
+ C(V("关闭"))
221
+ ])),
237
222
  _: 1
238
- /* STABLE */
239
223
  })
240
- ]),
241
- _: 1
242
- /* STABLE */
243
- }, 8, ["model"])
244
- ]),
245
- _: 1
246
- /* STABLE */
247
- }, 8, ["modelValue"])
248
- ]),
249
- _: 1
250
- /* STABLE */
251
- }, 8, ["locale"]);
252
- }
253
- const _ = /* @__PURE__ */ y(E, [["render", k], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/complex-search/complex-search.vue"]]);
224
+ ])
225
+ ]),
226
+ default: t(() => [
227
+ o(l(he), {
228
+ ref_key: "batchSearchFormRef",
229
+ ref: U,
230
+ model: s.value,
231
+ rules: M
232
+ }, {
233
+ default: t(() => [
234
+ o(l(D), { class: "row-class" }, {
235
+ default: t(() => [
236
+ o(l(L), { prop: "searchType" }, {
237
+ default: t(() => [
238
+ l(O) ? (r(), d(l(k), {
239
+ key: 0,
240
+ modelValue: s.value.searchType,
241
+ "onUpdate:modelValue": a[4] || (a[4] = (e) => s.value.searchType = e),
242
+ size: "small",
243
+ style: { width: "95px", "background-color": "white" }
244
+ }, {
245
+ default: t(() => [
246
+ (r(!0), y(b, null, g(l(B), (e) => (r(), d(l(S), {
247
+ key: e.label,
248
+ label: e.label,
249
+ value: e.value
250
+ }, null, 8, ["label", "value"]))), 128))
251
+ ]),
252
+ _: 1
253
+ }, 8, ["modelValue"])) : (r(), d(l(k), {
254
+ key: 1,
255
+ modelValue: s.value.searchType,
256
+ "onUpdate:modelValue": a[5] || (a[5] = (e) => s.value.searchType = e),
257
+ size: "small",
258
+ style: { width: "95px", "background-color": "white" },
259
+ disabled: ""
260
+ }, {
261
+ default: t(() => [
262
+ (r(), y(b, null, g(I, (e) => o(l(S), {
263
+ key: e.label,
264
+ label: e.label,
265
+ value: e.value
266
+ }, null, 8, ["label", "value"])), 64))
267
+ ]),
268
+ _: 1
269
+ }, 8, ["modelValue"]))
270
+ ]),
271
+ _: 1
272
+ })
273
+ ]),
274
+ _: 1
275
+ }),
276
+ o(l(D), { class: "row-class" }, {
277
+ default: t(() => [
278
+ o(l(L), {
279
+ prop: "searchContent",
280
+ style: { width: "100%" }
281
+ }, {
282
+ default: t(() => [
283
+ o(l(G), {
284
+ modelValue: s.value.searchContent,
285
+ "onUpdate:modelValue": a[6] || (a[6] = (e) => s.value.searchContent = e),
286
+ placeholder: "请输入批量查询内容,从EXCEL复制可自动替换为`,`",
287
+ type: "textarea",
288
+ rows: 5,
289
+ onPaste: l(T)
290
+ }, null, 8, ["modelValue", "onPaste"])
291
+ ]),
292
+ _: 1
293
+ })
294
+ ]),
295
+ _: 1
296
+ })
297
+ ]),
298
+ _: 1
299
+ }, 8, ["model"])
300
+ ]),
301
+ _: 1
302
+ }, 8, ["modelValue"])
303
+ ]),
304
+ _: 1
305
+ }, 8, ["locale"]));
306
+ }
307
+ });
254
308
  export {
255
- _ as default
309
+ qe as default
256
310
  };