@byteluck-fe/model-driven-controls 7.0.0-props.96 → 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.
|
@@ -9,10 +9,6 @@ interface BarChartSeriesConfigItem {
|
|
|
9
9
|
* 宽表模式:series 对应的值字段
|
|
10
10
|
*/
|
|
11
11
|
valueField?: string;
|
|
12
|
-
/**
|
|
13
|
-
* 系列显示名;不传时可由运行时根据数据推导
|
|
14
|
-
*/
|
|
15
|
-
name?: string;
|
|
16
12
|
}
|
|
17
13
|
interface BarChartPropertyInterface extends PropertyInterface {
|
|
18
14
|
/**
|
|
@@ -105,6 +101,12 @@ interface BarChartPropertyInterface extends PropertyInterface {
|
|
|
105
101
|
* @public
|
|
106
102
|
*/
|
|
107
103
|
xField: string;
|
|
104
|
+
/**
|
|
105
|
+
* Y 轴字段(单值映射场景)
|
|
106
|
+
* @defaultValue ''
|
|
107
|
+
* @public
|
|
108
|
+
*/
|
|
109
|
+
yField: string;
|
|
108
110
|
/**
|
|
109
111
|
* 统一 series 配置;可同时覆盖宽表/长表/堆叠场景
|
|
110
112
|
* @defaultValue []
|
|
@@ -128,6 +130,7 @@ declare class BarChartProperty extends Property implements BarChartPropertyInter
|
|
|
128
130
|
defaultValue: string[];
|
|
129
131
|
openMultistageFilling: boolean;
|
|
130
132
|
xField: string;
|
|
133
|
+
yField: string;
|
|
131
134
|
seriesConfig: BarChartSeriesConfigItem[];
|
|
132
135
|
constructor(props?: Partial<BarChartProperty>);
|
|
133
136
|
}
|
|
@@ -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
|
}
|