yahee-components 0.0.91 → 0.0.93

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