@byteluck-fe/model-driven-controls 7.0.0-props.97 → 7.0.0-props.99

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.
@@ -5,6 +5,7 @@ declare class BarChartControl extends DesignerControl {
5
5
  static get controlIcon(): string;
6
6
  static get controlType(): string;
7
7
  static get controlCustomAttributes(): never[];
8
+ static readonly controlEventKeys: string[];
8
9
  static readonly setting: SettingOption[];
9
10
  props: BarChartProperty;
10
11
  constructor(props?: Partial<Schema<'bar-chart'>>);
@@ -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
  /**
@@ -5,6 +5,7 @@ declare class PieChartControl extends DesignerControl {
5
5
  static get controlIcon(): string;
6
6
  static get controlType(): string;
7
7
  static get controlCustomAttributes(): never[];
8
+ static readonly controlEventKeys: string[];
8
9
  static readonly setting: SettingOption[];
9
10
  props: PieChartProperty;
10
11
  constructor(props?: Partial<Schema<'pie-chart'>>);
@@ -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
- valueField: string;
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
- groupField: string;
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.97",
3
+ "version": "7.0.0-props.99",
4
4
  "description": "> TODO: description",
5
5
  "author": "郝晨光 <2293885211@qq.com>",
6
6
  "homepage": "",
@@ -26,10 +26,10 @@
26
26
  "postpublish": "node ../../scripts/postpublish.js"
27
27
  },
28
28
  "dependencies": {
29
- "@byteluck-fe/model-driven-core": "7.0.0-props.94",
30
- "@byteluck-fe/model-driven-settings": "7.0.0-props.94",
31
- "@byteluck-fe/model-driven-shared": "7.0.0-props.94",
29
+ "@byteluck-fe/model-driven-core": "7.0.0-props.99",
30
+ "@byteluck-fe/model-driven-settings": "7.0.0-props.99",
31
+ "@byteluck-fe/model-driven-shared": "7.0.0-props.99",
32
32
  "async-validator": "3.5.1"
33
33
  },
34
- "gitHead": "f440dab53481b3d43e6661d574fee5aece60db76"
34
+ "gitHead": "b0de0a9e75c82a9405160c1db2a67887b4a23986"
35
35
  }