yahee-components 0.0.108 → 0.0.109

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 (63) 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 -693
  7. package/es/common-import/common-import.vue2.js +364 -2
  8. package/es/common-import/index.js +3 -3
  9. package/es/complex-search/batch-search-dialog.vue.js +116 -4
  10. package/es/complex-search/batch-search-dialog.vue2.js +27 -136
  11. package/es/complex-search/complex-search.vue.js +14 -14
  12. package/es/copy/copy.vue.js +37 -55
  13. package/es/copy/copy.vue2.js +34 -2
  14. package/es/copy/index.js +3 -3
  15. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +114 -213
  16. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
  17. package/es/drop-down-condition/drop-down-condition.vue.js +115 -215
  18. package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
  19. package/es/echart-gauge/echart-gauge.vue.js +12 -140
  20. package/es/echart-gauge/echart-gauge.vue2.js +147 -2
  21. package/es/echart-gauge/index.js +3 -3
  22. package/es/file-download-wrapper/file-download-wrapper.vue.js +143 -244
  23. package/es/file-download-wrapper/file-download-wrapper.vue2.js +113 -2
  24. package/es/file-download-wrapper/index.js +4 -4
  25. package/es/filter-container/filter-container.vue.js +18 -66
  26. package/es/filter-container/filter-container.vue2.js +59 -2
  27. package/es/filter-container/index.js +4 -4
  28. package/es/filter-wrapper/filter-wrapper.vue.js +16 -4
  29. package/es/filter-wrapper/filter-wrapper.vue2.js +40 -45
  30. package/es/height-collapse/height-collapse.vue.js +24 -51
  31. package/es/height-collapse/height-collapse.vue2.js +42 -2
  32. package/es/height-collapse/index.js +4 -4
  33. package/es/help-tag/help-tag.vue.js +44 -78
  34. package/es/help-tag/help-tag.vue2.js +49 -2
  35. package/es/help-tag/index.js +3 -3
  36. package/es/image-upload/image-upload.vue.js +109 -170
  37. package/es/image-upload/image-upload.vue2.js +91 -2
  38. package/es/image-upload/index.js +3 -3
  39. package/es/left-condition/index.js +3 -3
  40. package/es/left-condition/left-condition-sub.vue.js +32 -91
  41. package/es/left-condition/left-condition-sub.vue2.js +76 -2
  42. package/es/left-condition/left-condition.vue.js +70 -218
  43. package/es/left-condition/left-condition.vue2.js +160 -2
  44. package/es/left-condition-enum/index.js +3 -3
  45. package/es/left-condition-enum/left-condition-enum.vue.js +20 -49
  46. package/es/left-condition-enum/left-condition-enum.vue2.js +40 -2
  47. package/es/operation-log/operation-log-content.vue.js +71 -92
  48. package/es/operation-log/operation-log-content.vue2.js +39 -2
  49. package/es/operation-log/operation-log-dialog.vue.js +45 -67
  50. package/es/operation-log/operation-log-dialog.vue2.js +38 -2
  51. package/es/operation-log/operation-log-form.vue.js +108 -183
  52. package/es/operation-log/operation-log-form.vue2.js +104 -2
  53. package/es/operation-log/operation-log.vue.js +119 -228
  54. package/es/operation-log/operation-log.vue2.js +135 -2
  55. package/es/packages/components/api/log-server.js +6 -6
  56. package/es/packages/components/api/upload-server.js +1 -1
  57. package/es/packages/components/hooks/useEcharts.js +19 -19
  58. package/es/packages/components/hooks/useImg.js +8 -8
  59. package/es/scale-screen/index.js +4 -4
  60. package/es/scale-screen/scale-screen.vue.js +19 -126
  61. package/es/scale-screen/scale-screen.vue2.js +125 -2
  62. package/es/yahee-components.css +1 -1
  63. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { defineComponent as S, ref as p, watch as V, resolveComponent as n, createBlock as m, openBlock as r, withCtx as a, createVNode as u, createElementBlock as g, Fragment as w, renderList as k, createElementVNode as W, createTextVNode as E } from "vue";
