@byteluck-fe/model-driven-controls 7.0.0-props.101 → 7.0.0-props.102
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/esm/baseControls/BarChart/designer.js +14 -0
- package/dist/esm/baseControls/BarChart/property.js +20 -15
- package/dist/esm/baseControls/LineChart/designer.js +14 -0
- package/dist/esm/baseControls/LineChart/property.js +20 -15
- package/dist/esm/baseControls/PieChart/designer.js +14 -0
- package/dist/esm/baseControls/PieChart/property.js +18 -13
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/BarChart/property.d.ts +29 -0
- package/dist/types/baseControls/LineChart/property.d.ts +29 -0
- package/dist/types/baseControls/PieChart/property.d.ts +29 -0
- package/package.json +2 -2
|
@@ -139,6 +139,16 @@ _define_property(BarChartControl, "setting", [
|
|
|
139
139
|
],
|
|
140
140
|
visible: true
|
|
141
141
|
},
|
|
142
|
+
{
|
|
143
|
+
key: 'caption-style',
|
|
144
|
+
showItems: [
|
|
145
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
146
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
147
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC,
|
|
148
|
+
COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT
|
|
149
|
+
],
|
|
150
|
+
visible: true
|
|
151
|
+
},
|
|
142
152
|
{
|
|
143
153
|
key: 'common-setting',
|
|
144
154
|
visible: true,
|
|
@@ -196,6 +206,10 @@ _define_property(BarChartControl, "setting", [
|
|
|
196
206
|
key: 'chart-setting',
|
|
197
207
|
visible: true
|
|
198
208
|
},
|
|
209
|
+
{
|
|
210
|
+
key: 'label-position',
|
|
211
|
+
visible: true
|
|
212
|
+
},
|
|
199
213
|
{
|
|
200
214
|
key: 'chart-data-bind',
|
|
201
215
|
visible: true
|
|
@@ -75,39 +75,44 @@ function _is_native_reflect_construct() {
|
|
|
75
75
|
* description: 柱状图组件。用于展示静态或动态数据图表,支持模板选择、数据模式切换和字段映射,适合统计分析与看板展示场景。
|
|
76
76
|
*/ import BarChartControl from './designer';
|
|
77
77
|
import { MultistageFillingItem, Property, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
|
|
78
|
+
import { FONT_WEIGHT } from '../../framework';
|
|
78
79
|
var BarChartProperty = /*#__PURE__*/ function(Property) {
|
|
79
80
|
"use strict";
|
|
80
81
|
_inherits(BarChartProperty, Property);
|
|
81
82
|
function BarChartProperty(props) {
|
|
82
83
|
_class_call_check(this, BarChartProperty);
|
|
83
84
|
var _this;
|
|
84
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
|
|
85
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
|
|
85
86
|
var _props_multistageFilling;
|
|
86
87
|
_this = _call_super(this, BarChartProperty, [
|
|
87
88
|
props
|
|
88
|
-
]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "xField", void 0), _define_property(_this, "yField", void 0), _define_property(_this, "seriesConfig", void 0);
|
|
89
|
+
]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "captionFontWeight", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "xField", void 0), _define_property(_this, "yField", void 0), _define_property(_this, "seriesConfig", void 0);
|
|
89
90
|
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : BarChartControl.controlName;
|
|
90
91
|
_this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
91
92
|
_this.isShowCaptionTip = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
92
93
|
_this.captionTip = (_ref3 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
93
|
-
_this.
|
|
94
|
-
_this.
|
|
95
|
-
_this.
|
|
96
|
-
_this.
|
|
97
|
-
_this.
|
|
94
|
+
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
95
|
+
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
96
|
+
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
97
|
+
_this.captionFontWeight = (_ref4 = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _ref4 !== void 0 ? _ref4 : FONT_WEIGHT.NORMAL;
|
|
98
|
+
_this.isHide = (_ref5 = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
99
|
+
_this.template = (_ref6 = props === null || props === void 0 ? void 0 : props.template) !== null && _ref6 !== void 0 ? _ref6 : 'bar-basic';
|
|
100
|
+
_this.dataMode = (_ref7 = props === null || props === void 0 ? void 0 : props.dataMode) !== null && _ref7 !== void 0 ? _ref7 : 'static';
|
|
101
|
+
_this.optionJson = (_ref8 = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _ref8 !== void 0 ? _ref8 : '{}';
|
|
102
|
+
_this.datasourceBind = new TreeDataSourceBind((_ref9 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref9 !== void 0 ? _ref9 : {
|
|
98
103
|
attributes: BarChartControl.controlCustomAttributes
|
|
99
104
|
});
|
|
100
|
-
_this.filterItemDatasourceBind = new TreeDataSourceBind((
|
|
105
|
+
_this.filterItemDatasourceBind = new TreeDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
|
|
101
106
|
attributes: BarChartControl.controlCustomAttributes
|
|
102
107
|
});
|
|
103
|
-
_this.multistageFilling = (
|
|
108
|
+
_this.multistageFilling = (_ref11 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
|
|
104
109
|
return new MultistageFillingItem(item);
|
|
105
|
-
})) !== null &&
|
|
106
|
-
_this.defaultValue = (
|
|
107
|
-
_this.openMultistageFilling = (
|
|
108
|
-
_this.xField = (
|
|
109
|
-
_this.yField = (
|
|
110
|
-
_this.seriesConfig = (
|
|
110
|
+
})) !== null && _ref11 !== void 0 ? _ref11 : [];
|
|
111
|
+
_this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : [];
|
|
112
|
+
_this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
|
|
113
|
+
_this.xField = (_ref14 = props === null || props === void 0 ? void 0 : props.xField) !== null && _ref14 !== void 0 ? _ref14 : '';
|
|
114
|
+
_this.yField = (_ref15 = props === null || props === void 0 ? void 0 : props.yField) !== null && _ref15 !== void 0 ? _ref15 : '';
|
|
115
|
+
_this.seriesConfig = (_ref16 = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _ref16 !== void 0 ? _ref16 : [];
|
|
111
116
|
return _this;
|
|
112
117
|
}
|
|
113
118
|
return BarChartProperty;
|
|
@@ -139,6 +139,16 @@ _define_property(LineChartControl, "setting", [
|
|
|
139
139
|
],
|
|
140
140
|
visible: true
|
|
141
141
|
},
|
|
142
|
+
{
|
|
143
|
+
key: 'caption-style',
|
|
144
|
+
showItems: [
|
|
145
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
146
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
147
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC,
|
|
148
|
+
COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT
|
|
149
|
+
],
|
|
150
|
+
visible: true
|
|
151
|
+
},
|
|
142
152
|
{
|
|
143
153
|
key: 'common-setting',
|
|
144
154
|
visible: true,
|
|
@@ -180,6 +190,10 @@ _define_property(LineChartControl, "setting", [
|
|
|
180
190
|
key: 'chart-setting',
|
|
181
191
|
visible: true
|
|
182
192
|
},
|
|
193
|
+
{
|
|
194
|
+
key: 'label-position',
|
|
195
|
+
visible: true
|
|
196
|
+
},
|
|
183
197
|
{
|
|
184
198
|
key: 'chart-data-bind',
|
|
185
199
|
visible: true
|
|
@@ -75,6 +75,7 @@ function _is_native_reflect_construct() {
|
|
|
75
75
|
* description: 折线图组件。用于展示静态或动态趋势数据图表,支持模板选择、数据模式切换和字段映射,适合趋势分析与看板展示场景。
|
|
76
76
|
*/ import LineChartControl from './designer';
|
|
77
77
|
import { MultistageFillingItem, Property, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
|
|
78
|
+
import { FONT_WEIGHT } from '../../framework';
|
|
78
79
|
var LineChartTemplate = /*#__PURE__*/ function(LineChartTemplate) {
|
|
79
80
|
LineChartTemplate["LINE_BASIC"] = "line-basic";
|
|
80
81
|
LineChartTemplate["LINE_SMOOTH"] = "line-smooth";
|
|
@@ -89,33 +90,37 @@ var LineChartProperty = /*#__PURE__*/ function(Property) {
|
|
|
89
90
|
function LineChartProperty(props) {
|
|
90
91
|
_class_call_check(this, LineChartProperty);
|
|
91
92
|
var _this;
|
|
92
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15;
|
|
93
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16;
|
|
93
94
|
var _props_multistageFilling;
|
|
94
95
|
_this = _call_super(this, LineChartProperty, [
|
|
95
96
|
props
|
|
96
|
-
]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "xField", void 0), _define_property(_this, "yField", void 0), _define_property(_this, "seriesConfig", void 0);
|
|
97
|
+
]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "captionFontWeight", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "xField", void 0), _define_property(_this, "yField", void 0), _define_property(_this, "seriesConfig", void 0);
|
|
97
98
|
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : LineChartControl.controlName;
|
|
98
99
|
_this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
99
100
|
_this.isShowCaptionTip = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
100
101
|
_this.captionTip = (_ref3 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
101
|
-
_this.
|
|
102
|
-
_this.
|
|
103
|
-
_this.
|
|
104
|
-
_this.
|
|
105
|
-
_this.
|
|
102
|
+
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
103
|
+
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
104
|
+
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
105
|
+
_this.captionFontWeight = (_ref4 = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _ref4 !== void 0 ? _ref4 : FONT_WEIGHT.NORMAL;
|
|
106
|
+
_this.isHide = (_ref5 = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
107
|
+
_this.template = (_ref6 = props === null || props === void 0 ? void 0 : props.template) !== null && _ref6 !== void 0 ? _ref6 : "line-basic";
|
|
108
|
+
_this.dataMode = (_ref7 = props === null || props === void 0 ? void 0 : props.dataMode) !== null && _ref7 !== void 0 ? _ref7 : 'static';
|
|
109
|
+
_this.optionJson = (_ref8 = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _ref8 !== void 0 ? _ref8 : '{}';
|
|
110
|
+
_this.datasourceBind = new TreeDataSourceBind((_ref9 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref9 !== void 0 ? _ref9 : {
|
|
106
111
|
attributes: LineChartControl.controlCustomAttributes
|
|
107
112
|
});
|
|
108
|
-
_this.filterItemDatasourceBind = new TreeDataSourceBind((
|
|
113
|
+
_this.filterItemDatasourceBind = new TreeDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
|
|
109
114
|
attributes: LineChartControl.controlCustomAttributes
|
|
110
115
|
});
|
|
111
|
-
_this.multistageFilling = (
|
|
116
|
+
_this.multistageFilling = (_ref11 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
|
|
112
117
|
return new MultistageFillingItem(item);
|
|
113
|
-
})) !== null &&
|
|
114
|
-
_this.defaultValue = (
|
|
115
|
-
_this.openMultistageFilling = (
|
|
116
|
-
_this.xField = (
|
|
117
|
-
_this.yField = (
|
|
118
|
-
_this.seriesConfig = (
|
|
118
|
+
})) !== null && _ref11 !== void 0 ? _ref11 : [];
|
|
119
|
+
_this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : [];
|
|
120
|
+
_this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
|
|
121
|
+
_this.xField = (_ref14 = props === null || props === void 0 ? void 0 : props.xField) !== null && _ref14 !== void 0 ? _ref14 : '';
|
|
122
|
+
_this.yField = (_ref15 = props === null || props === void 0 ? void 0 : props.yField) !== null && _ref15 !== void 0 ? _ref15 : '';
|
|
123
|
+
_this.seriesConfig = (_ref16 = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _ref16 !== void 0 ? _ref16 : [];
|
|
119
124
|
return _this;
|
|
120
125
|
}
|
|
121
126
|
return LineChartProperty;
|
|
@@ -139,6 +139,16 @@ _define_property(PieChartControl, "setting", [
|
|
|
139
139
|
],
|
|
140
140
|
visible: true
|
|
141
141
|
},
|
|
142
|
+
{
|
|
143
|
+
key: 'caption-style',
|
|
144
|
+
showItems: [
|
|
145
|
+
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
146
|
+
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
147
|
+
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC,
|
|
148
|
+
COMMON_SETTING_TYPE.CAPTION_FONT_WEIGHT
|
|
149
|
+
],
|
|
150
|
+
visible: true
|
|
151
|
+
},
|
|
142
152
|
{
|
|
143
153
|
key: 'common-setting',
|
|
144
154
|
visible: true,
|
|
@@ -184,6 +194,10 @@ _define_property(PieChartControl, "setting", [
|
|
|
184
194
|
key: 'chart-setting',
|
|
185
195
|
visible: true
|
|
186
196
|
},
|
|
197
|
+
{
|
|
198
|
+
key: 'label-position',
|
|
199
|
+
visible: true
|
|
200
|
+
},
|
|
187
201
|
{
|
|
188
202
|
key: 'chart-data-bind',
|
|
189
203
|
visible: true
|
|
@@ -75,37 +75,42 @@ function _is_native_reflect_construct() {
|
|
|
75
75
|
* description: 饼图组件。用于展示静态或动态数据图表,支持模板选择、数据模式切换和字段映射,适合统计分析与看板展示场景。
|
|
76
76
|
*/ import PieChartControl from './designer';
|
|
77
77
|
import { MultistageFillingItem, Property, TreeDataSourceBind } from '@byteluck-fe/model-driven-core';
|
|
78
|
+
import { FONT_WEIGHT } from '../../framework';
|
|
78
79
|
var PieChartProperty = /*#__PURE__*/ function(Property) {
|
|
79
80
|
"use strict";
|
|
80
81
|
_inherits(PieChartProperty, Property);
|
|
81
82
|
function PieChartProperty(props) {
|
|
82
83
|
_class_call_check(this, PieChartProperty);
|
|
83
84
|
var _this;
|
|
84
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13;
|
|
85
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
|
|
85
86
|
var _props_multistageFilling;
|
|
86
87
|
_this = _call_super(this, PieChartProperty, [
|
|
87
88
|
props
|
|
88
|
-
]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "seriesConfig", void 0);
|
|
89
|
+
]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "captionTip", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "captionFontWeight", void 0), _define_property(_this, "isHide", void 0), _define_property(_this, "template", void 0), _define_property(_this, "dataMode", void 0), _define_property(_this, "optionJson", void 0), _define_property(_this, "optionConfig", 'datasource'), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "filterItemDatasourceBind", void 0), _define_property(_this, "multistageFilling", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "openMultistageFilling", void 0), _define_property(_this, "seriesConfig", void 0);
|
|
89
90
|
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : PieChartControl.controlName;
|
|
90
91
|
_this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
91
92
|
_this.isShowCaptionTip = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
92
93
|
_this.captionTip = (_ref3 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
93
|
-
_this.
|
|
94
|
-
_this.
|
|
95
|
-
_this.
|
|
96
|
-
_this.
|
|
97
|
-
_this.
|
|
94
|
+
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
95
|
+
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
96
|
+
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
97
|
+
_this.captionFontWeight = (_ref4 = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _ref4 !== void 0 ? _ref4 : FONT_WEIGHT.NORMAL;
|
|
98
|
+
_this.isHide = (_ref5 = props === null || props === void 0 ? void 0 : props.isHide) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
99
|
+
_this.template = (_ref6 = props === null || props === void 0 ? void 0 : props.template) !== null && _ref6 !== void 0 ? _ref6 : 'pie-rounded-ring';
|
|
100
|
+
_this.dataMode = (_ref7 = props === null || props === void 0 ? void 0 : props.dataMode) !== null && _ref7 !== void 0 ? _ref7 : 'static';
|
|
101
|
+
_this.optionJson = (_ref8 = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _ref8 !== void 0 ? _ref8 : '{}';
|
|
102
|
+
_this.datasourceBind = new TreeDataSourceBind((_ref9 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref9 !== void 0 ? _ref9 : {
|
|
98
103
|
attributes: PieChartControl.controlCustomAttributes
|
|
99
104
|
});
|
|
100
|
-
_this.filterItemDatasourceBind = new TreeDataSourceBind((
|
|
105
|
+
_this.filterItemDatasourceBind = new TreeDataSourceBind((_ref10 = props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind) !== null && _ref10 !== void 0 ? _ref10 : {
|
|
101
106
|
attributes: PieChartControl.controlCustomAttributes
|
|
102
107
|
});
|
|
103
|
-
_this.multistageFilling = (
|
|
108
|
+
_this.multistageFilling = (_ref11 = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
|
|
104
109
|
return new MultistageFillingItem(item);
|
|
105
|
-
})) !== null &&
|
|
106
|
-
_this.defaultValue = (
|
|
107
|
-
_this.openMultistageFilling = (
|
|
108
|
-
_this.seriesConfig = (
|
|
110
|
+
})) !== null && _ref11 !== void 0 ? _ref11 : [];
|
|
111
|
+
_this.defaultValue = (_ref12 = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _ref12 !== void 0 ? _ref12 : [];
|
|
112
|
+
_this.openMultistageFilling = (_ref13 = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _ref13 !== void 0 ? _ref13 : false;
|
|
113
|
+
_this.seriesConfig = (_ref14 = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _ref14 !== void 0 ? _ref14 : [];
|
|
109
114
|
return _this;
|
|
110
115
|
}
|
|
111
116
|
return PieChartProperty;
|