@byteluck-fe/model-driven-controls 1.8.0-beta.1 → 1.8.0-beta.10
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/BatchPrintListButton/property.js +10 -10
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +12 -12
- package/dist/esm/baseControls/Button/property.js +16 -16
- package/dist/esm/baseControls/CreateFormListButton/property.js +8 -8
- package/dist/esm/baseControls/Dashboard/property.js +12 -12
- package/dist/esm/baseControls/Divider/property.js +4 -4
- package/dist/esm/baseControls/ExportListButton/property.js +8 -8
- package/dist/esm/baseControls/ExportRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/FormSelectButton/property.js +6 -6
- package/dist/esm/baseControls/ImportRecordListButton/property.js +8 -8
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +20 -20
- package/dist/esm/baseControls/Link/property.js +6 -6
- package/dist/esm/baseControls/ListSelectButton/property.js +4 -4
- package/dist/esm/baseControls/ListViewSelect/property.js +6 -6
- package/dist/esm/baseControls/OperationButton/designer.js +158 -0
- package/dist/esm/baseControls/OperationButton/index.js +11 -0
- package/dist/esm/baseControls/OperationButton/property.js +129 -0
- package/dist/esm/baseControls/OperationButton/runtime.js +110 -0
- package/dist/esm/baseControls/OperationButton/types.js +0 -0
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +4 -4
- package/dist/esm/baseControls/Text/property.js +10 -10
- package/dist/esm/baseControls/TextOcrButton/property.js +20 -20
- package/dist/esm/baseControls/Title/property.js +4 -4
- package/dist/esm/baseControls/index.js +1 -0
- package/dist/esm/columnControls/ArrayColumn/property.js +6 -6
- package/dist/esm/columnControls/AutoNumberColumn/property.js +2 -2
- package/dist/esm/columnControls/CustomColumn/designer.js +1 -1
- package/dist/esm/columnControls/CustomColumn/property.js +4 -4
- package/dist/esm/columnControls/DecimalColumn/designer.js +1 -1
- package/dist/esm/columnControls/DecimalColumn/property.js +12 -12
- package/dist/esm/columnControls/DepartmentColumn/property.js +4 -4
- package/dist/esm/columnControls/EmployeeColumn/property.js +4 -4
- package/dist/esm/columnControls/FileColumn/property.js +2 -2
- package/dist/esm/columnControls/ImageColumn/property.js +2 -2
- package/dist/esm/columnControls/LocationColumn/property.js +2 -2
- package/dist/esm/columnControls/OperationColumn/designer.js +245 -10
- package/dist/esm/columnControls/OperationColumn/property.js +10 -12
- package/dist/esm/columnControls/OperationColumn/runtime.js +2 -1
- package/dist/esm/columnControls/OrderColumn/property.js +8 -8
- package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
- package/dist/esm/columnControls/TextColumn/property.js +6 -6
- package/dist/esm/columnControls/TimescopeColumn/property.js +4 -4
- package/dist/esm/columnControls/TimestampColumn/property.js +4 -4
- package/dist/esm/columnControls/VarcharColumn/property.js +8 -8
- package/dist/esm/formControls/Address/property.js +10 -10
- package/dist/esm/formControls/Amount/designer.js +1 -1
- package/dist/esm/formControls/Amount/property.js +22 -22
- package/dist/esm/formControls/Attachment/property.js +16 -16
- package/dist/esm/formControls/AutoNumber/property.js +6 -6
- package/dist/esm/formControls/Calc/designer.js +1 -1
- package/dist/esm/formControls/Calc/property.js +14 -14
- package/dist/esm/formControls/Checkbox/property.js +26 -26
- package/dist/esm/formControls/DatePicker/property.js +18 -18
- package/dist/esm/formControls/DateRange/property.js +18 -18
- package/dist/esm/formControls/Department/designer.js +1 -1
- package/dist/esm/formControls/Department/property.js +22 -22
- package/dist/esm/formControls/Department2/designer.js +1 -1
- package/dist/esm/formControls/Department2/property.js +30 -30
- package/dist/esm/formControls/ElectronicSignature/property.js +12 -12
- package/dist/esm/formControls/Employee/property.js +18 -18
- package/dist/esm/formControls/Employee2/property.js +28 -28
- package/dist/esm/formControls/Image/designer.js +5 -5
- package/dist/esm/formControls/Image/runtime.js +7 -7
- package/dist/esm/formControls/Input/property.js +14 -14
- package/dist/esm/formControls/Number/designer.js +1 -1
- package/dist/esm/formControls/Number/property.js +26 -26
- package/dist/esm/formControls/Radio/property.js +22 -22
- package/dist/esm/formControls/RichText/property.js +10 -10
- package/dist/esm/formControls/Score/designer.js +2 -2
- package/dist/esm/formControls/Score/property.js +14 -14
- package/dist/esm/formControls/SearchDateRange/property.js +20 -20
- package/dist/esm/formControls/SearchNumberRange/property.js +12 -12
- package/dist/esm/formControls/Select/property.js +16 -16
- package/dist/esm/formControls/SelectMultiple/property.js +14 -14
- package/dist/esm/formControls/SelectRelation/property.js +14 -14
- package/dist/esm/formControls/Textarea/property.js +12 -12
- package/dist/esm/formControls/Tree/property.js +26 -26
- package/dist/esm/formControls/VueFormItem/property.js +10 -10
- package/dist/esm/formControls/WPS/property.js +24 -24
- package/dist/esm/framework.js +70 -70
- package/dist/esm/layoutControls/CardGroup/property.js +6 -6
- package/dist/esm/layoutControls/Col/property.js +4 -4
- package/dist/esm/layoutControls/DataView/property.js +12 -12
- package/dist/esm/layoutControls/GridTableColumn/property.js +20 -20
- package/dist/esm/layoutControls/ListView/property.js +16 -16
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +8 -8
- package/dist/esm/layoutControls/Row/property.js +4 -4
- package/dist/esm/layoutControls/SubTableColumn/property.js +12 -12
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/listControls/GridTable/property.js +8 -8
- package/dist/esm/listControls/SubTable/designer.js +2 -2
- package/dist/esm/listControls/SubTable/property.js +42 -42
- package/dist/esm/searchControls/SimpleSearch/property.js +14 -14
- package/dist/esm/searchControls/SimpleSearch/runtime.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/OperationButton/designer.d.ts +13 -0
- package/dist/types/baseControls/OperationButton/index.d.ts +12 -0
- package/dist/types/baseControls/OperationButton/property.d.ts +25 -0
- package/dist/types/baseControls/OperationButton/runtime.d.ts +9 -0
- package/dist/types/baseControls/OperationButton/types.d.ts +0 -0
- package/dist/types/baseControls/index.d.ts +1 -0
- package/dist/types/columnControls/OperationColumn/designer.d.ts +12 -1
- package/dist/types/columnControls/OperationColumn/property.d.ts +1 -2
- package/dist/types/columnControls/OperationColumn/runtime.d.ts +2 -1
- package/dist/types/type.d.ts +2 -1
- package/package.json +4 -4
|
@@ -99,18 +99,18 @@ var BatchPrintListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
99
99
|
function BatchPrintListButtonProperty(props) {
|
|
100
100
|
_classCallCheck(this, BatchPrintListButtonProperty);
|
|
101
101
|
var _this;
|
|
102
|
-
var
|
|
102
|
+
var _props_printTemplates;
|
|
103
103
|
_this = _super.call(this, props);
|
|
104
|
-
var
|
|
105
|
-
_this.icon = (
|
|
106
|
-
var
|
|
107
|
-
_this.content = (
|
|
108
|
-
var
|
|
109
|
-
_this.printTemplates = (
|
|
104
|
+
var _props_icon;
|
|
105
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchPrintListButtonControl.controlIcon;
|
|
106
|
+
var _props_content;
|
|
107
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchPrintListButtonControl.controlName;
|
|
108
|
+
var _props_printTemplates_map;
|
|
109
|
+
_this.printTemplates = (_props_printTemplates_map = props === null || props === void 0 ? void 0 : (_props_printTemplates = props.printTemplates) === null || _props_printTemplates === void 0 ? void 0 : _props_printTemplates.map(function(item) {
|
|
110
110
|
return new PrintTemplate(item);
|
|
111
|
-
})) !== null &&
|
|
112
|
-
var
|
|
113
|
-
_this.autoSelectTemplate = (
|
|
111
|
+
})) !== null && _props_printTemplates_map !== void 0 ? _props_printTemplates_map : [];
|
|
112
|
+
var _props_autoSelectTemplate;
|
|
113
|
+
_this.autoSelectTemplate = (_props_autoSelectTemplate = props === null || props === void 0 ? void 0 : props.autoSelectTemplate) !== null && _props_autoSelectTemplate !== void 0 ? _props_autoSelectTemplate : false;
|
|
114
114
|
return _this;
|
|
115
115
|
}
|
|
116
116
|
return BatchPrintListButtonProperty;
|
|
@@ -79,10 +79,10 @@ var BatchPrintRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty)
|
|
|
79
79
|
_classCallCheck(this, BatchPrintRecordListButtonProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.content = (
|
|
84
|
-
var
|
|
85
|
-
_this.icon = (
|
|
82
|
+
var _props_content;
|
|
83
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchPrintRecordListButton.controlName;
|
|
84
|
+
var _props_icon;
|
|
85
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchPrintRecordListButton.controlIcon;
|
|
86
86
|
return _this;
|
|
87
87
|
}
|
|
88
88
|
return BatchPrintRecordListButtonProperty;
|
|
@@ -104,18 +104,18 @@ var BatchSubmissionListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
104
104
|
_classCallCheck(this, BatchSubmissionListButtonProperty);
|
|
105
105
|
var _this;
|
|
106
106
|
_this = _super.call(this, props);
|
|
107
|
-
var
|
|
108
|
-
_this.icon = (
|
|
109
|
-
var
|
|
110
|
-
_this.content = (
|
|
111
|
-
var
|
|
112
|
-
_this.initiatorMode = (
|
|
113
|
-
var
|
|
114
|
-
_this.processKey = (
|
|
115
|
-
var
|
|
116
|
-
_this.fieldCode = (
|
|
117
|
-
var
|
|
118
|
-
_this.employeeId = (
|
|
107
|
+
var _props_icon;
|
|
108
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : BatchSubmissionListButtonControl.controlIcon;
|
|
109
|
+
var _props_content;
|
|
110
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : BatchSubmissionListButtonControl.controlName;
|
|
111
|
+
var _props_initiatorMode;
|
|
112
|
+
_this.initiatorMode = (_props_initiatorMode = props === null || props === void 0 ? void 0 : props.initiatorMode) !== null && _props_initiatorMode !== void 0 ? _props_initiatorMode : "currentInitiator";
|
|
113
|
+
var _props_processKey;
|
|
114
|
+
_this.processKey = (_props_processKey = props === null || props === void 0 ? void 0 : props.processKey) !== null && _props_processKey !== void 0 ? _props_processKey : "";
|
|
115
|
+
var _props_fieldCode;
|
|
116
|
+
_this.fieldCode = (_props_fieldCode = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && _props_fieldCode !== void 0 ? _props_fieldCode : "";
|
|
117
|
+
var _props_employeeId;
|
|
118
|
+
_this.employeeId = (_props_employeeId = props === null || props === void 0 ? void 0 : props.employeeId) !== null && _props_employeeId !== void 0 ? _props_employeeId : "";
|
|
119
119
|
return _this;
|
|
120
120
|
}
|
|
121
121
|
return BatchSubmissionListButtonProperty;
|
|
@@ -78,23 +78,23 @@ var ButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
78
78
|
_classCallCheck(this, ButtonProperty);
|
|
79
79
|
var _this;
|
|
80
80
|
_this = _super.call(this, props);
|
|
81
|
-
var
|
|
82
|
-
_this.content = (
|
|
83
|
-
var
|
|
84
|
-
_this.buttonType = (
|
|
85
|
-
var
|
|
86
|
-
_this.showType = (
|
|
87
|
-
var
|
|
88
|
-
_this.color = (
|
|
89
|
-
var
|
|
81
|
+
var _props_content;
|
|
82
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "按钮";
|
|
83
|
+
var _props_buttonType;
|
|
84
|
+
_this.buttonType = (_props_buttonType = props === null || props === void 0 ? void 0 : props.buttonType) !== null && _props_buttonType !== void 0 ? _props_buttonType : "primary";
|
|
85
|
+
var _props_showType;
|
|
86
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "text";
|
|
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 : "primary";
|
|
89
|
+
var _props_icon;
|
|
90
90
|
// @余石伟 按钮需要有默认icon
|
|
91
|
-
_this.icon = (
|
|
92
|
-
var
|
|
93
|
-
_this.defaultState = (
|
|
94
|
-
var
|
|
95
|
-
_this.command = (
|
|
96
|
-
var
|
|
97
|
-
_this.isLoading = (
|
|
91
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : "iconfenlei2";
|
|
92
|
+
var _props_defaultState;
|
|
93
|
+
_this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : "default";
|
|
94
|
+
var _props_command;
|
|
95
|
+
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : "custom";
|
|
96
|
+
var _props_isLoading;
|
|
97
|
+
_this.isLoading = (_props_isLoading = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _props_isLoading !== void 0 ? _props_isLoading : false;
|
|
98
98
|
return _this;
|
|
99
99
|
}
|
|
100
100
|
return ButtonProperty;
|
|
@@ -98,14 +98,14 @@ var CreateFormListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
98
98
|
_classCallCheck(this, CreateFormListButtonProperty);
|
|
99
99
|
var _this;
|
|
100
100
|
_this = _super.call(this, props);
|
|
101
|
-
var
|
|
102
|
-
_this.icon = (
|
|
103
|
-
var
|
|
104
|
-
_this.content = (
|
|
105
|
-
var
|
|
106
|
-
_this.formKey = (
|
|
107
|
-
var
|
|
108
|
-
_this.openType = (
|
|
101
|
+
var _props_icon;
|
|
102
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : CreateFormListButtonControl.controlIcon;
|
|
103
|
+
var _props_content;
|
|
104
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : CreateFormListButtonControl.controlName;
|
|
105
|
+
var _props_formKey;
|
|
106
|
+
_this.formKey = (_props_formKey = props === null || props === void 0 ? void 0 : props.formKey) !== null && _props_formKey !== void 0 ? _props_formKey : "";
|
|
107
|
+
var _props_openType;
|
|
108
|
+
_this.openType = (_props_openType = props === null || props === void 0 ? void 0 : props.openType) !== null && _props_openType !== void 0 ? _props_openType : "modal";
|
|
109
109
|
return _this;
|
|
110
110
|
}
|
|
111
111
|
return CreateFormListButtonProperty;
|
|
@@ -119,18 +119,18 @@ var DashboardProperty = /*#__PURE__*/ function(Property) {
|
|
|
119
119
|
_classCallCheck(this, DashboardProperty);
|
|
120
120
|
var _this;
|
|
121
121
|
_this = _super.call(this, props);
|
|
122
|
-
var
|
|
123
|
-
_this.dashboardKey = (
|
|
124
|
-
var
|
|
125
|
-
_this.caption = (
|
|
126
|
-
var
|
|
127
|
-
_this.isHideCaption = (
|
|
128
|
-
var
|
|
129
|
-
_this.isShowCaptionTip = (
|
|
130
|
-
var
|
|
131
|
-
_this.captionTip = (
|
|
132
|
-
var
|
|
133
|
-
_this.labelPosition = (
|
|
122
|
+
var _props_dashboardKey;
|
|
123
|
+
_this.dashboardKey = (_props_dashboardKey = props === null || props === void 0 ? void 0 : props.dashboardKey) !== null && _props_dashboardKey !== void 0 ? _props_dashboardKey : "";
|
|
124
|
+
var _props_caption;
|
|
125
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : "";
|
|
126
|
+
var _props_isHideCaption;
|
|
127
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
128
|
+
var _props_isShowCaptionTip;
|
|
129
|
+
_this.isShowCaptionTip = (_props_isShowCaptionTip = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _props_isShowCaptionTip !== void 0 ? _props_isShowCaptionTip : false;
|
|
130
|
+
var _props_captionTip;
|
|
131
|
+
_this.captionTip = (_props_captionTip = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _props_captionTip !== void 0 ? _props_captionTip : "";
|
|
132
|
+
var _props_labelPosition;
|
|
133
|
+
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : "top";
|
|
134
134
|
return _this;
|
|
135
135
|
}
|
|
136
136
|
return DashboardProperty;
|
|
@@ -80,10 +80,10 @@ var DividerProperty = /*#__PURE__*/ function(Property) {
|
|
|
80
80
|
_classCallCheck(this, DividerProperty);
|
|
81
81
|
var _this;
|
|
82
82
|
_this = _super.call(this, props);
|
|
83
|
-
var
|
|
84
|
-
_this.color = (
|
|
85
|
-
var
|
|
86
|
-
_this.lineStyle = (
|
|
83
|
+
var _props_color;
|
|
84
|
+
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : "#000";
|
|
85
|
+
var _props_lineStyle;
|
|
86
|
+
_this.lineStyle = (_props_lineStyle = props === null || props === void 0 ? void 0 : props.lineStyle) !== null && _props_lineStyle !== void 0 ? _props_lineStyle : LINE_STYLE.SOLID;
|
|
87
87
|
return _this;
|
|
88
88
|
}
|
|
89
89
|
return DividerProperty;
|
|
@@ -79,16 +79,16 @@ var ExportListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
79
79
|
function ExportListButtonProperty(props) {
|
|
80
80
|
_classCallCheck(this, ExportListButtonProperty);
|
|
81
81
|
var _this;
|
|
82
|
-
var
|
|
82
|
+
var _props_templateList;
|
|
83
83
|
_this = _super.call(this, props);
|
|
84
|
-
var
|
|
85
|
-
_this.icon = (
|
|
86
|
-
var
|
|
87
|
-
_this.content = (
|
|
88
|
-
var
|
|
89
|
-
_this.templateList = (
|
|
84
|
+
var _props_icon;
|
|
85
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : ExportListButtonControl.controlIcon;
|
|
86
|
+
var _props_content;
|
|
87
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ExportListButtonControl.controlName;
|
|
88
|
+
var _props_templateList_map;
|
|
89
|
+
_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) {
|
|
90
90
|
return new ExportTemplate(item);
|
|
91
|
-
})) !== null &&
|
|
91
|
+
})) !== null && _props_templateList_map !== void 0 ? _props_templateList_map : [
|
|
92
92
|
new ExportTemplate({
|
|
93
93
|
id: "default",
|
|
94
94
|
name: "默认模板",
|
|
@@ -79,10 +79,10 @@ var ExportRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
79
79
|
_classCallCheck(this, ExportRecordListButtonProperty);
|
|
80
80
|
var _this;
|
|
81
81
|
_this = _super.call(this, props);
|
|
82
|
-
var
|
|
83
|
-
_this.content = (
|
|
84
|
-
var
|
|
85
|
-
_this.icon = (
|
|
82
|
+
var _props_content;
|
|
83
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ExportRecordListButtonControl.controlName;
|
|
84
|
+
var _props_icon;
|
|
85
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : ExportRecordListButtonControl.controlIcon;
|
|
86
86
|
return _this;
|
|
87
87
|
}
|
|
88
88
|
return ExportRecordListButtonProperty;
|
|
@@ -154,12 +154,12 @@ var FormSelectButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
154
154
|
_classCallCheck(this, FormSelectButtonProperty);
|
|
155
155
|
var _this;
|
|
156
156
|
_this = _super.call(this, props);
|
|
157
|
-
var
|
|
158
|
-
_this.content = (
|
|
159
|
-
var
|
|
160
|
-
_this.icon = (
|
|
161
|
-
var
|
|
162
|
-
_this.command = (
|
|
157
|
+
var _props_content;
|
|
158
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : FormSelectButtonControl.controlName;
|
|
159
|
+
var _props_icon;
|
|
160
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : FormSelectButtonControl.controlIcon;
|
|
161
|
+
var _props_command;
|
|
162
|
+
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : "create";
|
|
163
163
|
_this.fillPayload = new FillPayloadBind(props === null || props === void 0 ? void 0 : props.fillPayload);
|
|
164
164
|
_this.formBind = new FormSelectBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
165
165
|
_this.fillBack = new FillBackBind(props === null || props === void 0 ? void 0 : props.fillBack);
|
|
@@ -83,16 +83,16 @@ var ImportRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
83
83
|
function ImportRecordListButtonProperty(props) {
|
|
84
84
|
_classCallCheck(this, ImportRecordListButtonProperty);
|
|
85
85
|
var _this;
|
|
86
|
-
var
|
|
86
|
+
var _props_canImportList;
|
|
87
87
|
_this = _super.call(this, props);
|
|
88
|
-
var
|
|
89
|
-
_this.content = (
|
|
90
|
-
var
|
|
91
|
-
_this.icon = (
|
|
92
|
-
var
|
|
93
|
-
_this.canImportList = (
|
|
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 : ImportRecordListButtonControl.controlName;
|
|
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 : ImportRecordListButtonControl.controlIcon;
|
|
92
|
+
var _props_canImportList_map;
|
|
93
|
+
_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) {
|
|
94
94
|
return new ImportListBind(item);
|
|
95
|
-
})) !== null &&
|
|
95
|
+
})) !== null && _props_canImportList_map !== void 0 ? _props_canImportList_map : [];
|
|
96
96
|
return _this;
|
|
97
97
|
}
|
|
98
98
|
return ImportRecordListButtonProperty;
|
|
@@ -131,28 +131,28 @@ var InvoiceCheckButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
131
131
|
function InvoiceCheckButtonProperty(props) {
|
|
132
132
|
_classCallCheck(this, InvoiceCheckButtonProperty);
|
|
133
133
|
var _this;
|
|
134
|
-
var
|
|
134
|
+
var _props_fillList;
|
|
135
135
|
_this = _super.call(this, props);
|
|
136
|
-
var
|
|
137
|
-
_this.caption = (
|
|
138
|
-
var
|
|
139
|
-
_this.isHideCaption = (
|
|
140
|
-
var
|
|
141
|
-
_this.isShowCaptionTip = (
|
|
142
|
-
var
|
|
143
|
-
_this.captionTip = (
|
|
144
|
-
var
|
|
145
|
-
_this.labelPosition = (
|
|
146
|
-
var
|
|
147
|
-
_this.content = (
|
|
148
|
-
var
|
|
149
|
-
_this.icon = (
|
|
150
|
-
var
|
|
151
|
-
_this.invoiceCheck = (
|
|
152
|
-
var
|
|
153
|
-
_this.fillList = (
|
|
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) {
|
|
154
154
|
return new MultistageFillingItem(item);
|
|
155
|
-
})) !== null &&
|
|
155
|
+
})) !== null && _props_fillList_map !== void 0 ? _props_fillList_map : [];
|
|
156
156
|
return _this;
|
|
157
157
|
}
|
|
158
158
|
return InvoiceCheckButtonProperty;
|
|
@@ -78,12 +78,12 @@ var LinkProperty = /*#__PURE__*/ function(Property) {
|
|
|
78
78
|
_classCallCheck(this, LinkProperty);
|
|
79
79
|
var _this;
|
|
80
80
|
_this = _super.call(this, props);
|
|
81
|
-
var
|
|
82
|
-
_this.content = (
|
|
83
|
-
var
|
|
84
|
-
_this.url = (
|
|
85
|
-
var
|
|
86
|
-
_this.openMode = (
|
|
81
|
+
var _props_content;
|
|
82
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : "我是一个链接";
|
|
83
|
+
var _props_url;
|
|
84
|
+
_this.url = (_props_url = props === null || props === void 0 ? void 0 : props.url) !== null && _props_url !== void 0 ? _props_url : "";
|
|
85
|
+
var _props_openMode;
|
|
86
|
+
_this.openMode = (_props_openMode = props === null || props === void 0 ? void 0 : props.openMode) !== null && _props_openMode !== void 0 ? _props_openMode : "new";
|
|
87
87
|
return _this;
|
|
88
88
|
}
|
|
89
89
|
return LinkProperty;
|
|
@@ -151,10 +151,10 @@ var ListSelectButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
151
151
|
_classCallCheck(this, ListSelectButtonProperty);
|
|
152
152
|
var _this;
|
|
153
153
|
_this = _super.call(this, props);
|
|
154
|
-
var
|
|
155
|
-
_this.content = (
|
|
156
|
-
var
|
|
157
|
-
_this.icon = (
|
|
154
|
+
var _props_content;
|
|
155
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : ListSelectButtonControl.controlName;
|
|
156
|
+
var _props_icon;
|
|
157
|
+
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : ListSelectButtonControl.controlIcon;
|
|
158
158
|
_this.fillPayload = new FillPayloadBind(props === null || props === void 0 ? void 0 : props.fillPayload);
|
|
159
159
|
_this.listPageBind = new ListBind(props === null || props === void 0 ? void 0 : props.listPageBind);
|
|
160
160
|
_this.fillBack = new FillBackBind(props === null || props === void 0 ? void 0 : props.fillBack);
|
|
@@ -116,14 +116,14 @@ var ListViewSelectProperty = /*#__PURE__*/ function(Property) {
|
|
|
116
116
|
function ListViewSelectProperty(props) {
|
|
117
117
|
_classCallCheck(this, ListViewSelectProperty);
|
|
118
118
|
var _this;
|
|
119
|
-
var
|
|
119
|
+
var _props_viewList;
|
|
120
120
|
_this = _super.call(this, props);
|
|
121
|
-
var
|
|
122
|
-
_this.showType = (
|
|
123
|
-
var
|
|
124
|
-
_this.viewList = (
|
|
121
|
+
var _props_showType;
|
|
122
|
+
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "select";
|
|
123
|
+
var _props_viewList_map;
|
|
124
|
+
_this.viewList = (_props_viewList_map = props === null || props === void 0 ? void 0 : (_props_viewList = props.viewList) === null || _props_viewList === void 0 ? void 0 : _props_viewList.map(function(item) {
|
|
125
125
|
return new ViewOperationItem(item);
|
|
126
|
-
})) !== null &&
|
|
126
|
+
})) !== null && _props_viewList_map !== void 0 ? _props_viewList_map : [];
|
|
127
127
|
return _this;
|
|
128
128
|
}
|
|
129
129
|
return ListViewSelectProperty;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
function _assertThisInitialized(self) {
|
|
2
|
+
if (self === void 0) {
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
}
|
|
5
|
+
return self;
|
|
6
|
+
}
|
|
7
|
+
function _classCallCheck(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _defineProperties(target, props) {
|
|
13
|
+
for(var i = 0; i < props.length; i++){
|
|
14
|
+
var descriptor = props[i];
|
|
15
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16
|
+
descriptor.configurable = true;
|
|
17
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
18
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
|
+
return Constructor;
|
|
25
|
+
}
|
|
26
|
+
function _getPrototypeOf(o) {
|
|
27
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
28
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
29
|
+
};
|
|
30
|
+
return _getPrototypeOf(o);
|
|
31
|
+
}
|
|
32
|
+
function _inherits(subClass, superClass) {
|
|
33
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
34
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
35
|
+
}
|
|
36
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
37
|
+
constructor: {
|
|
38
|
+
value: subClass,
|
|
39
|
+
writable: true,
|
|
40
|
+
configurable: true
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
44
|
+
}
|
|
45
|
+
function _possibleConstructorReturn(self, call) {
|
|
46
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
47
|
+
return call;
|
|
48
|
+
}
|
|
49
|
+
return _assertThisInitialized(self);
|
|
50
|
+
}
|
|
51
|
+
function _setPrototypeOf(o, p) {
|
|
52
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
53
|
+
o.__proto__ = p;
|
|
54
|
+
return o;
|
|
55
|
+
};
|
|
56
|
+
return _setPrototypeOf(o, p);
|
|
57
|
+
}
|
|
58
|
+
var _typeof = function(obj) {
|
|
59
|
+
"@swc/helpers - typeof";
|
|
60
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
61
|
+
};
|
|
62
|
+
function _isNativeReflectConstruct() {
|
|
63
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
64
|
+
if (Reflect.construct.sham) return false;
|
|
65
|
+
if (typeof Proxy === "function") return true;
|
|
66
|
+
try {
|
|
67
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
return true;
|
|
69
|
+
} catch (e) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function _createSuper(Derived) {
|
|
74
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
75
|
+
return function _createSuperInternal() {
|
|
76
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
77
|
+
if (hasNativeReflectConstruct) {
|
|
78
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
79
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
80
|
+
} else {
|
|
81
|
+
result = Super.apply(this, arguments);
|
|
82
|
+
}
|
|
83
|
+
return _possibleConstructorReturn(this, result);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
import { DesignerControl, COMMON_SETTING_TYPE } from "@byteluck-fe/model-driven-core";
|
|
87
|
+
import { OperationButtonProperty } from "./property";
|
|
88
|
+
var OperationButtonControl = /*#__PURE__*/ function(DesignerControl) {
|
|
89
|
+
"use strict";
|
|
90
|
+
_inherits(OperationButtonControl, DesignerControl);
|
|
91
|
+
var _super = _createSuper(OperationButtonControl);
|
|
92
|
+
function OperationButtonControl(props) {
|
|
93
|
+
_classCallCheck(this, OperationButtonControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _super.call(this, props);
|
|
96
|
+
_this.props = new OperationButtonProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
97
|
+
return _this;
|
|
98
|
+
}
|
|
99
|
+
_createClass(OperationButtonControl, null, [
|
|
100
|
+
{
|
|
101
|
+
key: "controlName",
|
|
102
|
+
get: function get() {
|
|
103
|
+
return "操作按钮";
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
key: "controlIcon",
|
|
108
|
+
get: function get() {
|
|
109
|
+
return "iconbtn";
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
key: "controlType",
|
|
114
|
+
get: function get() {
|
|
115
|
+
return "operation-button";
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]);
|
|
119
|
+
return OperationButtonControl;
|
|
120
|
+
}(DesignerControl);
|
|
121
|
+
OperationButtonControl.controlEventKeys = [
|
|
122
|
+
"on_click"
|
|
123
|
+
];
|
|
124
|
+
OperationButtonControl.setting = [
|
|
125
|
+
{
|
|
126
|
+
key: "button-content",
|
|
127
|
+
visible: true
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
key: "button-type",
|
|
131
|
+
visible: true
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: "button-show-type",
|
|
135
|
+
visible: true
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
key: "button-color-type",
|
|
139
|
+
visible: true
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
key: "default-state",
|
|
143
|
+
visible: true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
key: "common-setting",
|
|
147
|
+
visible: true,
|
|
148
|
+
showItems: [
|
|
149
|
+
COMMON_SETTING_TYPE.IS_HIDE
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
key: "super-setting",
|
|
154
|
+
visible: true
|
|
155
|
+
}
|
|
156
|
+
];
|
|
157
|
+
export default OperationButtonControl;
|
|
158
|
+
export { OperationButtonControl as DesignerOperationButtonControl };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Designer from "./designer";
|
|
2
|
+
import Runtime from "./runtime";
|
|
3
|
+
import Property from "./property";
|
|
4
|
+
export default {
|
|
5
|
+
Designer: Designer,
|
|
6
|
+
Runtime: Runtime,
|
|
7
|
+
Property: Property
|
|
8
|
+
};
|
|
9
|
+
export * from "./designer";
|
|
10
|
+
export * from "./runtime";
|
|
11
|
+
export * from "./property";
|