@das-fed/ui 6.4.0-hot.59 → 6.4.0-hot.60

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/ui",
3
- "version": "6.4.0-hot.59",
3
+ "version": "6.4.0-hot.60",
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-hot.59",
29
+ "@das-fed/cli": "6.4.0-hot.60",
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-hot.59",
60
- "@das-fed/utils": "6.4.0-hot.59",
61
- "@das-fed/web": "6.4.0-hot.59",
59
+ "@das-fed/ui": "6.4.0-hot.60",
60
+ "@das-fed/utils": "6.4.0-hot.60",
61
+ "@das-fed/web": "6.4.0-hot.60",
62
62
  "@types/markdown-it": "^14.1.2",
63
63
  "@wangeditor-next/editor": "5.6.31",
64
64
  "@wangeditor-next/editor-for-vue": "5.1.14",
@@ -1,29 +1,31 @@
1
1
  import '@das-fed/ui/packages/business-components/app-container/style.css';
2
2
  import { withInstall as U } from "@das-fed/utils/with-install/index";
3
- import { defineComponent as $, computed as k, ref as M, watch as z, onMounted as O, createBlock as f, openBlock as a, unref as i, withCtx as h, createElementVNode as l, normalizeStyle as x, normalizeClass as G, createElementBlock as r, Fragment as g, renderList as _, createCommentVNode as D, toDisplayString as y, withDirectives as q, createTextVNode as j } from "vue";
3
+ import { defineComponent as $, computed as k, ref as M, watch as z, onMounted as O, createBlock as f, openBlock as c, unref as i, withCtx as h, createElementVNode as l, normalizeStyle as x, normalizeClass as G, createElementBlock as r, Fragment as g, renderList as _, createCommentVNode as D, toDisplayString as y, withDirectives as q, createTextVNode as j } from "vue";
4
4
  import { ElRow as J, ElCol as K } from "element-plus";
5
5
  import "element-plus/es/components/row/style/css";
6
6
  import "element-plus/es/components/col/style/css";
7
7
  import { DasEmpty as Q } from "@das-fed/ui/packages/components/empty/index";
8
- import { vDasTooltip as T } from "@das-fed/ui/packages/components/text-tooltip/index";
8
+ import { vDasTooltip as E } from "@das-fed/ui/packages/components/text-tooltip/index";
9
9
  import { DasScrollbar as X } from "@das-fed/ui/packages/components/scrollbar/index";
10
- import { pureImageSrc as E } from "@das-fed/utils/pure-image-src";
10
+ import { pureImageSrc as T } from "@das-fed/utils/pure-image-src";
11
11
  import { setThemeRule as Y } from "@das-fed/web/packages/theme/index";
