yuang-framework-ui-pc 1.1.42 → 1.1.43
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,368 @@
|
|
|
1
|
+
/** echarts 主题 */
|
|
2
|
+
export declare const ChartTheme: {
|
|
3
|
+
color: string[];
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
textStyle: {};
|
|
6
|
+
title: {
|
|
7
|
+
textStyle: {
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
subtextStyle: {
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
line: {
|
|
15
|
+
itemStyle: {
|
|
16
|
+
borderWidth: number;
|
|
17
|
+
};
|
|
18
|
+
lineStyle: {
|
|
19
|
+
width: string;
|
|
20
|
+
};
|
|
21
|
+
symbolSize: number;
|
|
22
|
+
symbol: string;
|
|
23
|
+
smooth: boolean;
|
|
24
|
+
};
|
|
25
|
+
radar: {
|
|
26
|
+
itemStyle: {
|
|
27
|
+
borderWidth: number;
|
|
28
|
+
};
|
|
29
|
+
lineStyle: {
|
|
30
|
+
width: string;
|
|
31
|
+
};
|
|
32
|
+
symbolSize: number;
|
|
33
|
+
symbol: string;
|
|
34
|
+
smooth: boolean;
|
|
35
|
+
};
|
|
36
|
+
bar: {
|
|
37
|
+
barCategoryGap: string;
|
|
38
|
+
itemStyle: {
|
|
39
|
+
barBorderWidth: string;
|
|
40
|
+
barBorderColor: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
pie: {
|
|
44
|
+
itemStyle: {
|
|
45
|
+
borderWidth: string;
|
|
46
|
+
borderColor: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
scatter: {
|
|
50
|
+
itemStyle: {
|
|
51
|
+
borderWidth: string;
|
|
52
|
+
borderColor: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
boxplot: {
|
|
56
|
+
itemStyle: {
|
|
57
|
+
borderWidth: string;
|
|
58
|
+
borderColor: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
parallel: {
|
|
62
|
+
itemStyle: {
|
|
63
|
+
borderWidth: string;
|
|
64
|
+
borderColor: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
sankey: {
|
|
68
|
+
itemStyle: {
|
|
69
|
+
borderWidth: string;
|
|
70
|
+
borderColor: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
funnel: {
|
|
74
|
+
itemStyle: {
|
|
75
|
+
borderWidth: string;
|
|
76
|
+
borderColor: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
gauge: {
|
|
80
|
+
itemStyle: {
|
|
81
|
+
borderWidth: string;
|
|
82
|
+
borderColor: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
candlestick: {
|
|
86
|
+
itemStyle: {
|
|
87
|
+
color: string;
|
|
88
|
+
color0: string;
|
|
89
|
+
borderColor: string;
|
|
90
|
+
borderColor0: string;
|
|
91
|
+
borderWidth: number;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
graph: {
|
|
95
|
+
itemStyle: {
|
|
96
|
+
borderWidth: string;
|
|
97
|
+
borderColor: string;
|
|
98
|
+
};
|
|
99
|
+
lineStyle: {
|
|
100
|
+
width: number;
|
|
101
|
+
color: string;
|
|
102
|
+
};
|
|
103
|
+
symbolSize: number;
|
|
104
|
+
symbol: string;
|
|
105
|
+
smooth: boolean;
|
|
106
|
+
color: string[];
|
|
107
|
+
label: {
|
|
108
|
+
color: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
map: {
|
|
112
|
+
itemStyle: {
|
|
113
|
+
areaColor: string;
|
|
114
|
+
borderColor: string;
|
|
115
|
+
borderWidth: number;
|
|
116
|
+
};
|
|
117
|
+
label: {
|
|
118
|
+
color: string;
|
|
119
|
+
textBorderColor: string;
|
|
120
|
+
textBorderWidth: number;
|
|
121
|
+
};
|
|
122
|
+
emphasis: {
|
|
123
|
+
itemStyle: {
|
|
124
|
+
areaColor: string;
|
|
125
|
+
borderColor: string;
|
|
126
|
+
borderWidth: number;
|
|
127
|
+
};
|
|
128
|
+
label: {
|
|
129
|
+
color: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
geo: {
|
|
134
|
+
itemStyle: {
|
|
135
|
+
areaColor: string;
|
|
136
|
+
borderColor: string;
|
|
137
|
+
borderWidth: number;
|
|
138
|
+
};
|
|
139
|
+
label: {
|
|
140
|
+
color: string;
|
|
141
|
+
textBorderColor: string;
|
|
142
|
+
textBorderWidth: number;
|
|
143
|
+
};
|
|
144
|
+
emphasis: {
|
|
145
|
+
itemStyle: {
|
|
146
|
+
areaColor: string;
|
|
147
|
+
borderColor: string;
|
|
148
|
+
borderWidth: number;
|
|
149
|
+
};
|
|
150
|
+
label: {
|
|
151
|
+
color: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
grid: {
|
|
156
|
+
top: number;
|
|
157
|
+
right: number;
|
|
158
|
+
left: number;
|
|
159
|
+
bottom: number;
|
|
160
|
+
};
|
|
161
|
+
categoryAxis: {
|
|
162
|
+
axisLine: {
|
|
163
|
+
show: boolean;
|
|
164
|
+
lineStyle: {
|
|
165
|
+
color: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
axisTick: {
|
|
169
|
+
show: boolean;
|
|
170
|
+
lineStyle: {
|
|
171
|
+
color: string;
|
|
172
|
+
};
|
|
173
|
+
alignWithLabel: boolean;
|
|
174
|
+
};
|
|
175
|
+
axisLabel: {
|
|
176
|
+
show: boolean;
|
|
177
|
+
color: string;
|
|
178
|
+
};
|
|
179
|
+
splitLine: {
|
|
180
|
+
show: boolean;
|
|
181
|
+
lineStyle: {
|
|
182
|
+
type: string;
|
|
183
|
+
color: string[];
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
splitArea: {
|
|
187
|
+
show: boolean;
|
|
188
|
+
areaStyle: {
|
|
189
|
+
color: string[];
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
valueAxis: {
|
|
194
|
+
axisLine: {
|
|
195
|
+
show: boolean;
|
|
196
|
+
lineStyle: {
|
|
197
|
+
color: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
axisTick: {
|
|
201
|
+
show: boolean;
|
|
202
|
+
lineStyle: {
|
|
203
|
+
color: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
axisLabel: {
|
|
207
|
+
show: boolean;
|
|
208
|
+
color: string;
|
|
209
|
+
};
|
|
210
|
+
splitLine: {
|
|
211
|
+
show: boolean;
|
|
212
|
+
lineStyle: {
|
|
213
|
+
type: string;
|
|
214
|
+
color: string[];
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
splitArea: {
|
|
218
|
+
show: boolean;
|
|
219
|
+
areaStyle: {
|
|
220
|
+
color: string[];
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
logAxis: {
|
|
225
|
+
axisLine: {
|
|
226
|
+
show: boolean;
|
|
227
|
+
lineStyle: {
|
|
228
|
+
color: string;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
axisTick: {
|
|
232
|
+
show: boolean;
|
|
233
|
+
lineStyle: {
|
|
234
|
+
color: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
axisLabel: {
|
|
238
|
+
show: boolean;
|
|
239
|
+
color: string;
|
|
240
|
+
};
|
|
241
|
+
splitLine: {
|
|
242
|
+
show: boolean;
|
|
243
|
+
lineStyle: {
|
|
244
|
+
color: string[];
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
splitArea: {
|
|
248
|
+
show: boolean;
|
|
249
|
+
areaStyle: {
|
|
250
|
+
color: string[];
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
timeAxis: {
|
|
255
|
+
axisLine: {
|
|
256
|
+
show: boolean;
|
|
257
|
+
lineStyle: {
|
|
258
|
+
color: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
axisTick: {
|
|
262
|
+
show: boolean;
|
|
263
|
+
lineStyle: {
|
|
264
|
+
color: string;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
axisLabel: {
|
|
268
|
+
show: boolean;
|
|
269
|
+
color: string;
|
|
270
|
+
};
|
|
271
|
+
splitLine: {
|
|
272
|
+
show: boolean;
|
|
273
|
+
lineStyle: {
|
|
274
|
+
color: string[];
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
splitArea: {
|
|
278
|
+
show: boolean;
|
|
279
|
+
areaStyle: {
|
|
280
|
+
color: string[];
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
toolbox: {
|
|
285
|
+
iconStyle: {
|
|
286
|
+
borderColor: string;
|
|
287
|
+
};
|
|
288
|
+
emphasis: {
|
|
289
|
+
iconStyle: {
|
|
290
|
+
borderColor: string;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
legend: {
|
|
295
|
+
inactiveColor: string;
|
|
296
|
+
inactiveBorderColor: string;
|
|
297
|
+
textStyle: {
|
|
298
|
+
color: string;
|
|
299
|
+
lineHeight: number;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
tooltip: {
|
|
303
|
+
axisPointer: {
|
|
304
|
+
lineStyle: {
|
|
305
|
+
color: string;
|
|
306
|
+
width: string;
|
|
307
|
+
};
|
|
308
|
+
crossStyle: {
|
|
309
|
+
color: string;
|
|
310
|
+
width: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
timeline: {
|
|
315
|
+
lineStyle: {
|
|
316
|
+
color: string;
|
|
317
|
+
width: string;
|
|
318
|
+
};
|
|
319
|
+
itemStyle: {
|
|
320
|
+
color: string;
|
|
321
|
+
borderWidth: string;
|
|
322
|
+
};
|
|
323
|
+
controlStyle: {
|
|
324
|
+
color: string;
|
|
325
|
+
borderColor: string;
|
|
326
|
+
borderWidth: string;
|
|
327
|
+
};
|
|
328
|
+
checkpointStyle: {
|
|
329
|
+
color: string;
|
|
330
|
+
borderColor: string;
|
|
331
|
+
};
|
|
332
|
+
label: {
|
|
333
|
+
color: string;
|
|
334
|
+
};
|
|
335
|
+
emphasis: {
|
|
336
|
+
itemStyle: {
|
|
337
|
+
color: string;
|
|
338
|
+
};
|
|
339
|
+
controlStyle: {
|
|
340
|
+
color: string;
|
|
341
|
+
borderColor: string;
|
|
342
|
+
borderWidth: string;
|
|
343
|
+
};
|
|
344
|
+
label: {
|
|
345
|
+
color: string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
visualMap: {
|
|
350
|
+
itemHeight: number;
|
|
351
|
+
itemWidth: number;
|
|
352
|
+
color: string[];
|
|
353
|
+
textStyle: {
|
|
354
|
+
color: string;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
dataZoom: {
|
|
358
|
+
handleSize: string;
|
|
359
|
+
textStyle: {
|
|
360
|
+
color: string;
|
|
361
|
+
};
|
|
362
|
+
};
|
|
363
|
+
markPoint: {
|
|
364
|
+
label: {
|
|
365
|
+
color: string;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
};
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function toTree(option) {
|
|
4
|
+
const data = option.data;
|
|
5
|
+
const idField = option.idField || "id";
|
|
6
|
+
const parentIdField = option.parentIdField || "parentId";
|
|
7
|
+
const childrenField = option.childrenField || "children";
|
|
8
|
+
const parentIdIsNull = option.parentId == null;
|
|
9
|
+
const parentId = parentIdIsNull ? [] : option.parentId;
|
|
10
|
+
const parentIdIsArray = Array.isArray(parentId);
|
|
11
|
+
const addParentIds = option.addParentIds;
|
|
12
|
+
const parentIdsField = option.parentIdsField || "parentIds";
|
|
13
|
+
const parentIds = option.parentIds ?? [];
|
|
14
|
+
if (data == null) {
|
|
15
|
+
return [];
|
|
16
|
+
}
|
|
17
|
+
if (parentIdIsNull) {
|
|
18
|
+
data.forEach((d) => {
|
|
19
|
+
if (!data.some((t) => d[parentIdField] == t[idField]) && !parentId.includes(d[parentIdField])) {
|
|
20
|
+
parentId.push(d[parentIdField]);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
const result = [];
|
|
25
|
+
data.forEach((d) => {
|
|
26
|
+
if (d[idField] == d[parentIdField]) {
|
|
27
|
+
const error = {
|
|
28
|
+
[idField]: d[idField],
|
|
29
|
+
[parentIdField]: d[parentIdField],
|
|
30
|
+
data: d
|
|
31
|
+
};
|
|
32
|
+
console.error("data error:", error);
|
|
33
|
+
throw new Error("data error");
|
|
34
|
+
}
|
|
35
|
+
if (parentIdIsArray ? parentId.includes(d[parentIdField]) : d[parentIdField] == parentId) {
|
|
36
|
+
const t = { ...d };
|
|
37
|
+
const children = toTree({
|
|
38
|
+
data,
|
|
39
|
+
idField,
|
|
40
|
+
parentIdField,
|
|
41
|
+
childrenField,
|
|
42
|
+
parentId: d[idField],
|
|
43
|
+
addParentIds,
|
|
44
|
+
parentIdsField,
|
|
45
|
+
parentIds: [...parentIds, d[idField]]
|
|
46
|
+
});
|
|
47
|
+
if (children.length > 0) {
|
|
48
|
+
t[childrenField] = children;
|
|
49
|
+
}
|
|
50
|
+
if (addParentIds) {
|
|
51
|
+
t[parentIdsField] = parentIds;
|
|
52
|
+
}
|
|
53
|
+
result.push(t);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
function eachTree(data, callback, childrenField = "children", parent) {
|
|
59
|
+
if (data) {
|
|
60
|
+
data.forEach((d, i) => {
|
|
61
|
+
var _a;
|
|
62
|
+
if (callback && callback(d, i, parent) !== false && ((_a = d[childrenField]) == null ? void 0 : _a.length)) {
|
|
63
|
+
eachTree(d[childrenField], callback, childrenField, d);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function mapTree(data, formatter, childrenField = "children", resultChildrenField = "children", parent) {
|
|
69
|
+
const result = [];
|
|
70
|
+
if (data && data.length) {
|
|
71
|
+
data.forEach((d, i) => {
|
|
72
|
+
const item = formatter(d, i, parent);
|
|
73
|
+
if (item) {
|
|
74
|
+
if (d[childrenField] != null) {
|
|
75
|
+
item[resultChildrenField] = mapTree(
|
|
76
|
+
d[childrenField],
|
|
77
|
+
formatter,
|
|
78
|
+
childrenField,
|
|
79
|
+
resultChildrenField,
|
|
80
|
+
item
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
result.push(item);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
function findTree(data, predicate, childrenField) {
|
|
90
|
+
let temp;
|
|
91
|
+
eachTree(
|
|
92
|
+
data,
|
|
93
|
+
(d, i) => {
|
|
94
|
+
if (predicate(d, i)) {
|
|
95
|
+
temp = d;
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
childrenField
|
|
100
|
+
);
|
|
101
|
+
return temp;
|
|
102
|
+
}
|
|
103
|
+
function random(m, n) {
|
|
104
|
+
return Math.floor(Math.random() * (m - n) + n);
|
|
105
|
+
}
|
|
106
|
+
function uuid(length = 32, radix) {
|
|
107
|
+
const str = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
108
|
+
let result = "";
|
|
109
|
+
for (let i = 0; i < length; i++) {
|
|
110
|
+
result += str.charAt(Math.floor(Math.random() * (radix || str.length)));
|
|
111
|
+
}
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
function formatNumber(num) {
|
|
115
|
+
return String(num ?? "").replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g, "$1,");
|
|
116
|
+
}
|
|
117
|
+
function assignObject(target, source, excludes) {
|
|
118
|
+
Object.keys(target).forEach((key) => {
|
|
119
|
+
var _a;
|
|
120
|
+
if (!((_a = excludes == null ? void 0 : excludes.includes) == null ? void 0 : _a.call(excludes, key))) {
|
|
121
|
+
target[key] = source[key];
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
return target;
|
|
125
|
+
}
|
|
126
|
+
function isExternalLink(url) {
|
|
127
|
+
return !!(url && (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("//")));
|
|
128
|
+
}
|
|
129
|
+
function queryChild(parentEl, className, attr) {
|
|
130
|
+
return Array.from((parentEl == null ? void 0 : parentEl.children) ?? []).find((el) => {
|
|
131
|
+
if (className && !el.classList.contains(className)) {
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
if (attr != null && attr[0] != null) {
|
|
135
|
+
if (el.getAttribute(attr[0]) != attr[1]) {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return true;
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function getCurrentStyle(el) {
|
|
143
|
+
return el["currentStyle"] || window.getComputedStyle(el, null) || {};
|
|
144
|
+
}
|
|
145
|
+
function contentIsEllipsis(el, direction) {
|
|
146
|
+
if (!el || !el.childNodes.length) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
const range = document.createRange();
|
|
150
|
+
range.setStart(el, 0);
|
|
151
|
+
range.setEnd(el, el.childNodes.length);
|
|
152
|
+
const { width, height } = range.getBoundingClientRect();
|
|
153
|
+
const floorW = Math.floor(width);
|
|
154
|
+
const rangeWidth = width - floorW < 8e-3 ? floorW : width;
|
|
155
|
+
const floorH = Math.floor(height);
|
|
156
|
+
const rangeHeight = height - floorH < 8e-3 ? floorH : height;
|
|
157
|
+
const style = getCurrentStyle(el);
|
|
158
|
+
const top = Number.parseInt(style.paddingTop) || 0;
|
|
159
|
+
const left = Number.parseInt(style.paddingLeft) || 0;
|
|
160
|
+
const right = Number.parseInt(style.paddingRight) || 0;
|
|
161
|
+
const bottom = Number.parseInt(style.paddingBottom) || 0;
|
|
162
|
+
const horizontalPadding = left + right;
|
|
163
|
+
const verticalPadding = top + bottom;
|
|
164
|
+
if (direction === "horizontal") {
|
|
165
|
+
return rangeWidth + horizontalPadding > el.offsetWidth || el.scrollWidth > el.offsetWidth;
|
|
166
|
+
}
|
|
167
|
+
if (direction === "vertical") {
|
|
168
|
+
return rangeHeight + verticalPadding > el.offsetHeight || el.scrollHeight > el.offsetHeight;
|
|
169
|
+
}
|
|
170
|
+
return rangeWidth + horizontalPadding > el.offsetWidth || rangeHeight + verticalPadding > el.offsetHeight || el.scrollWidth > el.offsetWidth;
|
|
171
|
+
}
|
|
172
|
+
function checkFullscreen() {
|
|
173
|
+
return !!(document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement);
|
|
174
|
+
}
|
|
175
|
+
function exitFullscreen() {
|
|
176
|
+
const func = document.exitFullscreen || document.exitFullScreen || document.webkitCancelFullScreen || document.mozCancelFullScreen || document.msExitFullscreen;
|
|
177
|
+
func && func.call(document);
|
|
178
|
+
}
|
|
179
|
+
function requestFullscreen(el) {
|
|
180
|
+
if (el == null) {
|
|
181
|
+
el = document.documentElement;
|
|
182
|
+
}
|
|
183
|
+
const func = el.requestFullscreen || el.requestFullScreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el.msRequestFullScreen;
|
|
184
|
+
if (!func) {
|
|
185
|
+
throw new Error("您的浏览器不支持全屏模式");
|
|
186
|
+
}
|
|
187
|
+
func.call(el);
|
|
188
|
+
}
|
|
189
|
+
function bd09ToGcj02(point) {
|
|
190
|
+
const x_pi = 3.141592653589793 * 3e3 / 180;
|
|
191
|
+
const x = point.lng - 65e-4;
|
|
192
|
+
const y = point.lat - 6e-3;
|
|
193
|
+
const z = Math.sqrt(x * x + y * y) - 2e-5 * Math.sin(y * x_pi);
|
|
194
|
+
const theta = Math.atan2(y, x) - 3e-6 * Math.cos(x * x_pi);
|
|
195
|
+
return {
|
|
196
|
+
lng: z * Math.cos(theta),
|
|
197
|
+
lat: z * Math.sin(theta)
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function gcj02ToBd09(point) {
|
|
201
|
+
const x_pi = 3.141592653589793 * 3e3 / 180;
|
|
202
|
+
const x = point.lng;
|
|
203
|
+
const y = point.lat;
|
|
204
|
+
const z = Math.sqrt(x * x + y * y) + 2e-5 * Math.sin(y * x_pi);
|
|
205
|
+
const theta = Math.atan2(y, x) + 3e-6 * Math.cos(x * x_pi);
|
|
206
|
+
return {
|
|
207
|
+
lng: z * Math.cos(theta) + 65e-4,
|
|
208
|
+
lat: z * Math.sin(theta) + 6e-3
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
async function copyText(text) {
|
|
212
|
+
var _a;
|
|
213
|
+
if (typeof ((_a = navigator == null ? void 0 : navigator.clipboard) == null ? void 0 : _a.writeText) === "function") {
|
|
214
|
+
await navigator.clipboard.writeText(text);
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
const el = document.createElement("textarea");
|
|
218
|
+
el.value = text;
|
|
219
|
+
el.style.position = "fixed";
|
|
220
|
+
el.style.top = "-200px";
|
|
221
|
+
el.style.left = "-200px";
|
|
222
|
+
el.style.width = "100px";
|
|
223
|
+
el.style.height = "100px";
|
|
224
|
+
document.body.appendChild(el);
|
|
225
|
+
el.focus();
|
|
226
|
+
el.select();
|
|
227
|
+
if (!document.execCommand("copy")) {
|
|
228
|
+
el.remove();
|
|
229
|
+
return Promise.reject(new Error("浏览器不支持复制"));
|
|
230
|
+
}
|
|
231
|
+
el.remove();
|
|
232
|
+
}
|
|
233
|
+
function getValue(data, path, defaultValue) {
|
|
234
|
+
if (data == null) {
|
|
235
|
+
return defaultValue;
|
|
236
|
+
}
|
|
237
|
+
const pathType = typeof path;
|
|
238
|
+
if (pathType === "function") {
|
|
239
|
+
return path(data);
|
|
240
|
+
}
|
|
241
|
+
const fields = (pathType === "string" ? path.match(/[^\[\].]+/g) : path) ?? [];
|
|
242
|
+
let result = data;
|
|
243
|
+
for (const key of fields) {
|
|
244
|
+
result = result[key.trim()];
|
|
245
|
+
}
|
|
246
|
+
return typeof result === "undefined" ? defaultValue : result;
|
|
247
|
+
}
|
|
248
|
+
function debounce(func, wait) {
|
|
249
|
+
let timer = void 0;
|
|
250
|
+
const debounced = function(...args) {
|
|
251
|
+
if (timer) {
|
|
252
|
+
clearTimeout(timer);
|
|
253
|
+
}
|
|
254
|
+
timer = setTimeout(() => {
|
|
255
|
+
func.apply(this, args);
|
|
256
|
+
timer = void 0;
|
|
257
|
+
}, wait);
|
|
258
|
+
};
|
|
259
|
+
return debounced;
|
|
260
|
+
}
|
|
261
|
+
function throttle(func, wait, trailing) {
|
|
262
|
+
let timer = void 0;
|
|
263
|
+
const debounced = function(...args) {
|
|
264
|
+
if (!timer) {
|
|
265
|
+
if (!trailing) {
|
|
266
|
+
func.apply(this, args);
|
|
267
|
+
}
|
|
268
|
+
timer = setTimeout(() => {
|
|
269
|
+
if (trailing) {
|
|
270
|
+
func.apply(this, args);
|
|
271
|
+
}
|
|
272
|
+
timer = void 0;
|
|
273
|
+
}, wait);
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
return debounced;
|
|
277
|
+
}
|
|
278
|
+
function omit(obj, fields) {
|
|
279
|
+
const result = Object.assign({}, obj);
|
|
280
|
+
if (obj) {
|
|
281
|
+
for (const key of fields) {
|
|
282
|
+
delete result[key];
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return result;
|
|
286
|
+
}
|
|
287
|
+
function pick(obj, fields) {
|
|
288
|
+
const result = {};
|
|
289
|
+
if (obj) {
|
|
290
|
+
for (const key of fields) {
|
|
291
|
+
result[key] = obj[key];
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return result;
|
|
295
|
+
}
|
|
296
|
+
exports.assignObject = assignObject;
|
|
297
|
+
exports.bd09ToGcj02 = bd09ToGcj02;
|
|
298
|
+
exports.checkFullscreen = checkFullscreen;
|
|
299
|
+
exports.contentIsEllipsis = contentIsEllipsis;
|
|
300
|
+
exports.copyText = copyText;
|
|
301
|
+
exports.debounce = debounce;
|
|
302
|
+
exports.eachTree = eachTree;
|
|
303
|
+
exports.exitFullscreen = exitFullscreen;
|
|
304
|
+
exports.findTree = findTree;
|
|
305
|
+
exports.formatNumber = formatNumber;
|
|
306
|
+
exports.gcj02ToBd09 = gcj02ToBd09;
|
|
307
|
+
exports.getCurrentStyle = getCurrentStyle;
|
|
308
|
+
exports.getValue = getValue;
|
|
309
|
+
exports.isExternalLink = isExternalLink;
|
|
310
|
+
exports.mapTree = mapTree;
|
|
311
|
+
exports.omit = omit;
|
|
312
|
+
exports.pick = pick;
|
|
313
|
+
exports.queryChild = queryChild;
|
|
314
|
+
exports.random = random;
|
|
315
|
+
exports.requestFullscreen = requestFullscreen;
|
|
316
|
+
exports.throttle = throttle;
|
|
317
|
+
exports.toTree = toTree;
|
|
318
|
+
exports.uuid = uuid;
|