yahee-components 0.0.55 → 0.0.57

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