@das-fed/ui 6.4.0-hot.23 → 6.4.0-hot.25
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/package.json +7 -7
- package/packages/business-components/device-panel/index.js +37397 -37395
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/export-button/index.js +60 -60
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/export-button/style.css +1 -1
- package/packages/business-components/import-button/hooks/file.d.ts +1 -0
- package/packages/business-components/import-button/hooks/useImport.d.ts +1 -0
- package/packages/business-components/import-button/index.js +239 -235
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/model-table-dialog/index.js +37 -37
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/style.css +1 -1
- package/packages/business-components/model-table-dialog/style.css.gz +0 -0
- package/packages/business-components/process-configuration/index.js +176 -176
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/style.css +1 -1
- package/packages/business-components/process-configuration/style.css.gz +0 -0
- package/packages/business-components/process-log/index.js +252 -252
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1319 -1322
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/urgentMonitorPanel.vue.d.ts +8 -3
- package/packages/business-components/urgent-panel/style.css +1 -1
- package/packages/business-components/urgent-panel/style.css.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +3 -3
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/style.css +1 -1
- package/packages/business-components/user-org-dialog/style.css.gz +0 -0
- package/packages/business-components/video-dialog/index.js +301 -273
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/calendar/index.js +56 -56
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/color-picker/index.js +41 -41
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +444 -444
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +2299 -2293
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +26 -25
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/input/index.js +73 -73
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/loading/index.js +66 -65
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/index.js +358 -355
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/src/hooks/use-map.d.ts +1 -2
- package/packages/components/map/style.css +1 -1
- package/packages/components/message/index.js +20 -19
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/index.js +22 -21
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/progress/index.js +80 -80
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/style.css +1 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/select/index.js +102 -102
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/spin/index.js +31 -30
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/index.js +2419 -2418
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tooltip/index.js +23 -22
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.js +1428 -1427
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +9 -11
- package/packages/components/tree-select/index.js +274 -274
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.js +64 -64
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +4 -12
|
Binary file
|
|
@@ -7,8 +7,7 @@ export declare const useMap: (props: MapProps, emits: MapEmits) => {
|
|
|
7
7
|
innerInput: import("vue").Ref<string, string>;
|
|
8
8
|
getLocationByInputSearch: (address: string, cb: any) => void;
|
|
9
9
|
handleSelectAddress: (item: any) => void;
|
|
10
|
-
getLocationParse: (
|
|
11
|
-
searchResultList: import("vue").Ref<any[], any[]>;
|
|
10
|
+
getLocationParse: () => void;
|
|
12
11
|
mapLoading: import("vue").Ref<boolean, boolean>;
|
|
13
12
|
$autocomplete: import("vue").Ref<any, any>;
|
|
14
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-map[data-v-f5fbb2a3]{position:relative}.das-map .search-input[data-v-f5fbb2a3]{position:absolute;top:20px;left:20px;width:400px;z-index:999}.das-map #map[data-v-f5fbb2a3]{width:100%;height:100%}.das-map[data-v-08a6e322]{position:relative}.das-map .search-input[data-v-08a6e322]{position:absolute;top:20px;left:20px;width:400px;z-index:999}.das-map #map[data-v-08a6e322]{width:100%;height:100%}.das-map[data-v-
|
|
1
|
+
.das-map[data-v-f5fbb2a3]{position:relative}.das-map .search-input[data-v-f5fbb2a3]{position:absolute;top:20px;left:20px;width:400px;z-index:999}.das-map #map[data-v-f5fbb2a3]{width:100%;height:100%}.das-map[data-v-08a6e322]{position:relative}.das-map .search-input[data-v-08a6e322]{position:absolute;top:20px;left:20px;width:400px;z-index:999}.das-map #map[data-v-08a6e322]{width:100%;height:100%}.das-map[data-v-d80b6b94]{position:relative}.das-map .search-input[data-v-d80b6b94]{position:absolute;top:20px;left:20px;width:400px;z-index:999}.das-map #map[data-v-d80b6b94]{width:100%;height:100%}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/message/style.css';
|
|
2
2
|
import { ElMessage as n } from "element-plus";
|
|
3
3
|
import { DasIconTongguo as f } from "@das-fed/ui/packages/icons/tongguo/index";
|
|
4
|
-
import { DasIconJinggao as
|
|
4
|
+
import { DasIconJinggao as i } from "@das-fed/ui/packages/icons/jinggao/index";
|
|
5
5
|
import { DasIconTongzhi as y } from "@das-fed/ui/packages/icons/tongzhi/index";
|
|
6
6
|
import { h as t } from "vue";
|
|
7
7
|
import "element-plus/es/components/message/style/css";
|
|
8
8
|
import { setThemeRule as F } from "@das-fed/web/packages/theme/index";
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
import { t as w } from "@das-fed/web/packages/i18n/index";
|
|
10
|
+
const x = (e = 24) => {
|
|
11
|
+
b("das-ui-message-container", [
|
|
11
12
|
{
|
|
12
13
|
styleName: "transform",
|
|
13
14
|
style: `translateY(${e}px)`
|
|
14
15
|
}
|
|
15
16
|
]);
|
|
16
|
-
},
|
|
17
|
+
}, b = (e, s) => {
|
|
17
18
|
const o = document.getElementById(e);
|
|
18
19
|
if (!o) {
|
|
19
20
|
const a = document.createElement("div");
|
|
@@ -22,37 +23,37 @@ const w = (e = 24) => {
|
|
|
22
23
|
}
|
|
23
24
|
for (const a of s)
|
|
24
25
|
o.style[a.styleName] = a.style;
|
|
25
|
-
},
|
|
26
|
+
}, M = (e) => {
|
|
26
27
|
let s = "";
|
|
27
28
|
return e == "success" && (s = t(f, {
|
|
28
29
|
iconColor: "#1BA854",
|
|
29
30
|
customSize: "16"
|
|
30
|
-
})), e == "warning" && (s = t(
|
|
31
|
+
})), e == "warning" && (s = t(i, {
|
|
31
32
|
iconColor: "#FF991C",
|
|
32
33
|
customSize: "16"
|
|
33
34
|
})), e == "info" && (s = t(y, {
|
|
34
35
|
iconColor: "#0E5FD8",
|
|
35
36
|
customSize: "16"
|
|
36
|
-
})), e == "error" && (s = t(
|
|
37
|
+
})), e == "error" && (s = t(i, {
|
|
37
38
|
iconColor: "#FB2323",
|
|
38
39
|
customSize: "16"
|
|
39
40
|
})), s;
|
|
40
|
-
},
|
|
41
|
+
}, h = (e) => {
|
|
41
42
|
let s = "";
|
|
42
43
|
return e == "success" && (s = " el-message--success"), e == "warning" && (s = " el-message--warning"), e == "info" && (s = " el-message--info"), e == "error" && (s = " el-message--error"), s;
|
|
43
44
|
};
|
|
44
|
-
|
|
45
|
-
let
|
|
45
|
+
x();
|
|
46
|
+
let g = {
|
|
46
47
|
close() {
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
|
-
const
|
|
50
|
+
const C = {
|
|
50
51
|
offset: 16,
|
|
51
52
|
// 默认3s
|
|
52
53
|
duration: 3e3
|
|
53
54
|
}, r = (e) => {
|
|
54
55
|
var s;
|
|
55
|
-
return r.proxyStatus ? r.proxyMessage(e) : (typeof e == "string" && (e = { message: e }), e = { ...
|
|
56
|
+
return r.proxyStatus ? r.proxyMessage(e) : (typeof e == "string" && (e = { message: e }), e = { ...C, ...e }, e.customClass = ((s = e.customClass) == null ? void 0 : s.concat(" das-ui-message")) || "das-ui-message", e.appendTo || (e.appendTo = "#das-ui-message-container"), e.icon || (e.icon = M(e.type), e.customClass = e.customClass.concat(h(e.type))), g = n(e), g);
|
|
56
57
|
};
|
|
57
58
|
r.error = (e) => (typeof e == "string" && (e = { message: e }), e.type = "error", r(e));
|
|
58
59
|
r.success = (e) => (typeof e == "string" && (e = { message: e }), e.type = "success", r(e));
|
|
@@ -73,7 +74,7 @@ window.addEventListener("message", (e) => {
|
|
|
73
74
|
s === a.showProxyMessage && r(o);
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
|
-
const
|
|
77
|
+
const D = {
|
|
77
78
|
"--das-ui-message-font-size-sm": "12px",
|
|
78
79
|
"--das-ui-message-font-size-md": "14px",
|
|
79
80
|
"--das-ui-message-font-size-lg": "16px",
|
|
@@ -96,11 +97,11 @@ const C = {
|
|
|
96
97
|
"--das-ui-message-error-color": "#FB2323",
|
|
97
98
|
"--das-ui-message-error-bd-color": "##FFADB6"
|
|
98
99
|
};
|
|
99
|
-
F(
|
|
100
|
-
const
|
|
101
|
-
window.DasMessage =
|
|
102
|
-
const
|
|
100
|
+
F(D);
|
|
101
|
+
const S = r;
|
|
102
|
+
window.DasMessage = S;
|
|
103
|
+
const T = { name: `Message ${w("消息提示")}` };
|
|
103
104
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
S as DasMessage,
|
|
106
|
+
T as default
|
|
106
107
|
};
|
|
Binary file
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/notification/style.css';
|
|
2
|
-
import { notification as
|
|
2
|
+
import { notification as t } from "ant-design-vue";
|
|
3
3
|
import "ant-design-vue/es/notification/style/css";
|
|
4
4
|
import { setThemeRule as o } from "@das-fed/web/packages/theme/index";
|
|
5
|
-
|
|
5
|
+
import { t as c } from "@das-fed/web/packages/i18n/index";
|
|
6
|
+
const a = () => {
|
|
6
7
|
let i = document.getElementById("das-ui-notification-container");
|
|
7
8
|
if (!i) {
|
|
8
9
|
i = document.createElement("div"), i.id = "das-ui-notification-container", i.style.position = "relative", i.style.width = "100%", i.style.zIndex = "999999", document.body.appendChild(i);
|
|
@@ -10,44 +11,44 @@ const t = () => {
|
|
|
10
11
|
}
|
|
11
12
|
return i;
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
getContainer:
|
|
14
|
+
a();
|
|
15
|
+
t.config({
|
|
16
|
+
getContainer: a,
|
|
16
17
|
maxCount: 3
|
|
17
18
|
});
|
|
18
|
-
const
|
|
19
|
+
const d = {
|
|
19
20
|
success: (i) => {
|
|
20
21
|
var n;
|
|
21
|
-
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-success")) || "das-ui-notification das-ui-notification-success",
|
|
22
|
+
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-success")) || "das-ui-notification das-ui-notification-success", t.success(i);
|
|
22
23
|
},
|
|
23
24
|
error: (i) => {
|
|
24
25
|
var n;
|
|
25
|
-
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-error")) || "das-ui-notification das-ui-notification-error",
|
|
26
|
+
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-error")) || "das-ui-notification das-ui-notification-error", t.error(i);
|
|
26
27
|
},
|
|
27
28
|
info: (i) => {
|
|
28
29
|
var n;
|
|
29
|
-
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-info")) || "das-ui-notification das-ui-notification-info",
|
|
30
|
+
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-info")) || "das-ui-notification das-ui-notification-info", t.info(i);
|
|
30
31
|
},
|
|
31
32
|
warning: (i) => {
|
|
32
33
|
var n;
|
|
33
|
-
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-warning")) || "das-ui-notification das-ui-notification-warning",
|
|
34
|
+
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-warning")) || "das-ui-notification das-ui-notification-warning", t.warning(i);
|
|
34
35
|
},
|
|
35
36
|
warn: (i) => {
|
|
36
37
|
var n;
|
|
37
|
-
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-warn")) || "das-ui-notification das-ui-notification-warn",
|
|
38
|
+
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-warn")) || "das-ui-notification das-ui-notification-warn", t.warn(i);
|
|
38
39
|
},
|
|
39
40
|
open: (i) => {
|
|
40
41
|
var n;
|
|
41
|
-
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-open")) || "das-ui-notification das-ui-notification-open",
|
|
42
|
+
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-open")) || "das-ui-notification das-ui-notification-open", t.open(i);
|
|
42
43
|
},
|
|
43
44
|
primary(i) {
|
|
44
45
|
var n;
|
|
45
|
-
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-primary")) || "das-ui-notification das-ui-notification-primary",
|
|
46
|
+
return i.class = ((n = i.class) == null ? void 0 : n.concat(" das-ui-notification das-ui-notification-primary")) || "das-ui-notification das-ui-notification-primary", t.open(i);
|
|
46
47
|
},
|
|
47
|
-
config: (i) =>
|
|
48
|
-
destroy: () =>
|
|
49
|
-
close: (i) =>
|
|
50
|
-
},
|
|
48
|
+
config: (i) => t.config(i),
|
|
49
|
+
destroy: () => t.destroy(),
|
|
50
|
+
close: (i) => t.close(i)
|
|
51
|
+
}, s = {
|
|
51
52
|
"--das-ui-notification-font-size-sm": "12px",
|
|
52
53
|
"--das-ui-notification-font-size-md": "14px",
|
|
53
54
|
"--das-ui-notification-font-size-lg": "16px",
|
|
@@ -56,9 +57,9 @@ const f = {
|
|
|
56
57
|
"--das-ui-notification-close-hover-color": "#85b8ff",
|
|
57
58
|
"--das-ui-notification-close-color": "#666666;"
|
|
58
59
|
};
|
|
59
|
-
o(
|
|
60
|
-
const
|
|
60
|
+
o(s);
|
|
61
|
+
const l = { name: `Notification ${c("通知")}` };
|
|
61
62
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
63
|
+
d as DasNotification,
|
|
64
|
+
l as default
|
|
64
65
|
};
|
|
Binary file
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/progress/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { ElIcon as
|
|
2
|
+
import { withInstall as S } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { ElIcon as W, ElProgress as D } from "element-plus/es";
|
|
4
4
|
import "element-plus/es/components/base/style/css";
|
|
5
5
|
import "element-plus/es/components/progress/style/css";
|
|
6
6
|
import "element-plus/es/components/icon/style/css";
|
|
7
|
-
import { defineComponent as
|
|
8
|
-
import { DasIcon as
|
|
9
|
-
import { getVarValue as
|
|
10
|
-
import { t as
|
|
7
|
+
import { defineComponent as w, openBlock as s, createElementBlock as l, createElementVNode as v, useCssVars as F, computed as a, ref as O, normalizeStyle as V, createVNode as b, mergeProps as R, withCtx as P, createCommentVNode as o, renderSlot as j, Fragment as q, toDisplayString as u, createBlock as _, unref as g, normalizeClass as C } from "vue";
|
|
8
|
+
import { DasIcon as z } from "@das-fed/ui/packages/components/icon/index";
|
|
9
|
+
import { getVarValue as G, getVar as H, setThemeRule as J } from "@das-fed/web/packages/theme/index";
|
|
10
|
+
import { t as h } from "@das-fed/web/packages/i18n/index";
|
|
11
11
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
12
|
-
var
|
|
12
|
+
var K = /* @__PURE__ */ w({
|
|
13
13
|
name: "CloseBold",
|
|
14
14
|
__name: "close-bold",
|
|
15
15
|
setup(p) {
|
|
@@ -23,7 +23,7 @@ var J = /* @__PURE__ */ h({
|
|
|
23
23
|
})
|
|
24
24
|
]));
|
|
25
25
|
}
|
|
26
|
-
}),
|
|
26
|
+
}), Q = K, U = /* @__PURE__ */ w({
|
|
27
27
|
name: "Select",
|
|
28
28
|
__name: "select",
|
|
29
29
|
setup(p) {
|
|
@@ -37,23 +37,23 @@ var J = /* @__PURE__ */ h({
|
|
|
37
37
|
})
|
|
38
38
|
]));
|
|
39
39
|
}
|
|
40
|
-
}),
|
|
41
|
-
const
|
|
40
|
+
}), X = U;
|
|
41
|
+
const Y = {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "percentage-color"
|
|
44
|
-
},
|
|
44
|
+
}, Z = { key: 0 }, ee = { class: "percentage-value" }, te = { key: 1 }, se = { class: "percentage-value" }, re = { key: 1 }, oe = {
|
|
45
45
|
key: 0,
|
|
46
46
|
class: "end-text"
|
|
47
|
-
},
|
|
47
|
+
}, le = {
|
|
48
48
|
key: 1,
|
|
49
49
|
class: "end-text"
|
|
50
|
-
},
|
|
50
|
+
}, ae = {
|
|
51
51
|
key: 0,
|
|
52
52
|
class: "line-left"
|
|
53
|
-
},
|
|
53
|
+
}, ie = { key: 1 }, ne = { key: 2 }, ue = {
|
|
54
54
|
key: 1,
|
|
55
55
|
class: "tip-circle"
|
|
56
|
-
},
|
|
56
|
+
}, pe = /* @__PURE__ */ w({
|
|
57
57
|
__name: "Index",
|
|
58
58
|
props: {
|
|
59
59
|
modelValue: { default: 0 },
|
|
@@ -63,7 +63,7 @@ const X = {
|
|
|
63
63
|
strokeWidth: {},
|
|
64
64
|
width: { default: 88 },
|
|
65
65
|
status: {},
|
|
66
|
-
textMap: { default:
|
|
66
|
+
textMap: { default: void 0 },
|
|
67
67
|
showText: { type: Boolean },
|
|
68
68
|
showAnimation: { type: Boolean, default: !0 },
|
|
69
69
|
showTextTip: { type: Boolean, default: !0 },
|
|
@@ -72,84 +72,84 @@ const X = {
|
|
|
72
72
|
singleTipPosition: { default: "" }
|
|
73
73
|
},
|
|
74
74
|
setup(p, { expose: d }) {
|
|
75
|
-
|
|
76
|
-
"
|
|
75
|
+
F((e) => ({
|
|
76
|
+
"5e4ad2b0": A.value
|
|
77
77
|
}));
|
|
78
|
-
const t = p,
|
|
78
|
+
const t = p, y = a(() => t.textMap ?? [h("正在加载中..."), h("加载失败"), h("加载成功")]), i = a(() => t.tipType === "percentage" ? 100 : t.percentages), n = a(() => {
|
|
79
79
|
let e = t.modelValue;
|
|
80
|
-
return e < 0 && (e = 0), e >
|
|
81
|
-
}),
|
|
80
|
+
return e < 0 && (e = 0), e > i.value && (e = i.value), e;
|
|
81
|
+
}), E = a(() => t.tipType === "percentage" ? n.value : n.value !== 0 ? Number(n.value / i.value) * 100 : 0), r = a(() => !t.status || t.status === "normal" ? i.value > 0 && n.value === i.value ? "success" : "normal" : t.status), $ = a(() => {
|
|
82
82
|
if (t.strokeWidth)
|
|
83
83
|
return t.strokeWidth;
|
|
84
84
|
if (t.type === "line") return 8;
|
|
85
85
|
if (t.type === "circle") return 4;
|
|
86
|
-
}),
|
|
86
|
+
}), L = a(() => {
|
|
87
87
|
if (t.showText)
|
|
88
88
|
return t.showText;
|
|
89
89
|
if (t.type === "line") return !1;
|
|
90
90
|
if (t.type === "circle") return !0;
|
|
91
|
-
}),
|
|
91
|
+
}), m = a(() => G(`--das-ui-progress-${r.value}`).value || ""), A = a(() => {
|
|
92
92
|
let e = "";
|
|
93
|
-
return r.value === "normal" ? e = "--das-ui-progress-percentage-tip" : e = `--das-ui-progress-${r.value}`,
|
|
94
|
-
}),
|
|
93
|
+
return r.value === "normal" ? e = "--das-ui-progress-percentage-tip" : e = `--das-ui-progress-${r.value}`, H(e);
|
|
94
|
+
}), k = a(() => {
|
|
95
95
|
let e = 1;
|
|
96
|
-
return r.value === "normal" && (e = 0), r.value === "exception" && (e = 1), r.value === "success" && (e = 2),
|
|
97
|
-
}),
|
|
96
|
+
return r.value === "normal" && (e = 0), r.value === "exception" && (e = 1), r.value === "success" && (e = 2), y.value[e];
|
|
97
|
+
}), I = a(() => {
|
|
98
98
|
if (["success", "exception"].includes(r.value)) return "center";
|
|
99
99
|
if (f.value && c.value) return "";
|
|
100
100
|
if (t.singleTipPosition) return t.singleTipPosition;
|
|
101
101
|
if (!f.value && c.value) return "right";
|
|
102
102
|
if (f.value && !c.value) return "left";
|
|
103
|
-
}), c = a(() => ["success", "exception"].includes(r.value) ? !1 : t.showProcessTip), f = a(() => t.showTextTip),
|
|
103
|
+
}), c = a(() => ["success", "exception"].includes(r.value) ? !1 : t.showProcessTip), f = a(() => t.showTextTip), T = O(null);
|
|
104
104
|
return d({
|
|
105
|
-
$progress:
|
|
106
|
-
}), (e,
|
|
107
|
-
const
|
|
105
|
+
$progress: T
|
|
106
|
+
}), (e, x) => {
|
|
107
|
+
const M = W, N = D;
|
|
108
108
|
return s(), l(
|
|
109
109
|
"div",
|
|
110
110
|
{
|
|
111
111
|
class: "das-ui-progress",
|
|
112
|
-
style:
|
|
112
|
+
style: V({ display: e.type == "circle" ? "inline-block" : "block" })
|
|
113
113
|
},
|
|
114
114
|
[
|
|
115
115
|
v(
|
|
116
116
|
"div",
|
|
117
117
|
{
|
|
118
118
|
class: "percentage-graph",
|
|
119
|
-
style:
|
|
119
|
+
style: V({ width: e.type == "circle" ? e.width + "px" : "100%" })
|
|
120
120
|
},
|
|
121
121
|
[
|
|
122
|
-
|
|
122
|
+
b(N, R({
|
|
123
123
|
ref_key: "$progress",
|
|
124
|
-
ref:
|
|
124
|
+
ref: T,
|
|
125
125
|
class: {
|
|
126
126
|
showLoading: t.showAnimation && t.type === "line" && r.value === "normal" && !e.$attrs.indeterminate
|
|
127
127
|
},
|
|
128
128
|
type: e.type
|
|
129
129
|
}, e.$attrs, {
|
|
130
|
-
color:
|
|
131
|
-
percentage:
|
|
130
|
+
color: m.value,
|
|
131
|
+
percentage: E.value,
|
|
132
132
|
width: e.width,
|
|
133
|
-
"stroke-width":
|
|
134
|
-
"show-text":
|
|
133
|
+
"stroke-width": $.value,
|
|
134
|
+
"show-text": L.value
|
|
135
135
|
}), {
|
|
136
|
-
default: P(({ percentage:
|
|
136
|
+
default: P(({ percentage: B }) => [
|
|
137
137
|
o(" @slot 默认插槽 "),
|
|
138
|
-
|
|
138
|
+
j(e.$slots, "default", { percentage: B }, () => [
|
|
139
139
|
t.type === "circle" ? (s(), l(
|
|
140
|
-
|
|
140
|
+
q,
|
|
141
141
|
{ key: 0 },
|
|
142
142
|
[
|
|
143
|
-
r.value === "normal" ? (s(), l("div",
|
|
144
|
-
e.tipType === "percentage" ? (s(), l("div",
|
|
143
|
+
r.value === "normal" ? (s(), l("div", Y, [
|
|
144
|
+
e.tipType === "percentage" ? (s(), l("div", Z, [
|
|
145
145
|
v(
|
|
146
146
|
"span",
|
|
147
|
-
|
|
148
|
-
u(
|
|
147
|
+
ee,
|
|
148
|
+
u(B),
|
|
149
149
|
1
|
|
150
150
|
/* TEXT */
|
|
151
151
|
),
|
|
152
|
-
|
|
152
|
+
x[0] || (x[0] = v(
|
|
153
153
|
"span",
|
|
154
154
|
null,
|
|
155
155
|
"%",
|
|
@@ -157,25 +157,25 @@ const X = {
|
|
|
157
157
|
/* HOISTED */
|
|
158
158
|
))
|
|
159
159
|
])) : o("v-if", !0),
|
|
160
|
-
e.tipType === "score" ? (s(), l("div",
|
|
160
|
+
e.tipType === "score" ? (s(), l("div", te, [
|
|
161
161
|
v(
|
|
162
162
|
"span",
|
|
163
|
-
|
|
164
|
-
u(
|
|
163
|
+
se,
|
|
164
|
+
u(n.value + "/" + i.value),
|
|
165
165
|
1
|
|
166
166
|
/* TEXT */
|
|
167
167
|
)
|
|
168
168
|
])) : o("v-if", !0)
|
|
169
|
-
])) : (s(), l("div",
|
|
170
|
-
|
|
169
|
+
])) : (s(), l("div", re, [
|
|
170
|
+
b(M, { size: 40 }, {
|
|
171
171
|
default: P(() => [
|
|
172
|
-
r.value === "success" ? (s(), _(g(
|
|
172
|
+
r.value === "success" ? (s(), _(g(X), {
|
|
173
173
|
key: 0,
|
|
174
|
-
color:
|
|
174
|
+
color: m.value
|
|
175
175
|
}, null, 8, ["color"])) : o("v-if", !0),
|
|
176
|
-
r.value === "exception" ? (s(), _(g(
|
|
176
|
+
r.value === "exception" ? (s(), _(g(Q), {
|
|
177
177
|
key: 1,
|
|
178
|
-
color:
|
|
178
|
+
color: m.value
|
|
179
179
|
}, null, 8, ["color"])) : o("v-if", !0)
|
|
180
180
|
]),
|
|
181
181
|
_: 1
|
|
@@ -195,30 +195,30 @@ const X = {
|
|
|
195
195
|
"div",
|
|
196
196
|
{
|
|
197
197
|
key: 0,
|
|
198
|
-
class:
|
|
198
|
+
class: C(["line-icon", r.value])
|
|
199
199
|
},
|
|
200
200
|
[
|
|
201
201
|
e.tipType === "percentage" && e.showEndText && r.value === "normal" ? (s(), l(
|
|
202
202
|
"span",
|
|
203
|
-
|
|
204
|
-
u(
|
|
203
|
+
oe,
|
|
204
|
+
u(n.value) + "%",
|
|
205
205
|
1
|
|
206
206
|
/* TEXT */
|
|
207
207
|
)) : o("v-if", !0),
|
|
208
208
|
e.tipType === "score" && e.showEndText && r.value === "normal" ? (s(), l(
|
|
209
209
|
"span",
|
|
210
|
-
|
|
211
|
-
u(
|
|
210
|
+
le,
|
|
211
|
+
u(n.value + "/" + i.value),
|
|
212
212
|
1
|
|
213
213
|
/* TEXT */
|
|
214
214
|
)) : o("v-if", !0),
|
|
215
|
-
r.value === "success" ? (s(), _(g(
|
|
215
|
+
r.value === "success" ? (s(), _(g(z), {
|
|
216
216
|
key: 2,
|
|
217
217
|
icon: "success",
|
|
218
218
|
"icon-color": "#12AA53",
|
|
219
219
|
"custom-size": "14px"
|
|
220
220
|
})) : o("v-if", !0),
|
|
221
|
-
r.value === "exception" ? (s(), _(g(
|
|
221
|
+
r.value === "exception" ? (s(), _(g(z), {
|
|
222
222
|
key: 3,
|
|
223
223
|
icon: "reload",
|
|
224
224
|
"icon-color": "red",
|
|
@@ -236,27 +236,27 @@ const X = {
|
|
|
236
236
|
"div",
|
|
237
237
|
{
|
|
238
238
|
key: 0,
|
|
239
|
-
class:
|
|
239
|
+
class: C(["tip-line", I.value])
|
|
240
240
|
},
|
|
241
241
|
[
|
|
242
242
|
f.value ? (s(), l(
|
|
243
243
|
"div",
|
|
244
|
-
|
|
245
|
-
u(
|
|
244
|
+
ae,
|
|
245
|
+
u(k.value),
|
|
246
246
|
1
|
|
247
247
|
/* TEXT */
|
|
248
248
|
)) : o("v-if", !0),
|
|
249
249
|
e.tipType === "percentage" && c.value ? (s(), l(
|
|
250
250
|
"div",
|
|
251
|
-
|
|
252
|
-
u(
|
|
251
|
+
ie,
|
|
252
|
+
u(n.value) + "%",
|
|
253
253
|
1
|
|
254
254
|
/* TEXT */
|
|
255
255
|
)) : o("v-if", !0),
|
|
256
256
|
e.tipType === "score" && c.value ? (s(), l(
|
|
257
257
|
"div",
|
|
258
|
-
|
|
259
|
-
u(
|
|
258
|
+
ne,
|
|
259
|
+
u(n.value + "/" + i.value),
|
|
260
260
|
1
|
|
261
261
|
/* TEXT */
|
|
262
262
|
)) : o("v-if", !0)
|
|
@@ -266,8 +266,8 @@ const X = {
|
|
|
266
266
|
)) : o("v-if", !0),
|
|
267
267
|
t.type === "circle" ? (s(), l(
|
|
268
268
|
"div",
|
|
269
|
-
|
|
270
|
-
u(
|
|
269
|
+
ue,
|
|
270
|
+
u(k.value),
|
|
271
271
|
1
|
|
272
272
|
/* TEXT */
|
|
273
273
|
)) : o("v-if", !0)
|
|
@@ -277,12 +277,12 @@ const X = {
|
|
|
277
277
|
);
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), ce = (p, d) => {
|
|
281
281
|
const t = p.__vccOpts || p;
|
|
282
|
-
for (const [
|
|
283
|
-
t[
|
|
282
|
+
for (const [y, i] of d)
|
|
283
|
+
t[y] = i;
|
|
284
284
|
return t;
|
|
285
|
-
},
|
|
285
|
+
}, ve = /* @__PURE__ */ ce(pe, [["__scopeId", "data-v-8cb718be"]]), de = {
|
|
286
286
|
"--das-ui-progress-normal": "#5582F3",
|
|
287
287
|
"--das-ui-progress-success": "#1BA854",
|
|
288
288
|
"--das-ui-progress-exception": "#FB2323",
|
|
@@ -291,9 +291,9 @@ const X = {
|
|
|
291
291
|
"--das-ui-progress-loading-start": "#64abff",
|
|
292
292
|
"--das-ui-progress-loading-end": "#276ff5"
|
|
293
293
|
};
|
|
294
|
-
|
|
295
|
-
const
|
|
294
|
+
J(de);
|
|
295
|
+
const xe = S(ve);
|
|
296
296
|
export {
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
xe as DasProgress,
|
|
298
|
+
xe as default
|
|
299
299
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.das-ui-progress[data-v-
|
|
1
|
+
@charset "UTF-8";.das-ui-progress[data-v-8cb718be] .el-progress-bar__outer{background-color:#e5e5e5}.das-ui-progress[data-v-8cb718be] svg path:first-child{stroke:#e5e5e5}.das-ui-progress .percentage-graph[data-v-8cb718be]{margin:0 auto;position:relative}.das-ui-progress .percentage-graph .line-icon[data-v-8cb718be]{position:absolute;top:50%;right:-9px;transform:translate(100%,-50%)}.das-ui-progress .percentage-graph .line-icon.normal[data-v-8cb718be]{display:flex;align-items:center}.das-ui-progress .percentage-graph .line-icon.normal .end-text[data-v-8cb718be]{font-family:Arial;font-size:16px;font-weight:400;line-height:1px;text-align:right;letter-spacing:0px;color:#212121}.das-ui-progress .percentage-color[data-v-8cb718be]{color:var(--das-ui-progress-percentage-text)}.das-ui-progress .percentage-value[data-v-8cb718be]{font-size:26px}.das-ui-progress .tip-line[data-v-8cb718be]{margin-top:12px;color:var(--das-ui-progress-percentage-text);display:flex;justify-content:space-between;font-family:Microsoft YaHei;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}.das-ui-progress .tip-line .line-left[data-v-8cb718be]{max-width:65%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.das-ui-progress .tip-line.center[data-v-8cb718be]{justify-content:center}.das-ui-progress .tip-line.left[data-v-8cb718be]{justify-content:flex-start}.das-ui-progress .tip-line.right[data-v-8cb718be]{justify-content:flex-end}.das-ui-progress .tip-circle[data-v-8cb718be]{font-size:16px;text-align:center;color:var(--5e4ad2b0);margin-top:2px}.das-ui-progress .showLoading[data-v-8cb718be] .el-progress-bar__inner{overflow:hidden}.das-ui-progress .showLoading[data-v-8cb718be] .el-progress-bar__inner:before{content:"";display:block;position:absolute;width:107px;height:100%;border-radius:4px;right:100%;background:linear-gradient(270deg,var(--das-ui-progress-loading-start) 34%,var(--das-ui-progress-loading-end) 100%);animation:loading-8cb718be 3s ease 0s infinite}@keyframes loading-8cb718be{0%{right:100%}80%{right:-107px}to{right:-107px}}
|
|
Binary file
|