@das-fed/ui 6.4.0-dev.91 → 6.4.0-dev.92
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 +5 -5
- package/packages/business-components/app-container/index.js +120 -95
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/device-panel/index.js +4073 -4079
- 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/payment/index.d.ts +15 -0
- package/packages/business-components/payment/index.js +76 -75
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/style.css +1 -1
- package/packages/business-components/payment/type.d.ts +2 -0
- package/packages/business-components/process-form/index.js +561 -552
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useForm.d.ts +3 -1
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/components/input-dialog-select/index.js +126 -108
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-dialog-select/style.css +1 -1
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/index.js +4 -4
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/style.css +1 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/progress/index.js +49 -44
- 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/radio-tabs/index.js +1 -1
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/radio-tabs/style.css +1 -1
- package/packages/components/radio-tabs/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +704 -697
- package/packages/components/text-tooltip/index.js.gz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/ui",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.92",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@antv/x6-plugin-snapline": "^2.1.7",
|
|
27
27
|
"@antv/x6-plugin-transform": "^2.1.8",
|
|
28
28
|
"@antv/x6-vue-shape": "^2.1.2",
|
|
29
|
-
"@das-fed/cli": "6.4.0-dev.
|
|
29
|
+
"@das-fed/cli": "6.4.0-dev.92",
|
|
30
30
|
"@element-plus/icons-vue": "^2.3.1",
|
|
31
31
|
"@types/lodash": "^4.14.194",
|
|
32
32
|
"@types/lodash-es": "^4.17.9",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"vue-tsc": "^2.0.29"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@das-fed/ui": "6.4.0-dev.
|
|
60
|
-
"@das-fed/utils": "6.4.0-dev.
|
|
61
|
-
"@das-fed/web": "6.4.0-dev.
|
|
59
|
+
"@das-fed/ui": "6.4.0-dev.92",
|
|
60
|
+
"@das-fed/utils": "6.4.0-dev.92",
|
|
61
|
+
"@das-fed/web": "6.4.0-dev.92",
|
|
62
62
|
"@wangeditor/editor": "^5.1.23",
|
|
63
63
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
64
64
|
"@wangeditor/plugin-upload-attachment": "^1.1.0",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/app-container/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { ElRow as
|
|
2
|
+
import { withInstall as P } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { defineComponent as U, computed as k, ref as $, watch as z, onMounted as M, openBlock as a, createBlock as f, unref as i, withCtx as h, createElementVNode as l, normalizeClass as O, normalizeStyle as x, createElementBlock as r, Fragment as g, renderList as _, toDisplayString as y, withDirectives as D, createTextVNode as q } from "vue";
|
|
4
|
+
import { ElRow as G, ElCol as J } from "element-plus";
|
|
5
5
|
import "element-plus/es/components/row/style/css";
|
|
6
6
|
import "element-plus/es/components/col/style/css";
|
|
7
|
-
import { DasEmpty as
|
|
8
|
-
import { vDasTooltip as
|
|
9
|
-
import { DasScrollbar as
|
|
10
|
-
import { pureImageSrc as
|
|
11
|
-
import { setThemeRule as
|
|
12
|
-
const
|
|
7
|
+
import { DasEmpty as K } from "@das-fed/ui/packages/components/empty/index";
|
|
8
|
+
import { vDasTooltip as j } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
9
|
+
import { DasScrollbar as Q } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
10
|
+
import { pureImageSrc as T } from "@das-fed/utils/pure-image-src";
|
|
11
|
+
import { setThemeRule as X } from "@das-fed/web/packages/theme/index";
|
|
12
|
+
const E = {
|
|
13
13
|
"--das-application-app-bg-color": {
|
|
14
14
|
kjl: "#2673DC",
|
|
15
15
|
cjb: "#343848",
|
|
@@ -20,111 +20,136 @@ const j = {
|
|
|
20
20
|
cjb: "#FFFFFF",
|
|
21
21
|
ssl: "#FFFFFF"
|
|
22
22
|
}
|
|
23
|
-
},
|
|
23
|
+
}, Y = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "application-list"
|
|
26
|
-
},
|
|
26
|
+
}, Z = { class: "table" }, A = { class: "table-cell column_1" }, tt = { class: "app-name" }, et = { class: "table-cell column_2" }, ot = { class: "column_2_content" }, nt = ["onClick"], ct = { class: "sub-app-item" }, at = ["src"], st = { class: "sub-app-item-content" }, lt = { class: "name" }, it = { class: "describe" }, rt = /* @__PURE__ */ U({
|
|
27
27
|
__name: "index",
|
|
28
28
|
props: {
|
|
29
29
|
theme: { default: "default" },
|
|
30
30
|
appCategorys: { default: () => [] }
|
|
31
31
|
},
|
|
32
32
|
emits: ["open-app"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
33
|
+
setup(H, { emit: N }) {
|
|
34
|
+
const p = H, b = N, I = k(() => {
|
|
35
35
|
const t = {};
|
|
36
|
-
return
|
|
37
|
-
var
|
|
38
|
-
t[
|
|
36
|
+
return p.theme === "default" || Object.keys(E).forEach((e) => {
|
|
37
|
+
var o;
|
|
38
|
+
t[e] = (o = E[e]) == null ? void 0 : o[p.theme];
|
|
39
39
|
}), t;
|
|
40
|
-
}),
|
|
41
|
-
if (!
|
|
42
|
-
if (
|
|
43
|
-
const
|
|
44
|
-
|
|
40
|
+
}), L = (t) => b("open-app", t), S = $("18px"), F = (t, e) => {
|
|
41
|
+
if (!e) return;
|
|
42
|
+
if (e.offsetWidth > t) {
|
|
43
|
+
const s = parseInt(window.getComputedStyle(e).fontSize) - 1;
|
|
44
|
+
e.style.fontSize = s + "px", S.value = s + "px", F(t, e);
|
|
45
45
|
}
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
}, R = () => new Promise((t) => {
|
|
47
|
+
const e = () => {
|
|
48
|
+
const o = document.querySelectorAll(".application-content .column_1 .app-name");
|
|
49
|
+
if (o != null && o.length && o.length === p.appCategorys.length) return t();
|
|
50
|
+
setTimeout(() => e(), 50);
|
|
51
|
+
};
|
|
52
|
+
e();
|
|
53
|
+
}), v = async () => {
|
|
54
|
+
await R();
|
|
55
|
+
const t = document.querySelectorAll(".application-content .column_1 .app-name")[0];
|
|
49
56
|
if (!t) return;
|
|
50
|
-
const
|
|
51
|
-
let
|
|
52
|
-
document.querySelectorAll(".application-content .
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
}),
|
|
57
|
+
const e = parseInt(getComputedStyle(t).paddingLeft) || 0, o = parseInt(getComputedStyle(t).paddingRight) || 0, c = t.clientWidth - e - o;
|
|
58
|
+
let s = 0, n = null;
|
|
59
|
+
document.querySelectorAll(".application-content .column_1 .app-name > .text").forEach((d) => {
|
|
60
|
+
const u = d.offsetWidth;
|
|
61
|
+
u > s && (s = u, n = d);
|
|
62
|
+
}), F(c, n);
|
|
56
63
|
}, W = () => new Promise((t) => {
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
if (
|
|
60
|
-
|
|
64
|
+
const e = () => {
|
|
65
|
+
const o = document.querySelectorAll(".application-content .column_1"), c = document.querySelectorAll(".application-content .column_2");
|
|
66
|
+
if (o != null && o.length && o.length === p.appCategorys.length && (c != null && c.length) && c.length === p.appCategorys.length)
|
|
67
|
+
return t();
|
|
68
|
+
setTimeout(() => e(), 50);
|
|
61
69
|
};
|
|
62
|
-
|
|
63
|
-
}),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
e();
|
|
71
|
+
}), C = async () => {
|
|
72
|
+
await W(), document.querySelectorAll(".application-content .application-list .table .table-row").forEach((e) => {
|
|
73
|
+
const o = e.querySelector(".column_1"), c = e.querySelector(".column_2>.column_2_content"), s = o.offsetHeight, n = c.offsetHeight;
|
|
74
|
+
if (s > n) {
|
|
75
|
+
const m = s - n, d = c.querySelectorAll(".app-row"), u = d.length;
|
|
76
|
+
d.forEach((w) => {
|
|
77
|
+
const V = w.offsetHeight;
|
|
78
|
+
w.style.height = V + m / u + "px";
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}, B = k(() => p.appCategorys.map((t) => t.name));
|
|
83
|
+
return z(() => B.value, v, { deep: !0 }), z(() => p.appCategorys, C, { deep: !0 }), M(() => {
|
|
84
|
+
v(), C();
|
|
85
|
+
}), (t, e) => (a(), f(i(Q), null, {
|
|
86
|
+
default: h(() => [
|
|
87
|
+
l("div", {
|
|
88
|
+
class: O(["application-content", `theme-${t.theme}`]),
|
|
89
|
+
style: x(I.value)
|
|
69
90
|
}, [
|
|
70
|
-
t.appCategorys && t.appCategorys.length ? (a(),
|
|
71
|
-
(a(!0),
|
|
72
|
-
(a(),
|
|
73
|
-
key:
|
|
74
|
-
class: "row"
|
|
91
|
+
t.appCategorys && t.appCategorys.length ? (a(), r("div", Y, [
|
|
92
|
+
(a(!0), r(g, null, _(t.appCategorys, (o, c) => (a(), r("div", Z, [
|
|
93
|
+
(a(), r("div", {
|
|
94
|
+
key: c,
|
|
95
|
+
class: "table-row"
|
|
75
96
|
}, [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
97
|
+
l("div", A, [
|
|
98
|
+
l("div", tt, [
|
|
99
|
+
l("span", {
|
|
79
100
|
class: "text",
|
|
80
|
-
style:
|
|
81
|
-
},
|
|
101
|
+
style: x({ fontSize: S.value })
|
|
102
|
+
}, y(o.name), 5)
|
|
82
103
|
])
|
|
83
104
|
]),
|
|
84
|
-
|
|
85
|
-
(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
l("div", et, [
|
|
106
|
+
l("div", ot, [
|
|
107
|
+
(a(!0), r(g, null, _(o.apps, (s) => (a(), f(i(G), {
|
|
108
|
+
class: "app-row",
|
|
109
|
+
gutter: 20
|
|
110
|
+
}, {
|
|
111
|
+
default: h(() => [
|
|
112
|
+
(a(!0), r(g, null, _(s, (n, m) => (a(), f(i(J), {
|
|
113
|
+
class: "app-col",
|
|
114
|
+
key: m,
|
|
115
|
+
span: 6
|
|
116
|
+
}, {
|
|
117
|
+
default: h(() => [
|
|
118
|
+
l("div", {
|
|
119
|
+
class: "sub-app",
|
|
120
|
+
onClick: (d) => L(n)
|
|
121
|
+
}, [
|
|
122
|
+
l("div", ct, [
|
|
123
|
+
l("img", {
|
|
124
|
+
class: "img",
|
|
125
|
+
src: n != null && n.iconDomain ? n.iconDomain + i(T)(n == null ? void 0 : n.iconUrl) : i(T)(n == null ? void 0 : n.iconUrl),
|
|
126
|
+
alt: ""
|
|
127
|
+
}, null, 8, at),
|
|
128
|
+
l("div", st, [
|
|
129
|
+
D((a(), r("div", lt, [
|
|
130
|
+
q(y(n.name), 1)
|
|
131
|
+
])), [
|
|
132
|
+
[i(j)]
|
|
133
|
+
]),
|
|
134
|
+
D((a(), r("div", it, [
|
|
135
|
+
q(y(n.description), 1)
|
|
136
|
+
])), [
|
|
137
|
+
[i(j)]
|
|
138
|
+
])
|
|
139
|
+
])
|
|
115
140
|
])
|
|
116
|
-
])
|
|
117
|
-
],
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
141
|
+
], 8, nt)
|
|
142
|
+
]),
|
|
143
|
+
_: 2
|
|
144
|
+
}, 1024))), 128))
|
|
145
|
+
]),
|
|
146
|
+
_: 2
|
|
147
|
+
}, 1024))), 256))
|
|
148
|
+
])
|
|
124
149
|
])
|
|
125
150
|
]))
|
|
126
151
|
]))), 256))
|
|
127
|
-
])) : (a(),
|
|
152
|
+
])) : (a(), f(i(K), {
|
|
128
153
|
key: 1,
|
|
129
154
|
size: "large"
|
|
130
155
|
}))
|
|
@@ -133,15 +158,15 @@ const j = {
|
|
|
133
158
|
_: 1
|
|
134
159
|
}));
|
|
135
160
|
}
|
|
136
|
-
}),
|
|
161
|
+
}), pt = {
|
|
137
162
|
"--das-application-app-bg-color": "#343848",
|
|
138
163
|
"--das-application-app-color": "#ffffff",
|
|
139
164
|
"--das-application-subapp-bg-color": "#ffffff",
|
|
140
165
|
"--das-application-subapp-name-color": "#212121",
|
|
141
166
|
"--das-application-subapp-describe-color": "#999999"
|
|
142
167
|
};
|
|
143
|
-
|
|
144
|
-
const
|
|
168
|
+
X(pt);
|
|
169
|
+
const vt = P(rt);
|
|
145
170
|
export {
|
|
146
|
-
|
|
171
|
+
vt as DasAppContainer
|
|
147
172
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.application-content{position:relative;
|
|
1
|
+
.application-content{position:relative;padding:30px 20px 10px;box-sizing:border-box}.application-content .application-list{width:100%}.application-content .application-list .table{display:table;width:100%;margin-bottom:20px}.application-content .application-list .table .table-row{display:table-row}.application-content .application-list .table .table-row .table-cell{display:table-cell}.application-content .application-list .table .table-row .table-cell.column_1{width:110px;font-size:0;vertical-align:middle;color:var(--das-application-app-color);background-color:var(--das-application-app-bg-color);position:relative}.application-content .application-list .table .table-row .table-cell.column_1 .app-name{width:110px;height:100%;font-size:18px;text-align:center;box-sizing:border-box;padding:20px 8px}.application-content .application-list .table .table-row .table-cell.column_2{box-sizing:border-box;width:calc(100% - 110px);padding-left:20px}.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row{height:100%}.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row:not(:first-child){margin-top:20px}.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row .app-col{height:100%}.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row .app-col .sub-app{height:100%;display:flex;align-items:center;padding:0 30px;min-height:98px;box-shadow:0 4px 12px #86a2d233;background-color:var(--das-application-subapp-bg-color);cursor:pointer}.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row .app-col .sub-app .sub-app-item{width:100%;height:48px;display:flex}.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row .app-col .sub-app .sub-app-item .img{width:48px;height:48px;border-radius:6px}.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row .app-col .sub-app .sub-app-item .sub-app-item-content{flex:1;padding-left:10px;box-sizing:border-box;overflow:hidden}.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row .app-col .sub-app .sub-app-item .sub-app-item-content .name{font-size:16px;font-weight:400;color:var(--das-application-subapp-name-color)}.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row .app-col .sub-app .sub-app-item .sub-app-item-content .describe{font-size:12px;font-weight:400;color:var(--das-application-subapp-describe-color)}.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row .app-col .sub-app:hover,.application-content .application-list .table .table-row .table-cell.column_2 .column_2_content .app-row .app-col .sub-app:active{box-shadow:0 0 20px #0003;border-radius:2px}
|
|
Binary file
|