12
12
  const H = {
13
13
  "--das-application-app-bg-color": {
14
14
  kjl: "#2673DC",
15
15
  cjb: "#343848",
16
- ssl: "#2D314F"
16
+ ssl: "#2D314F",
17
+ dkh: "linear-gradient(180deg, #E60012 0%, #FFFFFF 113%)"
17
18
  },
18
19
  "--das-application-app-color": {
19
20
  kjl: "#FFFFFF",
20
21
  cjb: "#FFFFFF",
21
- ssl: "#FFFFFF"
22
+ ssl: "#FFFFFF",
23
+ dkh: "#FFFFFF"
22
24
  }
23
25
  }, Z = {
24
26
  key: 0,
25
27
  class: "application-list"
26
- }, A = { class: "table" }, tt = { class: "table-cell column_1" }, et = { class: "app-name" }, ot = { class: "table-cell column_2" }, nt = { class: "column_2_content" }, ct = ["onClick"], at = { class: "sub-app-item" }, st = ["src"], lt = { class: "sub-app-item-content" }, it = { class: "name" }, rt = { class: "describe" }, pt = /* @__PURE__ */ $({
28
+ }, A = { class: "table" }, tt = { class: "table-cell column_1" }, et = { class: "app-name" }, ot = { class: "table-cell column_2" }, nt = { class: "column_2_content" }, at = ["onClick"], ct = { class: "sub-app-item" }, st = ["src"], lt = { class: "sub-app-item-content" }, it = { class: "name" }, rt = { class: "describe" }, pt = /* @__PURE__ */ $({
27
29
  __name: "index",
28
30
  props: {
29
31
  theme: { default: "default" },
@@ -37,11 +39,11 @@ const H = {
37
39
  var o;
38
40
  t[e] = (o = H[e]) == null ? void 0 : o[p.theme];
39
41
  }), t;
40
- }), R = (t) => I("open-app", t), S = M("18px"), F = (t, e) => {
42
+ }), R = (t) => I("open-app", t), F = M("18px"), S = (t, e) => {
41
43
  if (!e) return;
42
44
  if (e.offsetWidth > t) {
43
45
  const s = parseInt(window.getComputedStyle(e).fontSize) - 1;
44
- e.style.fontSize = s + "px", S.value = s + "px", F(t, e);
46
+ e.style.fontSize = s + "px", F.value = s + "px", S(t, e);
45
47
  }
46
48
  }, V = () => new Promise((t) => {
47
49
  const e = () => {
@@ -54,25 +56,25 @@ const H = {
54
56
  await V();
55
57
  const t = document.querySelectorAll(".application-content .column_1 .app-name")[0];
56
58
  if (!t) return;
57
- const e = parseInt(getComputedStyle(t).paddingLeft) || 0, o = parseInt(getComputedStyle(t).paddingRight) || 0, c = t.clientWidth - e - o;
59
+ const e = parseInt(getComputedStyle(t).paddingLeft) || 0, o = parseInt(getComputedStyle(t).paddingRight) || 0, a = t.clientWidth - e - o;
58
60
  let s = 0, n = null;
59
61
  document.querySelectorAll(".application-content .column_1 .app-name > .text").forEach((d) => {
60
62
  const u = d.offsetWidth;
61
63
  u > s && (s = u, n = d);
62
- }), F(c, n);
64
+ }), S(a, n);
63
65
  }, W = () => new Promise((t) => {
64
66
  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
+ const o = document.querySelectorAll(".application-content .column_1"), a = document.querySelectorAll(".application-content .column_2");
68
+ if (o != null && o.length && o.length === p.appCategorys.length && (a != null && a.length) && a.length === p.appCategorys.length)
67
69
  return t();
68
70
  setTimeout(() => e(), 50);
69
71
  };
70
72
  e();
71
73
  }), v = async () => {
72
74
  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;
75
+ const o = e.querySelector(".column_1"), a = e.querySelector(".column_2>.column_2_content"), s = o.offsetHeight, n = a.offsetHeight;
74
76
  if (s > n) {
75
- const m = s - n, d = c.querySelectorAll(".app-row"), u = d.length;
77
+ const m = s - n, d = a.querySelectorAll(".app-row"), u = d.length;
76
78
  d.forEach((w) => {
77
79
  const P = w.offsetHeight;
78
80
  w.style.height = P + m / u + "px";
@@ -82,7 +84,7 @@ const H = {
82
84
  }, B = k(() => p.appCategorys.map((t) => t.name));
83
85
  return z(() => B.value, C, { deep: !0 }), z(() => p.appCategorys, v, { deep: !0 }), O(() => {
84
86
  C(), v();
85
- }), (t, e) => (a(), f(i(X), null, {
87
+ }), (t, e) => (c(), f(i(X), null, {
86
88
  default: h(() => [
87
89
  l(
88
90
  "div",
@@ -91,13 +93,13 @@ const H = {
91
93
  style: x(L.value)
92
94
  },
93
95
  [
94
- t.appCategorys && t.appCategorys.length ? (a(), r("div", Z, [
95
- (a(!0), r(
96
+ t.appCategorys && t.appCategorys.length ? (c(), r("div", Z, [
97
+ (c(!0), r(
96
98
  g,
97
99
  null,
98
- _(t.appCategorys, (o, c) => (a(), r("div", A, [
99
- (a(), r("div", {
100
- key: c,
100
+ _(t.appCategorys, (o, a) => (c(), r("div", A, [
101
+ (c(), r("div", {
102
+ key: a,
101
103
  class: "table-row"
102
104
  }, [
103
105
  D(" 第一列 "),
@@ -107,7 +109,7 @@ const H = {
107
109
  "span",
108
110
  {
109
111
  class: "text",
110
- style: x({ fontSize: S.value })
112
+ style: x({ fontSize: F.value })
111
113
  },
112
114
  y(o.name),
113
115
  5
@@ -118,10 +120,10 @@ const H = {
118
120
  D(" 第二列 "),
119
121
  l("div", ot, [
120
122
  l("div", nt, [
121
- (a(!0), r(
123
+ (c(!0), r(
122
124
  g,
123
125
  null,
124
- _(o.apps, (s) => (a(), f(
126
+ _(o.apps, (s) => (c(), f(
125
127
  i(J),
126
128
  {
127
129
  class: "app-row",
@@ -129,10 +131,10 @@ const H = {
129
131
  },
130
132
  {
131
133
  default: h(() => [
132
- (a(!0), r(
134
+ (c(!0), r(
133
135
  g,
134
136
  null,
135
- _(s, (n, m) => (a(), f(
137
+ _(s, (n, m) => (c(), f(
136
138
  i(K),
137
139
  {
138
140
  class: "app-col",
@@ -145,34 +147,34 @@ const H = {
145
147
  class: "sub-app",
146
148
  onClick: (d) => R(n)
147
149
  }, [
148
- l("div", at, [
150
+ l("div", ct, [
149
151
  l("img", {
150
152
  class: "img",
151
- src: n != null && n.iconDomain ? n.iconDomain + i(E)(n == null ? void 0 : n.iconUrl) : i(E)(n == null ? void 0 : n.iconUrl),
153
+ src: n != null && n.iconDomain ? n.iconDomain + i(T)(n == null ? void 0 : n.iconUrl) : i(T)(n == null ? void 0 : n.iconUrl),
152
154
  alt: ""
153
155
  }, null, 8, st),
154
156
  l("div", lt, [
155
- q((a(), r("div", it, [
157
+ q((c(), r("div", it, [
156
158
  j(
157
159
  y(n.name),
158
160
  1
159
161
  /* TEXT */
160
162
  )
161
163
  ])), [
162
- [i(T)]
164
+ [i(E)]
163
165
  ]),
164
- q((a(), r("div", rt, [
166
+ q((c(), r("div", rt, [
165
167
  j(
166
168
  y(n.description),
167
169
  1
168
170
  /* TEXT */
169
171
  )
170
172
  ])), [
171
- [i(T)]
173
+ [i(E)]
172
174
  ])
173
175
  ])
174
176
  ])
175
- ], 8, ct)
177
+ ], 8, at)
176
178
  ]),
177
179
  _: 2
178
180
  /* DYNAMIC */
@@ -200,7 +202,7 @@ const H = {
200
202
  256
201
203
  /* UNKEYED_FRAGMENT */
202
204
  ))
203
- ])) : (a(), f(i(Q), {
205
+ ])) : (c(), f(i(Q), {
204
206
  key: 1,
205
207
  size: "large"
206
208
  }))
@@ -3,11 +3,13 @@ declare const _default: {
3
3
  kjl: string;
4
4
  cjb: string;
5
5
  ssl: string;
6
+ dkh: string;
6
7
  };
7
8
  '--das-application-app-color': {
8
9
  kjl: string;
9
10
  cjb: string;
10
11
  ssl: string;
12
+ dkh: string;
11
13
  };
12
14
  };
13
15
  export default _default;
@@ -1 +1 @@
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}
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: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}