win-chart 2.3.2 → 2.4.0
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/dist/bundle.esm.js +5 -281
- package/dist/bundle.esm.js.map +1 -0
- package/dist/index.d.ts +1 -183
- package/dist/types/components/WinChart.d.ts +3 -0
- package/dist/types/index.d.ts +2 -4
- package/dist/types/types/index.d.ts +90 -8
- package/dist/types/utils/const.d.ts +4 -10
- package/dist/types/{components/win-chart/utils → utils}/tool.d.ts +6 -0
- package/package.json +8 -10
- package/dist/types/api/request.d.ts +0 -25
- package/dist/types/components/NoContent.d.ts +0 -11
- package/dist/types/components/VisionUserConfigContext.d.ts +0 -3
- package/dist/types/components/hover-view.d.ts +0 -11
- package/dist/types/components/icon.d.ts +0 -11
- package/dist/types/components/panel-title-tab.d.ts +0 -12
- package/dist/types/components/win-card/components/ChartContent.d.ts +0 -7
- package/dist/types/components/win-card/components/Indicator.d.ts +0 -2
- package/dist/types/components/win-card/components/IndicatorArea.d.ts +0 -2
- package/dist/types/components/win-card/components/IndicatorInfo.d.ts +0 -11
- package/dist/types/components/win-card/components/MatterContent.d.ts +0 -5
- package/dist/types/components/win-card/components/MatterList.d.ts +0 -7
- package/dist/types/components/win-card/components/SelectDecoration.d.ts +0 -4
- package/dist/types/components/win-card/components/WinRankContent.d.ts +0 -1
- package/dist/types/components/win-card/index.d.ts +0 -14
- package/dist/types/components/win-chart/index.d.ts +0 -3
- package/dist/types/components/win-chart/utils/const.d.ts +0 -8
- package/dist/types/components/win-icon/index.d.ts +0 -8
- package/dist/types/components/win-wrappers/card-wrapper.d.ts +0 -17
- package/dist/types/components/win-wrappers/dot-wrapper.d.ts +0 -4
- package/dist/types/components/win-wrappers/iframe-wrapper.d.ts +0 -2
- package/dist/types/components/win-wrappers/request-wrapper.d.ts +0 -41
- package/dist/types/hooks/useCardOptionList.d.ts +0 -2
- package/dist/types/hooks/useHasIntersected.d.ts +0 -8
- package/dist/types/services/CardService.d.ts +0 -33
- package/dist/types/services/IndicatorService.d.ts +0 -19
- package/dist/types/services/WorkbenchService.d.ts +0 -17
- package/dist/types/types/chart.d.ts +0 -90
- package/dist/types/types/enum.d.ts +0 -128
- package/dist/types/types/indicator.d.ts +0 -252
- package/dist/types/types/interface.d.ts +0 -271
- package/dist/types/types/portal.d.ts +0 -180
- package/dist/types/types/report.d.ts +0 -25
- package/dist/types/types/type.d.ts +0 -9
- package/dist/types/types/user.d.ts +0 -26
- package/dist/types/utils/arr.d.ts +0 -41
- package/dist/types/utils/index.d.ts +0 -10
- package/dist/types/utils/init.d.ts +0 -5
- package/dist/types/utils/map.d.ts +0 -84
- package/dist/types/utils/str.d.ts +0 -12
- package/dist/types/utils/url.d.ts +0 -15
- package/dist/types/utils/util.d.ts +0 -14
- /package/dist/types/components/{win-chart/components/chart-wrapper.d.ts → ChartWrapper.d.ts} +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getAreaSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getBarSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getChartOptions.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getColumnSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getDualSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getFunnelSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getLineSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getPieSpec.d.ts +0 -0
- /package/dist/types/{components/win-chart/utils → utils}/getRadarSpec.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React$1, { CSSProperties } from 'react';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* 标准图表数据
|
|
@@ -108,187 +107,6 @@ declare enum WinChartType {
|
|
|
108
107
|
RADAR,
|
|
109
108
|
}
|
|
110
109
|
|
|
111
|
-
declare enum WinCardChartType {
|
|
112
|
-
/**
|
|
113
|
-
* 指标卡片
|
|
114
|
-
*/
|
|
115
|
-
INDICATOR = 'INDICATOR',
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* 指标加面积图
|
|
119
|
-
*/
|
|
120
|
-
INDICATOR_AREA = 'INDICATOR_AREA',
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* 指标加面积图
|
|
124
|
-
*/
|
|
125
|
-
AREA_CHART = 'AREA_CHART',
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* 折线图卡片
|
|
129
|
-
*/
|
|
130
|
-
LINE_CHART = 'LINE_CHART',
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* 柱状图
|
|
134
|
-
*/
|
|
135
|
-
COLUMN_CHART = 'COLUMN_CHART',
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* 堆叠柱状图
|
|
139
|
-
*/
|
|
140
|
-
STACK_COLUMN_CHART = 'STACK_COLUMN_CHART',
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* 条形图
|
|
144
|
-
*/
|
|
145
|
-
BAR_CHART = 'BAR_CHART',
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* 双轴图
|
|
149
|
-
*/
|
|
150
|
-
DUAL_LINE_BAR_CHART = 'DUAL_LINE_COLUMN_CHART',
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* 漏斗图
|
|
154
|
-
*/
|
|
155
|
-
FUNNEL_CHART = 'FUNNEL_CHART',
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* 饼图
|
|
159
|
-
*/
|
|
160
|
-
PIE_CHART = 'PIE_CHART',
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* 饼图(以指标项展示)
|
|
164
|
-
*/
|
|
165
|
-
PIE_CHART_RESERVE = 'PIE_CHART_RESERVE',
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* 环图
|
|
169
|
-
*/
|
|
170
|
-
CYCLE_CHART = 'CYCLE_CHART',
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* 雷达图
|
|
174
|
-
*/
|
|
175
|
-
RADAR_CHART = 'RADAR_CHART',
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* 雷达图(以指标项展示)
|
|
179
|
-
*/
|
|
180
|
-
RADAR_CHART_RESERVE = 'RADAR_CHART_RESERVE',
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* 自定义卡片
|
|
184
|
-
*/
|
|
185
|
-
CUSTOM_CARD = 'CUSTOM_CARD',
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
interface IVisionUserConfig {
|
|
189
|
-
[p: string]: string;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* 页面状态
|
|
194
|
-
*/
|
|
195
|
-
type WinCardStatus = 'ONLINE' | 'OFFLINE';
|
|
196
|
-
|
|
197
|
-
interface IIndicatorConfig {
|
|
198
|
-
id: number;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* 单位
|
|
202
|
-
*/
|
|
203
|
-
unit: string;
|
|
204
|
-
/**
|
|
205
|
-
* 指标所在侧 0 左 1 右
|
|
206
|
-
*/
|
|
207
|
-
yAxis: number;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* 指标别名
|
|
211
|
-
*/
|
|
212
|
-
alias?: string;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* 是否堆叠
|
|
216
|
-
*/
|
|
217
|
-
isStack?: boolean;
|
|
218
|
-
|
|
219
|
-
extra?: {
|
|
220
|
-
/**
|
|
221
|
-
* 默认 0 日期 0 目标 1
|
|
222
|
-
*/
|
|
223
|
-
subTitle: number;
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
type IndicatorCardSize = 'min' | 'medium' | 'max';
|
|
228
|
-
|
|
229
|
-
interface IIndicatorCardConfig {
|
|
230
|
-
subscribed?: boolean;
|
|
231
|
-
name: string;
|
|
232
|
-
id: number;
|
|
233
|
-
type: string;
|
|
234
|
-
dataAccCode: string;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* 业务分类
|
|
238
|
-
*/
|
|
239
|
-
bizCode: string;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* 卡片类型
|
|
243
|
-
*/
|
|
244
|
-
chartType: WinCardChartType;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* 占多少个网格
|
|
248
|
-
*/
|
|
249
|
-
colWidth: number;
|
|
250
|
-
colHeight: number;
|
|
251
|
-
description: string;
|
|
252
|
-
detailUrl: string;
|
|
253
|
-
status: WinCardStatus;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* 排序
|
|
257
|
-
*/
|
|
258
|
-
rankOrder: number;
|
|
259
|
-
commonConfig: {
|
|
260
|
-
orgLevel: string;
|
|
261
|
-
labelField: string;
|
|
262
|
-
limit: number;
|
|
263
|
-
color?: string[];
|
|
264
|
-
yStart?: number[];
|
|
265
|
-
xAxisLabelRotate?: number;
|
|
266
|
-
xAxisLabelLength?: number;
|
|
267
|
-
sort?: 'asc' | 'desc';
|
|
268
|
-
};
|
|
269
|
-
indicatorConfig: IIndicatorConfig[];
|
|
270
|
-
sizeMap: {
|
|
271
|
-
min: [1, 2];
|
|
272
|
-
medium: [1, 4];
|
|
273
|
-
max: [2, 4];
|
|
274
|
-
};
|
|
275
|
-
size: IndicatorCardSize;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
110
|
declare const WinChart: ({ theme, className, style, extraOption, extraSeriesOption, ...args }: IWinChartProps) => react_jsx_runtime.JSX.Element;
|
|
279
111
|
|
|
280
|
-
|
|
281
|
-
id: number;
|
|
282
|
-
config?: IIndicatorCardConfig;
|
|
283
|
-
style?: CSSProperties;
|
|
284
|
-
context?: React.Context<IVisionUserConfig>;
|
|
285
|
-
fixSize?: boolean;
|
|
286
|
-
spanWidth?: number;
|
|
287
|
-
spanHeight?: number;
|
|
288
|
-
showSwitch?: boolean;
|
|
289
|
-
}
|
|
290
|
-
declare const WinCard: ({ id, config, style, fixSize, context, spanWidth, spanHeight, showSwitch, }: IProps) => react_jsx_runtime.JSX.Element;
|
|
291
|
-
|
|
292
|
-
declare const VisionUserConfigContext: React$1.Context<IVisionUserConfig>;
|
|
293
|
-
|
|
294
|
-
export { type IChartInfo as ICharInfo, type IWinChartProps, VisionUserConfigContext, WinCard, WinChart, WinChartType, WinChart as default };
|
|
112
|
+
export { type IChartInfo, type IWinChartProps, WinChart, WinChartType, WinChart as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IChartInfo, IWinChartProps, WinChartType } from '@/types';
|
|
2
|
+
declare const WinChart: ({ theme, className, style, extraOption, extraSeriesOption, ...args }: IWinChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { WinChart, IWinChartProps, WinChartType, IChartInfo };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { WinChart,
|
|
2
|
-
|
|
3
|
-
import { VisionUserConfigContext } from './components/VisionUserConfigContext';
|
|
4
|
-
export { WinChart, WinChartType, IWinChartProps, ICharInfo, WinCard, VisionUserConfigContext, };
|
|
1
|
+
import { WinChart, IWinChartProps, WinChartType, IChartInfo } from './components/WinChart';
|
|
2
|
+
export { WinChart, IWinChartProps, WinChartType, IChartInfo };
|
|
5
3
|
export default WinChart;
|
|
@@ -1,8 +1,90 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* 标准图表数据
|
|
4
|
+
*/
|
|
5
|
+
export interface IChartInfo {
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
type?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IWinChartProps {
|
|
11
|
+
theme?: 'light' | 'dark';
|
|
12
|
+
sort?: 'asc' | 'desc';
|
|
13
|
+
color?: string[];
|
|
14
|
+
chartType?: WinChartType;
|
|
15
|
+
xAxisLabelRotate?: number;
|
|
16
|
+
xAxisLabelLength?: number;
|
|
17
|
+
data?: IChartInfo[];
|
|
18
|
+
extraData?: IChartInfo[];
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
/**
|
|
22
|
+
* label 与 value 取值互换 (只作用饼图、环图、雷达图图表)
|
|
23
|
+
*/
|
|
24
|
+
reserveValueWithLabelType?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Y 轴起始值
|
|
27
|
+
*/
|
|
28
|
+
yStart?: number[];
|
|
29
|
+
/**
|
|
30
|
+
* 系列配置
|
|
31
|
+
*/
|
|
32
|
+
extraSeriesOption?: echarts.SeriesOption[];
|
|
33
|
+
/**
|
|
34
|
+
* 自定义配置,优先级最高,会覆盖默认配置(采用deepmerge,只覆盖差异部分)
|
|
35
|
+
*/
|
|
36
|
+
extraOption?: echarts.EChartsOption;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 图表类型
|
|
40
|
+
*/
|
|
41
|
+
export declare enum WinChartType {
|
|
42
|
+
/**
|
|
43
|
+
* MINI面积图
|
|
44
|
+
*/
|
|
45
|
+
MINI_AREA = 0,
|
|
46
|
+
/**
|
|
47
|
+
* 面积图
|
|
48
|
+
*/
|
|
49
|
+
AREA = 1,
|
|
50
|
+
/**
|
|
51
|
+
* 双轴图
|
|
52
|
+
*/
|
|
53
|
+
DUAL_LINE_BAR = 2,
|
|
54
|
+
/**
|
|
55
|
+
* 堆叠双轴图
|
|
56
|
+
*/
|
|
57
|
+
STACK_DUAL_LINE_BAR = 3,
|
|
58
|
+
/**
|
|
59
|
+
* 柱状图
|
|
60
|
+
*/
|
|
61
|
+
COLUMN = 4,
|
|
62
|
+
/**
|
|
63
|
+
* 堆叠柱状图
|
|
64
|
+
*/
|
|
65
|
+
STACK_COLUMN = 5,
|
|
66
|
+
/**
|
|
67
|
+
* 折线图
|
|
68
|
+
*/
|
|
69
|
+
LINE = 6,
|
|
70
|
+
/**
|
|
71
|
+
* 条形图
|
|
72
|
+
*/
|
|
73
|
+
BAR = 7,
|
|
74
|
+
/**
|
|
75
|
+
* 漏斗图
|
|
76
|
+
*/
|
|
77
|
+
FUNNEL = 8,
|
|
78
|
+
/**
|
|
79
|
+
* 饼图
|
|
80
|
+
*/
|
|
81
|
+
PIE = 9,
|
|
82
|
+
/**
|
|
83
|
+
* 环形图
|
|
84
|
+
*/
|
|
85
|
+
CYCLE = 10,
|
|
86
|
+
/**
|
|
87
|
+
* 雷达图
|
|
88
|
+
*/
|
|
89
|
+
RADAR = 11
|
|
90
|
+
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 色值
|
|
3
3
|
*/
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const COLOR_LIST: string[];
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* 通用配置
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const DATA_PAGE_BASE_URL = "/data";
|
|
10
|
-
export declare const NEXT_PAGE_BASE_NAME = "/cone/next";
|
|
11
|
-
/**
|
|
12
|
-
* 响应式断点
|
|
13
|
-
*/
|
|
14
|
-
export declare const RESPONSIVE_BREAKPOINT = "768px";
|
|
8
|
+
export declare const commonOpt: echarts.EChartsOption;
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "win-chart",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "菜鸟地网统一图表组件",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
8
|
-
"main": "dist/bundle.
|
|
8
|
+
"main": "dist/bundle.esm.js",
|
|
9
9
|
"module": "dist/bundle.esm.js",
|
|
10
|
-
"unpkg": "dist/bundle.umd.js",
|
|
11
10
|
"types": "dist/index.d.ts",
|
|
12
11
|
"type": "module",
|
|
13
12
|
"scripts": {
|
|
@@ -25,8 +24,12 @@
|
|
|
25
24
|
],
|
|
26
25
|
"dependencies": {
|
|
27
26
|
"@cainiaofe/cn-ui": "^0.11.16",
|
|
27
|
+
"@ice/jsx-runtime": "^0.2.0",
|
|
28
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
29
|
+
"@swc/helpers": "^0.5.1",
|
|
28
30
|
"ahooks": "^3.7.8",
|
|
29
31
|
"axios": "^1.6.7",
|
|
32
|
+
"core-js": "^3.36.1",
|
|
30
33
|
"d3": "^7.8.5",
|
|
31
34
|
"dayjs": "^1.11.10",
|
|
32
35
|
"deepmerge": "^4.3.1",
|
|
@@ -36,9 +39,7 @@
|
|
|
36
39
|
"qs": "^6.11.2",
|
|
37
40
|
"react": "^18.2.0",
|
|
38
41
|
"react-dom": "^18.2.0",
|
|
39
|
-
"styled-components": "^6.1.8"
|
|
40
|
-
"@swc/helpers": "^0.5.1",
|
|
41
|
-
"@ice/jsx-runtime": "^0.2.0"
|
|
42
|
+
"styled-components": "^6.1.8"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@rollup/plugin-alias": "^5.1.0",
|
|
@@ -54,10 +55,7 @@
|
|
|
54
55
|
"eslint-config-react-app": "^7.0.1",
|
|
55
56
|
"rollup": "^4.13.0",
|
|
56
57
|
"rollup-plugin-dts": "^6.1.0",
|
|
57
|
-
"rollup-plugin-postcss": "^4.0.2"
|
|
58
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
59
|
-
"@ice/pkg": "^1.0.0",
|
|
60
|
-
"@ice/runtime": "^1.0.0"
|
|
58
|
+
"rollup-plugin-postcss": "^4.0.2"
|
|
61
59
|
},
|
|
62
60
|
"peerDependencies": {
|
|
63
61
|
"react": "^17 || ^18"
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { IResponse } from '@/types/interface';
|
|
3
|
-
/**
|
|
4
|
-
* boss内部未登入错误码
|
|
5
|
-
*/
|
|
6
|
-
export declare const bossBUCWithoutLoginErrorCodeList: string[];
|
|
7
|
-
/**
|
|
8
|
-
* boss外部未登入错误码(菜鸟登陆需要两次encodeURIComponent)
|
|
9
|
-
*/
|
|
10
|
-
export declare const bossCaiNiaoWithoutLoginErrorCodeList: string[];
|
|
11
|
-
/**
|
|
12
|
-
* boss内外部无权限错误码
|
|
13
|
-
*/
|
|
14
|
-
export declare const bossWithoutAccessErrCodeList: string[];
|
|
15
|
-
/**
|
|
16
|
-
* 未登入错误码
|
|
17
|
-
*/
|
|
18
|
-
export declare const withoutLoginErrorCodeList: string[];
|
|
19
|
-
/**
|
|
20
|
-
* 无权限错误码
|
|
21
|
-
*/
|
|
22
|
-
export declare const withoutAccessErrorCodeList: string[];
|
|
23
|
-
declare const request: import("axios").AxiosInstance;
|
|
24
|
-
export default request;
|
|
25
|
-
export declare const newRequest: <T>(config: AxiosRequestConfig<any>) => Promise<IResponse<T>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
direction?: 'row' | 'column' | 'row-reverse';
|
|
4
|
-
style: CSSProperties;
|
|
5
|
-
message: string;
|
|
6
|
-
className: string;
|
|
7
|
-
isDark: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const NoContent: ({ direction, message, style, className, isDark, }: Partial<IProps>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare const NoAssess: ({ direction, message, style, className, }: Partial<IProps>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { IStyleProps } from '@/types';
|
|
3
|
-
interface IProps extends IStyleProps {
|
|
4
|
-
content: ReactNode;
|
|
5
|
-
style?: CSSProperties;
|
|
6
|
-
cStyle?: CSSProperties;
|
|
7
|
-
onClick?(): void;
|
|
8
|
-
followTrigger?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const HoverView: ({ followTrigger, content, style, cStyle, className, onClick, }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IStyleProps } from '@/types';
|
|
3
|
-
export declare const CustomIcon: import("react").FC<import("./win-icon").IIconProps>;
|
|
4
|
-
interface IProps extends IStyleProps {
|
|
5
|
-
show: boolean;
|
|
6
|
-
src: string;
|
|
7
|
-
size: number | string;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const IconBox: ({ src, size, onClick, show, style, ...args }: Partial<IProps>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IListItem } from '@/types';
|
|
3
|
-
interface IProps<T> {
|
|
4
|
-
dataList: IListItem<T>[];
|
|
5
|
-
value: T;
|
|
6
|
-
onChange(value: T): void;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
declare function Tab<T>({ dataList, value, onChange, ...args }: IProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const PanelTitleTab: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<IProps<unknown>, never>> & Omit<typeof Tab, keyof import("react").Component<any, {}, any>>;
|
|
12
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IContentProps, WinChartType } from '@/types';
|
|
2
|
-
interface IProps extends IContentProps {
|
|
3
|
-
winChartType: WinChartType;
|
|
4
|
-
reserveValueWithLabelType?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const ChartContent: ({ configData, orgLevelVal, winChartType, reserveValueWithLabelType, visionUserConfig, }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IStyleProps } from '@/types';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
interface IProps extends IStyleProps {
|
|
4
|
-
label: string;
|
|
5
|
-
value: ReactNode;
|
|
6
|
-
unit: string;
|
|
7
|
-
jumpUrl?: string;
|
|
8
|
-
isUnitWrap?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const IndicatorInfo: ({ label, value, unit, jumpUrl, isUnitWrap, ...args }: Partial<IProps>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Select } from '@cainiaofe/cn-ui';
|
|
3
|
-
export declare const SelectDecoration: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<import("@cainiaofe/cn-ui/_fusion/lib/select").SelectProps & import("react").RefAttributes<Select>, import("@cainiaofe/cn-ui/_fusion/lib/select").SelectProps & import("react").RefAttributes<Select>>, never>, never>> & Omit<typeof Select, keyof import("react").Component<any, {}, any>>;
|
|
4
|
-
export declare const IndicatorSelectDecoration: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").FastOmit<import("styled-components/dist/types").Substitute<import("@cainiaofe/cn-ui/_fusion/lib/select").SelectProps & import("react").RefAttributes<Select>, import("@cainiaofe/cn-ui/_fusion/lib/select").SelectProps & import("react").RefAttributes<Select>>, never>, never>> & Omit<typeof Select, keyof import("react").Component<any, {}, any>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const WinRankContent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IIndicatorCardConfig, IVisionUserConfig } from '@/types';
|
|
2
|
-
import { CSSProperties } from 'react';
|
|
3
|
-
interface IProps {
|
|
4
|
-
id: number;
|
|
5
|
-
config?: IIndicatorCardConfig;
|
|
6
|
-
style?: CSSProperties;
|
|
7
|
-
context?: React.Context<IVisionUserConfig>;
|
|
8
|
-
fixSize?: boolean;
|
|
9
|
-
spanWidth?: number;
|
|
10
|
-
spanHeight?: number;
|
|
11
|
-
showSwitch?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const WinCard: ({ id, config, style, fixSize, context, spanWidth, spanHeight, showSwitch, }: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { IWinChartProps, WinChartType, IChartInfo } from '@/types';
|
|
2
|
-
export { IWinChartProps, WinChartType, IChartInfo as ICharInfo };
|
|
3
|
-
export declare const WinChart: ({ theme, className, style, extraOption, extraSeriesOption, ...args }: IWinChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
export interface IIconProps extends HTMLAttributes<SVGElement> {
|
|
3
|
-
type?: string;
|
|
4
|
-
size?: number | 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl' | 'inherit';
|
|
5
|
-
color?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const createIconComponent: (scriptUrl: string) => import("react").FC<IIconProps>;
|
|
8
|
-
export declare const useIconLoader: (scriptUrl: string) => boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const CardWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
-
$hidden?: boolean;
|
|
4
|
-
}>>;
|
|
5
|
-
export declare const CardWrapperMobile: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
-
$show?: boolean;
|
|
7
|
-
}>>;
|
|
8
|
-
export declare const CardTitleWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
-
$checked?: boolean;
|
|
10
|
-
}>>;
|
|
11
|
-
export declare const CardTitleWrapperMobile: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
12
|
-
$checked?: boolean;
|
|
13
|
-
}>>;
|
|
14
|
-
export declare const IconWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
15
|
-
$src?: string;
|
|
16
|
-
}>>;
|
|
17
|
-
export declare const UnitWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const DotWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
3
|
-
checked?: boolean;
|
|
4
|
-
}>>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const IFrameWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").IframeHTMLAttributes<HTMLIFrameElement>, HTMLIFrameElement>, never>>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { IStyleProps } from '@/types';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
interface IProps<T, L> extends IStyleProps {
|
|
4
|
-
initData?: boolean;
|
|
5
|
-
/**
|
|
6
|
-
* 返回默认值
|
|
7
|
-
*/
|
|
8
|
-
defaultValue?: T;
|
|
9
|
-
/**
|
|
10
|
-
* 请求参数
|
|
11
|
-
*/
|
|
12
|
-
requestData?: L;
|
|
13
|
-
/**
|
|
14
|
-
* 获取数据异步函数
|
|
15
|
-
* @param data
|
|
16
|
-
* @param isInside
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
service: (data?: L, isInside?: boolean) => Promise<T>;
|
|
20
|
-
/**
|
|
21
|
-
* 页面渲染回调
|
|
22
|
-
* @param data
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
children: (data: T) => ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* 错误提示高度
|
|
28
|
-
*/
|
|
29
|
-
errorBoxHeight?: number | string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
|
-
debounceWait?: number;
|
|
34
|
-
/**
|
|
35
|
-
* 是否是内部员工登陆
|
|
36
|
-
*/
|
|
37
|
-
isInside?: boolean;
|
|
38
|
-
noEmptyBox?: boolean;
|
|
39
|
-
}
|
|
40
|
-
export declare function RequestWrapper<T, L>({ initData, defaultValue, requestData, service, children, errorBoxHeight, debounceWait, isInside, noEmptyBox, ...args }: IProps<T, L>): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
export {};
|