yuang-framework-ui-pc 1.1.42 → 1.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/utils/chart-theme-dark.d.ts +373 -0
- package/es/utils/chart-theme-dark.js +397 -0
- package/es/utils/chart-theme.d.ts +368 -0
- package/es/utils/chart-theme.js +392 -0
- package/es/utils/menu-util.d.ts +14 -0
- package/es/utils/menu-util.js +78 -0
- package/es/utils/message-box.d.ts +25 -0
- package/es/utils/message-box.js +98 -0
- package/es/utils/message.d.ts +66 -0
- package/es/utils/message.js +267 -0
- package/es/utils/resolvers.d.ts +18 -0
- package/es/utils/resolvers.js +50 -0
- package/es/utils/theme-util.d.ts +6 -0
- package/es/utils/theme-util.js +42 -0
- package/es/utils/validate.d.ts +182 -0
- package/es/utils/validate.js +197 -0
- package/lib/core.d.ts +3 -0
- package/lib/ele-admin-layout/components/layout-tabs.d.ts +5646 -0
- package/lib/ele-admin-layout/components/layout-tool.d.ts +2 -0
- package/lib/ele-admin-layout/style/index.d.ts +1 -0
- package/lib/ele-admin-layout/types.d.ts +54 -0
- package/lib/ele-alert/index.d.ts +131 -0
- package/lib/ele-alert/props.d.ts +58 -0
- package/lib/ele-app/el.d.ts +304 -0
- package/lib/ele-app/style/common/index.d.ts +1 -0
- package/lib/ele-app/style/overwrite/backtop/index.d.ts +1 -0
- package/lib/ele-app/style/overwrite/checkbox/index.d.ts +1 -0
- package/lib/ele-app/style/overwrite/date-picker/index.d.ts +1 -0
- package/lib/ele-app/style/overwrite/message-box/index.d.ts +1 -0
- package/lib/ele-app/style/overwrite/popper/index.d.ts +1 -0
- package/lib/ele-app/style/overwrite/select/index.d.ts +1 -0
- package/lib/ele-app/style/overwrite/tag/index.d.ts +1 -0
- package/lib/ele-app/style/overwrite/tree/index.d.ts +1 -0
- package/lib/ele-app/style/scrollbar/index.d.ts +1 -0
- package/lib/ele-app/types.d.ts +48 -0
- package/lib/ele-avatar-group/props.d.ts +56 -0
- package/lib/ele-avatar-group/style/index.d.ts +1 -0
- package/lib/ele-avatar-group/types.d.ts +21 -0
- package/lib/ele-backtop/props.d.ts +36 -0
- package/lib/ele-bar-code/index.d.ts +26 -0
- package/lib/ele-bottom-bar/index.d.ts +15 -0
- package/lib/ele-bottom-bar/props.d.ts +15 -0
- package/lib/ele-breadcrumb/index.d.ts +278 -0
- package/lib/ele-breadcrumb/props.d.ts +24 -0
- package/lib/ele-breadcrumb/style/index.d.ts +1 -0
- package/lib/ele-card/index.d.ts +106 -0
- package/lib/ele-card/style/index.d.ts +1 -0
- package/lib/ele-check-card/components/card-item.d.ts +37 -0
- package/lib/ele-check-card/props.d.ts +49 -0
- package/lib/ele-check-card/style/index.d.ts +1 -0
- package/lib/ele-check-card/types.d.ts +37 -0
- package/lib/ele-config-provider/components/receiver-view.d.ts +71 -0
- package/lib/ele-config-provider/props.d.ts +26 -0
- package/lib/ele-config-provider/style/index.d.ts +0 -0
- package/lib/ele-config-provider/types.d.ts +103 -0
- package/lib/ele-copyable/style/index.d.ts +1 -0
- package/lib/ele-copyable/types.d.ts +14 -0
- package/lib/ele-count-up/style/index.d.ts +0 -0
- package/lib/ele-cropper/index.d.ts +2824 -0
- package/lib/ele-cropper/props.d.ts +68 -0
- package/lib/ele-cropper/style/index.d.ts +1 -0
- package/lib/ele-cropper-modal/props.d.ts +58 -0
- package/lib/ele-cropper-modal/style/index.d.ts +1 -0
- package/lib/ele-dashboard/index.d.ts +14 -0
- package/lib/ele-dashboard/style/index.d.ts +1 -0
- package/lib/ele-dashboard/types.d.ts +4 -0
- package/lib/ele-data-table/props.d.ts +272 -0
- package/lib/ele-data-table/style/index.d.ts +1 -0
- package/lib/ele-data-table/types.d.ts +253 -0
- package/lib/ele-data-table/util.d.ts +172 -0
- package/lib/ele-dialog/index.d.ts +1074 -0
- package/lib/ele-dialog/style/index.d.ts +1 -0
- package/lib/ele-dialog/util.d.ts +52 -0
- package/lib/ele-dot/index.d.ts +29 -0
- package/lib/ele-dot/props.d.ts +25 -0
- package/lib/ele-dot/style/index.d.ts +1 -0
- package/lib/ele-drawer/index.d.ts +1170 -0
- package/lib/ele-drawer/props.d.ts +184 -0
- package/lib/ele-drawer/style/index.d.ts +1 -0
- package/lib/ele-dropdown/components/dropdown-menu-item.d.ts +97 -0
- package/lib/ele-dropdown/index.d.ts +4846 -0
- package/lib/ele-dropdown/types.d.ts +22 -0
- package/lib/ele-edit-tag/props.d.ts +55 -0
- package/lib/ele-edit-tag/style/index.d.ts +1 -0
- package/lib/ele-edit-tag/types.d.ts +9 -0
- package/lib/ele-ellipsis/index.d.ts +1660 -0
- package/lib/ele-icon-select/types.d.ts +16 -0
- package/lib/ele-image-viewer/index.d.ts +635 -0
- package/lib/ele-loading/props.d.ts +33 -0
- package/lib/ele-loading/types.d.ts +19 -0
- package/lib/ele-map-picker/style/index.d.ts +1 -0
- package/lib/ele-menus/components/item-title.d.ts +323 -0
- package/lib/ele-menus/types.d.ts +107 -0
- package/lib/ele-pagination/style/index.d.ts +1 -0
- package/lib/ele-pagination/types.d.ts +9 -0
- package/lib/ele-printer/index.d.ts +111 -0
- package/lib/ele-printer/util.d.ts +25 -0
- package/lib/ele-pro-layout/components/pro-iframe.d.ts +39 -0
- package/lib/ele-pro-layout/style/index.d.ts +1 -0
- package/lib/ele-pro-layout/util.d.ts +88 -0
- package/lib/ele-pro-table/components/tool-column.d.ts +3722 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +39 -0
- package/lib/ele-pro-table/style/index.d.ts +1 -0
- package/lib/ele-pro-table/types.d.ts +489 -0
- package/lib/ele-qr-code/components/canvas-render.d.ts +67 -0
- package/lib/ele-qr-code/qrcodegen.d.ts +95 -0
- package/lib/ele-qr-code/style/index.d.ts +0 -0
- package/lib/ele-qr-code/util.d.ts +27 -0
- package/lib/ele-segmented/index.d.ts +485 -0
- package/lib/ele-segmented/style/index.d.ts +1 -0
- package/lib/ele-split-panel/index.d.ts +192 -0
- package/lib/ele-split-panel/props.d.ts +47 -0
- package/lib/ele-steps/index.d.ts +638 -0
- package/lib/ele-steps/style/index.d.ts +1 -0
- package/lib/ele-steps/types.d.ts +14 -0
- package/lib/ele-tab-tool/index.d.ts +75 -0
- package/lib/ele-tab-tool/props.d.ts +14 -0
- package/lib/ele-tab-wrap/components/tab-dropdown.d.ts +5006 -0
- package/lib/ele-tab-wrap/props.d.ts +13 -0
- package/lib/ele-tab-wrap/style/index.d.ts +0 -0
- package/lib/ele-table/index.d.ts +28 -0
- package/lib/ele-table/style/index.d.ts +1 -0
- package/lib/ele-table-select/props.d.ts +120 -0
- package/lib/ele-table-select/style/index.d.ts +1 -0
- package/lib/ele-tabs/props.d.ts +88 -0
- package/lib/ele-test/index.d.ts +2 -0
- package/lib/ele-test/style/index.d.ts +1 -0
- package/lib/ele-text/index.d.ts +93 -0
- package/lib/ele-text/style/index.d.ts +1 -0
- package/lib/ele-text/types.d.ts +35 -0
- package/lib/ele-toolbar/index.d.ts +1633 -0
- package/lib/ele-tooltip/props.d.ts +187 -0
- package/lib/ele-tooltip/style/index.d.ts +1 -0
- package/lib/ele-tour/types.d.ts +42 -0
- package/lib/ele-tour/util.d.ts +20 -0
- package/lib/ele-tree-select/style/index.d.ts +1 -0
- package/lib/ele-upload-list/components/list-item.d.ts +902 -0
- package/lib/ele-upload-list/props.d.ts +81 -0
- package/lib/ele-upload-list/types.d.ts +71 -0
- package/lib/ele-virtual-table/components/body-row.d.ts +984 -0
- package/lib/ele-virtual-table/components/expand-row.d.ts +19 -0
- package/lib/ele-virtual-table/components/footer-row.d.ts +65 -0
- package/lib/ele-virtual-table/components/header-cell.d.ts +3929 -0
- package/lib/ele-virtual-table/index.d.ts +7882 -0
- package/lib/ele-virtual-table/util.d.ts +229 -0
- package/lib/ele-watermark/index.d.ts +57 -0
- package/lib/ele-watermark/types.d.ts +39 -0
- package/lib/ele-xg-player/index.d.ts +22 -0
- package/lib/ele-xg-player/style/index.d.ts +1 -0
- package/lib/icons/AppstoreAddOutlined.d.ts +2 -0
- package/lib/icons/AppstoreOutlined.d.ts +2 -0
- package/lib/icons/ArrowLeft.d.ts +2 -0
- package/lib/icons/ArrowLeftOutlined.d.ts +2 -0
- package/lib/icons/ArrowRight.d.ts +2 -0
- package/lib/icons/ArrowRightOutlined.d.ts +2 -0
- package/lib/icons/ArrowUp.d.ts +2 -0
- package/lib/icons/ArrowUpOutlined.d.ts +2 -0
- package/lib/icons/BellOutlined.d.ts +2 -0
- package/lib/icons/BookOutlined.d.ts +2 -0
- package/lib/icons/CaretDownFilled.d.ts +2 -0
- package/lib/icons/CaretUpFilled.d.ts +2 -0
- package/lib/icons/CheckOutlined.d.ts +2 -0
- package/lib/icons/ClockCircleOutlined.d.ts +2 -0
- package/lib/icons/CloudUploadOutlined.d.ts +2 -0
- package/lib/icons/ClusterOutlined.d.ts +2 -0
- package/lib/icons/CodeOutlined.d.ts +2 -0
- package/lib/icons/CompassOutlined.d.ts +2 -0
- package/lib/icons/ConnectionOutlined.d.ts +2 -0
- package/lib/icons/ControlOutlined.d.ts +2 -0
- package/lib/icons/CornerRightFilled.d.ts +2 -0
- package/lib/icons/DashboardOutlined.d.ts +2 -0
- package/lib/icons/DesktopOutlined.d.ts +2 -0
- package/lib/icons/DragOutlined.d.ts +2 -0
- package/lib/icons/EditOutlined.d.ts +2 -0
- package/lib/icons/EnvironmentOutlined.d.ts +2 -0
- package/lib/icons/FileOutlined.d.ts +2 -0
- package/lib/icons/FilterFilled.d.ts +2 -0
- package/lib/icons/GlobalOutlined.d.ts +2 -0
- package/lib/icons/HomeOutlined.d.ts +2 -0
- package/lib/icons/LoadingDotOutlined.d.ts +2 -0
- package/lib/icons/LoadingOutlined.d.ts +2 -0
- package/lib/icons/LockOutlined.d.ts +2 -0
- package/lib/icons/LogOutlined.d.ts +2 -0
- package/lib/icons/MailOutlined.d.ts +2 -0
- package/lib/icons/MenuFoldOutlined.d.ts +2 -0
- package/lib/icons/MenuOutlined.d.ts +2 -0
- package/lib/icons/MenuUnfoldOutlined.d.ts +2 -0
- package/lib/icons/MessageOutlined.d.ts +2 -0
- package/lib/icons/MinusCircleOutlined.d.ts +2 -0
- package/lib/icons/MoonOutlined.d.ts +2 -0
- package/lib/icons/MoreOutlined.d.ts +2 -0
- package/lib/icons/PauseFilled.d.ts +2 -0
- package/lib/icons/PieChartOutlined.d.ts +2 -0
- package/lib/icons/PlusOutlined.d.ts +2 -0
- package/lib/icons/ProtectOutlined.d.ts +2 -0
- package/lib/icons/QuestionCircleOutlined.d.ts +2 -0
- package/lib/icons/ReloadOutlined.d.ts +2 -0
- package/lib/icons/SortOutlined.d.ts +2 -0
- package/lib/icons/StarFilled.d.ts +2 -0
- package/lib/icons/StepForwardFilled.d.ts +2 -0
- package/lib/icons/UndoOutlined.d.ts +2 -0
- package/lib/icons/UnlockOutlined.d.ts +2 -0
- package/lib/icons/VerticalLeftOutlined.d.ts +2 -0
- package/lib/icons/WarningOutlined.d.ts +2 -0
- package/lib/icons/ZoomOutOutlined.d.ts +2 -0
- package/lib/index.d.ts +4 -0
- package/lib/installer.d.ts +3 -0
- package/lib/lang/en_US.d.ts +4 -0
- package/lib/lang/zh_CN.d.ts +4 -0
- package/lib/utils/chart-theme-dark.d.ts +373 -0
- package/lib/utils/chart-theme.d.ts +368 -0
- package/lib/utils/core.cjs +318 -0
- package/lib/utils/core.d.ts +168 -0
- package/lib/utils/hook.cjs +264 -0
- package/lib/utils/hook.d.ts +113 -0
- package/lib/utils/menu-util.d.ts +14 -0
- package/lib/utils/message-box.d.ts +25 -0
- package/lib/utils/message.d.ts +66 -0
- package/lib/utils/resolvers.cjs +50 -0
- package/lib/utils/resolvers.d.ts +18 -0
- package/lib/utils/theme-util.d.ts +6 -0
- package/lib/utils/validate.cjs +197 -0
- package/lib/utils/validate.d.ts +182 -0
- package/lib/yu-framework-slider-captcha-dialog/SliderCaptcha.d.ts +67 -0
- package/lib/yu-framework-slider-captcha-dialog/index.d.ts +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
const ChartTheme = {
|
|
2
|
+
color: [
|
|
3
|
+
"#5b8ff9",
|
|
4
|
+
"#61ddaa",
|
|
5
|
+
"#65789b",
|
|
6
|
+
"#f6bd16",
|
|
7
|
+
"#7262fd",
|
|
8
|
+
"#78d3f8",
|
|
9
|
+
"#9661bc",
|
|
10
|
+
"#f6903d",
|
|
11
|
+
"#008685",
|
|
12
|
+
"#f08bb4"
|
|
13
|
+
],
|
|
14
|
+
backgroundColor: "rgba(0,0,0,0)",
|
|
15
|
+
textStyle: {},
|
|
16
|
+
title: {
|
|
17
|
+
textStyle: {
|
|
18
|
+
color: "#333333"
|
|
19
|
+
},
|
|
20
|
+
subtextStyle: {
|
|
21
|
+
color: "#666666"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
line: {
|
|
25
|
+
itemStyle: {
|
|
26
|
+
borderWidth: 1
|
|
27
|
+
},
|
|
28
|
+
lineStyle: {
|
|
29
|
+
width: "2"
|
|
30
|
+
},
|
|
31
|
+
symbolSize: 4,
|
|
32
|
+
symbol: "emptyCircle",
|
|
33
|
+
smooth: false
|
|
34
|
+
},
|
|
35
|
+
radar: {
|
|
36
|
+
itemStyle: {
|
|
37
|
+
borderWidth: 1
|
|
38
|
+
},
|
|
39
|
+
lineStyle: {
|
|
40
|
+
width: "2"
|
|
41
|
+
},
|
|
42
|
+
symbolSize: 4,
|
|
43
|
+
symbol: "emptyCircle",
|
|
44
|
+
smooth: false
|
|
45
|
+
},
|
|
46
|
+
bar: {
|
|
47
|
+
barCategoryGap: "50%",
|
|
48
|
+
itemStyle: {
|
|
49
|
+
barBorderWidth: "0",
|
|
50
|
+
barBorderColor: "#fff"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
pie: {
|
|
54
|
+
itemStyle: {
|
|
55
|
+
borderWidth: "2",
|
|
56
|
+
borderColor: "#fff"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
scatter: {
|
|
60
|
+
itemStyle: {
|
|
61
|
+
borderWidth: "0",
|
|
62
|
+
borderColor: "#fff"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
boxplot: {
|
|
66
|
+
itemStyle: {
|
|
67
|
+
borderWidth: "0",
|
|
68
|
+
borderColor: "#fff"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
parallel: {
|
|
72
|
+
itemStyle: {
|
|
73
|
+
borderWidth: "0",
|
|
74
|
+
borderColor: "#fff"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
sankey: {
|
|
78
|
+
itemStyle: {
|
|
79
|
+
borderWidth: "0",
|
|
80
|
+
borderColor: "#fff"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
funnel: {
|
|
84
|
+
itemStyle: {
|
|
85
|
+
borderWidth: "0",
|
|
86
|
+
borderColor: "#fff"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
gauge: {
|
|
90
|
+
itemStyle: {
|
|
91
|
+
borderWidth: "0",
|
|
92
|
+
borderColor: "#fff"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
candlestick: {
|
|
96
|
+
itemStyle: {
|
|
97
|
+
color: "#dd3f5d",
|
|
98
|
+
color0: "#51bd4b",
|
|
99
|
+
borderColor: "#dd3f5d",
|
|
100
|
+
borderColor0: "#51bd4b",
|
|
101
|
+
borderWidth: 1
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
graph: {
|
|
105
|
+
itemStyle: {
|
|
106
|
+
borderWidth: "0",
|
|
107
|
+
borderColor: "#fff"
|
|
108
|
+
},
|
|
109
|
+
lineStyle: {
|
|
110
|
+
width: 1,
|
|
111
|
+
color: "#bfbfbf"
|
|
112
|
+
},
|
|
113
|
+
symbolSize: 4,
|
|
114
|
+
symbol: "emptyCircle",
|
|
115
|
+
smooth: false,
|
|
116
|
+
color: [
|
|
117
|
+
"#5b8ff9",
|
|
118
|
+
"#61ddaa",
|
|
119
|
+
"#65789b",
|
|
120
|
+
"#f6bd16",
|
|
121
|
+
"#7262fd",
|
|
122
|
+
"#78d3f8",
|
|
123
|
+
"#9661bc",
|
|
124
|
+
"#f6903d",
|
|
125
|
+
"#008685",
|
|
126
|
+
"#f08bb4"
|
|
127
|
+
],
|
|
128
|
+
label: {
|
|
129
|
+
color: "#666666"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
map: {
|
|
133
|
+
itemStyle: {
|
|
134
|
+
areaColor: "#fafafa",
|
|
135
|
+
borderColor: "#d9d9d9",
|
|
136
|
+
borderWidth: 1
|
|
137
|
+
},
|
|
138
|
+
label: {
|
|
139
|
+
color: "#333333",
|
|
140
|
+
textBorderColor: "#fff",
|
|
141
|
+
textBorderWidth: 1
|
|
142
|
+
},
|
|
143
|
+
emphasis: {
|
|
144
|
+
itemStyle: {
|
|
145
|
+
areaColor: "rgba(255,215,0,0.8)",
|
|
146
|
+
borderColor: "#d9d9d9",
|
|
147
|
+
borderWidth: 1
|
|
148
|
+
},
|
|
149
|
+
label: {
|
|
150
|
+
color: "#333333"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
geo: {
|
|
155
|
+
itemStyle: {
|
|
156
|
+
areaColor: "#fafafa",
|
|
157
|
+
borderColor: "#d9d9d9",
|
|
158
|
+
borderWidth: 1
|
|
159
|
+
},
|
|
160
|
+
label: {
|
|
161
|
+
color: "#333333",
|
|
162
|
+
textBorderColor: "#fff",
|
|
163
|
+
textBorderWidth: 1
|
|
164
|
+
},
|
|
165
|
+
emphasis: {
|
|
166
|
+
itemStyle: {
|
|
167
|
+
areaColor: "rgba(255,215,0,0.8)",
|
|
168
|
+
borderColor: "#d9d9d9",
|
|
169
|
+
borderWidth: 1
|
|
170
|
+
},
|
|
171
|
+
label: {
|
|
172
|
+
color: "#333333"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
grid: {
|
|
177
|
+
top: 30,
|
|
178
|
+
right: 20,
|
|
179
|
+
left: 60,
|
|
180
|
+
bottom: 40
|
|
181
|
+
},
|
|
182
|
+
categoryAxis: {
|
|
183
|
+
axisLine: {
|
|
184
|
+
show: true,
|
|
185
|
+
lineStyle: {
|
|
186
|
+
color: "#bfbfbf"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
axisTick: {
|
|
190
|
+
show: true,
|
|
191
|
+
lineStyle: {
|
|
192
|
+
color: "#bfbfbf"
|
|
193
|
+
},
|
|
194
|
+
alignWithLabel: true
|
|
195
|
+
},
|
|
196
|
+
axisLabel: {
|
|
197
|
+
show: true,
|
|
198
|
+
color: "#666666"
|
|
199
|
+
},
|
|
200
|
+
splitLine: {
|
|
201
|
+
show: false,
|
|
202
|
+
lineStyle: {
|
|
203
|
+
type: "dashed",
|
|
204
|
+
color: ["#d9d9d9"]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
splitArea: {
|
|
208
|
+
show: false,
|
|
209
|
+
areaStyle: {
|
|
210
|
+
color: ["#f0f0f0"]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
valueAxis: {
|
|
215
|
+
axisLine: {
|
|
216
|
+
show: false,
|
|
217
|
+
lineStyle: {
|
|
218
|
+
color: "#bfbfbf"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
axisTick: {
|
|
222
|
+
show: false,
|
|
223
|
+
lineStyle: {
|
|
224
|
+
color: "#bfbfbf"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
axisLabel: {
|
|
228
|
+
show: true,
|
|
229
|
+
color: "#666666"
|
|
230
|
+
},
|
|
231
|
+
splitLine: {
|
|
232
|
+
show: true,
|
|
233
|
+
lineStyle: {
|
|
234
|
+
type: "dashed",
|
|
235
|
+
color: ["#d9d9d9"]
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
splitArea: {
|
|
239
|
+
show: false,
|
|
240
|
+
areaStyle: {
|
|
241
|
+
color: ["#f0f0f0"]
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
logAxis: {
|
|
246
|
+
axisLine: {
|
|
247
|
+
show: false,
|
|
248
|
+
lineStyle: {
|
|
249
|
+
color: "#bfbfbf"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
axisTick: {
|
|
253
|
+
show: false,
|
|
254
|
+
lineStyle: {
|
|
255
|
+
color: "#bfbfbf"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
axisLabel: {
|
|
259
|
+
show: true,
|
|
260
|
+
color: "#666666"
|
|
261
|
+
},
|
|
262
|
+
splitLine: {
|
|
263
|
+
show: true,
|
|
264
|
+
lineStyle: {
|
|
265
|
+
color: ["#d9d9d9"]
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
splitArea: {
|
|
269
|
+
show: false,
|
|
270
|
+
areaStyle: {
|
|
271
|
+
color: ["#f0f0f0"]
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
timeAxis: {
|
|
276
|
+
axisLine: {
|
|
277
|
+
show: true,
|
|
278
|
+
lineStyle: {
|
|
279
|
+
color: "#bfbfbf"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
axisTick: {
|
|
283
|
+
show: true,
|
|
284
|
+
lineStyle: {
|
|
285
|
+
color: "#bfbfbf"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
axisLabel: {
|
|
289
|
+
show: true,
|
|
290
|
+
color: "#666666"
|
|
291
|
+
},
|
|
292
|
+
splitLine: {
|
|
293
|
+
show: false,
|
|
294
|
+
lineStyle: {
|
|
295
|
+
color: ["#d9d9d9"]
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
splitArea: {
|
|
299
|
+
show: false,
|
|
300
|
+
areaStyle: {
|
|
301
|
+
color: ["#f0f0f0"]
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
toolbox: {
|
|
306
|
+
iconStyle: {
|
|
307
|
+
borderColor: "#999999"
|
|
308
|
+
},
|
|
309
|
+
emphasis: {
|
|
310
|
+
iconStyle: {
|
|
311
|
+
borderColor: "#666666"
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
legend: {
|
|
316
|
+
inactiveColor: "#cccccc",
|
|
317
|
+
inactiveBorderColor: "#fff",
|
|
318
|
+
textStyle: {
|
|
319
|
+
color: "#666666",
|
|
320
|
+
lineHeight: 14
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
tooltip: {
|
|
324
|
+
axisPointer: {
|
|
325
|
+
lineStyle: {
|
|
326
|
+
color: "#bfbfbf",
|
|
327
|
+
width: "1"
|
|
328
|
+
},
|
|
329
|
+
crossStyle: {
|
|
330
|
+
color: "#bfbfbf",
|
|
331
|
+
width: "1"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
timeline: {
|
|
336
|
+
lineStyle: {
|
|
337
|
+
color: "#d9d9d9",
|
|
338
|
+
width: "1"
|
|
339
|
+
},
|
|
340
|
+
itemStyle: {
|
|
341
|
+
color: "#d9d9d9",
|
|
342
|
+
borderWidth: "1"
|
|
343
|
+
},
|
|
344
|
+
controlStyle: {
|
|
345
|
+
color: "#d9d9d9",
|
|
346
|
+
borderColor: "#d9d9d9",
|
|
347
|
+
borderWidth: "0.5"
|
|
348
|
+
},
|
|
349
|
+
checkpointStyle: {
|
|
350
|
+
color: "#5b8ff9",
|
|
351
|
+
borderColor: "#5b8ff9"
|
|
352
|
+
},
|
|
353
|
+
label: {
|
|
354
|
+
color: "#999999"
|
|
355
|
+
},
|
|
356
|
+
emphasis: {
|
|
357
|
+
itemStyle: {
|
|
358
|
+
color: "#5b8ff9"
|
|
359
|
+
},
|
|
360
|
+
controlStyle: {
|
|
361
|
+
color: "#d9d9d9",
|
|
362
|
+
borderColor: "#d9d9d9",
|
|
363
|
+
borderWidth: "0.5"
|
|
364
|
+
},
|
|
365
|
+
label: {
|
|
366
|
+
color: "#666666"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
visualMap: {
|
|
371
|
+
itemHeight: 80,
|
|
372
|
+
itemWidth: 15,
|
|
373
|
+
color: ["#5b8ff9", "#b0d0ff", "#f0f7ff"],
|
|
374
|
+
textStyle: {
|
|
375
|
+
color: "#666666"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
dataZoom: {
|
|
379
|
+
handleSize: "100%",
|
|
380
|
+
textStyle: {
|
|
381
|
+
color: "#666666"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
markPoint: {
|
|
385
|
+
label: {
|
|
386
|
+
color: "#ffffff"
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
export {
|
|
391
|
+
ChartTheme
|
|
392
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RouteRecordRaw, _RouteRecordBase, RouteComponent } from 'vue-router';
|
|
2
|
+
import { MenuItem } from '../ele-pro-layout/types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 获取路由组件方法
|
|
6
|
+
*/
|
|
7
|
+
export type GetComponent = (component?: string, menu?: MenuItem, name?: string) => (() => Promise<RouteComponent>) | RouteComponent | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* 菜单数据转为路由数据
|
|
10
|
+
* @param menus 菜单数据
|
|
11
|
+
* @param getComponent 加载组件的方法
|
|
12
|
+
* @param added 已添加的路由
|
|
13
|
+
*/
|
|
14
|
+
export declare function menuToRoutes(menus: MenuItem[] | undefined, getComponent: GetComponent, added?: _RouteRecordBase[]): RouteRecordRaw[] | undefined;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, h } from "vue";
|
|
2
|
+
import { useRoute } from "vue-router";
|
|
3
|
+
import { useProLayoutState, getIframeSrc } from "../ele-pro-layout/util";
|
|
4
|
+
import { isExternalLink, findTree } from "./core";
|
|
5
|
+
function camelCase(str) {
|
|
6
|
+
const val = str.replace(/[-|/](\w)/g, (_, c) => c ? c.toUpperCase() : "");
|
|
7
|
+
return val.charAt(0).toUpperCase() + val.slice(1);
|
|
8
|
+
}
|
|
9
|
+
function pathIsAdd(path, data) {
|
|
10
|
+
return findTree(data, (d) => path === d.path) != null;
|
|
11
|
+
}
|
|
12
|
+
function getRoutePath(path) {
|
|
13
|
+
if (!path || !path.includes("?")) {
|
|
14
|
+
return path;
|
|
15
|
+
}
|
|
16
|
+
return path.substring(0, path.indexOf("?"));
|
|
17
|
+
}
|
|
18
|
+
function getRouteComponent(menu, name, func) {
|
|
19
|
+
if (!menu.component || !isExternalLink(menu.component)) {
|
|
20
|
+
return { component: func(menu.component, menu, name) };
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
component: defineComponent({
|
|
24
|
+
name,
|
|
25
|
+
setup() {
|
|
26
|
+
var _a;
|
|
27
|
+
const proLayoutState = useProLayoutState();
|
|
28
|
+
const route = useRoute();
|
|
29
|
+
const { fullPath } = route;
|
|
30
|
+
const iframeSrc = ref(getIframeSrc(fullPath, menu.component));
|
|
31
|
+
const isAlive = ((_a = menu.meta) == null ? void 0 : _a.keepAlive) !== false;
|
|
32
|
+
const keepAlive = computed(() => !!proLayoutState.keepAlive);
|
|
33
|
+
return () => {
|
|
34
|
+
if (!isAlive || !keepAlive.value) {
|
|
35
|
+
return h("iframe", {
|
|
36
|
+
src: iframeSrc.value,
|
|
37
|
+
class: "ele-admin-iframe"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return h("div", { class: "ele-none", style: { display: "none" } });
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
44
|
+
link: true
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function menuToRoutes(menus, getComponent, added) {
|
|
48
|
+
if (!(menus == null ? void 0 : menus.length)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const routes = [];
|
|
52
|
+
const addedRoutes = added ? [...added] : [];
|
|
53
|
+
menus.forEach((item) => {
|
|
54
|
+
const meta = { ...item.meta };
|
|
55
|
+
const path = getRoutePath(meta.routePath || item.path);
|
|
56
|
+
if (path && !isExternalLink(path) && !pathIsAdd(path, addedRoutes)) {
|
|
57
|
+
const name = item.name || camelCase(path);
|
|
58
|
+
const { component, link } = getRouteComponent(item, name, getComponent);
|
|
59
|
+
if (link) {
|
|
60
|
+
meta.iframe = item.component;
|
|
61
|
+
meta.hideFooter = true;
|
|
62
|
+
}
|
|
63
|
+
addedRoutes.push({ path });
|
|
64
|
+
routes.push({
|
|
65
|
+
name,
|
|
66
|
+
path,
|
|
67
|
+
component,
|
|
68
|
+
redirect: item.redirect,
|
|
69
|
+
meta,
|
|
70
|
+
children: menuToRoutes(item.children, getComponent, addedRoutes)
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
return routes;
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
menuToRoutes
|
|
78
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AppContext } from 'vue';
|
|
2
|
+
import { ElMessageBoxOptions, MessageBoxData as ElMessageBoxData } from 'element-plus';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 消息弹窗配置
|
|
6
|
+
*/
|
|
7
|
+
export interface MessageBoxOptions extends ElMessageBoxOptions {
|
|
8
|
+
/** 是否限制在主体内部 */
|
|
9
|
+
inner?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 消息弹窗方法
|
|
13
|
+
*/
|
|
14
|
+
export type MessageBoxMethod = (message: ElMessageBoxOptions['message'], title: ElMessageBoxOptions['title'], options?: MessageBoxOptions, context?: AppContext | null) => Promise<ElMessageBoxData>;
|
|
15
|
+
/**
|
|
16
|
+
* 消息弹窗
|
|
17
|
+
*/
|
|
18
|
+
export interface MessageBox {
|
|
19
|
+
(options?: MessageBoxOptions, context?: AppContext | null): Promise<ElMessageBoxData>;
|
|
20
|
+
alert: MessageBoxMethod;
|
|
21
|
+
confirm: MessageBoxMethod;
|
|
22
|
+
prompt: MessageBoxMethod;
|
|
23
|
+
close: () => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function useMessageBox(globalOpt?: MessageBoxOptions): MessageBox;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { getCurrentInstance, onActivated, onDeactivated, onBeforeUnmount, unref, h } from "vue";
|
|
2
|
+
import { ElMessageBox } from "element-plus";
|
|
3
|
+
import { useGlobalProps } from "../ele-config-provider/receiver";
|
|
4
|
+
import { useLayoutState } from "../ele-pro-layout/util";
|
|
5
|
+
import MessageBoxIcon from "../ele-app/components/message-box-icon";
|
|
6
|
+
import { omit } from "./core";
|
|
7
|
+
function getWrapEl(bodyEl) {
|
|
8
|
+
const parent = bodyEl || document.body;
|
|
9
|
+
const className = "ele-message-box-wrapper";
|
|
10
|
+
const elem = document.createElement("div");
|
|
11
|
+
elem.classList.add(className);
|
|
12
|
+
parent.appendChild(elem);
|
|
13
|
+
return elem;
|
|
14
|
+
}
|
|
15
|
+
function useMessageBox(globalOpt) {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
const layoutState = useLayoutState();
|
|
18
|
+
const globalProps = useGlobalProps("messageBox");
|
|
19
|
+
const appContext = (_b = (_a = getCurrentInstance) == null ? void 0 : _a()) == null ? void 0 : _b.appContext;
|
|
20
|
+
const state = { wrapEl: null, isActivated: true, id: 0 };
|
|
21
|
+
const instances = /* @__PURE__ */ new Map();
|
|
22
|
+
const hideClass = "is-hide";
|
|
23
|
+
onActivated(() => {
|
|
24
|
+
state.isActivated = true;
|
|
25
|
+
state.wrapEl && state.wrapEl.classList.remove(hideClass);
|
|
26
|
+
});
|
|
27
|
+
onDeactivated(() => {
|
|
28
|
+
state.isActivated = false;
|
|
29
|
+
state.wrapEl && state.wrapEl.classList.add(hideClass);
|
|
30
|
+
});
|
|
31
|
+
onBeforeUnmount(() => {
|
|
32
|
+
for (const [_key, insDoClose] of instances) {
|
|
33
|
+
insDoClose && insDoClose();
|
|
34
|
+
}
|
|
35
|
+
instances.clear();
|
|
36
|
+
});
|
|
37
|
+
const getOption = (options) => {
|
|
38
|
+
state.id++;
|
|
39
|
+
const msgId = `m_${state.id}`;
|
|
40
|
+
const opt = {
|
|
41
|
+
...globalProps.value || {},
|
|
42
|
+
...globalOpt || {},
|
|
43
|
+
...options || {}
|
|
44
|
+
};
|
|
45
|
+
if (opt.inner) {
|
|
46
|
+
if (opt.appendTo == null && layoutState.modalsEl != null) {
|
|
47
|
+
if (state.wrapEl == null) {
|
|
48
|
+
state.wrapEl = getWrapEl(layoutState.modalsEl);
|
|
49
|
+
}
|
|
50
|
+
opt.appendTo = state.wrapEl;
|
|
51
|
+
} else if (opt.appendTo != null) {
|
|
52
|
+
opt.appendTo = unref(opt.appendTo);
|
|
53
|
+
}
|
|
54
|
+
opt.lockScroll = false;
|
|
55
|
+
} else if (opt.appendTo != null) {
|
|
56
|
+
opt.appendTo = unref(opt.appendTo);
|
|
57
|
+
}
|
|
58
|
+
const classes = ["ele-message-box"];
|
|
59
|
+
if (opt.customClass) {
|
|
60
|
+
classes.push(opt.customClass);
|
|
61
|
+
}
|
|
62
|
+
opt.customClass = classes.join(" ");
|
|
63
|
+
opt.icon = h(MessageBoxIcon, {
|
|
64
|
+
type: opt.type,
|
|
65
|
+
icon: opt.icon,
|
|
66
|
+
boxId: msgId,
|
|
67
|
+
onBoxDestroy: (boxId) => {
|
|
68
|
+
boxId && instances.delete(boxId);
|
|
69
|
+
},
|
|
70
|
+
onBoxMounted: ({ boxId, doClose }) => {
|
|
71
|
+
boxId && instances.set(boxId, doClose);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
return omit(opt, ["inner"]);
|
|
75
|
+
};
|
|
76
|
+
const messageBox = function(options) {
|
|
77
|
+
return ElMessageBox(getOption(options), appContext);
|
|
78
|
+
};
|
|
79
|
+
messageBox.alert = function(message, title, options, context) {
|
|
80
|
+
const ctx = context ?? appContext;
|
|
81
|
+
return ElMessageBox.alert(message, title, getOption(options), ctx);
|
|
82
|
+
};
|
|
83
|
+
messageBox.confirm = function(message, title, options, context) {
|
|
84
|
+
const ctx = context ?? appContext;
|
|
85
|
+
return ElMessageBox.confirm(message, title, getOption(options), ctx);
|
|
86
|
+
};
|
|
87
|
+
messageBox.prompt = function(message, title, options, context) {
|
|
88
|
+
const ctx = context ?? appContext;
|
|
89
|
+
return ElMessageBox.prompt(message, title, getOption(options), ctx);
|
|
90
|
+
};
|
|
91
|
+
messageBox.close = function() {
|
|
92
|
+
return ElMessageBox.close();
|
|
93
|
+
};
|
|
94
|
+
return messageBox;
|
|
95
|
+
}
|
|
96
|
+
export {
|
|
97
|
+
useMessageBox
|
|
98
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { AppContext, InjectionKey } from 'vue';
|
|
2
|
+
import { MessageHandler as ElMessageHandler, MessageOptions as ElMessageOptions, MessageFn as ElMessageFn } from 'element-plus/es/components/message';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 消息提示配置
|
|
6
|
+
*/
|
|
7
|
+
export interface MessageOptions extends ElMessageOptions {
|
|
8
|
+
/** 是否为原始风格 */
|
|
9
|
+
original?: boolean | 'plain';
|
|
10
|
+
/** 是否显示遮罩层 */
|
|
11
|
+
mask?: boolean;
|
|
12
|
+
/** 是否居中显示 */
|
|
13
|
+
centered?: boolean;
|
|
14
|
+
/** 是否限制在主体内部 */
|
|
15
|
+
inner?: boolean;
|
|
16
|
+
/** 限制在主体内部的分组标识 */
|
|
17
|
+
groupKey?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 消息提示方法参数
|
|
21
|
+
*/
|
|
22
|
+
export type MessageParams = MessageOptions | ElMessageOptions['message'];
|
|
23
|
+
/**
|
|
24
|
+
* 消息提示方法
|
|
25
|
+
*/
|
|
26
|
+
export type MessageFn = (options?: MessageParams, context?: null | AppContext) => ElMessageHandler;
|
|
27
|
+
/**
|
|
28
|
+
* 消息提示
|
|
29
|
+
*/
|
|
30
|
+
export interface Message extends MessageFn {
|
|
31
|
+
closeAll: ElMessageFn['closeAll'];
|
|
32
|
+
success: MessageFn;
|
|
33
|
+
warning: MessageFn;
|
|
34
|
+
error: MessageFn;
|
|
35
|
+
info: MessageFn;
|
|
36
|
+
loading: MessageFn;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 消息提示依赖注入
|
|
40
|
+
*/
|
|
41
|
+
interface MessageProvide {
|
|
42
|
+
/** 限制在主体内部的分组标识 */
|
|
43
|
+
groupKey: string;
|
|
44
|
+
/** 获取限制在主体内部的容器 */
|
|
45
|
+
getInnerWrap: () => HTMLElement;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 消息提示依赖注入key
|
|
49
|
+
*/
|
|
50
|
+
type MessageKey = InjectionKey<MessageProvide>;
|
|
51
|
+
/**
|
|
52
|
+
* 提供各种调用方法
|
|
53
|
+
* @param options 参数
|
|
54
|
+
* @param context 上下文
|
|
55
|
+
*/
|
|
56
|
+
declare const EleMessage: Message;
|
|
57
|
+
export { EleMessage };
|
|
58
|
+
/**
|
|
59
|
+
* 消息提示依赖注入key
|
|
60
|
+
*/
|
|
61
|
+
export declare const MESSAGE_KEY: MessageKey;
|
|
62
|
+
/**
|
|
63
|
+
* 带当前上下文的消息提示
|
|
64
|
+
* @param options 参数
|
|
65
|
+
*/
|
|
66
|
+
export declare function useMessage(globalOpt?: MessageOptions): Message;
|