yahee-components 0.0.72 → 0.0.73
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.
- package/es/annex-upload/annex-upload.vue.js +154 -51
- package/es/annex-upload/annex-upload.vue2.js +2 -119
- package/es/annex-upload/index.js +3 -3
- package/es/api/tool.js +1 -1
- package/es/border-wrap/border-wrap.vue.js +95 -64
- package/es/border-wrap/border-wrap.vue2.js +2 -46
- package/es/common-import/common-import.vue.js +4 -384
- package/es/common-import/common-import.vue2.js +438 -90
- package/es/complex-search/complex-search.vue.js +17 -17
- package/es/copy/copy.vue.js +55 -37
- package/es/copy/copy.vue2.js +2 -34
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +213 -114
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
- package/es/drop-down-condition/drop-down-condition.vue.js +215 -115
- package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
- package/es/echart-gauge/echart-gauge.vue.js +140 -12
- package/es/echart-gauge/echart-gauge.vue2.js +2 -147
- package/es/echart-gauge/index.js +3 -3
- package/es/image-upload/image-upload.vue.js +170 -109
- package/es/image-upload/image-upload.vue2.js +2 -91
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +38 -17
- package/es/input/input.vue2.js +2 -33
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +91 -32
- package/es/left-condition/left-condition-sub.vue2.js +2 -76
- package/es/left-condition/left-condition.vue.js +218 -70
- package/es/left-condition/left-condition.vue2.js +2 -160
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +49 -20
- package/es/left-condition-enum/left-condition-enum.vue2.js +2 -40
- package/es/operation-log/operation-log-content.vue.js +92 -71
- package/es/operation-log/operation-log-content.vue2.js +2 -39
- package/es/operation-log/operation-log-dialog.vue.js +67 -45
- package/es/operation-log/operation-log-dialog.vue2.js +2 -38
- package/es/operation-log/operation-log-form.vue.js +183 -108
- package/es/operation-log/operation-log-form.vue2.js +2 -104
- package/es/operation-log/operation-log.vue.js +228 -119
- package/es/operation-log/operation-log.vue2.js +2 -135
- package/es/packages/components/api/log-server.js +6 -6
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useEcharts.js +19 -19
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/scale-screen/index.js +4 -4
- package/es/scale-screen/scale-screen.vue.js +126 -19
- package/es/scale-screen/scale-screen.vue2.js +2 -125
- package/es/utils/translate.js +18 -18
- package/es/yahee-components.css +1 -1
- package/package.json +1 -1
|
@@ -1,93 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import p from "../packages/components/hooks/useImg.js";
|
|
3
|
-
import { useIsImg as _, useUpload as b } from "../packages/components/hooks/useUpload.js";
|
|
4
|
-
import { vLoading as f, ElMessage as u, ElImage as q, ElIcon as C, ElDialog as U, ElUpload as w } from "element-plus";
|
|
5
|
-
import "element-plus/theme-chalk/src/base.scss";
|
|
6
|
-
import "element-plus/theme-chalk/src/upload.scss";
|
|
7
|
-
import "element-plus/theme-chalk/src/progress.scss";
|
|
8
|
-
import "element-plus/theme-chalk/src/dialog.scss";
|
|
9
|
-
import "element-plus/theme-chalk/src/overlay.scss";
|
|
10
|
-
import "element-plus/theme-chalk/src/image.scss";
|
|
11
|
-
import "element-plus/theme-chalk/src/image-viewer.scss";
|
|
12
|
-
import "element-plus/theme-chalk/src/badge.scss";
|
|
13
|
-
import "element-plus/theme-chalk/src/message.scss";
|
|
14
|
-
import { CircleCloseFilled as x, Plus as F, Delete as V } from "@element-plus/icons-vue";
|
|
15
|
-
const Y = /* @__PURE__ */ y({
|
|
16
|
-
name: "YaheeImageUpload",
|
|
17
|
-
__name: "image-upload",
|
|
18
|
-
props: {
|
|
19
|
-
modelValue: { type: Object, required: !0, default: () => ({ index: 0, fileId: "", fileName: "" }) },
|
|
20
|
-
showDelete: { type: Boolean, required: !1, default: !0 },
|
|
21
|
-
zoom: { type: Number, required: !1, default: 1 },
|
|
22
|
-
imgSize: { type: Object, required: !1, default: () => ({ width: 80, height: 80 }) },
|
|
23
|
-
limitImgSize: { type: Boolean, required: !1, default: !0 },
|
|
24
|
-
limitFileSize: { type: Boolean, required: !1, default: !0 },
|
|
25
|
-
fileSize: { type: Number, required: !1, default: 50 },
|
|
26
|
-
fileSizeUnit: { type: String, required: !1, default: "kb" },
|
|
27
|
-
fileType: { type: String, required: !1, default: "105" }
|
|
28
|
-
},
|
|
29
|
-
emits: ["update:modelValue", "change"],
|
|
30
|
-
setup(g, { expose: c, emit: I }) {
|
|
31
|
-
c();
|
|
32
|
-
const t = g, r = I, l = o(!1), z = (e) => {
|
|
33
|
-
if (!_(e.raw)) {
|
|
34
|
-
u.error("只能选择图片格式文件!");
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
if (t.limitFileSize) {
|
|
38
|
-
let i = e.size;
|
|
39
|
-
if (t.fileSizeUnit.toLowerCase() == "kb" ? i = e.size / 1024 : i = e.size / 1024 / 1024, !(i < t.fileSize)) {
|
|
40
|
-
u.error(`图片大小不能超过 ${t.fileSize}${t.fileSizeUnit}!`);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
l.value = !0, b(t.fileType, e.raw).then((i) => {
|
|
45
|
-
const m = {
|
|
46
|
-
fileName: e.name,
|
|
47
|
-
fileId: i[0],
|
|
48
|
-
index: 0
|
|
49
|
-
};
|
|
50
|
-
r("update:modelValue", m), r("change", {
|
|
51
|
-
fileName: e.name,
|
|
52
|
-
fileId: i[0],
|
|
53
|
-
index: 0
|
|
54
|
-
}), l.value = !1;
|
|
55
|
-
}).catch((i) => {
|
|
56
|
-
u.error("update image error", i), l.value = !1;
|
|
57
|
-
});
|
|
58
|
-
}, S = () => {
|
|
59
|
-
r("update:modelValue", "");
|
|
60
|
-
}, n = o(""), s = o(!1), h = () => {
|
|
61
|
-
var e;
|
|
62
|
-
n.value = p((e = t.modelValue) == null ? void 0 : e.fileId, !0), s.value = !0;
|
|
63
|
-
};
|
|
64
|
-
v(() => {
|
|
65
|
-
var a;
|
|
66
|
-
const e = (a = E()) == null ? void 0 : a.appContext.app;
|
|
67
|
-
e && e.directive("loading", f);
|
|
68
|
-
});
|
|
69
|
-
const d = { props: t, emits: r, loading: l, handleUploadChange: z, handleFileRemove: S, dialogImageUrl: n, dialogVisible: s, handleFilePreview: h, get useImage() {
|
|
70
|
-
return p;
|
|
71
|
-
}, get ElUpload() {
|
|
72
|
-
return w;
|
|
73
|
-
}, get ElDialog() {
|
|
74
|
-
return U;
|
|
75
|
-
}, get ElIcon() {
|
|
76
|
-
return C;
|
|
77
|
-
}, get ElImage() {
|
|
78
|
-
return q;
|
|
79
|
-
}, get vLoading() {
|
|
80
|
-
return f;
|
|
81
|
-
}, get Delete() {
|
|
82
|
-
return V;
|
|
83
|
-
}, get Plus() {
|
|
84
|
-
return F;
|
|
85
|
-
}, get CircleCloseFilled() {
|
|
86
|
-
return x;
|
|
87
|
-
} };
|
|
88
|
-
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
1
|
+
import f from "./image-upload.vue.js";
|
|
91
2
|
export {
|
|
92
|
-
|
|
3
|
+
f as default
|
|
93
4
|
};
|
package/es/image-upload/index.js
CHANGED
package/es/input/index.js
CHANGED
package/es/input/input.vue.js
CHANGED
|
@@ -1,19 +1,40 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { defineComponent as i, computed as r, ref as f, createElementBlock as c, openBlock as V, createVNode as _, unref as b } from "vue";
|
|
2
|
+
import { ElInput as v } from "element-plus";
|
|
3
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
+
import "element-plus/theme-chalk/src/input.scss";
|
|
5
|
+
const x = { class: "yahee-input" }, E = /* @__PURE__ */ i({
|
|
6
|
+
name: "YaheeInput",
|
|
7
|
+
__name: "input",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { default: "" },
|
|
10
|
+
disabled: { type: Boolean, default: !1 }
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(u, { expose: n, emit: d }) {
|
|
14
|
+
const p = d, t = u, o = r({
|
|
15
|
+
get: () => t.modelValue,
|
|
16
|
+
set: (e) => {
|
|
17
|
+
p("update:modelValue", e);
|
|
18
|
+
}
|
|
19
|
+
}), l = f();
|
|
20
|
+
function s() {
|
|
21
|
+
var e;
|
|
22
|
+
(e = l.value) == null || e.focus();
|
|
23
|
+
}
|
|
24
|
+
return n({
|
|
25
|
+
focus: s
|
|
26
|
+
}), (e, a) => (V(), c("div", x, [
|
|
27
|
+
_(b(v), {
|
|
28
|
+
ref_key: "inputRef",
|
|
29
|
+
ref: l,
|
|
30
|
+
modelValue: o.value,
|
|
31
|
+
"onUpdate:modelValue": a[0] || (a[0] = (m) => o.value = m),
|
|
32
|
+
type: "text",
|
|
33
|
+
disabled: t.disabled
|
|
34
|
+
}, null, 8, ["modelValue", "disabled"])
|
|
35
|
+
]));
|
|
36
|
+
}
|
|
37
|
+
});
|
|
17
38
|
export {
|
|
18
|
-
|
|
39
|
+
E as default
|
|
19
40
|
};
|
package/es/input/input.vue2.js
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ElInput as f } from "element-plus";
|
|
3
|
-
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
-
import "element-plus/theme-chalk/src/input.scss";
|
|
5
|
-
const g = /* @__PURE__ */ i({
|
|
6
|
-
name: "YaheeInput",
|
|
7
|
-
__name: "input",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: String, required: !0, default: "" },
|
|
10
|
-
disabled: { type: Boolean, required: !1, default: !1 }
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:modelValue"],
|
|
13
|
-
setup(p, { expose: a, emit: s }) {
|
|
14
|
-
const t = s, u = p, l = m({
|
|
15
|
-
get: () => u.modelValue,
|
|
16
|
-
set: (e) => {
|
|
17
|
-
t("update:modelValue", e);
|
|
18
|
-
}
|
|
19
|
-
}), o = d();
|
|
20
|
-
function r() {
|
|
21
|
-
var e;
|
|
22
|
-
(e = o.value) == null || e.focus();
|
|
23
|
-
}
|
|
24
|
-
a({
|
|
25
|
-
focus: r
|
|
26
|
-
});
|
|
27
|
-
const n = { emit: t, props: u, state: l, inputRef: o, focus: r, get ElInput() {
|
|
28
|
-
return f;
|
|
29
|
-
} };
|
|
30
|
-
return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
1
|
+
import f from "./input.vue.js";
|
|
33
2
|
export {
|
|
34
|
-
|
|
3
|
+
f as default
|
|
35
4
|
};
|
|
@@ -1,36 +1,95 @@
|
|
|
1
|
-
import s from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as A, toRefs as E, ref as p, watch as F, createElementBlock as s, openBlock as u, Fragment as w, createElementVNode as h, createCommentVNode as r, normalizeStyle as P, unref as t, createTextVNode as U, withModifiers as T, toDisplayString as k, nextTick as v } from "vue";
|
|
2
|
+
import N from "../_virtual/lodash.js";
|
|
3
|
+
import { stylesUtils as z } from "../utils/style.js";
|
|
4
|
+
import { translateEmployeeName as D, M2 as j } from "../utils/translate.js";
|
|
5
|
+
const q = ["checked"], G = { key: 1 }, H = {
|
|
5
6
|
key: 0,
|
|
6
7
|
class: "num"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
8
|
+
}, W = /* @__PURE__ */ A({
|
|
9
|
+
__name: "left-condition-sub",
|
|
10
|
+
props: {
|
|
11
|
+
multiSelectList: { default: () => [] },
|
|
12
|
+
countList: {},
|
|
13
|
+
item: { default: () => ({ label: "", value: "" }) },
|
|
14
|
+
hasNum: { type: Boolean, default: !1 },
|
|
15
|
+
allIsCheckbox: { type: Boolean, default: !1 },
|
|
16
|
+
translateUserId: { type: Boolean, default: !1 }
|
|
17
|
+
},
|
|
18
|
+
emits: [
|
|
19
|
+
"resetAllCheckedValue",
|
|
20
|
+
"setSelectedStatusMap",
|
|
21
|
+
"resetRange",
|
|
22
|
+
"resetIsSelectAll",
|
|
23
|
+
"notifyParent",
|
|
24
|
+
"setNoNeedRefreshNumFilterName"
|
|
25
|
+
],
|
|
26
|
+
setup(y, { expose: b, emit: C }) {
|
|
27
|
+
const g = y, { item: l, hasNum: S, multiSelectList: V } = E(g), n = C, a = p(!1), c = p(!1);
|
|
28
|
+
function x(e) {
|
|
29
|
+
n("setNoNeedRefreshNumFilterName"), n("resetRange"), a.value = e.target.checked, f(a.value), i();
|
|
30
|
+
}
|
|
31
|
+
function i() {
|
|
32
|
+
v(() => {
|
|
33
|
+
n("notifyParent");
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function f(e) {
|
|
37
|
+
c.value = e;
|
|
38
|
+
}
|
|
39
|
+
function m(e) {
|
|
40
|
+
a.value = e;
|
|
41
|
+
}
|
|
42
|
+
function R() {
|
|
43
|
+
a.value = !1, c.value = !1;
|
|
44
|
+
}
|
|
45
|
+
function _() {
|
|
46
|
+
return l.value;
|
|
47
|
+
}
|
|
48
|
+
function B() {
|
|
49
|
+
n("resetAllCheckedValue");
|
|
50
|
+
}
|
|
51
|
+
function I() {
|
|
52
|
+
n("setNoNeedRefreshNumFilterName"), n("resetRange"), B(), v(() => {
|
|
53
|
+
m(!0);
|
|
54
|
+
}), i();
|
|
55
|
+
}
|
|
56
|
+
function L(e) {
|
|
57
|
+
return N.includes(V.value, e.value);
|
|
58
|
+
}
|
|
59
|
+
return F(a, (e) => {
|
|
60
|
+
console.log("left condition subview watch value", e), n("setSelectedStatusMap", { ...l.value, selected: e });
|
|
61
|
+
}), b({
|
|
62
|
+
resetValue: R,
|
|
63
|
+
getValue: _,
|
|
64
|
+
setCurrentValue: m,
|
|
65
|
+
setCheckboxValue: f
|
|
66
|
+
}), (e, o) => {
|
|
67
|
+
var d;
|
|
68
|
+
return u(), s(w, null, [
|
|
69
|
+
h("span", {
|
|
70
|
+
class: "el-button custom-button el-button--small",
|
|
71
|
+
style: P(t(z).getBackgroundColor(a.value)),
|
|
72
|
+
onClick: I
|
|
73
|
+
}, [
|
|
74
|
+
e.allIsCheckbox || L(t(l)) ? (u(), s("input", {
|
|
75
|
+
key: 0,
|
|
76
|
+
checked: c.value,
|
|
77
|
+
class: "el-checkbox__input",
|
|
78
|
+
type: "checkbox",
|
|
79
|
+
onChange: x,
|
|
80
|
+
onClick: o[0] || (o[0] = T(() => {
|
|
81
|
+
}, ["stop"]))
|
|
82
|
+
}, null, 40, q)) : r("", !0),
|
|
83
|
+
U(" " + k(e.translateUserId ? t(D)(t(l).value, t(l).label) : t(j)(t(l).label)) + " ", 1),
|
|
84
|
+
t(N).isEmpty(e.countList) ? r("", !0) : (u(), s("span", G, " (" + k((d = e.countList.filter((M) => M.value == t(l).value)[0]) == null ? void 0 : d.count) + ") ", 1))
|
|
85
|
+
], 4),
|
|
86
|
+
t(S) ? (u(), s("span", H, o[1] || (o[1] = [
|
|
87
|
+
h("em", null, null, -1)
|
|
88
|
+
]))) : r("", !0)
|
|
89
|
+
], 64);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
});
|
|
34
93
|
export {
|
|
35
|
-
|
|
94
|
+
W as default
|
|
36
95
|
};
|
|
@@ -1,78 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import y from "../_virtual/lodash.js";
|
|
3
|
-
import { stylesUtils as V } from "../utils/style.js";
|
|
4
|
-
import { translateEmployeeName as q, M2 as A } from "../utils/translate.js";
|
|
5
|
-
const I = /* @__PURE__ */ C({
|
|
6
|
-
__name: "left-condition-sub",
|
|
7
|
-
props: {
|
|
8
|
-
multiSelectList: { type: Array, required: !0, default: () => [] },
|
|
9
|
-
countList: { type: Array, required: !1 },
|
|
10
|
-
item: { type: Object, required: !0, default: () => ({ label: "", value: "" }) },
|
|
11
|
-
hasNum: { type: Boolean, required: !0, default: !1 },
|
|
12
|
-
allIsCheckbox: { type: Boolean, required: !1, default: !1 },
|
|
13
|
-
translateUserId: { type: Boolean, required: !0, default: !1 }
|
|
14
|
-
},
|
|
15
|
-
emits: [
|
|
16
|
-
"resetAllCheckedValue",
|
|
17
|
-
"setSelectedStatusMap",
|
|
18
|
-
"resetRange",
|
|
19
|
-
"resetIsSelectAll",
|
|
20
|
-
"notifyParent",
|
|
21
|
-
"setNoNeedRefreshNumFilterName"
|
|
22
|
-
],
|
|
23
|
-
setup(N, { expose: v, emit: _ }) {
|
|
24
|
-
const o = N, { item: r, hasNum: g, multiSelectList: i } = x(o), t = _, l = p(!1), a = p(!1);
|
|
25
|
-
function b(e) {
|
|
26
|
-
t("setNoNeedRefreshNumFilterName"), t("resetRange"), l.value = e.target.checked, s(l.value), u();
|
|
27
|
-
}
|
|
28
|
-
function u() {
|
|
29
|
-
h(() => {
|
|
30
|
-
t("notifyParent");
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function s(e) {
|
|
34
|
-
a.value = e;
|
|
35
|
-
}
|
|
36
|
-
function n(e) {
|
|
37
|
-
l.value = e;
|
|
38
|
-
}
|
|
39
|
-
function c() {
|
|
40
|
-
l.value = !1, a.value = !1;
|
|
41
|
-
}
|
|
42
|
-
function f() {
|
|
43
|
-
return r.value;
|
|
44
|
-
}
|
|
45
|
-
function m() {
|
|
46
|
-
t("resetAllCheckedValue");
|
|
47
|
-
}
|
|
48
|
-
function k() {
|
|
49
|
-
t("setNoNeedRefreshNumFilterName"), t("resetRange"), m(), h(() => {
|
|
50
|
-
n(!0);
|
|
51
|
-
}), u();
|
|
52
|
-
}
|
|
53
|
-
function S(e) {
|
|
54
|
-
return y.includes(i.value, e.value);
|
|
55
|
-
}
|
|
56
|
-
R(l, (e) => {
|
|
57
|
-
console.log("left condition subview watch value", e), t("setSelectedStatusMap", { ...r.value, selected: e });
|
|
58
|
-
}), v({
|
|
59
|
-
resetValue: c,
|
|
60
|
-
getValue: f,
|
|
61
|
-
setCurrentValue: n,
|
|
62
|
-
setCheckboxValue: s
|
|
63
|
-
});
|
|
64
|
-
const d = { props: o, item: r, hasNum: g, multiSelectList: i, emit: t, value: l, checkboxValue: a, checkboxChange: b, notifyParent: u, setCheckboxValue: s, setCurrentValue: n, resetValue: c, getValue: f, resetAllCheckedValue: m, onClick: k, isMultiSelect: S, get _() {
|
|
65
|
-
return y;
|
|
66
|
-
}, get stylesUtils() {
|
|
67
|
-
return V;
|
|
68
|
-
}, get M2() {
|
|
69
|
-
return A;
|
|
70
|
-
}, get translateEmployeeName() {
|
|
71
|
-
return q;
|
|
72
|
-
} };
|
|
73
|
-
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
1
|
+
import f from "./left-condition-sub.vue.js";
|
|
76
2
|
export {
|
|
77
|
-
|
|
3
|
+
f as default
|
|
78
4
|
};
|