yahee-components 0.0.87 → 0.0.89

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 (50) hide show
  1. package/es/annex-upload/annex-upload.vue.js +51 -154
  2. package/es/annex-upload/annex-upload.vue2.js +119 -2
  3. package/es/annex-upload/index.js +3 -3
  4. package/es/border-wrap/border-wrap.vue.js +64 -95
  5. package/es/border-wrap/border-wrap.vue2.js +46 -2
  6. package/es/common-import/common-import.vue.js +369 -666
  7. package/es/common-import/common-import.vue2.js +337 -2
  8. package/es/common-import/index.js +3 -3
  9. package/es/complex-search/complex-search.vue.js +38 -37
  10. package/es/complex-search/complex-search.vue2.js +117 -116
  11. package/es/copy/copy.vue.js +37 -55
  12. package/es/copy/copy.vue2.js +34 -2
  13. package/es/copy/index.js +3 -3
  14. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +114 -213
  15. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
  16. package/es/drop-down-condition/drop-down-condition.vue.js +115 -215
  17. package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
  18. package/es/echart-gauge/echart-gauge.vue.js +12 -140
  19. package/es/echart-gauge/echart-gauge.vue2.js +147 -2
  20. package/es/echart-gauge/index.js +3 -3
  21. package/es/image-upload/image-upload.vue.js +109 -170
  22. package/es/image-upload/image-upload.vue2.js +91 -2
  23. package/es/image-upload/index.js +3 -3
  24. package/es/input/index.js +3 -3
  25. package/es/input/input.vue.js +17 -38
  26. package/es/input/input.vue2.js +33 -2
  27. package/es/left-condition/index.js +3 -3
  28. package/es/left-condition/left-condition-sub.vue.js +32 -91
  29. package/es/left-condition/left-condition-sub.vue2.js +76 -2
  30. package/es/left-condition/left-condition.vue.js +70 -218
  31. package/es/left-condition/left-condition.vue2.js +160 -2
  32. package/es/left-condition-enum/index.js +3 -3
  33. package/es/left-condition-enum/left-condition-enum.vue.js +20 -49
  34. package/es/left-condition-enum/left-condition-enum.vue2.js +40 -2
  35. package/es/operation-log/operation-log-content.vue.js +71 -92
  36. package/es/operation-log/operation-log-content.vue2.js +39 -2
  37. package/es/operation-log/operation-log-dialog.vue.js +45 -67
  38. package/es/operation-log/operation-log-dialog.vue2.js +38 -2
  39. package/es/operation-log/operation-log-form.vue.js +108 -183
  40. package/es/operation-log/operation-log-form.vue2.js +104 -2
  41. package/es/operation-log/operation-log.vue.js +119 -228
  42. package/es/operation-log/operation-log.vue2.js +135 -2
  43. package/es/packages/components/api/log-server.js +6 -6
  44. package/es/packages/components/api/upload-server.js +1 -1
  45. package/es/packages/components/hooks/useEcharts.js +19 -19
  46. package/es/packages/components/hooks/useImg.js +8 -8
  47. package/es/scale-screen/index.js +4 -4
  48. package/es/scale-screen/scale-screen.vue.js +19 -126
  49. package/es/scale-screen/scale-screen.vue2.js +125 -2
  50. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent as K, toRefs as D, ref as c } from "vue";
2
- import S from "../_virtual/lodash.js";
3
- import { defaultComplexSearchProps as r } from "./props.js";
4
- import { ElLink as G, ElOption as H, ElButton as V, ElRow as _, ElFormItem as L, ElForm as P, ElIcon as q, ElDialog as j, ElSelect as Y, ElCheckbox as $, ElInput as z } from "element-plus";
1
+ import { defineComponent as R, toRefs as _, ref as l, watch as k } from "vue";
2
+ import v from "../_virtual/lodash.js";
3
+ import { defaultComplexSearchProps as o } from "./props.js";
4
+ import { ElLink as L, ElOption as P, ElButton as G, ElRow as K, ElFormItem as V, ElForm as j, ElIcon as q, ElDialog as Y, ElSelect as $, ElCheckbox as z, ElInput as J } from "element-plus";
5
5
  import "element-plus/theme-chalk/src/base.scss";
6
6
  import "element-plus/theme-chalk/src/input.scss";
7
7
  import "element-plus/theme-chalk/src/checkbox.scss";
