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,71 @@
1
- import f from "./left-condition-enum.vue.js";
1
+ import { defineComponent as c, ref as d, onMounted as y } from "vue";
2
+ import N from "../left-condition/left-condition.vue.js";
3
+ import { storage as s } from "../utils/storage.js";
4
+ const C = /* @__PURE__ */ c({
5
+ name: "YaheeLeftConditionEnum",
6
+ __name: "left-condition-enum",
7
+ props: {
8
+ selectList: {
9
+ type: Array,
10
+ default: () => []
11
+ },
12
+ countList: {
13
+ type: Array,
14
+ required: !1
15
+ },
16
+ enumEntity: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ filterKey: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ totalCount: {
25
+ type: Number,
26
+ required: !1
27
+ },
28
+ noNeedRefreshNumFilterName: {
29
+ type: String,
30
+ required: !1
31
+ },
32
+ allIsCheckbox: {
33
+ type: Boolean,
34
+ required: !1
35
+ },
36
+ allIsEmpty: {
37
+ type: Boolean,
38
+ required: !1
39
+ },
40
+ translateUserId: {
41
+ type: Boolean,
42
+ required: !1
43
+ },
44
+ initFilters: {
45
+ type: Function,
46
+ required: !0
47
+ }
48
+ },
49
+ emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
50
+ setup(a, { expose: u, emit: m }) {
51
+ u();
52
+ const e = a, i = m, t = d(e.selectList), f = (r) => {
53
+ i("filterChange", r);
54
+ }, p = () => {
55
+ i("setNoNeedRefreshNumFilterName", e.filterKey);
56
+ };
57
+ y(() => {
58
+ const r = `filter-key-${e.enumEntity}`, l = s.getWithExpireTime(r);
59
+ l ? t.value = l : (console.log(e.enumEntity), e.initFilters(e.enumEntity).then((n) => {
60
+ t.value = n.data, s.setWithExpireTime(r, t.value, 1200 * 1e3), console.log(n);
61
+ }).catch((n) => {
62
+ console.log(n);
63
+ }));
64
+ });
65
+ const o = { props: e, emit: i, options: t, filterChange: f, setNoNeedRefreshNumFilterName: p, BaseComponent: N };
66
+ return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
67
+ }
68
+ });
2
69
  export {
3
- f as default
70
+ C as default
4
71
  };
