yahee-components 0.0.52 → 0.0.53

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 (45) hide show
  1. package/es/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/es/annex-upload/annex-upload.vue.js +69 -154
  3. package/es/annex-upload/annex-upload.vue2.js +119 -2
  4. package/es/annex-upload/index.js +3 -3
  5. package/es/api/tool.js +1 -1
  6. package/es/complex-search/complex-search.vue.js +240 -312
  7. package/es/complex-search/complex-search.vue2.js +148 -2
  8. package/es/complex-search/index.js +5 -5
  9. package/es/copy/copy.vue.js +39 -55
  10. package/es/copy/copy.vue2.js +34 -2
  11. package/es/copy/index.js +3 -3
  12. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +158 -204
  13. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
  14. package/es/drop-down-condition/drop-down-condition.vue.js +193 -211
  15. package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
  16. package/es/image-upload/image-upload.vue.js +76 -113
  17. package/es/image-upload/image-upload.vue2.js +91 -2
  18. package/es/image-upload/index.js +3 -3
  19. package/es/input/index.js +3 -3
  20. package/es/input/input.vue.js +17 -38
  21. package/es/input/input.vue2.js +33 -2
  22. package/es/left-condition/index.js +5 -5
  23. package/es/left-condition/left-condition-sub.vue.js +55 -86
  24. package/es/left-condition/left-condition-sub.vue2.js +76 -2
  25. package/es/left-condition/left-condition.vue.js +93 -210
  26. package/es/left-condition/left-condition.vue2.js +153 -2
  27. package/es/left-condition-enum/index.js +3 -3
  28. package/es/left-condition-enum/left-condition-enum.vue.js +19 -77
  29. package/es/left-condition-enum/left-condition-enum.vue2.js +69 -2
  30. package/es/operation-log/operation-log-content.vue.js +78 -92
  31. package/es/operation-log/operation-log-content.vue2.js +39 -2
  32. package/es/operation-log/operation-log-dialog.vue.js +57 -68
  33. package/es/operation-log/operation-log-dialog.vue2.js +38 -2
  34. package/es/operation-log/operation-log-form.vue.js +132 -183
  35. package/es/operation-log/operation-log-form.vue2.js +104 -2
  36. package/es/operation-log/operation-log.vue.js +186 -227
  37. package/es/operation-log/operation-log.vue2.js +135 -2
  38. package/es/packages/components/api/log-server.js +5 -5
  39. package/es/packages/components/api/upload-server.js +1 -1
  40. package/es/packages/components/hooks/useImg.js +8 -8
  41. package/es/utils/translate.js +19 -19
  42. package/package.json +1 -1
  43. package/types/src/installs.d.ts +3 -0
  44. package/types/src/left-condition/index.d.ts +3 -0
  45. package/types/src/left-condition/left-condition.vue.d.ts +2 -0