@@ -18,166 +18,167 @@ import "element-plus/theme-chalk/src/form-item.scss";
18
18
  import "element-plus/theme-chalk/src/row.scss";
19
19
  import "element-plus/theme-chalk/src/button.scss";
20
20
  import "element-plus/theme-chalk/src/link.scss";
21
- import { Search as J } from "@element-plus/icons-vue";
22
- const Se = K({
21
+ import { Search as M } from "@element-plus/icons-vue";
22
+ const ye = R({
23
23
  name: "YaheeComplexSearch",
24
- // 使用 components 选项注册所有 Element Plus 组件
25
24
  components: {
26
- ElInput: z,
27
- ElCheckbox: $,
28
- ElSelect: Y,
29
- ElDialog: j,
25
+ ElInput: J,
26
+ ElCheckbox: z,
27
+ ElSelect: $,
28
+ ElDialog: Y,
30
29
  ElIcon: q,
31
- ElForm: P,
32
- ElFormItem: L,
33
- ElRow: _,
34
- ElButton: V,
35
- ElOption: H,
36
- ElLink: G,
37
- Search: J
30
+ ElForm: j,
31
+ ElFormItem: V,
32
+ ElRow: K,
33
+ ElButton: G,
34
+ ElOption: P,
35
+ ElLink: L,
36
+ Search: M
38
37
  },
39
38
  props: {
40
39
  defaultSearch: {
41
40
  type: String,
42
- default: r().defaultSearch
41
+ default: o().defaultSearch
43
42
  },
44
43
  options: {
45
44
  type: Array,
46
- default: r().options
45
+ default: o().options
47
46
  },
48
47
  placeholderText: {
49
48
  type: String,
50
- default: r().placeholderText
49
+ default: o().placeholderText
51
50
  },
52
51
  showPatchSearch: {
53
52
  type: Boolean,
54
- default: r().showPatchSearch
53
+ default: o().showPatchSearch
55
54
  },
56
55
  showWithinFilterCheckbox: {
57
56
  type: Boolean,
58
- default: r().showWithinFilterCheckbox
57
+ default: o().showWithinFilterCheckbox
59
58
  },
60
59
  specialOptions: {
61
60
  type: Array,
62
- default: r().specialOptions
61
+ default: o().specialOptions
63
62
  },
64
63
  normalOptions: {
65
64
  type: Array,
66
- default: r().normalOptions
65
+ default: o().normalOptions
67
66
  },
68
67
  showSelect: {
69
68
  type: Boolean,
70
- default: r().showSelect
69
+ default: o().showSelect
71
70
  },
72
71
  searchItem: {
73
72
  type: Object,
74
- default: r().searchItem
73
+ default: o().searchItem
75
74
  },
76
75
  isBatchSelectOptionsSameWithInput: {
77
76
  type: Boolean,
78
- default: r().isBatchSelectOptionsSameWithInput
77
+ default: o().isBatchSelectOptionsSameWithInput
79
78
  },
80
79
  batchOptions: {
81
80
  type: Array,
82
- default: r().batchOptions
81
+ default: o().batchOptions
83
82
  }
84
83
  },
85
- emits: ["filterChangeGrandson"],
86
- setup(v, { emit: u }) {
87
- const { specialOptions: y, normalOptions: F, searchItem: s } = D(v), l = c(v.defaultSearch || "WHOLE_SEARCH"), i = c(""), h = c(!1), f = c(!1), p = c(!1), m = c(null), o = c({ searchType: "WHOLE_SEARCH", searchContent: "" }), C = {
88
- selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
84
+ emits: ["filterChangeGrandson", "update:searchItem"],
85
+ setup(y, { emit: f }) {
86
+ const { specialOptions: C, normalOptions: g, searchItem: E } = _(y), i = l(y.defaultSearch || "WHOLE_SEARCH"), h = l(""), p = l(!1), d = l(!1), u = l(!1), S = l(null), r = l({ searchType: "WHOLE_SEARCH", searchContent: "" }), I = [{ value: "WHOLE_SEARCH", label: "综合搜索" }], T = {
89
87
  searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
90
- }, g = [{ value: "WHOLE_SEARCH", label: "综合搜索" }], E = () => {
91
- p.value = !0;
92
- }, O = () => {
93
- p.value = !1;
94
- }, b = () => {
95
- h.value || (delete s.value.putSearch, u("filterChangeGrandson", s.value, l.value));
96
- }, W = () => s.value, I = () => {
97
- i.value ? A() : u("filterChangeGrandson", W(), l.value);
98
- }, R = (a, e) => {
99
- const t = { ...a };
100
- return S.map(y.value, (n) => n.key).includes(e.filterKey) ? y.value.forEach((n) => delete t[n.key]) : delete t[e.filterKey], t;
101
- }, k = (a) => {
102
- S.forEach(a, (e) => {
103
- const t = R(s.value, e), { checkedValues: n, filterKey: d } = e;
104
- S.isEmpty(n) || (F.value.includes(d) ? t[d] = n[0] : t[d] = n), s.value = t;
105
- }), u("filterChangeGrandson", s.value, l.value);
106
- }, T = (a) => {
107
- i.value = x(a) || "";
108
- }, w = (a) => {
109
- const e = x(a);
88
+ }, n = l({ ...E.value });
89
+ k(
90
+ () => E.value,
91
+ (t) => {
92
+ n.value = { ...t }, s();
93
+ },
94
+ { deep: !0 }
95
+ );
96
+ const b = () => {
97
+ s();
98
+ }, w = () => {
99
+ h.value = "", s();
100
+ }, s = () => {
101
+ let t = {};
102
+ p.value ? t = {
103
+ ...n.value,
104
+ putSearch: h.value || "",
105
+ searchType: i.value
106
+ } : t = {
107
+ putSearch: h.value || "",
108
+ searchType: i.value
109
+ }, f("filterChangeGrandson", t, i.value);
110
+ }, W = () => {
111
+ s();
112
+ }, x = () => {
113
+ u.value = !0;
114
+ }, B = () => {
115
+ u.value = !1, r.value = { searchType: "WHOLE_SEARCH", searchContent: "" };
116
+ }, F = (t, e) => {
117
+ const a = { ...t };
118
+ return v.map(C.value, (c) => c.key).includes(e.filterKey) ? C.value.forEach((c) => delete a[c.key]) : delete a[e.filterKey], a;
119
+ }, H = (t) => {
120
+ let e = { ...n.value };
121
+ v.forEach(t, (a) => {
122
+ e = F(e, a);
123
+ const { checkedValues: c, filterKey: m } = a;
124
+ v.isEmpty(c) ? delete e[m] : g.value.includes(m) ? e[m] = c[0] : e[m] = c;
125
+ }), n.value = e, f("update:searchItem", e), p.value && s();
126
+ }, A = (t) => {
127
+ const e = O(t);
128
+ e !== null && (h.value = e, setTimeout(() => {
129
+ s();
130
+ }, 50));
131
+ }, D = (t) => {
132
+ const e = O(t);
110
133
  if (e) {
111
- const t = o.value.searchContent || "";
112
- t ? o.value.searchContent = `${t},${e}` : o.value.searchContent = e;
134
+ const a = r.value.searchContent || "";
135
+ r.value.searchContent = a ? `${a},${e}` : e;
113
136
  }
114
- }, x = (a) => {
115
- var t;
116
- a.preventDefault();
117
- const e = (t = a.clipboardData) == null ? void 0 : t.getData("text/plain");
137
+ }, O = (t) => {
138
+ var a;
139
+ t.preventDefault();
140
+ const e = (a = t.clipboardData) == null ? void 0 : a.getData("text/plain");
118
141
  return e == null ? void 0 : e.replace(/[\n\r\t]+/g, ",");
119
- }, A = () => {
120
- h.value ? k([
121
- { filterKey: "putSearch", checkedValues: i.value },
122
- { filterKey: "searchType", checkedValues: l.value }
123
- ]) : u(
124
- "filterChangeGrandson",
125
- { putSearch: i.value, searchType: l.value },
126
- l.value
127
- );
128
- }, B = () => {
129
- m.value && m.value.validate((a) => {
130
- a && (f.value = !0, h.value ? k([
131
- { filterKey: "putSearch", checkedValues: o.value.searchContent },
132
- { filterKey: "searchType", checkedValues: o.value.searchType }
133
- ]) : u(
134
- "filterChangeGrandson",
135
- {
136
- putSearch: o.value.searchContent,
137
- searchType: o.value.searchType
138
- },
139
- l.value
140
- ), p.value = !1, f.value = !1);
141
- });
142
142
  };
143
143
  return {
144
- ...{
145
- selectedSearchType: l,
146
- putSearch: i,
147
- isWithinFilterOptions: h,
148
- confirmLoading: f,
149
- showBatchSearch: p,
150
- batchSearchFormRef: m,
151
- batchSearchForm: o,
152
- defalutOptions: g,
153
- rules: C,
154
- showBatchSearchDialog: E,
155
- handleBatchSearchClose: O,
156
- searchWithinFilterOptions: b,
157
- handleSearch: I,
158
- pasteFormatInput: T,
159
- confirmSearch: B,
160
- pasteFormat: w
144
+ selectedSearchType: i,
145
+ putSearch: h,
146
+ isWithinFilterOptions: p,
147
+ confirmLoading: d,
148
+ showBatchSearch: u,
149
+ batchSearchFormRef: S,
150
+ batchSearchForm: r,
151
+ defalutOptions: I,
152
+ rules: T,
153
+ showBatchSearchDialog: x,
154
+ handleBatchSearchClose: B,
155
+ searchWithinFilterOptions: W,
156
+ handleSearch: b,
157
+ handleClear: w,
158
+ pasteFormatInput: A,
159
+ confirmSearch: () => {
160
+ S.value && S.value.validate((t) => {
161
+ var e;
162
+ if (t && ((e = r.value.searchContent) != null && e.trim())) {
163
+ d.value = !0;
164
+ let a = {};
165
+ p.value ? a = {
166
+ ...n.value,
167
+ putSearch: r.value.searchContent.trim(),
168
+ searchType: r.value.searchType
169
+ } : a = {
170
+ putSearch: r.value.searchContent.trim(),
171
+ searchType: r.value.searchType
172
+ }, f("filterChangeGrandson", a, r.value.searchType), r.value = { searchType: "WHOLE_SEARCH", searchContent: "" }, u.value = !1, d.value = !1;
173
+ }
174
+ });
161
175
  },
162
- selectedSearchType: l,
163
- putSearch: i,
164
- isWithinFilterOptions: h,
165
- confirmLoading: f,
166
- showBatchSearch: p,
167
- batchSearchFormRef: m,
168
- batchSearchForm: o,
169
- defalutOptions: g,
170
- rules: C,
171
- showBatchSearchDialog: E,
172
- handleBatchSearchClose: O,
173
- searchWithinFilterOptions: b,
174
- handleSearch: I,
175
- pasteFormatInput: T,
176
- confirmSearch: B,
177
- pasteFormat: w
176
+ pasteFormat: D,
177
+ filterChange: H,
178
+ getSearchItem: () => n.value
178
179
  };
179
180
  }
180
181
  });
181
182
  export {
182
- Se as default
183
+ ye as default
183
184
  };
@@ -1,57 +1,39 @@
1
- import { defineComponent as a, createElementBlock as l, 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 y } 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 _ } from "../packages/components/hooks/useClipboard.js";
10
- const C = { class: "yahee-copy" }, z = /* @__PURE__ */ a({
11
- name: "YaheeCopy",
12
- __name: "copy",
13
- props: {
14
- content: { default: "" },
15
- message: { default: "复制成功" }
16
- },
17
- setup(c) {
18
- const s = c, { copyUrl: p } = _(), r = () => {
19
- p(s.content), y({
20
- message: s.message,
21
- type: "success"
22
- });
23
- };
24
- return (n, g) => (m(), l("div", C, [
25
- e(o(u), {
26
- placement: "right",
27
- effect: "light",
28
- offset: -5,
29
- "show-arrow": !1,
30
- "popper-class": "yahee-copy-custom-popper-class"
31
- }, {
32
- content: t(() => [
33
- e(o(d), {
34
- color: "#3366cc",
35
- size: "18",
36
- class: "icon",
37
- onClick: r
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, y) {
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": "yahee-copy-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
+ })
26
+ ]),
27
+ default: c(() => [
28
+ s("div", null, [
29
+ p(t.$slots, "default")
30
+ ])
31
+ ]),
32
+ _: 3
33
+ })
34
+ ]);
35
+ }
36
+ const E = /* @__PURE__ */ a(n, [["render", i], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/copy/copy.vue"]]);
55
37
  export {
56
- z as default
38
+ E as default
57
39
  };
@@ -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
  };