2
- const D = { class: "dialog-footer" }, U = S({
1
+ import { defineComponent as h, ref as n, watch as d } from "vue";
2
+ const b = h({
3
3
  name: "BatchSearchDialog"
4
4
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
- }), z = /* @__PURE__ */ S({
6
- ...U,
5
+ }), O = /* @__PURE__ */ h({
6
+ ...b,
7
7
  __name: "batch-search-dialog",
8
8
  props: {
9
9
  modelValue: { type: Boolean, default: !1 },
@@ -17,143 +17,34 @@ const D = { class: "dialog-footer" }, U = S({
17
17
  }
18
18
  },
19
19
  emits: ["update:modelValue", "confirm"],
20
- setup(s, { emit: B }) {
21
- const O = s, _ = B, c = p(!1), f = p(!1), v = p(), t = p({ searchType: "WHOLE_SEARCH", searchContent: "" }), x = {
20
+ setup(m, { expose: v, emit: _ }) {
21
+ v();
22
+ const u = m, o = _, l = n(!1), r = n(!1), s = n(), e = n({ searchType: "WHOLE_SEARCH", searchContent: "" }), C = {
22
23
  searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
23
24
  };
24
- V(
25
- () => O.modelValue,
26
- (o) => {
27
- c.value = o;
25
+ d(
26
+ () => u.modelValue,
27
+ (t) => {
28
+ l.value = t;
28
29
  }
29
- ), V(c, (o) => {
30
- _("update:modelValue", o);
30
+ ), d(l, (t) => {
31
+ o("update:modelValue", t);
31
32
  });
32
- const T = (o) => {
33
- var i;
34
- o.preventDefault();
35
- const e = (i = o.clipboardData) == null ? void 0 : i.getData("text/plain"), d = e == null ? void 0 : e.replace(/[\n\r\t]+/g, ",");
36
- d && (t.value.searchContent = t.value.searchContent ? `${t.value.searchContent},${d}` : d);
37
- }, A = async () => {
38
- var e;
39
- if (!v.value) return;
40
- await v.value.validate().catch(() => !1) && ((e = t.value.searchContent) != null && e.trim()) && (f.value = !0, _("confirm", { ...t.value, searchContent: t.value.searchContent.trim() }), h(), f.value = !1);
41
- }, h = () => {
42
- c.value = !1, t.value = { searchType: "WHOLE_SEARCH", searchContent: "" };
43
- };
44
- return (o, e) => {
45
- const d = n("el-option"), i = n("el-select"), y = n("el-form-item"), C = n("el-row"), H = n("el-input"), L = n("el-form"), b = n("el-button"), R = n("el-dialog");
46
- return r(), m(R, {
47
- modelValue: c.value,
48
- "onUpdate:modelValue": e[3] || (e[3] = (l) => c.value = l),
49
- title: "批量查询",
50
- width: "30%",
51
- "before-close": h,
52
- "append-to-body": !0,
53
- draggable: ""
54
- }, {
55
- footer: a(() => [
56
- W("div", D, [
57
- u(b, {
58
- type: "primary",
59
- loading: f.value,
60
- onClick: A
61
- }, {
62
- default: a(() => e[4] || (e[4] = [
63
- E(" 确认 ")
64
- ])),
65
- _: 1,
66
- __: [4]
67
- }, 8, ["loading"]),
68
- u(b, { onClick: h }, {
69
- default: a(() => e[5] || (e[5] = [
70
- E("关闭")
71
- ])),
72
- _: 1,
73
- __: [5]
74
- })
75
- ])
76
- ]),
77
- default: a(() => [
78
- u(L, {
79
- ref_key: "formRef",
80
- ref: v,
81
- model: t.value,
82
- rules: x
83
- }, {
84
- default: a(() => [
85
- u(C, { class: "row-class" }, {
86
- default: a(() => [
87
- u(y, { prop: "searchType" }, {
88
- default: a(() => [
89
- s.showSelect ? (r(), m(i, {
90
- key: 0,
91
- modelValue: t.value.searchType,
92
- "onUpdate:modelValue": e[0] || (e[0] = (l) => t.value.searchType = l),
93
- size: "small",
94
- style: { width: "100px", "background-color": "white" }
95
- }, {
96
- default: a(() => [
97
- (r(!0), g(w, null, k(s.isBatchSelectSameWithInput ? s.inputOptions : s.batchOptions, (l) => (r(), m(d, {
98
- key: l.label,
99
- label: l.label,
100
- value: l.value
101
- }, null, 8, ["label", "value"]))), 128))
102
- ]),
103
- _: 1
104
- }, 8, ["modelValue"])) : (r(), m(i, {
105
- key: 1,
106
- modelValue: t.value.searchType,
107
- "onUpdate:modelValue": e[1] || (e[1] = (l) => t.value.searchType = l),
108
- size: "small",
109
- style: { width: "95px" },
110
- disabled: ""
111
- }, {
112
- default: a(() => [
113
- (r(!0), g(w, null, k(s.defaultOptions, (l) => (r(), m(d, {
114
- key: l.label,
115
- label: l.label,
116
- value: l.value
117
- }, null, 8, ["label", "value"]))), 128))
118
- ]),
119
- _: 1
120
- }, 8, ["modelValue"]))
121
- ]),
122
- _: 1
123
- })
124
- ]),
125
- _: 1
126
- }),
127
- u(C, { class: "row-class" }, {
128
- default: a(() => [
129
- u(y, {
130
- prop: "searchContent",
131
- style: { width: "100%" }
132
- }, {
133
- default: a(() => [
134
- u(H, {
135
- modelValue: t.value.searchContent,
136
- "onUpdate:modelValue": e[2] || (e[2] = (l) => t.value.searchContent = l),
137
- placeholder: "请输入批量查询内容,从EXCEL复制可自动替换为`,",
138
- type: "textarea",
139
- rows: 5,
140
- onPaste: T
141
- }, null, 8, ["modelValue"])
142
- ]),
143
- _: 1
144
- })
145
- ]),
146
- _: 1
147
- })
148
- ]),
149
- _: 1
150
- }, 8, ["model"])
151
- ]),
152
- _: 1
153
- }, 8, ["modelValue"]);
154
- };
33
+ const y = (t) => {
34
+ var p;
35
+ t.preventDefault();
36
+ const a = (p = t.clipboardData) == null ? void 0 : p.getData("text/plain"), c = a == null ? void 0 : a.replace(/[\n\r\t]+/g, ",");
37
+ c && (e.value.searchContent = e.value.searchContent ? `${e.value.searchContent},${c}` : c);
38
+ }, S = async () => {
39
+ var a;
40
+ if (!s.value) return;
41
+ await s.value.validate().catch(() => !1) && ((a = e.value.searchContent) != null && a.trim()) && (r.value = !0, o("confirm", { ...e.value, searchContent: e.value.searchContent.trim() }), i(), r.value = !1);
42
+ }, i = () => {
43
+ l.value = !1, e.value = { searchType: "WHOLE_SEARCH", searchContent: "" };
44
+ }, f = { props: u, emit: o, visible: l, loading: r, formRef: s, form: e, rules: C, handlePaste: y, handleConfirm: S, handleClose: i };
45
+ return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
155
46
  }
156
47
  });
157
48
  export {
158
- z as default
49
+ O as default
159
50
  };
@@ -1,13 +1,13 @@
1
1
  import w from "./complex-search.vue2.js";
2
- import { resolveComponent as n, createElementBlock as i, openBlock as a, Fragment as p, createElementVNode as d, createVNode as s, withKeys as v, createSlots as B, withCtx as t, renderList as h, createBlock as r, createCommentVNode as m, createTextVNode as S } from "vue";
2
+ import { resolveComponent as n, createElementBlock as p, openBlock as a, Fragment as i, createElementVNode as d, createVNode as s, withKeys as v, createSlots as B, withCtx as t, renderList as h, createBlock as r, createCommentVNode as m, createTextVNode as f } from "vue";
3
3
  /* empty css */
4
4
  import g from "../_virtual/_plugin-vue_export-helper.js";
5
5
  const O = { class: "yahee-complex-search" }, F = { class: "search-type-checkbox" };
6
6
  function T(e, o, I, U, W, $) {
7
- const u = n("el-option"), c = n("el-select"), f = n("Search"), b = n("el-icon"), V = n("el-input"), k = n("el-checkbox"), y = n("el-link"), C = n("BatchSearchDialog");
8
- return a(), i(p, null, [
7
+ const c = n("el-option"), u = n("el-select"), S = n("Search"), b = n("el-icon"), k = n("el-input"), V = n("el-checkbox"), y = n("el-link"), C = n("BatchSearchDialog");
8
+ return a(), p(i, null, [
9
9
  d("div", O, [
10
- s(V, {
10
+ s(k, {
11
11
  modelValue: e.putSearch,
12
12
  "onUpdate:modelValue": o[2] || (o[2] = (l) => e.putSearch = l),
13
13
  placeholder: e.placeholderText,
@@ -28,7 +28,7 @@ function T(e, o, I, U, W, $) {
28
28
  onClick: e.handleSearch
29
29
  }, {
30
30
  default: t(() => [
31
- s(f)
31
+ s(S)
32
32
  ]),
33
33
  _: 1
34
34
  }, 8, ["onClick"])
@@ -38,14 +38,14 @@ function T(e, o, I, U, W, $) {
38
38
  e.showSelect ? {
39
39
  name: "prepend",
40
40
  fn: t(() => [
41
- s(c, {
41
+ s(u, {
42
42
  modelValue: e.selectedSearchType,
43
43
  "onUpdate:modelValue": o[0] || (o[0] = (l) => e.selectedSearchType = l),
44
44
  size: "small",
45
45
  class: "custom-select"
46
46
  }, {
47
47
  default: t(() => [
48
- (a(!0), i(p, null, h(e.options, (l) => (a(), r(u, {
48
+ (a(!0), p(i, null, h(e.options, (l) => (a(), r(c, {
49
49
  key: l.label,
50
50
  label: l.label,
51
51
  value: l.value
@@ -58,7 +58,7 @@ function T(e, o, I, U, W, $) {
58
58
  } : {
59
59
  name: "prepend",
60
60
  fn: t(() => [
61
- s(c, {
61
+ s(u, {
62
62
  modelValue: e.selectedSearchType,
63
63
  "onUpdate:modelValue": o[1] || (o[1] = (l) => e.selectedSearchType = l),
64
64
  size: "small",
@@ -66,7 +66,7 @@ function T(e, o, I, U, W, $) {
66
66
  disabled: ""
67
67
  }, {
68
68
  default: t(() => [
69
- (a(!0), i(p, null, h(e.defaultOptions, (l) => (a(), r(u, {
69
+ (a(!0), p(i, null, h(e.defaultOptions, (l) => (a(), r(c, {
70
70
  key: l.label,
71
71
  label: l.label,
72
72
  value: l.value
@@ -79,14 +79,14 @@ function T(e, o, I, U, W, $) {
79
79
  }
80
80
  ]), 1032, ["modelValue", "placeholder", "onChange", "onKeyup", "onPaste", "onClear"]),
81
81
  d("div", F, [
82
- e.showWithinFilterCheckbox ? (a(), r(k, {
82
+ e.showWithinFilterCheckbox ? (a(), r(V, {
83
83
  key: 0,
84
84
  modelValue: e.localIsWithinFilterOptions,
85
85
  "onUpdate:modelValue": o[3] || (o[3] = (l) => e.localIsWithinFilterOptions = l),
86
86
  onChange: e.searchWithinFilterOptions
87
87
  }, {
88
88
  default: t(() => o[6] || (o[6] = [
89
- S(" 在筛选条件内查询 ")
89
+ f(" 在筛选条件内查询 ")
90
90
  ])),
91
91
  _: 1,
92
92
  __: [6]
@@ -97,7 +97,7 @@ function T(e, o, I, U, W, $) {
97
97
  onClick: o[4] || (o[4] = (l) => e.showBatchSearch = !0)
98
98
  }, {
99
99
  default: t(() => o[7] || (o[7] = [
100
- S(" 批量查询 ")
100
+ f(" 批量查询 ")
101
101
  ])),
102
102
  _: 1,
103
103
  __: [7]
@@ -116,7 +116,7 @@ function T(e, o, I, U, W, $) {
116
116
  }, null, 8, ["modelValue", "show-select", "is-batch-select-same-with-input", "input-options", "batch-options", "default-options", "onConfirm"])
117
117
  ], 64);
118
118
  }
119
- const D = /* @__PURE__ */ g(w, [["render", T], ["__scopeId", "data-v-c03e960b"]]);
119
+ const K = /* @__PURE__ */ g(w, [["render", T], ["__scopeId", "data-v-75f47f8c"], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/complex-search/complex-search.vue"]]);
120
120
  export {
121
- D as default
121
+ K as default
122
122
  };
@@ -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
  };