@@ -1,4 +1,150 @@
1
- import f from "./complex-search.vue.js";
1
+ import { defineComponent as L, mergeDefaults as V, toRefs as D, ref as l } from "vue";
2
+ import d from "../_virtual/lodash.js";
3
+ import { defaultComplexSearchProps as j } from "./props.js";
4
+ import { ElConfigProvider as z, ElLink as Y, 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 re } 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 te } from "@element-plus/icons-vue";
23
+ import ae from "../node_modules/.pnpm/element-plus@2.9.7_vue@3.5.13_typescript@5.8.3_/node_modules/element-plus/es/locale/lang/zh-cn.js";
24
+ const xe = /* @__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
+ }, j()),
39
+ emits: ["filterChangeGrandson"],
40
+ setup(k, { expose: F, emit: b }) {
41
+ F();
42
+ const q = ae, o = b, v = k, {
43
+ defaultSearch: S,
44
+ pasteFormat: x,
45
+ options: T,
46
+ showPatchSearch: w,
47
+ specialOptions: p,
48
+ showWithinFilterCheckbox: I,
49
+ placeholderText: B,
50
+ normalOptions: g,
51
+ showSelect: P,
52
+ searchItem: e
53
+ } = D(v), r = l(S.value || "WHOLE_SEARCH"), i = l(""), u = l(!1), f = l(!1), h = l(!1), y = l(null), n = l({ searchType: "WHOLE_SEARCH", searchContent: "" }), K = {
54
+ selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
55
+ searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
56
+ }, R = [
57
+ {
58
+ value: "WHOLE_SEARCH",
59
+ label: "综合搜索"
60
+ }
61
+ ], W = () => {
62
+ h.value = !0;
63
+ }, A = () => {
64
+ h.value = !1;
65
+ }, G = () => {
66
+ u.value || (delete e.value.putSearch, o("filterChangeGrandson", e.value, r.value));
67
+ }, E = () => e.value, H = () => {
68
+ i.value ? O() : o("filterChangeGrandson", E(), r.value);
69
+ }, C = (s, c) => {
70
+ const t = { ...s };
71
+ return d.map(p.value, (a) => a.key).includes(c.filterKey) ? p.value.forEach((a) => delete t[a.key]) : delete t[c.filterKey], t;
72
+ };
73
+ function m(s) {
74
+ d.forEach(s, (c) => {
75
+ C(e.value, c);
76
+ const { checkedValues: t, filterKey: a } = c;
77
+ d.isEmpty(t) || (g.value.includes(a) ? e.value[a] = t[0] : e.value[a] = t);
78
+ }), o("filterChangeGrandson", e.value, r.value);
79
+ }
80
+ const O = () => {
81
+ u.value ? m([
82
+ {
83
+ filterKey: "putSearch",
84
+ checkedValues: i.value
85
+ },
86
+ {
87
+ filterKey: "searchType",
88
+ checkedValues: r.value
89
+ }
90
+ ]) : o(
91
+ "filterChangeGrandson",
92
+ {
93
+ putSearch: i.value,
94
+ searchType: r.value
95
+ },
96
+ r.value
97
+ );
98
+ }, _ = { locale: q, emit: o, props: v, defaultSearch: S, pasteFormat: x, options: T, showPatchSearch: w, specialOptions: p, showWithinFilterCheckbox: I, placeholderText: B, normalOptions: g, showSelect: P, searchItem: e, selectedSearchType: r, putSearch: i, isWithinFilterOptions: u, confirmLoading: f, showBatchSearch: h, batchSearchFormRef: y, batchSearchForm: n, rules: K, defalutOptions: R, showBatchSearchDialog: W, handleBatchSearchClose: A, searchWithinFilterOptions: G, getSearchItem: E, handleSearch: H, deleteExistProperty: C, filterChange: m, handlePutSearch: O, confirmSearch: () => {
99
+ y.value.validate((s) => {
100
+ s && (f.value = !0, u.value ? m([
101
+ {
102
+ filterKey: "putSearch",
103
+ checkedValues: n.value.searchContent
104
+ },
105
+ {
106
+ filterKey: "searchType",
107
+ checkedValues: n.value.searchType
108
+ }
109
+ ]) : o(
110
+ "filterChangeGrandson",
111
+ {
112
+ putSearch: n.value.searchContent,
113
+ searchType: n.value.searchType
114
+ },
115
+ r.value
116
+ ), h.value = !1, f.value = !1);
117
+ });
118
+ }, get ElInput() {
119
+ return re;
120
+ }, get ElCheckbox() {
121
+ return ee;
122
+ }, get ElSelect() {
123
+ return $;
124
+ }, get ElDialog() {
125
+ return Z;
126
+ }, get ElIcon() {
127
+ return X;
128
+ }, get ElForm() {
129
+ return U;
130
+ }, get ElFormItem() {
131
+ return Q;
132
+ }, get ElRow() {
133
+ return N;
134
+ }, get ElButton() {
135
+ return M;
136
+ }, get ElOption() {
137
+ return J;
138
+ }, get ElLink() {
139
+ return Y;
140
+ }, get ElConfigProvider() {
141
+ return z;
142
+ }, get Search() {
143
+ return te;
144
+ } };
145
+ return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
146
+ }
147
+ });
2
148
  export {
3
- f as default
149
+ xe as default
4
150
  };
@@ -1,7 +1,7 @@
1
- import { withInstall as o } from "../utils/install.js";
2
- import t from "./complex-search.vue.js";
3
- const m = o(t);
1
+ import { withInstall as e } from "../utils/install.js";
2
+ import o from "./complex-search.vue.js";
3
+ const a = e(o);
4
4
  export {
5
- m as YaheeComplexSearch,
6
- m as default
5
+ a as YaheeComplexSearch,
6
+ a as default
7
7
  };
@@ -1,57 +1,41 @@
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
- });
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"]]);
55
39
  export {
56
- z as default
40
+ C as default
57
41
  };
@@ -1,4 +1,36 @@
1
- import f from "./copy.vue.js";
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
+ });
2
34
  export {
3
- f as default
35
+ b as default
4
36
  };
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 r = o(t);
3
+ const a = o(t);
4
4
  export {
5
- r as YaheeCopy,
6
- r as default
5
+ a as YaheeCopy,
6
+ a as default
7
7
  };