@das-fed/ui 1.1.4 → 6.3.0-beta.1
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/global/icons/index.local.js +1 -1
- package/global/style/index.css +1 -1
- package/global/style/scrollbar.css +22 -22
- package/global/theme/index.js +12 -12
- package/global/theme/module/color.js +31 -31
- package/global/theme/module/fontSize.js +5 -5
- package/global/theme/module/scrollbar.js +6 -6
- package/package.json +15 -9
- package/packages/business-components/app-container/index.js +154 -147
- package/packages/business-components/change-enterprises/index.css +1 -0
- package/packages/business-components/change-enterprises/index.js +241 -0
- package/packages/business-components/change-pwd/index.css +1 -0
- package/packages/business-components/change-pwd/index.js +330 -0
- package/packages/business-components/currency-page/index.css +1 -0
- package/packages/business-components/currency-page/index.js +99 -0
- package/packages/business-components/device-panel/index.css +1 -0
- package/packages/business-components/device-panel/index.js +115939 -0
- package/packages/business-components/echarts/index.js +93 -122
- package/packages/business-components/export-button/index.js +73 -66
- package/packages/business-components/import-button/index.js +213 -170
- package/packages/business-components/index.js +8 -1
- package/packages/business-components/layout-breadcrumb/index.js +82 -66
- package/packages/business-components/model-table-dialog/index.js +299 -289
- package/packages/business-components/process-configuration/index.css +1 -0
- package/packages/business-components/process-configuration/index.js +612 -0
- package/packages/business-components/process-form/index.css +1 -0
- package/packages/business-components/process-form/index.js +524 -0
- package/packages/business-components/process-search-form/index.js +73 -315
- package/packages/business-components/process-table/index.css +1 -1
- package/packages/business-components/process-table/index.js +186 -152
- package/packages/business-components/urgent-panel/index.css +1 -0
- package/packages/business-components/urgent-panel/index.js +3914 -0
- package/packages/business-components/user-org-dialog/index.js +466 -375
- package/packages/business-components/video-dialog/index.css +1 -0
- package/packages/business-components/video-dialog/index.js +1041 -0
- package/packages/business.js +1 -2
- package/packages/components/alert/index.js +449 -633
- package/packages/components/audio-video/index.css +1 -1
- package/packages/components/audio-video/index.js +312 -126
- package/packages/components/autocomplete/index.css +1 -1
- package/packages/components/autocomplete/index.js +312 -2923
- package/packages/components/breadcrumb/index.js +97 -82
- package/packages/components/button/index.css +1 -1
- package/packages/components/button/index.js +646 -787
- package/packages/components/calendar/index.css +1 -1
- package/packages/components/calendar/index.js +655 -3879
- package/packages/components/cascader/index.js +209 -203
- package/packages/components/checkbox/index.css +1 -1
- package/packages/components/checkbox/index.js +710 -872
- package/packages/components/collapse-panel/index.css +1 -1
- package/packages/components/collapse-panel/index.js +419 -601
- package/packages/components/collapse-transition/index.js +23 -21
- package/packages/components/collaspe/index.css +1 -1
- package/packages/components/collaspe/index.js +413 -595
- package/packages/components/color-picker/index.css +1 -1
- package/packages/components/color-picker/index.js +176 -133
- package/packages/components/custom-search-item/index.js +43 -37
- package/packages/components/date-picker/index.js +1338 -1459
- package/packages/components/dialog/index.js +429 -215
- package/packages/components/dimple-layout/index.css +1 -1
- package/packages/components/dimple-layout/index.js +1298 -1794
- package/packages/components/drawer/index.js +105 -77
- package/packages/components/dropdown/index.js +129 -109
- package/packages/components/edit-table/index.css +1 -1
- package/packages/components/edit-table/index.js +868 -752
- package/packages/components/empty/index.js +83 -78
- package/packages/components/form/index.js +22 -15
- package/packages/components/form-item/index.css +1 -1
- package/packages/components/form-item/index.js +601 -440
- package/packages/components/icon/index.css +1 -1
- package/packages/components/icon/index.js +38 -22
- package/packages/components/image-preview/index.css +1 -0
- package/packages/components/image-preview/index.js +2714 -0
- package/packages/components/image-upload/index.js +601 -765
- package/packages/components/image-viewer/index.css +1 -1
- package/packages/components/image-viewer/index.js +909 -990
- package/packages/components/index.js +2 -2
- package/packages/components/input/index.css +1 -1
- package/packages/components/input/index.js +284 -256
- package/packages/components/input-dialog-select/index.css +1 -1
- package/packages/components/input-dialog-select/index.js +179 -156
- package/packages/components/input-number/index.css +1 -1
- package/packages/components/input-number/index.js +157 -170
- package/packages/components/live-player/index.css +1 -0
- package/packages/components/live-player/index.js +170 -0
- package/packages/components/loading/index.js +17 -26
- package/packages/components/map/index.css +1 -1
- package/packages/components/map/index.js +18913 -461
- package/packages/components/menu-aside/index.css +1 -1
- package/packages/components/menu-aside/index.js +648 -713
- package/packages/components/menu-header/index.js +446 -629
- package/packages/components/message/index.js +25 -16
- package/packages/components/notification/index.js +386 -575
- package/packages/components/overlay/index.js +112 -103
- package/packages/components/pagination/index.js +260 -330
- package/packages/components/popover/index.js +104 -93
- package/packages/components/popup-mask/index.css +1 -1
- package/packages/components/popup-mask/index.js +77 -72
- package/packages/components/preview/index.js +33 -28
- package/packages/components/progress/index.js +214 -221
- package/packages/components/radio/index.css +1 -1
- package/packages/components/radio/index.js +699 -862
- package/packages/components/radio-tabs/index.js +144 -107
- package/packages/components/rich-editor/index.css +1 -1
- package/packages/components/rich-editor/index.js +105 -106
- package/packages/components/scrollbar/index.css +3 -2
- package/packages/components/scrollbar/index.js +2262 -1201
- package/packages/components/search/index.js +500 -664
- package/packages/components/search-form/index.css +1 -1
- package/packages/components/search-form/index.js +724 -626
- package/packages/components/select/index.css +1 -1
- package/packages/components/select/index.js +1052 -950
- package/packages/components/select-input/index.js +63 -53
- package/packages/components/select-list/index.css +1 -1
- package/packages/components/select-list/index.js +258 -235
- package/packages/components/special-range-picker-month/index.css +1 -1
- package/packages/components/special-range-picker-month/index.js +3068 -72555
- package/packages/components/special-range-picker-year/index.css +1 -1
- package/packages/components/special-range-picker-year/index.js +345 -339
- package/packages/components/spin/index.js +415 -594
- package/packages/components/split-panel/index.css +1 -1
- package/packages/components/split-panel/index.js +146 -127
- package/packages/components/step/index.js +414 -597
- package/packages/components/steps/index.js +407 -590
- package/packages/components/switch/index.js +23 -23
- package/packages/components/table/index.css +1 -1
- package/packages/components/table/index.js +80813 -27734
- package/packages/components/tabs/index.css +1 -1
- package/packages/components/tabs/index.js +620 -813
- package/packages/components/tag/index.js +63 -63
- package/packages/components/text-tooltip/index.css +9 -0
- package/packages/components/text-tooltip/index.js +2739 -33
- package/packages/components/time-line/index.js +464 -643
- package/packages/components/tooltip/index.css +1 -1
- package/packages/components/tooltip/index.js +108 -79
- package/packages/components/tree/index.css +1 -1
- package/packages/components/tree/index.js +840 -809
- package/packages/components/tree-select/index.js +271 -303
- package/packages/components/tree-table/index.js +461 -352
- package/packages/components/upload/index.js +682 -858
- package/packages/components/virtual-tree/index.css +1 -1
- package/packages/components/virtual-tree/index.js +144 -126
- package/packages/index.d.ts +1 -0
- package/packages/index.js +2 -2
- package/style/business.css +11 -4
- package/style/index.css +52 -42
- package/packages/business-components/low-code/index.css +0 -1
- package/packages/business-components/low-code/index.js +0 -60
- package/packages/components/audio-video-player/index.css +0 -1
- package/packages/components/audio-video-player/index.js +0 -83
- package/packages/components/table-column/index.css +0 -1
- package/packages/components/table-column/index.js +0 -82021
package/global/style/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import './scrollbar.css';
|
|
1
|
+
@import './scrollbar.css';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/** 全局滚动条 */
|
|
2
|
-
*::-webkit-scrollbar-track,
|
|
3
|
-
*::-webkit-scrollbar-corner {
|
|
4
|
-
background: transparent;
|
|
5
|
-
}
|
|
6
|
-
*::-webkit-scrollbar {
|
|
7
|
-
width: calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);
|
|
8
|
-
height: calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);
|
|
9
|
-
background-color: transparent;
|
|
10
|
-
}
|
|
11
|
-
*::-webkit-scrollbar-thumb {
|
|
12
|
-
border-radius: calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);
|
|
13
|
-
border: var(--das-ui-scrollbar-padding) solid transparent;
|
|
14
|
-
transition: border 0.15s;
|
|
15
|
-
background-clip: content-box;
|
|
16
|
-
background-color: var(--das-ui-scrollbar-thumb-color);
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
}
|
|
19
|
-
*::-webkit-scrollbar-thumb:hover {
|
|
20
|
-
border: none;
|
|
21
|
-
background-color: var(--das-ui-scrollbar-thumb-hover-color);
|
|
22
|
-
}
|
|
1
|
+
/** 全局滚动条 */
|
|
2
|
+
*::-webkit-scrollbar-track,
|
|
3
|
+
*::-webkit-scrollbar-corner {
|
|
4
|
+
background: transparent;
|
|
5
|
+
}
|
|
6
|
+
*::-webkit-scrollbar {
|
|
7
|
+
width: calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);
|
|
8
|
+
height: calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
}
|
|
11
|
+
*::-webkit-scrollbar-thumb {
|
|
12
|
+
border-radius: calc(var(--das-ui-scrollbar-thumb-size) + var(--das-ui-scrollbar-padding) * 2);
|
|
13
|
+
border: var(--das-ui-scrollbar-padding) solid transparent;
|
|
14
|
+
transition: border 0.15s;
|
|
15
|
+
background-clip: content-box;
|
|
16
|
+
background-color: var(--das-ui-scrollbar-thumb-color);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
*::-webkit-scrollbar-thumb:hover {
|
|
20
|
+
border: none;
|
|
21
|
+
background-color: var(--das-ui-scrollbar-thumb-hover-color);
|
|
22
|
+
}
|
package/global/theme/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { setThemeRule } from '@das-fed/web'
|
|
2
|
-
import color from '@das-fed/ui/global/theme/module/color.js'
|
|
3
|
-
import fontSize from '@das-fed/ui/global/theme/module/fontSize.js'
|
|
4
|
-
import scrollbar from '@das-fed/ui/global/theme/module/scrollbar.js'
|
|
5
|
-
|
|
6
|
-
const theme = {
|
|
7
|
-
...color,
|
|
8
|
-
...fontSize,
|
|
9
|
-
...scrollbar,
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
setThemeRule(theme)
|
|
1
|
+
import { setThemeRule } from '@das-fed/web'
|
|
2
|
+
import color from '@das-fed/ui/global/theme/module/color.js'
|
|
3
|
+
import fontSize from '@das-fed/ui/global/theme/module/fontSize.js'
|
|
4
|
+
import scrollbar from '@das-fed/ui/global/theme/module/scrollbar.js'
|
|
5
|
+
|
|
6
|
+
const theme = {
|
|
7
|
+
...color,
|
|
8
|
+
...fontSize,
|
|
9
|
+
...scrollbar,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
setThemeRule(theme)
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
'--das-ui-color-primary-level1': '#F2F9FF', // level2作为边框时的背景颜色
|
|
3
|
-
'--das-ui-color-primary-level2': '#E0EFFE', // 背景颜色或边框颜色
|
|
4
|
-
'--das-ui-color-primary-level3': '#B3D5FF',
|
|
5
|
-
'--das-ui-color-primary-level4': '#85B8FE',
|
|
6
|
-
'--das-ui-color-primary-level5': '#5797FF',
|
|
7
|
-
'--das-ui-color-primary': '#276ff5',
|
|
8
|
-
'--das-ui-color-primary-level7': '#104CCC',
|
|
9
|
-
'--das-ui-color-primary-level8': '#002EA3',
|
|
10
|
-
'--das-ui-color-primary-level9': '#001F7A',
|
|
11
|
-
|
|
12
|
-
'--das-ui-color-danger-level1': '#FFDBE0', // level2作为边框时的背景颜色
|
|
13
|
-
'--das-ui-color-danger-level2': '#FFF2F4', // 背景颜色或边框颜色
|
|
14
|
-
'--das-ui-color-danger': '#FB2323',
|
|
15
|
-
|
|
16
|
-
'--das-ui-color-warning-level1': '#FFFBF2',
|
|
17
|
-
'--das-ui-color-warning-level2': '#FFF1D4',
|
|
18
|
-
'--das-ui-color-warning': '#FF991C',
|
|
19
|
-
|
|
20
|
-
'--das-ui-color-success-level1': '#F2FFF5',
|
|
21
|
-
'--das-ui-color-success-level2': '#DCFAE4',
|
|
22
|
-
'--das-ui-color-success': '#1BA854',
|
|
23
|
-
|
|
24
|
-
'--das-ui-color-link': '#0E5FD8',
|
|
25
|
-
'--das-ui-color-amount': '#FF5F1F',
|
|
26
|
-
|
|
27
|
-
'--das-ui-color-normal': '#212121',
|
|
28
|
-
'--das-ui-color-secondary': '#666666',
|
|
29
|
-
'--das-ui-color-help': '#999999',
|
|
30
|
-
'--das-ui-color-disabled': '#B2B2B2',
|
|
31
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
'--das-ui-color-primary-level1': '#F2F9FF', // level2作为边框时的背景颜色
|
|
3
|
+
'--das-ui-color-primary-level2': '#E0EFFE', // 背景颜色或边框颜色
|
|
4
|
+
'--das-ui-color-primary-level3': '#B3D5FF',
|
|
5
|
+
'--das-ui-color-primary-level4': '#85B8FE',
|
|
6
|
+
'--das-ui-color-primary-level5': '#5797FF',
|
|
7
|
+
'--das-ui-color-primary': '#276ff5',
|
|
8
|
+
'--das-ui-color-primary-level7': '#104CCC',
|
|
9
|
+
'--das-ui-color-primary-level8': '#002EA3',
|
|
10
|
+
'--das-ui-color-primary-level9': '#001F7A',
|
|
11
|
+
|
|
12
|
+
'--das-ui-color-danger-level1': '#FFDBE0', // level2作为边框时的背景颜色
|
|
13
|
+
'--das-ui-color-danger-level2': '#FFF2F4', // 背景颜色或边框颜色
|
|
14
|
+
'--das-ui-color-danger': '#FB2323',
|
|
15
|
+
|
|
16
|
+
'--das-ui-color-warning-level1': '#FFFBF2',
|
|
17
|
+
'--das-ui-color-warning-level2': '#FFF1D4',
|
|
18
|
+
'--das-ui-color-warning': '#FF991C',
|
|
19
|
+
|
|
20
|
+
'--das-ui-color-success-level1': '#F2FFF5',
|
|
21
|
+
'--das-ui-color-success-level2': '#DCFAE4',
|
|
22
|
+
'--das-ui-color-success': '#1BA854',
|
|
23
|
+
|
|
24
|
+
'--das-ui-color-link': '#0E5FD8',
|
|
25
|
+
'--das-ui-color-amount': '#FF5F1F',
|
|
26
|
+
|
|
27
|
+
'--das-ui-color-normal': '#212121',
|
|
28
|
+
'--das-ui-color-secondary': '#666666',
|
|
29
|
+
'--das-ui-color-help': '#999999',
|
|
30
|
+
'--das-ui-color-disabled': '#B2B2B2',
|
|
31
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
'--das-ui-font-size-sm': '12px',
|
|
3
|
-
'--das-ui-font-size-md': '14px',
|
|
4
|
-
'--das-ui-font-size-lg': '16px',
|
|
5
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
'--das-ui-font-size-sm': '12px',
|
|
3
|
+
'--das-ui-font-size-md': '14px',
|
|
4
|
+
'--das-ui-font-size-lg': '16px',
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
'--das-ui-scrollbar-thumb-color': '#b2b2b2',
|
|
3
|
-
'--das-ui-scrollbar-thumb-hover-color': '#999999',
|
|
4
|
-
'--das-ui-scrollbar-padding': '1px',
|
|
5
|
-
'--das-ui-scrollbar-thumb-size': '8px',
|
|
6
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
'--das-ui-scrollbar-thumb-color': '#b2b2b2',
|
|
3
|
+
'--das-ui-scrollbar-thumb-hover-color': '#999999',
|
|
4
|
+
'--das-ui-scrollbar-padding': '1px',
|
|
5
|
+
'--das-ui-scrollbar-thumb-size': '8px',
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.3.0-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "packages/index.js",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"ant-design-vue": "3.2.20",
|
|
43
43
|
"consola": "^3.2.3",
|
|
44
44
|
"element-plus": "2.4.2",
|
|
45
|
+
"event-source-polyfill": "^1.0.31",
|
|
45
46
|
"fast-glob": "^3.3.2",
|
|
46
47
|
"fs-extra": "^11.2.0",
|
|
47
48
|
"gulp": "^4.0.2",
|
|
@@ -59,22 +60,24 @@
|
|
|
59
60
|
"type-fest": "2.14.0",
|
|
60
61
|
"typescript": "^5.3.3",
|
|
61
62
|
"vite": "^5.1.4",
|
|
62
|
-
"vue": "^3.4.21"
|
|
63
|
+
"vue": "^3.4.21",
|
|
64
|
+
"vue-drag-resize": "^2.0.3",
|
|
65
|
+
"vue-router": "^4.3.0"
|
|
63
66
|
},
|
|
64
67
|
"dependencies": {
|
|
65
|
-
"@
|
|
66
|
-
"@das-fed/ui": "1.1.4",
|
|
67
|
-
"@das-fed/utils": "1.0.9",
|
|
68
|
-
"@das-fed/web": "1.0.3",
|
|
68
|
+
"@rollup/plugin-replace": "^5.0.5",
|
|
69
69
|
"@wangeditor/editor": "^5.1.23",
|
|
70
70
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
|
71
71
|
"@wangeditor/plugin-upload-attachment": "^1.1.0",
|
|
72
72
|
"async-validator": "^4.2.5",
|
|
73
|
+
"coordtransform": "^2.1.2",
|
|
73
74
|
"dayjs": "^1.11.10",
|
|
75
|
+
"dom-to-image": "^2.6.0",
|
|
74
76
|
"echarts": "^5.5.0",
|
|
75
77
|
"element-resize-detector": "^1.2.4",
|
|
76
78
|
"lodash": "^4.17.21",
|
|
77
79
|
"lodash-es": "^4.17.21",
|
|
80
|
+
"mpegts.js": "^1.7.3",
|
|
78
81
|
"nanoid": "3.2.0",
|
|
79
82
|
"overlayscrollbars": "^2.6.1",
|
|
80
83
|
"pinia": "^2.1.7",
|
|
@@ -82,11 +85,14 @@
|
|
|
82
85
|
"vue-virtual-scroller": "2.0.0-beta.8"
|
|
83
86
|
},
|
|
84
87
|
"peerDependencies": {
|
|
85
|
-
"@das-fed/
|
|
88
|
+
"@das-fed/ui": ">=1.0.0",
|
|
89
|
+
"@das-fed/utils": ">=1.0.0",
|
|
90
|
+
"@das-fed/web": ">=1.0.0",
|
|
91
|
+
"@das-fed/web-components": ">=1.0.0"
|
|
86
92
|
},
|
|
87
|
-
"types": "packages/index.d.ts",
|
|
88
93
|
"publishConfig": {
|
|
89
94
|
"access": "public",
|
|
90
95
|
"registry": "https://registry.npmjs.org"
|
|
91
|
-
}
|
|
96
|
+
},
|
|
97
|
+
"types": "packages/index.d.ts"
|
|
92
98
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { withInstall as withInstall$1 } from '@das-fed/utils';
|
|
2
|
-
import { warn, getCurrentInstance, inject, ref, computed, unref, defineComponent, provide, openBlock, createBlock, resolveDynamicComponent, normalizeClass, normalizeStyle, withCtx, renderSlot,
|
|
3
|
-
import {
|
|
2
|
+
import { warn, getCurrentInstance, inject, ref, computed, unref, defineComponent, provide, openBlock, createBlock, resolveDynamicComponent, normalizeClass, normalizeStyle, withCtx, renderSlot, withDirectives, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createTextVNode } from 'vue';
|
|
3
|
+
import { DasEmpty, vOverlay, vDasTooltip } from '@das-fed/ui';
|
|
4
4
|
import { pureImageSrc } from '@das-fed/utils/pure-image-src';
|
|
5
5
|
import { setThemeRule } from '@das-fed/web';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @vue/shared v3.4.
|
|
8
|
+
* @vue/shared v3.4.27
|
|
9
9
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
10
10
|
* @license MIT
|
|
11
11
|
**/
|
|
12
12
|
|
|
13
|
+
|
|
14
|
+
|
|
13
15
|
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
14
16
|
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
15
17
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -87,15 +89,10 @@ const buildProps = (props) => fromPairs(Object.entries(props).map(([key, option]
|
|
|
87
89
|
|
|
88
90
|
const withInstall = (main, extra) => {
|
|
89
91
|
main.install = (app) => {
|
|
90
|
-
for (const comp of [main, ...Object.values(
|
|
92
|
+
for (const comp of [main, ...Object.values({})]) {
|
|
91
93
|
app.component(comp.name, comp);
|
|
92
94
|
}
|
|
93
95
|
};
|
|
94
|
-
if (extra) {
|
|
95
|
-
for (const [key, comp] of Object.entries(extra)) {
|
|
96
|
-
main[key] = comp;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
96
|
return main;
|
|
100
97
|
};
|
|
101
98
|
|
|
@@ -118,14 +115,14 @@ const _bem = (namespace, block, blockSuffix, element, modifier) => {
|
|
|
118
115
|
};
|
|
119
116
|
const namespaceContextKey = Symbol("namespaceContextKey");
|
|
120
117
|
const useGetDerivedNamespace = (namespaceOverrides) => {
|
|
121
|
-
const derivedNamespace =
|
|
118
|
+
const derivedNamespace = (getCurrentInstance() ? inject(namespaceContextKey, ref(defaultNamespace)) : ref(defaultNamespace));
|
|
122
119
|
const namespace = computed(() => {
|
|
123
120
|
return unref(derivedNamespace) || defaultNamespace;
|
|
124
121
|
});
|
|
125
122
|
return namespace;
|
|
126
123
|
};
|
|
127
124
|
const useNamespace = (block, namespaceOverrides) => {
|
|
128
|
-
const namespace = useGetDerivedNamespace(
|
|
125
|
+
const namespace = useGetDerivedNamespace();
|
|
129
126
|
const b = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", "");
|
|
130
127
|
const e = (element) => element ? _bem(namespace.value, block, "", element, "") : "";
|
|
131
128
|
const m = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : "";
|
|
@@ -360,150 +357,32 @@ var Col = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__file", "/home/runner/w
|
|
|
360
357
|
|
|
361
358
|
const ElCol = withInstall(Col);
|
|
362
359
|
|
|
363
|
-
const _hoisted_1 = { class: "application-content" };
|
|
364
|
-
const _hoisted_2 = {
|
|
365
|
-
key: 0,
|
|
366
|
-
class: "application-list"
|
|
367
|
-
};
|
|
368
|
-
const _hoisted_3 = { class: "app-box" };
|
|
369
|
-
const _hoisted_4 = { class: "cell cell-title" };
|
|
370
|
-
const _hoisted_5 = { class: "app-name" };
|
|
371
|
-
const _hoisted_6 = { class: "cell app-list" };
|
|
372
|
-
const _hoisted_7 = ["onClick"];
|
|
373
|
-
const _hoisted_8 = ["src"];
|
|
374
|
-
const _hoisted_9 = { class: "box-right" };
|
|
375
|
-
const _hoisted_10 = { class: "name" };
|
|
376
|
-
const _hoisted_11 = { class: "describe" };
|
|
377
360
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
378
361
|
__name: "index",
|
|
379
362
|
props: {
|
|
380
363
|
appCategorys: { type: Array, required: true, default: () => [] }
|
|
381
364
|
},
|
|
382
365
|
emits: ["open-app"],
|
|
383
|
-
setup(__props, { emit: __emit }) {
|
|
366
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
367
|
+
__expose();
|
|
384
368
|
const props = __props;
|
|
385
|
-
watch(
|
|
386
|
-
() => props.appCategorys,
|
|
387
|
-
(val) => {
|
|
388
|
-
console.log("appCategorys===", val);
|
|
389
|
-
}
|
|
390
|
-
);
|
|
391
369
|
const emit = __emit;
|
|
392
370
|
const openApp = (item) => emit("open-app", item);
|
|
393
|
-
|
|
394
|
-
return
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
_hoisted_5,
|
|
409
|
-
toDisplayString(app.name),
|
|
410
|
-
1
|
|
411
|
-
/* TEXT */
|
|
412
|
-
)
|
|
413
|
-
]),
|
|
414
|
-
createElementVNode("div", _hoisted_6, [
|
|
415
|
-
(openBlock(true), createElementBlock(
|
|
416
|
-
Fragment,
|
|
417
|
-
null,
|
|
418
|
-
renderList(app.apps, (row) => {
|
|
419
|
-
return openBlock(), createBlock(
|
|
420
|
-
unref(ElRow),
|
|
421
|
-
{
|
|
422
|
-
class: "app-row",
|
|
423
|
-
gutter: 20
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
default: withCtx(() => [
|
|
427
|
-
(openBlock(true), createElementBlock(
|
|
428
|
-
Fragment,
|
|
429
|
-
null,
|
|
430
|
-
renderList(row, (subApp, subIndex) => {
|
|
431
|
-
return openBlock(), createBlock(
|
|
432
|
-
unref(ElCol),
|
|
433
|
-
{
|
|
434
|
-
class: "app-col",
|
|
435
|
-
key: subIndex,
|
|
436
|
-
span: 6
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
default: withCtx(() => [
|
|
440
|
-
createElementVNode("div", {
|
|
441
|
-
class: "sub-app",
|
|
442
|
-
onClick: ($event) => openApp(subApp)
|
|
443
|
-
}, [
|
|
444
|
-
createElementVNode("img", {
|
|
445
|
-
class: "img",
|
|
446
|
-
src: subApp?.iconDomain ? subApp.iconDomain + unref(pureImageSrc)(subApp?.iconUrl) : unref(pureImageSrc)(subApp?.iconUrl),
|
|
447
|
-
alt: ""
|
|
448
|
-
}, null, 8, _hoisted_8),
|
|
449
|
-
createElementVNode("div", _hoisted_9, [
|
|
450
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_10, [
|
|
451
|
-
createTextVNode(
|
|
452
|
-
toDisplayString(subApp.name),
|
|
453
|
-
1
|
|
454
|
-
/* TEXT */
|
|
455
|
-
)
|
|
456
|
-
])), [
|
|
457
|
-
[unref(vDasTooltip)]
|
|
458
|
-
]),
|
|
459
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_11, [
|
|
460
|
-
createTextVNode(
|
|
461
|
-
toDisplayString(subApp.description),
|
|
462
|
-
1
|
|
463
|
-
/* TEXT */
|
|
464
|
-
)
|
|
465
|
-
])), [
|
|
466
|
-
[unref(vDasTooltip)]
|
|
467
|
-
])
|
|
468
|
-
])
|
|
469
|
-
], 8, _hoisted_7)
|
|
470
|
-
]),
|
|
471
|
-
_: 2
|
|
472
|
-
/* DYNAMIC */
|
|
473
|
-
},
|
|
474
|
-
1024
|
|
475
|
-
/* DYNAMIC_SLOTS */
|
|
476
|
-
);
|
|
477
|
-
}),
|
|
478
|
-
128
|
|
479
|
-
/* KEYED_FRAGMENT */
|
|
480
|
-
))
|
|
481
|
-
]),
|
|
482
|
-
_: 2
|
|
483
|
-
/* DYNAMIC */
|
|
484
|
-
},
|
|
485
|
-
1024
|
|
486
|
-
/* DYNAMIC_SLOTS */
|
|
487
|
-
);
|
|
488
|
-
}),
|
|
489
|
-
256
|
|
490
|
-
/* UNKEYED_FRAGMENT */
|
|
491
|
-
))
|
|
492
|
-
])
|
|
493
|
-
]))
|
|
494
|
-
]);
|
|
495
|
-
}),
|
|
496
|
-
256
|
|
497
|
-
/* UNKEYED_FRAGMENT */
|
|
498
|
-
))
|
|
499
|
-
])) : (openBlock(), createBlock(unref(DasEmpty), {
|
|
500
|
-
key: 1,
|
|
501
|
-
size: "large"
|
|
502
|
-
}))
|
|
503
|
-
])), [
|
|
504
|
-
[unref(vOverlay)]
|
|
505
|
-
]);
|
|
506
|
-
};
|
|
371
|
+
const __returned__ = { props, emit, openApp, get ElRow() {
|
|
372
|
+
return ElRow;
|
|
373
|
+
}, get ElCol() {
|
|
374
|
+
return ElCol;
|
|
375
|
+
}, get DasEmpty() {
|
|
376
|
+
return DasEmpty;
|
|
377
|
+
}, get vOverlay() {
|
|
378
|
+
return vOverlay;
|
|
379
|
+
}, get vDasTooltip() {
|
|
380
|
+
return vDasTooltip;
|
|
381
|
+
}, get pureImageSrc() {
|
|
382
|
+
return pureImageSrc;
|
|
383
|
+
} };
|
|
384
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
385
|
+
return __returned__;
|
|
507
386
|
}
|
|
508
387
|
});
|
|
509
388
|
|
|
@@ -515,7 +394,135 @@ var _export_sfc = (sfc, props) => {
|
|
|
515
394
|
return target;
|
|
516
395
|
};
|
|
517
396
|
|
|
518
|
-
|
|
397
|
+
const _hoisted_1 = { class: "application-content" };
|
|
398
|
+
const _hoisted_2 = {
|
|
399
|
+
key: 0,
|
|
400
|
+
class: "application-list"
|
|
401
|
+
};
|
|
402
|
+
const _hoisted_3 = { class: "app-box" };
|
|
403
|
+
const _hoisted_4 = { class: "cell cell-title" };
|
|
404
|
+
const _hoisted_5 = { class: "app-name" };
|
|
405
|
+
const _hoisted_6 = { class: "cell app-list" };
|
|
406
|
+
const _hoisted_7 = ["onClick"];
|
|
407
|
+
const _hoisted_8 = ["src"];
|
|
408
|
+
const _hoisted_9 = { class: "box-right" };
|
|
409
|
+
const _hoisted_10 = { class: "name" };
|
|
410
|
+
const _hoisted_11 = { class: "describe" };
|
|
411
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
412
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
|
413
|
+
$props.appCategorys && $props.appCategorys.length ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
414
|
+
(openBlock(true), createElementBlock(
|
|
415
|
+
Fragment,
|
|
416
|
+
null,
|
|
417
|
+
renderList($props.appCategorys, (app, index) => {
|
|
418
|
+
return openBlock(), createElementBlock("div", _hoisted_3, [
|
|
419
|
+
(openBlock(), createElementBlock("div", {
|
|
420
|
+
key: index,
|
|
421
|
+
class: "row"
|
|
422
|
+
}, [
|
|
423
|
+
createElementVNode("div", _hoisted_4, [
|
|
424
|
+
createElementVNode(
|
|
425
|
+
"div",
|
|
426
|
+
_hoisted_5,
|
|
427
|
+
toDisplayString(app.name),
|
|
428
|
+
1
|
|
429
|
+
/* TEXT */
|
|
430
|
+
)
|
|
431
|
+
]),
|
|
432
|
+
createElementVNode("div", _hoisted_6, [
|
|
433
|
+
(openBlock(true), createElementBlock(
|
|
434
|
+
Fragment,
|
|
435
|
+
null,
|
|
436
|
+
renderList(app.apps, (row) => {
|
|
437
|
+
return openBlock(), createBlock(
|
|
438
|
+
$setup["ElRow"],
|
|
439
|
+
{
|
|
440
|
+
class: "app-row",
|
|
441
|
+
gutter: 20
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
default: withCtx(() => [
|
|
445
|
+
(openBlock(true), createElementBlock(
|
|
446
|
+
Fragment,
|
|
447
|
+
null,
|
|
448
|
+
renderList(row, (subApp, subIndex) => {
|
|
449
|
+
return openBlock(), createBlock(
|
|
450
|
+
$setup["ElCol"],
|
|
451
|
+
{
|
|
452
|
+
class: "app-col",
|
|
453
|
+
key: subIndex,
|
|
454
|
+
span: 6
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
default: withCtx(() => [
|
|
458
|
+
createElementVNode("div", {
|
|
459
|
+
class: "sub-app",
|
|
460
|
+
onClick: ($event) => $setup.openApp(subApp)
|
|
461
|
+
}, [
|
|
462
|
+
createElementVNode("img", {
|
|
463
|
+
class: "img",
|
|
464
|
+
src: subApp?.iconDomain ? subApp.iconDomain + $setup.pureImageSrc(subApp?.iconUrl) : $setup.pureImageSrc(subApp?.iconUrl),
|
|
465
|
+
alt: ""
|
|
466
|
+
}, null, 8, _hoisted_8),
|
|
467
|
+
createElementVNode("div", _hoisted_9, [
|
|
468
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_10, [
|
|
469
|
+
createTextVNode(
|
|
470
|
+
toDisplayString(subApp.name),
|
|
471
|
+
1
|
|
472
|
+
/* TEXT */
|
|
473
|
+
)
|
|
474
|
+
])), [
|
|
475
|
+
[$setup["vDasTooltip"]]
|
|
476
|
+
]),
|
|
477
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_11, [
|
|
478
|
+
createTextVNode(
|
|
479
|
+
toDisplayString(subApp.description),
|
|
480
|
+
1
|
|
481
|
+
/* TEXT */
|
|
482
|
+
)
|
|
483
|
+
])), [
|
|
484
|
+
[$setup["vDasTooltip"]]
|
|
485
|
+
])
|
|
486
|
+
])
|
|
487
|
+
], 8, _hoisted_7)
|
|
488
|
+
]),
|
|
489
|
+
_: 2
|
|
490
|
+
/* DYNAMIC */
|
|
491
|
+
},
|
|
492
|
+
1024
|
|
493
|
+
/* DYNAMIC_SLOTS */
|
|
494
|
+
);
|
|
495
|
+
}),
|
|
496
|
+
128
|
|
497
|
+
/* KEYED_FRAGMENT */
|
|
498
|
+
))
|
|
499
|
+
]),
|
|
500
|
+
_: 2
|
|
501
|
+
/* DYNAMIC */
|
|
502
|
+
},
|
|
503
|
+
1024
|
|
504
|
+
/* DYNAMIC_SLOTS */
|
|
505
|
+
);
|
|
506
|
+
}),
|
|
507
|
+
256
|
|
508
|
+
/* UNKEYED_FRAGMENT */
|
|
509
|
+
))
|
|
510
|
+
])
|
|
511
|
+
]))
|
|
512
|
+
]);
|
|
513
|
+
}),
|
|
514
|
+
256
|
|
515
|
+
/* UNKEYED_FRAGMENT */
|
|
516
|
+
))
|
|
517
|
+
])) : (openBlock(), createBlock($setup["DasEmpty"], {
|
|
518
|
+
key: 1,
|
|
519
|
+
size: "large"
|
|
520
|
+
}))
|
|
521
|
+
])), [
|
|
522
|
+
[$setup["vOverlay"]]
|
|
523
|
+
]);
|
|
524
|
+
}
|
|
525
|
+
var appContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/app-container/src/index.vue"]]);
|
|
519
526
|
|
|
520
527
|
var theme = {
|
|
521
528
|
"--das-application-app-bg-color": "#343848",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.dialog_box[data-v-0e1dac12]{display:flex;flex-direction:column;height:100%;width:100%}.dialog_box[data-v-0e1dac12] .header[data-v-0e1dac12]{align-items:center;display:flex;justify-content:space-between}.dialog_box[data-v-0e1dac12] .content[data-v-0e1dac12]{flex:1;margin-top:23px}.dialog_box[data-v-0e1dac12] .content[data-v-0e1dac12] .item[data-v-0e1dac12]{align-items:center;border:1px solid #d9d9d9;border-radius:4px;box-shadow:0 3px 8px 0 rgba(0,0,0,.06);display:flex;flex-direction:column;height:226px;justify-content:center;margin-bottom:24px;padding:0 16px;position:relative}.dialog_box[data-v-0e1dac12] .content[data-v-0e1dac12] .item[data-v-0e1dac12][data-v-0e1dac12]:not(.active):before{display:none}.dialog_box[data-v-0e1dac12] .content[data-v-0e1dac12] .item[data-v-0e1dac12].active[data-v-0e1dac12]{background:#f2f6ff;border:1px solid #5582f3;box-shadow:0 3px 8px 0 rgba(0,0,0,.06)}.dialog_box[data-v-0e1dac12] .content[data-v-0e1dac12] .item[data-v-0e1dac12].active[data-v-0e1dac12][data-v-0e1dac12]:before{background:#276ff5;border-radius:95px 37px 99px 37px;color:#fff;content:"当前企业";font-size:12px;height:18px;left:-1px;position:absolute;text-align:center;top:-11px;width:65px}.dialog_box[data-v-0e1dac12] .content[data-v-0e1dac12] .item[data-v-0e1dac12] .icon[data-v-0e1dac12]{height:56px;margin-bottom:12px;width:56px}.dialog_box[data-v-0e1dac12] .content[data-v-0e1dac12] .item[data-v-0e1dac12][data-v-0e1dac12] .name{color:#212121;font-size:14px;font-weight:600;line-height:21px;margin-bottom:24px;text-align:center}
|