@byteluck-fe/model-driven-controls 7.0.0-props.97 → 7.0.0-props.98
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.
|
@@ -4,6 +4,10 @@ interface PieChartYFieldItem {
|
|
|
4
4
|
field: string;
|
|
5
5
|
name: string;
|
|
6
6
|
}
|
|
7
|
+
type PieSeriesDataConfig = {
|
|
8
|
+
valueField?: string;
|
|
9
|
+
nameField?: string;
|
|
10
|
+
};
|
|
7
11
|
interface PieChartPropertyInterface extends PropertyInterface {
|
|
8
12
|
/**
|
|
9
13
|
* 标题
|
|
@@ -108,23 +112,11 @@ interface PieChartPropertyInterface extends PropertyInterface {
|
|
|
108
112
|
*/
|
|
109
113
|
yFields: PieChartYFieldItem[];
|
|
110
114
|
/**
|
|
111
|
-
*
|
|
112
|
-
* @defaultValue
|
|
113
|
-
* @public
|
|
114
|
-
*/
|
|
115
|
-
groupField: string;
|
|
116
|
-
/**
|
|
117
|
-
* 名称字段
|
|
118
|
-
* @defaultValue ''
|
|
119
|
-
* @public
|
|
120
|
-
*/
|
|
121
|
-
nameField: string;
|
|
122
|
-
/**
|
|
123
|
-
* 值字段
|
|
124
|
-
* @defaultValue ''
|
|
115
|
+
* 饼图系列数据映射
|
|
116
|
+
* @defaultValue []
|
|
125
117
|
* @public
|
|
126
118
|
*/
|
|
127
|
-
|
|
119
|
+
seriesConfig: PieSeriesDataConfig[];
|
|
128
120
|
}
|
|
129
121
|
declare class PieChartProperty extends Property implements PieChartPropertyInterface {
|
|
130
122
|
caption: string;
|
|
@@ -144,11 +136,9 @@ declare class PieChartProperty extends Property implements PieChartPropertyInter
|
|
|
144
136
|
xField: string;
|
|
145
137
|
yField: string;
|
|
146
138
|
yFields: PieChartYFieldItem[];
|
|
147
|
-
|
|
148
|
-
nameField: string;
|
|
149
|
-
valueField: string;
|
|
139
|
+
seriesConfig: PieSeriesDataConfig[];
|
|
150
140
|
constructor(props?: Partial<PieChartProperty>);
|
|
151
141
|
}
|
|
152
142
|
export default PieChartProperty;
|
|
153
|
-
export type { PieChartDataMode, PieChartPropertyInterface, PieChartYFieldItem };
|
|
143
|
+
export type { PieChartDataMode, PieChartPropertyInterface, PieChartYFieldItem, PieSeriesDataConfig, };
|
|
154
144
|
export { PieChartProperty };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-controls",
|
|
3
|
-
"version": "7.0.0-props.
|
|
3
|
+
"version": "7.0.0-props.98",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"@byteluck-fe/model-driven-shared": "7.0.0-props.94",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "067029bbe3f62666371caac6384738962c980567"
|
|
35
35
|
}
|