@byteluck-fe/model-driven-controls 7.0.0-beta.5 → 7.0.0-beta.6
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 +11 -11
- package/dist/esm/baseControls/BarChart/property.js +73 -22
- package/dist/esm/baseControls/BatchDeleteButton/property.js +23 -15
- package/dist/esm/baseControls/BatchPrintListButton/property.js +14 -11
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -7
- package/dist/esm/baseControls/Button/property.js +27 -17
- package/dist/esm/baseControls/Comment/property.js +7 -7
- package/dist/esm/baseControls/CreateFormListButton/property.js +13 -10
- package/dist/esm/baseControls/Dashboard/property.js +21 -14
- package/dist/esm/baseControls/Divider/property.js +17 -12
- package/dist/esm/baseControls/ExportListButton/property.js +14 -11
- package/dist/esm/baseControls/ExportRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/FormSelectButton/property.js +11 -9
- package/dist/esm/baseControls/Iframe/designer.js +4 -4
- package/dist/esm/baseControls/Iframe/property.js +10 -7
- package/dist/esm/baseControls/ImportRecordListButton/property.js +14 -11
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +24 -16
- package/dist/esm/baseControls/LineChart/designer.js +7 -7
- package/dist/esm/baseControls/LineChart/property.js +73 -22
- package/dist/esm/baseControls/Link/property.js +17 -12
- package/dist/esm/baseControls/ListSelectButton/property.js +15 -11
- package/dist/esm/baseControls/ListViewSelect/property.js +10 -9
- package/dist/esm/baseControls/OperationButton/property.js +17 -12
- package/dist/esm/baseControls/Pagination/property.js +5 -5
- package/dist/esm/baseControls/PieChart/designer.js +10 -10
- package/dist/esm/baseControls/PieChart/property.js +80 -20
- package/dist/esm/baseControls/ReferenceList/property.js +17 -12
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +9 -8
- package/dist/esm/baseControls/Text/designer.js +1 -1
- package/dist/esm/baseControls/Text/property.js +23 -15
- package/dist/esm/baseControls/TextOcrButton/property.js +24 -16
- package/dist/esm/baseControls/Title/property.js +6 -4
- package/dist/esm/baseControls/utils.js +1 -1
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +11 -9
- package/dist/esm/columnControls/ArrayColumn/property.js +13 -10
- package/dist/esm/columnControls/AutoNumberColumn/property.js +9 -8
- package/dist/esm/columnControls/CustomColumn/designer.js +0 -1
- package/dist/esm/columnControls/CustomColumn/property.js +11 -9
- package/dist/esm/columnControls/DecimalColumn/property.js +19 -13
- package/dist/esm/columnControls/DepartmentColumn/property.js +9 -8
- package/dist/esm/columnControls/EmployeeColumn/property.js +9 -8
- package/dist/esm/columnControls/FileColumn/property.js +9 -8
- package/dist/esm/columnControls/GroupColumn/property.js +7 -7
- package/dist/esm/columnControls/ImageColumn/property.js +7 -7
- package/dist/esm/columnControls/LocationColumn/property.js +9 -8
- package/dist/esm/columnControls/OperationColumn/designer.js +12 -16
- package/dist/esm/columnControls/OperationColumn/property.js +15 -11
- package/dist/esm/columnControls/OrderColumn/property.js +17 -12
- package/dist/esm/columnControls/PeopleColumn/property.js +7 -7
- package/dist/esm/columnControls/TextColumn/property.js +13 -10
- package/dist/esm/columnControls/TimescopeColumn/property.js +13 -10
- package/dist/esm/columnControls/TimestampColumn/property.js +13 -10
- package/dist/esm/columnControls/VarcharColumn/property.js +17 -12
- package/dist/esm/formControls/Address/property.js +17 -12
- package/dist/esm/formControls/Amount/property.js +29 -18
- package/dist/esm/formControls/Attachment/property.js +39 -23
- package/dist/esm/formControls/AutoNumber/property.js +11 -9
- package/dist/esm/formControls/Barcode/designer.js +41 -21
- package/dist/esm/formControls/Barcode/property.js +21 -13
- package/dist/esm/formControls/Barcode/schema.json +19 -8
- package/dist/esm/formControls/Calc/property.js +18 -10
- package/dist/esm/formControls/Cascader/property.js +31 -17
- package/dist/esm/formControls/Checkbox/property.js +31 -17
- package/dist/esm/formControls/Counter/property.js +18 -10
- package/dist/esm/formControls/DatePicker/property.js +32 -20
- package/dist/esm/formControls/DateRange/property.js +28 -18
- package/dist/esm/formControls/Department/property.js +27 -17
- package/dist/esm/formControls/Department2/property.js +40 -24
- package/dist/esm/formControls/ElectronicSignature/property.js +17 -12
- package/dist/esm/formControls/Employee/property.js +23 -15
- package/dist/esm/formControls/Employee2/property.js +38 -22
- package/dist/esm/formControls/Image/designer.js +8 -8
- package/dist/esm/formControls/Image/property.js +17 -8
- package/dist/esm/formControls/Input/property.js +20 -11
- package/dist/esm/formControls/Number/property.js +32 -17
- package/dist/esm/formControls/OrganizationSelection/property.js +41 -24
- package/dist/esm/formControls/QrCode/designer.js +47 -27
- package/dist/esm/formControls/QrCode/property.js +24 -17
- package/dist/esm/formControls/QrCode/schema.json +20 -9
- package/dist/esm/formControls/Radio/property.js +33 -20
- package/dist/esm/formControls/RichText/designer.js +1 -1
- package/dist/esm/formControls/RichText/property.js +22 -12
- package/dist/esm/formControls/Score/property.js +17 -10
- package/dist/esm/formControls/SearchDateRange/property.js +30 -19
- package/dist/esm/formControls/SearchInput/property.js +5 -5
- package/dist/esm/formControls/SearchNumberRange/property.js +17 -12
- package/dist/esm/formControls/Select/property.js +29 -18
- package/dist/esm/formControls/SelectMultiple/property.js +27 -17
- package/dist/esm/formControls/SelectRelation/property.js +31 -19
- package/dist/esm/formControls/Slider/designer.js +2 -1
- package/dist/esm/formControls/Slider/property.js +22 -17
- package/dist/esm/formControls/Switch/designer.js +15 -14
- package/dist/esm/formControls/Switch/property.js +19 -10
- package/dist/esm/formControls/Tag/designer.js +14 -13
- package/dist/esm/formControls/Tag/property.js +23 -15
- package/dist/esm/formControls/Textarea/property.js +20 -11
- package/dist/esm/formControls/TimePicker/property.js +20 -14
- package/dist/esm/formControls/TimeRange/property.js +24 -16
- package/dist/esm/formControls/Tree/property.js +39 -21
- package/dist/esm/formControls/VueFormItem/property.js +15 -11
- package/dist/esm/formControls/VuePage/property.js +15 -11
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +29 -18
- package/dist/esm/framework.js +135 -81
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +11 -9
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/AdvancedContainer/property.js +5 -5
- package/dist/esm/layoutControls/BlankContainer/designer.js +8 -7
- package/dist/esm/layoutControls/BlankContainer/property.js +15 -12
- package/dist/esm/layoutControls/CardGroup/property.js +20 -11
- package/dist/esm/layoutControls/Col/property.js +11 -9
- package/dist/esm/layoutControls/Collapse/designer.js +2 -2
- package/dist/esm/layoutControls/Collapse/property.js +9 -8
- package/dist/esm/layoutControls/CollapsePane/property.js +7 -7
- package/dist/esm/layoutControls/DataView/property.js +19 -13
- package/dist/esm/layoutControls/Grid/property.js +5 -5
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +9 -8
- package/dist/esm/layoutControls/GridRow/property.js +5 -5
- package/dist/esm/layoutControls/GridTableColumn/property.js +25 -16
- package/dist/esm/layoutControls/ListView/property.js +28 -15
- package/dist/esm/layoutControls/Page/property.js +7 -7
- package/dist/esm/layoutControls/Position/property.js +13 -10
- package/dist/esm/layoutControls/PositioningContainer/property.js +5 -5
- package/dist/esm/layoutControls/Row/property.js +15 -11
- package/dist/esm/layoutControls/Step/designer.js +2 -2
- package/dist/esm/layoutControls/Step/property.js +27 -17
- package/dist/esm/layoutControls/StepPane/property.js +21 -14
- package/dist/esm/layoutControls/SubTableColumn/property.js +10 -6
- package/dist/esm/layoutControls/SubTableRow/property.js +5 -5
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/property.js +15 -11
- package/dist/esm/layoutControls/TabPane/property.js +7 -7
- package/dist/esm/layoutControls/TableLayout/property.js +35 -21
- package/dist/esm/layoutControls/TableLayoutCol/property.js +25 -16
- package/dist/esm/layoutControls/TableLayoutRow/property.js +9 -8
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +11 -9
- package/dist/esm/layoutControls/Toolbox/property.js +5 -5
- package/dist/esm/listControls/GridTable/designer.js +12 -17
- package/dist/esm/listControls/GridTable/property.js +15 -11
- package/dist/esm/listControls/SubTable/property.js +70 -36
- package/dist/esm/searchControls/SimpleSearch/property.js +29 -18
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +7 -7
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
- package/dist/index.umd.js +1 -1
- package/dist/types/formControls/Barcode/property.d.ts +5 -10
- package/dist/types/formControls/QrCode/property.d.ts +5 -10
- package/dist/types/layoutControls/BlankContainer/property.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_divider
|
|
3
|
+
* description: 分割线组件。用于分隔页面内容、突出区块层级。支持线条颜色、线型、标题内容、对齐位置、标题字号颜色字重和垂直位置配置,适合表单分组与版面分区场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_divider
|
|
75
|
-
* description: 分割线组件。用于分隔页面内容、突出区块层级。支持线条颜色、线型、标题内容、对齐位置、标题字号颜色字重和垂直位置配置,适合表单分组与版面分区场景。
|
|
76
|
-
*/ import { Property } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { Property } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import { LINE_STYLE, FONT_WEIGHT } from '../../framework';
|
|
78
78
|
var DividerProperty = /*#__PURE__*/ function(Property) {
|
|
79
79
|
"use strict";
|
|
@@ -81,19 +81,24 @@ var DividerProperty = /*#__PURE__*/ function(Property) {
|
|
|
81
81
|
function DividerProperty(props) {
|
|
82
82
|
_class_call_check(this, DividerProperty);
|
|
83
83
|
var _this;
|
|
84
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
85
84
|
_this = _call_super(this, DividerProperty, [
|
|
86
85
|
props
|
|
87
86
|
]), _define_property(_this, "color", void 0), _define_property(_this, "lineStyle", void 0), _define_property(_this, "content", void 0), _define_property(_this, "position", 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, "verticalPosition", void 0);
|
|
88
|
-
|
|
89
|
-
_this.
|
|
90
|
-
|
|
91
|
-
_this.
|
|
87
|
+
var _props_color;
|
|
88
|
+
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : '#000';
|
|
89
|
+
var _props_lineStyle;
|
|
90
|
+
_this.lineStyle = (_props_lineStyle = props === null || props === void 0 ? void 0 : props.lineStyle) !== null && _props_lineStyle !== void 0 ? _props_lineStyle : LINE_STYLE.SOLID;
|
|
91
|
+
var _props_content;
|
|
92
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : '';
|
|
93
|
+
var _props_position;
|
|
94
|
+
_this.position = (_props_position = props === null || props === void 0 ? void 0 : props.position) !== null && _props_position !== void 0 ? _props_position : 'left';
|
|
92
95
|
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
93
96
|
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
94
97
|
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
95
|
-
|
|
96
|
-
_this.
|
|
98
|
+
var _props_captionFontWeight;
|
|
99
|
+
_this.captionFontWeight = (_props_captionFontWeight = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _props_captionFontWeight !== void 0 ? _props_captionFontWeight : FONT_WEIGHT.NORMAL;
|
|
100
|
+
var _props_verticalPosition;
|
|
101
|
+
_this.verticalPosition = (_props_verticalPosition = props === null || props === void 0 ? void 0 : props.verticalPosition) !== null && _props_verticalPosition !== void 0 ? _props_verticalPosition : 'middle';
|
|
97
102
|
return _this;
|
|
98
103
|
}
|
|
99
104
|
return DividerProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_export_list_button
|
|
3
|
+
* description: 导出列表按钮组件。用于列表场景按模板导出数据。支持系统模板或外部模板配置、多模板切换,并继承按钮样式、图标和颜色能力,适合报表导出和数据下载场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_export_list_button
|
|
75
|
-
* description: 导出列表按钮组件。用于列表场景按模板导出数据。支持系统模板或外部模板配置、多模板切换,并继承按钮样式、图标和颜色能力,适合报表导出和数据下载场景。
|
|
76
|
-
*/ import { ButtonProperty } from '../Button';
|
|
76
|
+
import { ButtonProperty } from '../Button';
|
|
77
77
|
import ExportListButtonControl from './designer';
|
|
78
78
|
import { ExportTemplate } from '../../framework';
|
|
79
79
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
@@ -83,17 +83,20 @@ var ExportListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
83
83
|
function ExportListButtonProperty(props) {
|
|
84
84
|
_class_call_check(this, ExportListButtonProperty);
|
|
85
85
|
var _this;
|
|
86
|
-
var _ref, _ref1, _ref2, _ref3;
|
|
87
86
|
var _props_templateList;
|
|
88
87
|
_this = _call_super(this, ExportListButtonProperty, [
|
|
89
88
|
props
|
|
90
89
|
]), _define_property(_this, "templateList", void 0), _define_property(_this, "templateType", void 0);
|
|
91
|
-
|
|
92
|
-
_this.
|
|
93
|
-
|
|
94
|
-
_this.
|
|
90
|
+
var _props_icon;
|
|
91
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : ExportListButtonControl.controlIcon;
|
|
92
|
+
var _props_content;
|
|
93
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ExportListButtonControl.controlName;
|
|
94
|
+
var _props_templateType;
|
|
95
|
+
_this.templateType = (_props_templateType = props === null || props === void 0 ? void 0 : props.templateType) !== null && _props_templateType !== void 0 ? _props_templateType : 'system';
|
|
96
|
+
var _props_templateList_map;
|
|
97
|
+
_this.templateList = (_props_templateList_map = props === null || props === void 0 ? void 0 : (_props_templateList = props.templateList) === null || _props_templateList === void 0 ? void 0 : _props_templateList.map(function(item) {
|
|
95
98
|
return new ExportTemplate(item);
|
|
96
|
-
})) !== null &&
|
|
99
|
+
})) !== null && _props_templateList_map !== void 0 ? _props_templateList_map : [
|
|
97
100
|
new ExportTemplate({
|
|
98
101
|
id: 'default',
|
|
99
102
|
name: getLocaleText('CMD.defaultTemplate', null, '默认模版'),
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_export_record_list_button
|
|
3
|
+
* description: 导出记录列表按钮组件。用于记录列表场景快速发起导出操作。支持沿用通用按钮的文案、样式、图标、颜色和命令配置,适合标准化记录导出入口。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -57,10 +60,7 @@ function _is_native_reflect_construct() {
|
|
|
57
60
|
return !!result;
|
|
58
61
|
})();
|
|
59
62
|
}
|
|
60
|
-
|
|
61
|
-
* name: rok_export_record_list_button
|
|
62
|
-
* description: 导出记录列表按钮组件。用于记录列表场景快速发起导出操作。支持沿用通用按钮的文案、样式、图标、颜色和命令配置,适合标准化记录导出入口。
|
|
63
|
-
*/ import { ButtonProperty } from '../Button';
|
|
63
|
+
import { ButtonProperty } from '../Button';
|
|
64
64
|
import ExportRecordListButtonControl from './designer';
|
|
65
65
|
var ExportRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
66
66
|
"use strict";
|
|
@@ -68,12 +68,13 @@ var ExportRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
68
68
|
function ExportRecordListButtonProperty(props) {
|
|
69
69
|
_class_call_check(this, ExportRecordListButtonProperty);
|
|
70
70
|
var _this;
|
|
71
|
-
var _ref, _ref1;
|
|
72
71
|
_this = _call_super(this, ExportRecordListButtonProperty, [
|
|
73
72
|
props
|
|
74
73
|
]);
|
|
75
|
-
|
|
76
|
-
_this.
|
|
74
|
+
var _props_content;
|
|
75
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ExportRecordListButtonControl.controlName;
|
|
76
|
+
var _props_icon;
|
|
77
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : ExportRecordListButtonControl.controlIcon;
|
|
77
78
|
return _this;
|
|
78
79
|
}
|
|
79
80
|
return ExportRecordListButtonProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_form_select_button
|
|
3
|
+
* description: 表单选择按钮组件。用于打开目标表单选择数据并回填当前页面。支持数据过滤、目标表单绑定、回填配置以及新建、编辑、查看命令模式,适合主子表关联和单据引用场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -85,10 +88,7 @@ function _is_native_reflect_construct() {
|
|
|
85
88
|
return !!result;
|
|
86
89
|
})();
|
|
87
90
|
}
|
|
88
|
-
|
|
89
|
-
* name: rok_form_select_button
|
|
90
|
-
* description: 表单选择按钮组件。用于打开目标表单选择数据并回填当前页面。支持数据过滤、目标表单绑定、回填配置以及新建、编辑、查看命令模式,适合主子表关联和单据引用场景。
|
|
91
|
-
*/ import { ButtonProperty } from '../Button';
|
|
91
|
+
import { ButtonProperty } from '../Button';
|
|
92
92
|
import FormSelectButtonControl from './designer';
|
|
93
93
|
import { PropertyRules, FillBackBind, FillPayloadBind, FormSelectBind } from '@byteluck-fe/model-driven-core';
|
|
94
94
|
import { createFillBindRules } from '../utils';
|
|
@@ -141,13 +141,15 @@ var FormSelectButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
141
141
|
function FormSelectButtonProperty(props) {
|
|
142
142
|
_class_call_check(this, FormSelectButtonProperty);
|
|
143
143
|
var _this;
|
|
144
|
-
var _ref, _ref1, _ref2;
|
|
145
144
|
_this = _call_super(this, FormSelectButtonProperty, [
|
|
146
145
|
props
|
|
147
146
|
]), _define_property(_this, "fillPayload", void 0), _define_property(_this, "formBind", void 0), _define_property(_this, "fillBack", void 0), _define_property(_this, "command", void 0);
|
|
148
|
-
|
|
149
|
-
_this.
|
|
150
|
-
|
|
147
|
+
var _props_content;
|
|
148
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : FormSelectButtonControl.controlName;
|
|
149
|
+
var _props_icon;
|
|
150
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : FormSelectButtonControl.controlIcon;
|
|
151
|
+
var _props_command;
|
|
152
|
+
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : 'create';
|
|
151
153
|
_this.fillPayload = new FillPayloadBind(props === null || props === void 0 ? void 0 : props.fillPayload);
|
|
152
154
|
_this.formBind = new FormSelectBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
153
155
|
_this.fillBack = new FillBackBind(props === null || props === void 0 ? void 0 : props.fillBack);
|
|
@@ -109,7 +109,7 @@ var IframeControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
109
109
|
{
|
|
110
110
|
key: "controlIcon",
|
|
111
111
|
get: function get() {
|
|
112
|
-
return '
|
|
112
|
+
return 'iconiframe';
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
{
|
|
@@ -132,15 +132,15 @@ _define_property(IframeControl, "setting", [
|
|
|
132
132
|
key: 'common-input-number',
|
|
133
133
|
visible: true,
|
|
134
134
|
name: 'width',
|
|
135
|
-
label: '
|
|
135
|
+
label: getLocaleText('CMD.f5311777541773110'),
|
|
136
136
|
min: 1,
|
|
137
|
-
tip: '
|
|
137
|
+
tip: getLocaleText('CMD.ee791777541581639')
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
key: 'common-input-number',
|
|
141
141
|
visible: true,
|
|
142
142
|
name: 'height',
|
|
143
|
-
label: '
|
|
143
|
+
label: getLocaleText('CMD.ea8c1777541774421'),
|
|
144
144
|
min: 1
|
|
145
145
|
},
|
|
146
146
|
{
|
|
@@ -74,6 +74,7 @@ function _is_native_reflect_construct() {
|
|
|
74
74
|
})();
|
|
75
75
|
}
|
|
76
76
|
import { Property, PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
77
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
78
|
var IframePropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
78
79
|
"use strict";
|
|
79
80
|
_inherits(IframePropertyRules, PropertyRules);
|
|
@@ -83,17 +84,17 @@ var IframePropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
83
84
|
_this = _call_super(this, IframePropertyRules, arguments), _define_property(_this, "content", {
|
|
84
85
|
type: 'string',
|
|
85
86
|
required: true,
|
|
86
|
-
message: '
|
|
87
|
+
message: getLocaleText('CMD.cacc1777541637293')
|
|
87
88
|
}), _define_property(_this, "width", {
|
|
88
89
|
type: 'number',
|
|
89
90
|
required: true,
|
|
90
91
|
min: 1,
|
|
91
|
-
message: '
|
|
92
|
+
message: getLocaleText('CMD.2f901777541688219')
|
|
92
93
|
}), _define_property(_this, "height", {
|
|
93
94
|
type: 'number',
|
|
94
95
|
required: true,
|
|
95
96
|
min: 1,
|
|
96
|
-
message: '
|
|
97
|
+
message: getLocaleText('CMD.156e1777541690112')
|
|
97
98
|
});
|
|
98
99
|
return _this;
|
|
99
100
|
}
|
|
@@ -105,13 +106,15 @@ var IframeProperty = /*#__PURE__*/ function(Property) {
|
|
|
105
106
|
function IframeProperty(props) {
|
|
106
107
|
_class_call_check(this, IframeProperty);
|
|
107
108
|
var _this;
|
|
108
|
-
var _ref, _ref1, _ref2;
|
|
109
109
|
_this = _call_super(this, IframeProperty, [
|
|
110
110
|
props
|
|
111
111
|
]), _define_property(_this, "content", void 0), _define_property(_this, "width", void 0), _define_property(_this, "height", void 0);
|
|
112
|
-
|
|
113
|
-
_this.
|
|
114
|
-
|
|
112
|
+
var _props_content;
|
|
113
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : '';
|
|
114
|
+
var _props_width;
|
|
115
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 600;
|
|
116
|
+
var _props_height;
|
|
117
|
+
_this.height = (_props_height = props === null || props === void 0 ? void 0 : props.height) !== null && _props_height !== void 0 ? _props_height : 400;
|
|
115
118
|
return _this;
|
|
116
119
|
}
|
|
117
120
|
return IframeProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_import_record_list_button
|
|
3
|
+
* description: 导入记录列表按钮组件。用于列表场景导入外部数据到指定业务模型。支持配置可导入的数据对象与模板类型,并继承按钮样式、图标和颜色能力,适合批量数据录入场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_import_record_list_button
|
|
75
|
-
* description: 导入记录列表按钮组件。用于列表场景导入外部数据到指定业务模型。支持配置可导入的数据对象与模板类型,并继承按钮样式、图标和颜色能力,适合批量数据录入场景。
|
|
76
|
-
*/ import { ButtonProperty } from '../Button';
|
|
76
|
+
import { ButtonProperty } from '../Button';
|
|
77
77
|
import ImportRecordListButtonControl from './designer';
|
|
78
78
|
var ImportListBind = function ImportListBind(props) {
|
|
79
79
|
"use strict";
|
|
@@ -87,17 +87,20 @@ var ImportRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
87
87
|
function ImportRecordListButtonProperty(props) {
|
|
88
88
|
_class_call_check(this, ImportRecordListButtonProperty);
|
|
89
89
|
var _this;
|
|
90
|
-
var _ref, _ref1, _ref2, _ref3;
|
|
91
90
|
var _props_canImportList;
|
|
92
91
|
_this = _call_super(this, ImportRecordListButtonProperty, [
|
|
93
92
|
props
|
|
94
93
|
]), _define_property(_this, "canImportList", void 0), _define_property(_this, "templateType", void 0);
|
|
95
|
-
|
|
96
|
-
_this.
|
|
97
|
-
|
|
94
|
+
var _props_content;
|
|
95
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ImportRecordListButtonControl.controlName;
|
|
96
|
+
var _props_icon;
|
|
97
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : ImportRecordListButtonControl.controlIcon;
|
|
98
|
+
var _props_canImportList_map;
|
|
99
|
+
_this.canImportList = (_props_canImportList_map = props === null || props === void 0 ? void 0 : (_props_canImportList = props.canImportList) === null || _props_canImportList === void 0 ? void 0 : _props_canImportList.map(function(item) {
|
|
98
100
|
return new ImportListBind(item);
|
|
99
|
-
})) !== null &&
|
|
100
|
-
|
|
101
|
+
})) !== null && _props_canImportList_map !== void 0 ? _props_canImportList_map : [];
|
|
102
|
+
var _props_templateType;
|
|
103
|
+
_this.templateType = (_props_templateType = props === null || props === void 0 ? void 0 : props.templateType) !== null && _props_templateType !== void 0 ? _props_templateType : 'system';
|
|
101
104
|
return _this;
|
|
102
105
|
}
|
|
103
106
|
return ImportRecordListButtonProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_invoice_check_button
|
|
3
|
+
* description: 发票验真按钮组件。用于识别并校验发票信息后回填表单字段。支持标题展示、气泡提示、验真开关和多字段填充配置,适合报销、财务审核和票据采集场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_invoice_check_button
|
|
75
|
-
* description: 发票验真按钮组件。用于识别并校验发票信息后回填表单字段。支持标题展示、气泡提示、验真开关和多字段填充配置,适合报销、财务审核和票据采集场景。
|
|
76
|
-
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
import { ButtonProperty } from '../Button';
|
|
78
78
|
import InvoiceCheckButtonControl from './designer';
|
|
79
79
|
import { PropertyRules, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
@@ -129,22 +129,30 @@ var InvoiceCheckButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
129
129
|
function InvoiceCheckButtonProperty(props) {
|
|
130
130
|
_class_call_check(this, InvoiceCheckButtonProperty);
|
|
131
131
|
var _this;
|
|
132
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
133
132
|
var _props_fillList;
|
|
134
133
|
_this = _call_super(this, InvoiceCheckButtonProperty, [
|
|
135
134
|
props
|
|
136
135
|
]), _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, "labelPosition", void 0), _define_property(_this, "invoiceCheck", void 0), _define_property(_this, "fillList", void 0);
|
|
137
|
-
|
|
138
|
-
_this.
|
|
139
|
-
|
|
140
|
-
_this.
|
|
141
|
-
|
|
142
|
-
_this.
|
|
143
|
-
|
|
144
|
-
_this.
|
|
145
|
-
|
|
136
|
+
var _props_caption;
|
|
137
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : InvoiceCheckButtonControl.controlName;
|
|
138
|
+
var _props_isHideCaption;
|
|
139
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
140
|
+
var _props_isShowCaptionTip;
|
|
141
|
+
_this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
|
|
142
|
+
var _props_captionTip;
|
|
143
|
+
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
|
|
144
|
+
var _props_labelPosition;
|
|
145
|
+
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
|
|
146
|
+
var _props_content;
|
|
147
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : InvoiceCheckButtonControl.controlName;
|
|
148
|
+
var _props_icon;
|
|
149
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : InvoiceCheckButtonControl.controlIcon;
|
|
150
|
+
var _props_invoiceCheck;
|
|
151
|
+
_this.invoiceCheck = (_props_invoiceCheck = props === null || props === void 0 ? void 0 : props.invoiceCheck) !== null && _props_invoiceCheck !== void 0 ? _props_invoiceCheck : true;
|
|
152
|
+
var _props_fillList_map;
|
|
153
|
+
_this.fillList = (_props_fillList_map = props === null || props === void 0 ? void 0 : (_props_fillList = props.fillList) === null || _props_fillList === void 0 ? void 0 : _props_fillList.map(function(item) {
|
|
146
154
|
return new MultistageFillingItem(item);
|
|
147
|
-
})) !== null &&
|
|
155
|
+
})) !== null && _props_fillList_map !== void 0 ? _props_fillList_map : [];
|
|
148
156
|
return _this;
|
|
149
157
|
}
|
|
150
158
|
return InvoiceCheckButtonProperty;
|
|
@@ -109,7 +109,7 @@ var LineChartControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
109
109
|
{
|
|
110
110
|
key: "controlIcon",
|
|
111
111
|
get: function get() {
|
|
112
|
-
return '
|
|
112
|
+
return 'iconLinechart';
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
{
|
|
@@ -165,28 +165,28 @@ _define_property(LineChartControl, "setting", [
|
|
|
165
165
|
key: 'common-select',
|
|
166
166
|
visible: true,
|
|
167
167
|
name: 'template',
|
|
168
|
-
label: '
|
|
168
|
+
label: getLocaleText('CMD.e89a1777541754655'),
|
|
169
169
|
default: 'line-basic',
|
|
170
170
|
options: [
|
|
171
171
|
{
|
|
172
172
|
value: 'line-basic',
|
|
173
|
-
label: '
|
|
173
|
+
label: getLocaleText('CMD.9bf11777541671154')
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
value: 'line-smooth',
|
|
177
|
-
label: '
|
|
177
|
+
label: getLocaleText('CMD.50231777541632244')
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
value: 'line-area',
|
|
181
|
-
label: '
|
|
181
|
+
label: getLocaleText('CMD.bad61777541673203')
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
value: 'line-stacked',
|
|
185
|
-
label: '
|
|
185
|
+
label: getLocaleText('CMD.8e651777541675555')
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
value: 'line-stacked-area',
|
|
189
|
-
label: '
|
|
189
|
+
label: getLocaleText('CMD.a75e1777541677634')
|
|
190
190
|
}
|
|
191
191
|
]
|
|
192
192
|
},
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_line_chart
|
|
3
|
+
* description: 折线图组件。用于展示静态或动态趋势数据图表,支持模板选择和字段映射,适合趋势分析与看板展示场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_line_chart
|
|
75
|
-
* description: 折线图组件。用于展示静态或动态趋势数据图表,支持模板选择和字段映射,适合趋势分析与看板展示场景。
|
|
76
|
-
*/ import LineChartControl from './designer';
|
|
76
|
+
import LineChartControl from './designer';
|
|
77
77
|
import { MultistageFillingItem, Property, PropertyRules, DataSourceBind } from '@byteluck-fe/model-driven-core';
|
|
78
78
|
import { FONT_WEIGHT } from '../../framework';
|
|
79
79
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
@@ -101,39 +101,90 @@ var LineChartPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
101
101
|
}
|
|
102
102
|
return LineChartPropertyRules;
|
|
103
103
|
}(PropertyRules);
|
|
104
|
+
var defaultLineChartOption = {
|
|
105
|
+
grid: {
|
|
106
|
+
left: '3%',
|
|
107
|
+
right: '4%',
|
|
108
|
+
bottom: '3%',
|
|
109
|
+
containLabel: true
|
|
110
|
+
},
|
|
111
|
+
xAxis: {
|
|
112
|
+
type: 'category',
|
|
113
|
+
data: [
|
|
114
|
+
'Mon',
|
|
115
|
+
'Tue',
|
|
116
|
+
'Wed',
|
|
117
|
+
'Thu',
|
|
118
|
+
'Fri',
|
|
119
|
+
'Sat',
|
|
120
|
+
'Sun'
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
yAxis: {
|
|
124
|
+
type: 'value'
|
|
125
|
+
},
|
|
126
|
+
series: [
|
|
127
|
+
{
|
|
128
|
+
type: 'line',
|
|
129
|
+
data: [
|
|
130
|
+
120,
|
|
131
|
+
200,
|
|
132
|
+
150,
|
|
133
|
+
80,
|
|
134
|
+
70,
|
|
135
|
+
110,
|
|
136
|
+
130
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
};
|
|
104
141
|
var LineChartProperty = /*#__PURE__*/ function(Property) {
|
|
105
142
|
"use strict";
|
|
106
143
|
_inherits(LineChartProperty, Property);
|
|
107
144
|
function LineChartProperty(props) {
|
|
108
145
|
_class_call_check(this, LineChartProperty);
|
|
109
146
|
var _this;
|
|
110
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14;
|
|
111
147
|
var _props_multistageFilling;
|
|
112
148
|
_this = _call_super(this, LineChartProperty, [
|
|
113
149
|
props
|
|
114
150
|
]), _define_property(_this, "caption", void 0), _define_property(_this, "isHideCaption", void 0), _define_property(_this, "isShowCaptionTip", void 0), _define_property(_this, "labelPosition", 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, "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);
|
|
115
|
-
|
|
116
|
-
_this.
|
|
117
|
-
|
|
118
|
-
_this.
|
|
119
|
-
|
|
151
|
+
var _props_caption;
|
|
152
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : LineChartControl.controlName;
|
|
153
|
+
var _props_isHideCaption;
|
|
154
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
155
|
+
var _props_isShowCaptionTip;
|
|
156
|
+
_this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
|
|
157
|
+
var _props_labelPosition;
|
|
158
|
+
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
|
|
159
|
+
var _props_captionTip;
|
|
160
|
+
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : '';
|
|
120
161
|
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
121
162
|
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
122
163
|
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
123
|
-
|
|
124
|
-
_this.
|
|
125
|
-
|
|
126
|
-
_this.
|
|
164
|
+
var _props_captionFontWeight;
|
|
165
|
+
_this.captionFontWeight = (_props_captionFontWeight = props === null || props === void 0 ? void 0 : props.captionFontWeight) !== null && _props_captionFontWeight !== void 0 ? _props_captionFontWeight : FONT_WEIGHT.NORMAL;
|
|
166
|
+
var _props_isHide;
|
|
167
|
+
_this.isHide = (_props_isHide = props === null || props === void 0 ? void 0 : props.isHide) !== null && _props_isHide !== void 0 ? _props_isHide : false;
|
|
168
|
+
var _props_template;
|
|
169
|
+
_this.template = (_props_template = props === null || props === void 0 ? void 0 : props.template) !== null && _props_template !== void 0 ? _props_template : "line-basic";
|
|
170
|
+
var _props_optionJson;
|
|
171
|
+
_this.optionJson = (_props_optionJson = props === null || props === void 0 ? void 0 : props.optionJson) !== null && _props_optionJson !== void 0 ? _props_optionJson : JSON.stringify(defaultLineChartOption, null, 2);
|
|
127
172
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
128
173
|
_this.filterItemDatasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.filterItemDatasourceBind);
|
|
129
|
-
|
|
174
|
+
var _props_multistageFilling_map;
|
|
175
|
+
_this.multistageFilling = (_props_multistageFilling_map = props === null || props === void 0 ? void 0 : (_props_multistageFilling = props.multistageFilling) === null || _props_multistageFilling === void 0 ? void 0 : _props_multistageFilling.map(function(item) {
|
|
130
176
|
return new MultistageFillingItem(item);
|
|
131
|
-
})) !== null &&
|
|
132
|
-
|
|
133
|
-
_this.
|
|
134
|
-
|
|
135
|
-
_this.
|
|
136
|
-
|
|
177
|
+
})) !== null && _props_multistageFilling_map !== void 0 ? _props_multistageFilling_map : [];
|
|
178
|
+
var _props_defaultValue;
|
|
179
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : [];
|
|
180
|
+
var _props_openMultistageFilling;
|
|
181
|
+
_this.openMultistageFilling = (_props_openMultistageFilling = props === null || props === void 0 ? void 0 : props.openMultistageFilling) !== null && _props_openMultistageFilling !== void 0 ? _props_openMultistageFilling : false;
|
|
182
|
+
var _props_xField;
|
|
183
|
+
_this.xField = (_props_xField = props === null || props === void 0 ? void 0 : props.xField) !== null && _props_xField !== void 0 ? _props_xField : '';
|
|
184
|
+
var _props_yField;
|
|
185
|
+
_this.yField = (_props_yField = props === null || props === void 0 ? void 0 : props.yField) !== null && _props_yField !== void 0 ? _props_yField : '';
|
|
186
|
+
var _props_seriesConfig;
|
|
187
|
+
_this.seriesConfig = (_props_seriesConfig = props === null || props === void 0 ? void 0 : props.seriesConfig) !== null && _props_seriesConfig !== void 0 ? _props_seriesConfig : [];
|
|
137
188
|
return _this;
|
|
138
189
|
}
|
|
139
190
|
return LineChartProperty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* name: rok_link
|
|
3
|
+
* description: 链接组件。用于展示可点击的文本链接并跳转页面或执行脚本。支持链接地址、描述、对齐方式、颜色、图标、打开方式以及动态脚本或 JavaScript 配置,适合导航与快捷操作场景。
|
|
4
|
+
*/ function _assert_this_initialized(self) {
|
|
2
5
|
if (self === void 0) {
|
|
3
6
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
7
|
}
|
|
@@ -70,10 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
70
73
|
return !!result;
|
|
71
74
|
})();
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
* name: rok_link
|
|
75
|
-
* description: 链接组件。用于展示可点击的文本链接并跳转页面或执行脚本。支持链接地址、描述、对齐方式、颜色、图标、打开方式以及动态脚本或 JavaScript 配置,适合导航与快捷操作场景。
|
|
76
|
-
*/ import { Property } from '@byteluck-fe/model-driven-core';
|
|
76
|
+
import { Property } from '@byteluck-fe/model-driven-core';
|
|
77
77
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
78
78
|
var LinkProperty = /*#__PURE__*/ function(Property) {
|
|
79
79
|
"use strict";
|
|
@@ -81,18 +81,23 @@ var LinkProperty = /*#__PURE__*/ function(Property) {
|
|
|
81
81
|
function LinkProperty(props) {
|
|
82
82
|
_class_call_check(this, LinkProperty);
|
|
83
83
|
var _this;
|
|
84
|
-
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
85
84
|
_this = _call_super(this, LinkProperty, [
|
|
86
85
|
props
|
|
87
86
|
]), _define_property(_this, "content", void 0), _define_property(_this, "url", void 0), // public description: string
|
|
88
87
|
_define_property(_this, "position", void 0), _define_property(_this, "color", void 0), _define_property(_this, "openMode", void 0), _define_property(_this, "icon", void 0);
|
|
89
|
-
|
|
88
|
+
var _props_content;
|
|
89
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.linkContent', null, '我是一个链接');
|
|
90
|
+
var _props_position;
|
|
90
91
|
// this.description = props?.description ?? ''
|
|
91
|
-
_this.position = (
|
|
92
|
-
|
|
93
|
-
_this.
|
|
94
|
-
|
|
95
|
-
_this.
|
|
92
|
+
_this.position = (_props_position = props === null || props === void 0 ? void 0 : props.position) !== null && _props_position !== void 0 ? _props_position : 'left';
|
|
93
|
+
var _props_color;
|
|
94
|
+
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'primary';
|
|
95
|
+
var _props_url;
|
|
96
|
+
_this.url = (_props_url = props === null || props === void 0 ? void 0 : props.url) !== null && _props_url !== void 0 ? _props_url : '';
|
|
97
|
+
var _props_openMode;
|
|
98
|
+
_this.openMode = (_props_openMode = props === null || props === void 0 ? void 0 : props.openMode) !== null && _props_openMode !== void 0 ? _props_openMode : 'new';
|
|
99
|
+
var _props_icon;
|
|
100
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : '';
|
|
96
101
|
return _this;
|
|
97
102
|
}
|
|
98
103
|
return LinkProperty;
|