@byteluck-fe/model-driven-controls 7.0.0-props.94 → 7.0.0-props.96
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,16 @@ interface BarChartYFieldItem {
|
|
|
4
4
|
field: string;
|
|
5
5
|
name: string;
|
|
6
6
|
}
|
|
7
|
+
interface BarChartSeriesConfigItem {
|
|
8
|
+
/**
|
|
9
|
+
* 宽表模式:series 对应的值字段
|
|
10
|
+
*/
|
|
11
|
+
valueField?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 系列显示名;不传时可由运行时根据数据推导
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
7
17
|
interface BarChartPropertyInterface extends PropertyInterface {
|
|
8
18
|
/**
|
|
9
19
|
* 标题
|
|
@@ -96,35 +106,11 @@ interface BarChartPropertyInterface extends PropertyInterface {
|
|
|
96
106
|
*/
|
|
97
107
|
xField: string;
|
|
98
108
|
/**
|
|
99
|
-
*
|
|
100
|
-
* @defaultValue ''
|
|
101
|
-
* @public
|
|
102
|
-
*/
|
|
103
|
-
yField: string;
|
|
104
|
-
/**
|
|
105
|
-
* 多 Y 轴字段
|
|
109
|
+
* 统一 series 配置;可同时覆盖宽表/长表/堆叠场景
|
|
106
110
|
* @defaultValue []
|
|
107
111
|
* @public
|
|
108
112
|
*/
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* 分组字段
|
|
112
|
-
* @defaultValue ''
|
|
113
|
-
* @public
|
|
114
|
-
*/
|
|
115
|
-
groupField: string;
|
|
116
|
-
/**
|
|
117
|
-
* 名称字段
|
|
118
|
-
* @defaultValue ''
|
|
119
|
-
* @public
|
|
120
|
-
*/
|
|
121
|
-
nameField: string;
|
|
122
|
-
/**
|
|
123
|
-
* 值字段
|
|
124
|
-
* @defaultValue ''
|
|
125
|
-
* @public
|
|
126
|
-
*/
|
|
127
|
-
valueField: string;
|
|
113
|
+
seriesConfig: BarChartSeriesConfigItem[];
|
|
128
114
|
}
|
|
129
115
|
declare class BarChartProperty extends Property implements BarChartPropertyInterface {
|
|
130
116
|
caption: string;
|
|
@@ -142,13 +128,9 @@ declare class BarChartProperty extends Property implements BarChartPropertyInter
|
|
|
142
128
|
defaultValue: string[];
|
|
143
129
|
openMultistageFilling: boolean;
|
|
144
130
|
xField: string;
|
|
145
|
-
|
|
146
|
-
yFields: BarChartYFieldItem[];
|
|
147
|
-
groupField: string;
|
|
148
|
-
nameField: string;
|
|
149
|
-
valueField: string;
|
|
131
|
+
seriesConfig: BarChartSeriesConfigItem[];
|
|
150
132
|
constructor(props?: Partial<BarChartProperty>);
|
|
151
133
|
}
|
|
152
134
|
export default BarChartProperty;
|
|
153
|
-
export type { BarChartDataMode, BarChartPropertyInterface, BarChartYFieldItem };
|
|
135
|
+
export type { BarChartDataMode, BarChartSeriesConfigItem, BarChartPropertyInterface, BarChartYFieldItem, };
|
|
154
136
|
export { BarChartProperty };
|
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.96",
|
|
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": "d479ff1824b5927c99fe07264d5bdd0d62898dc6"
|
|
35
35
|
}
|