@@ -1,104 +1,90 @@
1
- import { defineComponent as h, computed as f, createElementBlock as n, openBlock as i, createElementVNode as t, normalizeClass as u, toDisplayString as s, createVNode as a, unref as o, createBlock as m, createCommentVNode as N, withCtx as g } from "vue";
2
- import c from "../packages/components/hooks/useImgPath.js";
3
- import { ElImage as k, ElIcon as v } from "element-plus";
4
- import "element-plus/theme-chalk/src/base.scss";
5
- import "element-plus/theme-chalk/src/image.scss";
6
- import "element-plus/theme-chalk/src/image-viewer.scss";
7
- import { Document as y } from "@element-plus/icons-vue";
8
- const x = { key: 0 }, T = {
1
+ import l from "./operation-log-content.vue2.js";
2
+ import { createElementBlock as o, openBlock as i, createElementVNode as n, normalizeClass as a, toDisplayString as s, createVNode as c, createBlock as d, createCommentVNode as f, withCtx as _ } from "vue";
3
+ import r from "../_virtual/_plugin-vue_export-helper.js";
4
+ const h = { key: 0 }, m = {
9
5
  key: 1,
10
6
  class: "d-flex ai-end"
11
- }, b = ["src"], w = ["href"], B = {
7
+ }, g = ["src"], u = ["href"], N = {
12
8
  key: 2,
13
9
  class: "d-flex ai-end"
14
- }, C = ["src"], W = ["href"], D = {
10
+ }, k = ["src"], v = ["href"], x = {
15
11
  key: 3,
16
12
  class: "d-flex ai-end"
17
- }, E = ["src"], H = ["href"], L = {
13
+ }, y = ["src"], E = ["href"], T = {
18
14
  key: 4,
19
15
  class: "d-flex ai-end"
20
- }, M = ["src"], z = ["href"], I = {
16
+ }, w = ["src"], C = ["href"], I = {
21
17
  key: 5,
22
18
  class: "d-flex ai-end"
23
- }, S = ["innerHTML"], V = ["innerHTML"], Q = /* @__PURE__ */ h({
24
- __name: "operation-log-content",
25
- props: {
26
- info: {
27
- type: Object,
28
- default: () => {
29
- }
30
- },
31
- id: {
32
- type: Number,
33
- default: 0
34
- },
35
- ifShowDocument: {
36
- type: Boolean,
37
- default: !0
38
- }
39
- },
40
- setup(e) {
41
- const l = e, d = f(() => l.info.Notes.replace(/\n/g, "<br/>")), r = f(() => l.info.Notes.includes("http") ? l.info.Title.split(".")[0] : l.info.Title);
42
- return (j, O) => (i(), n("div", null, [
43
- t("div", {
44
- class: u(["fontsize-15 paddingB10 text-color-primary", e.id == e.info.CreatedBy ? "d-flex" : ""])
45
- }, s(r.value), 3),
46
- e.info.Notes.includes(".jpg") && e.info.Notes.startsWith("http") ? (i(), n("div", x, [
47
- a(o(k), {
48
- class: "img",
49
- src: e.info.Notes,
50
- "preview-src-list": [e.info.Notes]
51
- }, null, 8, ["src", "preview-src-list"])
52
- ])) : e.info.Notes.includes(".word") && e.info.Notes.startsWith("http") ? (i(), n("div", T, [
53
- t("img", {
54
- src: o(c)("file-word.png")
55
- }, null, 8, b),
56
- t("a", {
57
- href: e.info.Notes,
58
- target: "_blank"
59
- }, s(e.info.Title), 9, w)
60
- ])) : e.info.Notes.includes(".pdf") && e.info.Notes.startsWith("http") ? (i(), n("div", B, [
61
- t("img", {
62
- src: o(c)("pdf.png")
63
- }, null, 8, C),
64
- t("a", {
65
- href: e.info.Notes,
66
- target: "_blank"
67
- }, s(e.info.Title), 9, W)
68
- ])) : e.info.Notes.includes(".ppt") && e.info.Notes.startsWith("http") ? (i(), n("div", D, [
69
- t("img", {
70
- src: o(c)("ppt.png")
71
- }, null, 8, E),
72
- t("a", {
73
- href: e.info.Notes,
74
- target: "_blank"
75
- }, s(e.info.Title), 9, H)
76
- ])) : e.info.Notes.includes(".xls") && e.info.Notes.startsWith("http") ? (i(), n("div", L, [
77
- t("img", {
78
- src: o(c)("excel.png")
79
- }, null, 8, M),
80
- t("a", {
81
- href: e.info.Notes,
82
- target: "_blank"
83
- }, s(e.info.Title), 9, z)
84
- ])) : e.info.Notes.includes("http") ? (i(), n("div", I, [
85
- e.ifShowDocument ? (i(), m(o(v), {
86
- key: 0,
87
- size: "40"
88
- }, {
89
- default: g(() => [
90
- a(o(y))
91
- ]),
92
- _: 1
93
- })) : N("", !0),
94
- t("div", { innerHTML: d.value }, null, 8, S)
95
- ])) : (i(), n("div", {
96
- key: 6,
97
- innerHTML: d.value
98
- }, null, 8, V))
99
- ]));
100
- }
101
- });
19
+ }, b = ["innerHTML"], B = ["innerHTML"];
20
+ function L(W, D, e, t, H, M) {
21
+ return i(), o("div", null, [
22
+ n(
23
+ "div",
24
+ {
25
+ class: a(["fontsize-15 paddingB10 text-color-primary", e.id == e.info.CreatedBy ? "d-flex" : ""])
26
+ },
27
+ s(t.title),
28
+ 3
29
+ /* TEXT, CLASS */
30
+ ),
31
+ e.info.Notes.includes(".jpg") && e.info.Notes.startsWith("http") ? (i(), o("div", h, [
32
+ c(t.ElImage, {
33
+ class: "img",
34
+ src: e.info.Notes,
35
+ "preview-src-list": [e.info.Notes]
36
+ }, null, 8, ["src", "preview-src-list"])
37
+ ])) : e.info.Notes.includes(".word") && e.info.Notes.startsWith("http") ? (i(), o("div", m, [
38
+ n("img", {
39
+ src: t.useImagePath("file-word.png")
40
+ }, null, 8, g),
41
+ n("a", {
42
+ href: e.info.Notes,
43
+ target: "_blank"
44
+ }, s(e.info.Title), 9, u)
45
+ ])) : e.info.Notes.includes(".pdf") && e.info.Notes.startsWith("http") ? (i(), o("div", N, [
46
+ n("img", {
47
+ src: t.useImagePath("pdf.png")
48
+ }, null, 8, k),
49
+ n("a", {
50
+ href: e.info.Notes,
51
+ target: "_blank"
52
+ }, s(e.info.Title), 9, v)
53
+ ])) : e.info.Notes.includes(".ppt") && e.info.Notes.startsWith("http") ? (i(), o("div", x, [
54
+ n("img", {
55
+ src: t.useImagePath("ppt.png")
56
+ }, null, 8, y),
57
+ n("a", {
58
+ href: e.info.Notes,
59
+ target: "_blank"
60
+ }, s(e.info.Title), 9, E)
61
+ ])) : e.info.Notes.includes(".xls") && e.info.Notes.startsWith("http") ? (i(), o("div", T, [
62
+ n("img", {
63
+ src: t.useImagePath("excel.png")
64
+ }, null, 8, w),
65
+ n("a", {
66
+ href: e.info.Notes,
67
+ target: "_blank"
68
+ }, s(e.info.Title), 9, C)
69
+ ])) : e.info.Notes.includes("http") ? (i(), o("div", I, [
70
+ e.ifShowDocument ? (i(), d(t.ElIcon, {
71
+ key: 0,
72
+ size: "40"
73
+ }, {
74
+ default: _(() => [
75
+ c(t.Document)
76
+ ]),
77
+ _: 1
78
+ /* STABLE */
79
+ })) : f("v-if", !0),
80
+ n("div", { innerHTML: t.notes }, null, 8, b)
81
+ ])) : (i(), o("div", {
82
+ key: 6,
83
+ innerHTML: t.notes
84
+ }, null, 8, B))
85
+ ]);
86
+ }
87
+ const S = /* @__PURE__ */ r(l, [["render", L], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/operation-log/operation-log-content.vue"]]);
102
88
  export {
103
- Q as default
89
+ S as default
104
90
  };
@@ -1,4 +1,41 @@
1
- import f from "./operation-log-content.vue.js";
1
+ import { defineComponent as p, computed as o } from "vue";
2
+ import m from "../packages/components/hooks/useImgPath.js";
3
+ import { ElImage as s, ElIcon as l } from "element-plus";
4
+ import "element-plus/theme-chalk/src/base.scss";
5
+ import "element-plus/theme-chalk/src/image.scss";
6
+ import "element-plus/theme-chalk/src/image-viewer.scss";
7
+ import { Document as a } from "@element-plus/icons-vue";
8
+ const h = /* @__PURE__ */ p({
9
+ __name: "operation-log-content",
10
+ props: {
11
+ info: {
12
+ type: Object,
13
+ default: () => {
14
+ }
15
+ },
16
+ id: {
17
+ type: Number,
18
+ default: 0
19
+ },
20
+ ifShowDocument: {
21
+ type: Boolean,
22
+ default: !0
23
+ }
24
+ },
25
+ setup(r, { expose: n }) {
26
+ n();
27
+ const e = r, u = o(() => e.info.Notes.replace(/\n/g, "<br/>")), i = o(() => e.info.Notes.includes("http") ? e.info.Title.split(".")[0] : e.info.Title), t = { props: e, notes: u, title: i, get useImagePath() {
28
+ return m;
29
+ }, get ElIcon() {
30
+ return l;
31
+ }, get ElImage() {
32
+ return s;
33
+ }, get Document() {
34
+ return a;
35
+ } };
36
+ return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
37
+ }
38
+ });
2
39
  export {
3
- f as default
40
+ h as default
4
41
  };
@@ -1,70 +1,59 @@
1
- import { defineComponent as u, createBlock as g, openBlock as h, unref as e, withCtx as t, createElementVNode as n, toDisplayString as l, createVNode as c, createTextVNode as r } from "vue";
2
- import { M2 as a } from "../utils/translate.js";
3
- import { ElDialog as V, ElButton as f } from "element-plus";
4
- import "element-plus/theme-chalk/src/base.scss";
5
- import "element-plus/theme-chalk/src/dialog.scss";
6
- import "element-plus/theme-chalk/src/overlay.scss";
7
- import "element-plus/theme-chalk/src/button.scss";
8
- const _ = ["href"], y = { class: "dialog-footer" }, E = /* @__PURE__ */ u({
9
- __name: "operation-log-dialog",
10
- props: {
11
- modelValue: {
12
- type: Boolean,
13
- default: !1
14
- },
15
- docInfo: {
16
- type: Object,
17
- default: () => {
18
- }
19
- }
20
- },
21
- emits: ["update:modelValue", "confirmUpload"],
22
- setup(o, { emit: m }) {
23
- const p = o, i = m, d = () => {
24
- i("update:modelValue", !1);
25
- }, s = () => {
26
- i("confirmUpload", p.docInfo);
27
- };
28
- return (k, x) => (h(), g(e(V), {
29
- "model-value": o.modelValue,
30
- width: "600px",
31
- title: e(a)("上传文件"),
32
- draggable: "",
33
- "close-on-click-modal": !1,
34
- onClose: d
35
- }, {
36
- footer: t(() => [
37
- n("div", y, [
38
- c(e(f), {
39
- type: "primary",
40
- plain: "",
41
- onClick: s
42
- }, {
43
- default: t(() => [
44
- r(l(e(a)("确认")), 1)
45
- ]),
46
- _: 1
47
- }),
48
- c(e(f), {
49
- type: "default",
50
- onClick: d
51
- }, {
52
- default: t(() => [
53
- r(l(e(a)("取消")), 1)
54
- ]),
55
- _: 1
56
- })
57
- ])
58
- ]),
59
- default: t(() => [
60
- n("a", {
61
- href: o.docInfo.fileUrl
62
- }, l(o.docInfo.fileName), 9, _)
63
- ]),
64
- _: 1
65
- }, 8, ["model-value", "title"]));
66
- }
67
- });
1
+ import n from "./operation-log-dialog.vue2.js";
2
+ import { createBlock as r, openBlock as d, withCtx as e, createElementVNode as a, toDisplayString as t, createVNode as i, createTextVNode as c } from "vue";
3
+ import f from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = ["href"], u = { class: "dialog-footer" };
5
+ function _(g, E, l, o, s, p) {
6
+ return d(), r(o.ElDialog, {
7
+ "model-value": l.modelValue,
8
+ width: "600px",
9
+ title: o.M2("上传文件"),
10
+ draggable: "",
11
+ "close-on-click-modal": !1,
12
+ onClose: o.closeDialog
13
+ }, {
14
+ footer: e(() => [
15
+ a("div", u, [
16
+ i(o.ElButton, {
17
+ type: "primary",
18
+ plain: "",
19
+ onClick: o.confirmUpload
20
+ }, {
21
+ default: e(() => [
22
+ c(
23
+ t(o.M2("确认")),
24
+ 1
25
+ /* TEXT */
26
+ )
27
+ ]),
28
+ _: 1
29
+ /* STABLE */
30
+ }),
31
+ i(o.ElButton, {
32
+ type: "default",
33
+ onClick: o.closeDialog
34
+ }, {
35
+ default: e(() => [
36
+ c(
37
+ t(o.M2("取消")),
38
+ 1
39
+ /* TEXT */
40
+ )
41
+ ]),
42
+ _: 1
43
+ /* STABLE */
44
+ })
45
+ ])
46
+ ]),
47
+ default: e(() => [
48
+ a("a", {
49
+ href: l.docInfo.fileUrl
50
+ }, t(l.docInfo.fileName), 9, m)
51
+ ]),
52
+ _: 1
53
+ /* STABLE */
54
+ }, 8, ["model-value", "title"]);
55
+ }
56
+ const x = /* @__PURE__ */ f(n, [["render", _], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/operation-log/operation-log-dialog.vue"]]);
68
57
  export {
69
- E as default
58
+ x as default
70
59
  };
@@ -1,4 +1,40 @@
1
- import f from "./operation-log-dialog.vue.js";
1
+ import { defineComponent as a } from "vue";
2
+ import { M2 as p } from "../utils/translate.js";
3
+ import { ElButton as i, ElDialog as m } from "element-plus";
4
+ import "element-plus/theme-chalk/src/base.scss";
5
+ import "element-plus/theme-chalk/src/dialog.scss";
6
+ import "element-plus/theme-chalk/src/overlay.scss";
7
+ import "element-plus/theme-chalk/src/button.scss";
8
+ const U = /* @__PURE__ */ a({
9
+ __name: "operation-log-dialog",
10
+ props: {
11
+ modelValue: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ docInfo: {
16
+ type: Object,
17
+ default: () => {
18
+ }
19
+ }
20
+ },
21
+ emits: ["update:modelValue", "confirmUpload"],
22
+ setup(r, { expose: l, emit: n }) {
23
+ l();
24
+ const e = r, o = n, t = { props: e, emits: o, closeDialog: () => {
25
+ o("update:modelValue", !1);
26
+ }, confirmUpload: () => {
27
+ o("confirmUpload", e.docInfo);
28
+ }, get M2() {
29
+ return p;
30
+ }, get ElDialog() {
31
+ return m;
32
+ }, get ElButton() {
33
+ return i;
34
+ } };
35
+ return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
36
+ }
37
+ });
2
38
  export {
3
- f as default
39
+ U as default
4
40
  };