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,132 +1,4 @@
1
- import { defineComponent as L, mergeDefaults as V, toRefs as j, ref as a } from "vue";
2
- import f from "../_virtual/lodash.js";
3
- import { defaultComplexSearchProps as z } from "./props.js";
4
- import { ElConfigProvider as Y, ElLink as H, ElOption as J, ElButton as M, ElRow as N, ElFormItem as Q, ElForm as U, ElIcon as X, ElDialog as Z, ElSelect as $, ElCheckbox as ee, ElInput as te } 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 re } from "@element-plus/icons-vue";
23
- import ae from "../packages/components/node_modules/element-plus/es/locale/lang/zh-cn.js";
24
- const _e = /* @__PURE__ */ L({
25
- name: "YaheeComplexSearch",
26
- __name: "complex-search",
27
- props: /* @__PURE__ */ V({
28
- pasteFormat: { type: Function, required: !1 },
29
- defaultSearch: { type: String, required: !1 },
30
- options: { type: Array, required: !1 },
31
- placeholderText: { type: String, required: !1 },
32
- showPatchSearch: { type: Boolean, required: !1 },
33
- showWithinFilterCheckbox: { type: Boolean, required: !1 },
34
- specialOptions: { type: Array, required: !1 },
35
- normalOptions: { type: Array, required: !1 },
36
- showSelect: { type: Boolean, required: !1 },
37
- searchItem: { type: Object, required: !1 }
38
- }, z()),
39
- emits: ["filterChangeGrandson"],
40
- setup(b, { expose: q, emit: x }) {
41
- q();
42
- const k = ae, o = x, d = b, {
43
- defaultSearch: g,
44
- pasteFormat: O,
45
- options: _,
46
- showPatchSearch: w,
47
- specialOptions: u,
48
- showWithinFilterCheckbox: I,
49
- placeholderText: B,
50
- normalOptions: S,
51
- showSelect: P,
52
- searchItem: e
53
- } = j(d), G = a(g.value || "integrated"), i = a(""), s = a(!1), p = a(!1), c = a(!1), v = a(null), h = a({ searchType: "integrated", searchContent: "" }), K = {
54
- selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
55
- searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
56
- }, T = [
57
- {
58
- value: "integrated",
59
- label: "综合搜索"
60
- }
61
- ], D = () => {
62
- c.value = !0;
63
- }, R = () => {
64
- c.value = !1;
65
- }, W = () => {
66
- s.value || (delete e.value.putSearch, o("filterChangeGrandson", e.value));
67
- }, E = () => e.value, A = () => {
68
- i.value ? C() : o("filterChangeGrandson", E());
69
- }, y = (l, n) => {
70
- const t = { ...l };
71
- return f.map(u.value, (r) => r.key).includes(n.filterKey) ? u.value.forEach((r) => delete t[r.key]) : delete t[n.filterKey], t;
72
- };
73
- function m(l) {
74
- f.forEach(l, (n) => {
75
- y(e.value, n);
76
- const { checkedValues: t, filterKey: r } = n;
77
- f.isEmpty(t) || (S.value.includes(r) ? e.value[r] = t[0] : e.value[r] = t);
78
- }), o("filterChangeGrandson", e.value);
79
- }
80
- const C = () => {
81
- s.value ? m([
82
- {
83
- filterKey: "putSearch",
84
- checkedValues: i.value
85
- }
86
- ]) : o("filterChangeGrandson", {
87
- putSearch: i.value
88
- });
89
- }, F = { locale: k, emit: o, props: d, defaultSearch: g, pasteFormat: O, options: _, showPatchSearch: w, specialOptions: u, showWithinFilterCheckbox: I, placeholderText: B, normalOptions: S, showSelect: P, searchItem: e, selectedSearchType: G, putSearch: i, isWithinFilterOptions: s, confirmLoading: p, showBatchSearch: c, batchSearchFormRef: v, batchSearchForm: h, rules: K, defalutOptions: T, showBatchSearchDialog: D, handleBatchSearchClose: R, searchWithinFilterOptions: W, getSearchItem: E, handleSearch: A, deleteExistProperty: y, filterChange: m, handlePutSearch: C, confirmSearch: () => {
90
- v.value.validate((l) => {
91
- l && (p.value = !0, s.value ? m([
92
- {
93
- filterKey: "putSearch",
94
- checkedValues: h.value.searchContent
95
- }
96
- ]) : o("filterChangeGrandson", {
97
- putSearch: h.value.searchContent
98
- }), c.value = !1, p.value = !1);
99
- });
100
- }, get ElInput() {
101
- return te;
102
- }, get ElCheckbox() {
103
- return ee;
104
- }, get ElSelect() {
105
- return $;
106
- }, get ElDialog() {
107
- return Z;
108
- }, get ElIcon() {
109
- return X;
110
- }, get ElForm() {
111
- return U;
112
- }, get ElFormItem() {
113
- return Q;
114
- }, get ElRow() {
115
- return N;
116
- }, get ElButton() {
117
- return M;
118
- }, get ElOption() {
119
- return J;
120
- }, get ElLink() {
121
- return H;
122
- }, get ElConfigProvider() {
123
- return Y;
124
- }, get Search() {
125
- return re;
126
- } };
127
- return Object.defineProperty(F, "__isScriptSetup", { enumerable: !1, value: !0 }), F;
128
- }
129
- });
1
+ import f from "./complex-search.vue.js";
130
2
  export {
131
- _e as default
3
+ f as default
132
4
  };
