@yelingfeng/pandora2 1.0.1 → 1.0.2
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/packages/components/PdCharts/src/charts/bar/bar01.d.ts +1 -0
- package/dist/packages/components/PdCharts/src/charts/bar/bar02.d.ts +2 -0
- package/dist/packages/components/PdCharts/src/charts/bar/index.d.ts +2 -0
- package/dist/packages/components/PdCharts/src/charts/pie/pie01.d.ts +1 -1
- package/dist/packages/components/PdCharts/src/charts/pie/pie02.d.ts +1 -1
- package/dist/packages/components/PdCharts/src/props/index.d.ts +4 -0
- package/dist/packages/components/PdCharts/src/transform/index.d.ts +4 -8
- package/dist/packages/components/PdCharts/src/transform/seriesHelper.d.ts +22 -19
- package/dist/packages/components/PdCharts/src/types/chart.d.ts +1 -1
- package/dist/packages/components/PdCharts/src/types/index.d.ts +1 -0
- package/dist/packages/components/PdCharts/src/utils/core.d.ts +1 -1
- package/dist/packages/components/PdTable/index.d.ts +1 -0
- package/dist/pandora2.es.js +36914 -31243
- package/dist/pandora2.umd.js +50 -46
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const build: (originData: any, chartConfig?: Record<string, any>) => Recordable<any>;
|
|
@@ -13,6 +13,10 @@ export declare const defaultProps: {
|
|
|
13
13
|
type: PropType<import("echarts/types/dist/shared").ECBasicOption>;
|
|
14
14
|
default: () => void;
|
|
15
15
|
};
|
|
16
|
+
chartConfig: {
|
|
17
|
+
type: PropType<Record<string, any>>;
|
|
18
|
+
default: () => {};
|
|
19
|
+
};
|
|
16
20
|
group: StringConstructor;
|
|
17
21
|
initOptions: PropType<import("echarts/types/dist/shared").EChartsInitOpts>;
|
|
18
22
|
updateOptions: PropType<import("echarts/types/dist/shared").SetOptionOpts>;
|
|
@@ -4,15 +4,11 @@ import type { ChartTypes } from '../types/chart';
|
|
|
4
4
|
* @param data
|
|
5
5
|
* @param chartName
|
|
6
6
|
*/
|
|
7
|
-
export declare const transformOriginDataToSeries: (data: any, chartName: ChartTypes) =>
|
|
8
|
-
series: any;
|
|
9
|
-
category: any;
|
|
10
|
-
};
|
|
7
|
+
export declare const transformOriginDataToSeries: (data: any, chartName: ChartTypes) => any;
|
|
11
8
|
/**
|
|
12
9
|
*
|
|
13
10
|
* 转化饼图数据 生成 echarts Series 对象
|
|
14
11
|
*/
|
|
15
|
-
export declare const transformPieDataToSeries: (data: any, colors: any) =>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
12
|
+
export declare const transformPieDataToSeries: (data: any, colors: any) => any;
|
|
13
|
+
export declare const transformGroupDataToSeries: (data: any, chartName: ChartTypes) => any;
|
|
14
|
+
export declare const transformRankBarData: (data: any) => any;
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import type { ChartTypes } from '../types/chart';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* getGroupSeriesObj
|
|
5
|
-
* @param {Array} originData 原始数据集合
|
|
6
|
-
* @param {Object} props 属性集合对象
|
|
7
|
-
* @param {String} __chartName__ 图表标识
|
|
8
|
-
* @return {category,xAxis,series,data}
|
|
3
|
+
* 多分组图表(bar / line / map)
|
|
9
4
|
*/
|
|
10
|
-
export declare const getGroupSeriesObj: (originData: any, name:
|
|
5
|
+
export declare const getGroupSeriesObj: (originData: any[], name: ChartTypes) => {
|
|
11
6
|
category: never[];
|
|
12
7
|
xAxis: never[];
|
|
13
8
|
series: never[];
|
|
14
9
|
} | {
|
|
15
|
-
xAxis: any;
|
|
10
|
+
xAxis: any[];
|
|
16
11
|
series: any;
|
|
17
12
|
};
|
|
18
13
|
/**
|
|
19
|
-
*
|
|
20
|
-
* [ 2.0需求 也需要支持xAixs功能 ]
|
|
21
|
-
* getNormalSeriesObj
|
|
22
|
-
* @param {Array} originData 原始数据
|
|
23
|
-
* @param {Object} props 属性对象
|
|
24
|
-
* @param {String} __chartName__ 图表表示 bar line map
|
|
25
|
-
* @return
|
|
14
|
+
* 普通非分组图表
|
|
26
15
|
*/
|
|
27
|
-
export declare const getNormalSeriesObj: (originData: any,
|
|
28
|
-
category:
|
|
29
|
-
seriesObj:
|
|
16
|
+
export declare const getNormalSeriesObj: (originData: any[], chartName: ChartTypes) => {
|
|
17
|
+
category: string[];
|
|
18
|
+
seriesObj: {
|
|
19
|
+
type: ChartTypes;
|
|
20
|
+
data: {
|
|
21
|
+
name: any;
|
|
22
|
+
value: any;
|
|
23
|
+
dataObj: any;
|
|
24
|
+
info: any;
|
|
25
|
+
group: string;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
30
28
|
};
|
|
31
|
-
|
|
29
|
+
/**
|
|
30
|
+
* 获取图例
|
|
31
|
+
*/
|
|
32
|
+
export declare const getCategory: (originData: any[]) => {
|
|
33
|
+
name: string;
|
|
34
|
+
}[];
|
|
@@ -4,4 +4,4 @@ import { ChartTypes, SubChartType } from '../types/chart';
|
|
|
4
4
|
* echarts 构建 封装
|
|
5
5
|
* build
|
|
6
6
|
*/
|
|
7
|
-
export declare const build: (data: any, chartType: ChartTypes, subChartType: SubChartType) => EChartsOption;
|
|
7
|
+
export declare const build: (data: any, chartType: ChartTypes, subChartType: SubChartType, chartConfig?: Record<string, any>) => EChartsOption;
|
|
@@ -3,4 +3,5 @@ export declare const ColorfulTable: import('../../shared/_utils/vue').SFCWithIns
|
|
|
3
3
|
export default PdTable;
|
|
4
4
|
export type TableInstance = InstanceType<typeof PdTable>;
|
|
5
5
|
export type ColorfulTableInstance = InstanceType<typeof ColorfulTable>;
|
|
6
|
+
export { default as TableScreenshot } from './src/colorful/screenshot';
|
|
6
7
|
export * from './src/types';
|