@@ -1,7 +1,7 @@
1
- import { withInstall as e } from "../utils/install.js";
2
- import o from "./complex-search.vue.js";
3
- const a = e(o);
1
+ import { withInstall as o } from "../utils/install.js";
2
+ import t from "./complex-search.vue.js";
3
+ const m = o(t);
4
4
  export {
5
- a as YaheeComplexSearch,
6
- a as default
5
+ m as YaheeComplexSearch,
6
+ m as default
7
7
  };
@@ -1,41 +1,57 @@
1
- import n from "./copy.vue2.js";
2
- import { createElementBlock as r, openBlock as l, createVNode as e, withCtx as c, createElementVNode as s, renderSlot as p } from "vue";
3
- import a from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = { class: "yahee-copy" };
5
- function i(t, m, _, o, d, u) {
6
- return l(), r("div", f, [
7
- e(o.ElTooltip, {
8
- placement: "right",
9
- effect: "light",
10
- offset: -5,
11
- "show-arrow": !1,
12
- "popper-class": "custom-popper-class"
13
- }, {
14
- content: c(() => [
15
- e(o.ElIcon, {
16
- color: "#3366cc",
17
- size: "18",
18
- class: "icon",
19
- onClick: o.copyContent
20
- }, {
21
- default: c(() => [
22
- e(o.DocumentCopy)
23
- ]),
24
- _: 1
25
- /* STABLE */
26
- })
27
- ]),
28
- default: c(() => [
29
- s("div", null, [
30
- p(t.$slots, "default")
31
- ])
32
- ]),
33
- _: 3
34
- /* FORWARDED */
35
- })
36
- ]);
37
- }
38
- const C = /* @__PURE__ */ a(n, [["render", i], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/copy/copy.vue"]]);
1
+ import { defineComponent as l, createElementBlock as a, openBlock as m, createVNode as e, unref as o, withCtx as t, createElementVNode as i, renderSlot as f } from "vue";
2
+ import { ElTooltip as u, ElIcon as d, ElMessage as _ } from "element-plus";
3
+ import "element-plus/theme-chalk/src/base.scss";
4
+ import "element-plus/theme-chalk/src/tooltip.scss";
5
+ import "element-plus/theme-chalk/src/popper.scss";
6
+ import "element-plus/theme-chalk/src/badge.scss";
7
+ import "element-plus/theme-chalk/src/message.scss";
8
+ import { DocumentCopy as h } from "@element-plus/icons-vue";
9
+ import { useClipboard as y } from "../packages/components/hooks/useClipboard.js";
10
+ const C = { class: "yahee-copy" }, z = /* @__PURE__ */ l({
11
+ name: "YaheeCopy",
12
+ __name: "copy",
13
+ props: {
14
+ content: { default: "" },
15
+ message: { default: "复制成功" }
16
+ },
17
+ setup(c) {
18
+ const s = c, { copyUrl: r } = y(), p = () => {
19
+ r(s.content), _({
20
+ message: s.message,
21
+ type: "success"
22
+ });
23
+ };
24
+ return (n, g) => (m(), a("div", C, [
25
+ e(o(u), {
26
+ placement: "right",
27
+ effect: "light",
28
+ offset: -5,
29
+ "show-arrow": !1,
30
+ "popper-class": "custom-popper-class"
31
+ }, {
32
+ content: t(() => [
33
+ e(o(d), {
34
+ color: "#3366cc",
35
+ size: "18",
36
+ class: "icon",
37
+ onClick: p
38
+ }, {
39
+ default: t(() => [
40
+ e(o(h))
41
+ ]),
42
+ _: 1
43
+ })
44
+ ]),
45
+ default: t(() => [
46
+ i("div", null, [
47
+ f(n.$slots, "default")
48
+ ])
49
+ ]),
50
+ _: 3
51
+ })
52
+ ]));
53
+ }
54
+ });
39
55
  export {
40
- C as default
56
+ z as default
41
57
  };
@@ -1,36 +1,4 @@
1
- import { defineComponent as n } from "vue";
2
- import { ElMessage as s, ElIcon as m, ElTooltip as i } from "element-plus";
3
- import "element-plus/theme-chalk/src/base.scss";
4
- import "element-plus/theme-chalk/src/tooltip.scss";
5
- import "element-plus/theme-chalk/src/popper.scss";
6
- import "element-plus/theme-chalk/src/badge.scss";
7
- import "element-plus/theme-chalk/src/message.scss";
8
- import { DocumentCopy as c } from "@element-plus/icons-vue";
9
- import { useClipboard as u } from "../packages/components/hooks/useClipboard.js";
10
- const b = /* @__PURE__ */ n({
11
- name: "YaheeCopy",
12
- __name: "copy",
13
- props: {
14
- content: { type: String, required: !0, default: "" },
15
- message: { type: String, required: !1, default: "复制成功" }
16
- },
17
- setup(r, { expose: p }) {
18
- p();
19
- const e = r, { copyUrl: t } = u(), o = { props: e, copyUrl: t, copyContent: () => {
20
- t(e.content), s({
21
- message: e.message,
22
- type: "success"
23
- });
24
- }, get ElTooltip() {
25
- return i;
26
- }, get ElIcon() {
27
- return m;
28
- }, get DocumentCopy() {
29
- return c;
30
- } };
31
- return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
32
- }
33
- });
1
+ import f from "./copy.vue.js";
34
2
  export {
35
- b as default
3
+ f as default
36
4
  };
package/es/copy/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { withInstall as o } from "../utils/install.js";
2
2
  import t from "./copy.vue.js";
3
- const a = o(t);
3
+ const r = o(t);
4
4
  export {
5
- a as YaheeCopy,
6
- a as default
5
+ r as YaheeCopy,
6
+ r as default
7
7
  };