@byteluck-fe/model-driven-controls 1.8.0-beta.2 → 1.8.0-beta.3
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 +103 -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/designer.js +1 -2
- package/dist/esm/baseControls/Title/property.js +4 -6
- 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 +96 -10
- package/dist/esm/columnControls/OperationColumn/property.js +60 -73
- 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/designer.js +1 -0
- 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 +19 -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/Title/property.d.ts +0 -1
- package/dist/types/baseControls/index.d.ts +1 -0
- package/dist/types/columnControls/OperationColumn/designer.d.ts +11 -1
- package/dist/types/columnControls/OperationColumn/property.d.ts +4 -13
- package/dist/types/columnControls/OperationColumn/runtime.d.ts +2 -1
- package/dist/types/type.d.ts +2 -1
- package/package.json +5 -5
|
@@ -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 ref;
|
|
103
103
|
_this = _super.call(this, props);
|
|
104
|
-
var
|
|
105
|
-
_this.icon = (
|
|
106
|
-
var
|
|
107
|
-
_this.content = (
|
|
108
|
-
var
|
|
109
|
-
_this.printTemplates = (
|
|
104
|
+
var ref1;
|
|
105
|
+
_this.icon = (ref1 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref1 !== void 0 ? ref1 : BatchPrintListButtonControl.controlIcon;
|
|
106
|
+
var ref2;
|
|
107
|
+
_this.content = (ref2 = props === null || props === void 0 ? void 0 : props.content) !== null && ref2 !== void 0 ? ref2 : BatchPrintListButtonControl.controlName;
|
|
108
|
+
var ref3;
|
|
109
|
+
_this.printTemplates = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.printTemplates) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
110
110
|
return new PrintTemplate(item);
|
|
111
|
-
})) !== null &&
|
|
112
|
-
var
|
|
113
|
-
_this.autoSelectTemplate = (
|
|
111
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
112
|
+
var ref4;
|
|
113
|
+
_this.autoSelectTemplate = (ref4 = props === null || props === void 0 ? void 0 : props.autoSelectTemplate) !== null && ref4 !== void 0 ? ref4 : 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 ref;
|
|
83
|
+
_this.content = (ref = props === null || props === void 0 ? void 0 : props.content) !== null && ref !== void 0 ? ref : BatchPrintRecordListButton.controlName;
|
|
84
|
+
var ref1;
|
|
85
|
+
_this.icon = (ref1 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref1 !== void 0 ? ref1 : 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 ref;
|
|
108
|
+
_this.icon = (ref = props === null || props === void 0 ? void 0 : props.icon) !== null && ref !== void 0 ? ref : BatchSubmissionListButtonControl.controlIcon;
|
|
109
|
+
var ref1;
|
|
110
|
+
_this.content = (ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && ref1 !== void 0 ? ref1 : BatchSubmissionListButtonControl.controlName;
|
|
111
|
+
var ref2;
|
|
112
|
+
_this.initiatorMode = (ref2 = props === null || props === void 0 ? void 0 : props.initiatorMode) !== null && ref2 !== void 0 ? ref2 : "currentInitiator";
|
|
113
|
+
var ref3;
|
|
114
|
+
_this.processKey = (ref3 = props === null || props === void 0 ? void 0 : props.processKey) !== null && ref3 !== void 0 ? ref3 : "";
|
|
115
|
+
var ref4;
|
|
116
|
+
_this.fieldCode = (ref4 = props === null || props === void 0 ? void 0 : props.fieldCode) !== null && ref4 !== void 0 ? ref4 : "";
|
|
117
|
+
var ref5;
|
|
118
|
+
_this.employeeId = (ref5 = props === null || props === void 0 ? void 0 : props.employeeId) !== null && ref5 !== void 0 ? ref5 : "";
|
|
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 ref;
|
|
82
|
+
_this.content = (ref = props === null || props === void 0 ? void 0 : props.content) !== null && ref !== void 0 ? ref : "按钮";
|
|
83
|
+
var ref1;
|
|
84
|
+
_this.buttonType = (ref1 = props === null || props === void 0 ? void 0 : props.buttonType) !== null && ref1 !== void 0 ? ref1 : "primary";
|
|
85
|
+
var ref2;
|
|
86
|
+
_this.showType = (ref2 = props === null || props === void 0 ? void 0 : props.showType) !== null && ref2 !== void 0 ? ref2 : "text";
|
|
87
|
+
var ref3;
|
|
88
|
+
_this.color = (ref3 = props === null || props === void 0 ? void 0 : props.color) !== null && ref3 !== void 0 ? ref3 : "primary";
|
|
89
|
+
var ref4;
|
|
90
90
|
// @余石伟 按钮需要有默认icon
|
|
91
|
-
_this.icon = (
|
|
92
|
-
var
|
|
93
|
-
_this.defaultState = (
|
|
94
|
-
var
|
|
95
|
-
_this.command = (
|
|
96
|
-
var
|
|
97
|
-
_this.isLoading = (
|
|
91
|
+
_this.icon = (ref4 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref4 !== void 0 ? ref4 : "iconfenlei2";
|
|
92
|
+
var ref5;
|
|
93
|
+
_this.defaultState = (ref5 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && ref5 !== void 0 ? ref5 : "default";
|
|
94
|
+
var ref6;
|
|
95
|
+
_this.command = (ref6 = props === null || props === void 0 ? void 0 : props.command) !== null && ref6 !== void 0 ? ref6 : "custom";
|
|
96
|
+
var ref7;
|
|
97
|
+
_this.isLoading = (ref7 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && ref7 !== void 0 ? ref7 : 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 ref;
|
|
102
|
+
_this.icon = (ref = props === null || props === void 0 ? void 0 : props.icon) !== null && ref !== void 0 ? ref : CreateFormListButtonControl.controlIcon;
|
|
103
|
+
var ref1;
|
|
104
|
+
_this.content = (ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && ref1 !== void 0 ? ref1 : CreateFormListButtonControl.controlName;
|
|
105
|
+
var ref2;
|
|
106
|
+
_this.formKey = (ref2 = props === null || props === void 0 ? void 0 : props.formKey) !== null && ref2 !== void 0 ? ref2 : "";
|
|
107
|
+
var ref3;
|
|
108
|
+
_this.openType = (ref3 = props === null || props === void 0 ? void 0 : props.openType) !== null && ref3 !== void 0 ? ref3 : "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 ref;
|
|
123
|
+
_this.dashboardKey = (ref = props === null || props === void 0 ? void 0 : props.dashboardKey) !== null && ref !== void 0 ? ref : "";
|
|
124
|
+
var ref1;
|
|
125
|
+
_this.caption = (ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref1 !== void 0 ? ref1 : "";
|
|
126
|
+
var ref2;
|
|
127
|
+
_this.isHideCaption = (ref2 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && ref2 !== void 0 ? ref2 : false;
|
|
128
|
+
var ref3;
|
|
129
|
+
_this.isShowCaptionTip = (ref3 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && ref3 !== void 0 ? ref3 : false;
|
|
130
|
+
var ref4;
|
|
131
|
+
_this.captionTip = (ref4 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && ref4 !== void 0 ? ref4 : "";
|
|
132
|
+
var ref5;
|
|
133
|
+
_this.labelPosition = (ref5 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && ref5 !== void 0 ? ref5 : "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 ref;
|
|
84
|
+
_this.color = (ref = props === null || props === void 0 ? void 0 : props.color) !== null && ref !== void 0 ? ref : "#000";
|
|
85
|
+
var ref1;
|
|
86
|
+
_this.lineStyle = (ref1 = props === null || props === void 0 ? void 0 : props.lineStyle) !== null && ref1 !== void 0 ? ref1 : 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 ref;
|
|
83
83
|
_this = _super.call(this, props);
|
|
84
|
-
var
|
|
85
|
-
_this.icon = (
|
|
86
|
-
var
|
|
87
|
-
_this.content = (
|
|
88
|
-
var
|
|
89
|
-
_this.templateList = (
|
|
84
|
+
var ref1;
|
|
85
|
+
_this.icon = (ref1 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref1 !== void 0 ? ref1 : ExportListButtonControl.controlIcon;
|
|
86
|
+
var ref2;
|
|
87
|
+
_this.content = (ref2 = props === null || props === void 0 ? void 0 : props.content) !== null && ref2 !== void 0 ? ref2 : ExportListButtonControl.controlName;
|
|
88
|
+
var ref3;
|
|
89
|
+
_this.templateList = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.templateList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
90
90
|
return new ExportTemplate(item);
|
|
91
|
-
})) !== null &&
|
|
91
|
+
})) !== null && ref3 !== void 0 ? ref3 : [
|
|
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 ref;
|
|
83
|
+
_this.content = (ref = props === null || props === void 0 ? void 0 : props.content) !== null && ref !== void 0 ? ref : ExportRecordListButtonControl.controlName;
|
|
84
|
+
var ref1;
|
|
85
|
+
_this.icon = (ref1 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref1 !== void 0 ? ref1 : 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 ref;
|
|
158
|
+
_this.content = (ref = props === null || props === void 0 ? void 0 : props.content) !== null && ref !== void 0 ? ref : FormSelectButtonControl.controlName;
|
|
159
|
+
var ref1;
|
|
160
|
+
_this.icon = (ref1 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref1 !== void 0 ? ref1 : FormSelectButtonControl.controlIcon;
|
|
161
|
+
var ref2;
|
|
162
|
+
_this.command = (ref2 = props === null || props === void 0 ? void 0 : props.command) !== null && ref2 !== void 0 ? ref2 : "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 ref;
|
|
87
87
|
_this = _super.call(this, props);
|
|
88
|
-
var
|
|
89
|
-
_this.content = (
|
|
90
|
-
var
|
|
91
|
-
_this.icon = (
|
|
92
|
-
var
|
|
93
|
-
_this.canImportList = (
|
|
88
|
+
var ref1;
|
|
89
|
+
_this.content = (ref1 = props === null || props === void 0 ? void 0 : props.content) !== null && ref1 !== void 0 ? ref1 : ImportRecordListButtonControl.controlName;
|
|
90
|
+
var ref2;
|
|
91
|
+
_this.icon = (ref2 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref2 !== void 0 ? ref2 : ImportRecordListButtonControl.controlIcon;
|
|
92
|
+
var ref3;
|
|
93
|
+
_this.canImportList = (ref3 = props === null || props === void 0 ? void 0 : (ref = props.canImportList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
94
94
|
return new ImportListBind(item);
|
|
95
|
-
})) !== null &&
|
|
95
|
+
})) !== null && ref3 !== void 0 ? ref3 : [];
|
|
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 ref;
|
|
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 ref1;
|
|
137
|
+
_this.caption = (ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && ref1 !== void 0 ? ref1 : InvoiceCheckButtonControl.controlName;
|
|
138
|
+
var ref2;
|
|
139
|
+
_this.isHideCaption = (ref2 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && ref2 !== void 0 ? ref2 : false;
|
|
140
|
+
var ref3;
|
|
141
|
+
_this.isShowCaptionTip = (ref3 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && ref3 !== void 0 ? ref3 : false;
|
|
142
|
+
var ref4;
|
|
143
|
+
_this.captionTip = (ref4 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && ref4 !== void 0 ? ref4 : "";
|
|
144
|
+
var ref5;
|
|
145
|
+
_this.labelPosition = (ref5 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && ref5 !== void 0 ? ref5 : "top";
|
|
146
|
+
var ref6;
|
|
147
|
+
_this.content = (ref6 = props === null || props === void 0 ? void 0 : props.content) !== null && ref6 !== void 0 ? ref6 : InvoiceCheckButtonControl.controlName;
|
|
148
|
+
var ref7;
|
|
149
|
+
_this.icon = (ref7 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref7 !== void 0 ? ref7 : InvoiceCheckButtonControl.controlIcon;
|
|
150
|
+
var ref8;
|
|
151
|
+
_this.invoiceCheck = (ref8 = props === null || props === void 0 ? void 0 : props.invoiceCheck) !== null && ref8 !== void 0 ? ref8 : true;
|
|
152
|
+
var ref9;
|
|
153
|
+
_this.fillList = (ref9 = props === null || props === void 0 ? void 0 : (ref = props.fillList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
154
154
|
return new MultistageFillingItem(item);
|
|
155
|
-
})) !== null &&
|
|
155
|
+
})) !== null && ref9 !== void 0 ? ref9 : [];
|
|
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 ref;
|
|
82
|
+
_this.content = (ref = props === null || props === void 0 ? void 0 : props.content) !== null && ref !== void 0 ? ref : "我是一个链接";
|
|
83
|
+
var ref1;
|
|
84
|
+
_this.url = (ref1 = props === null || props === void 0 ? void 0 : props.url) !== null && ref1 !== void 0 ? ref1 : "";
|
|
85
|
+
var ref2;
|
|
86
|
+
_this.openMode = (ref2 = props === null || props === void 0 ? void 0 : props.openMode) !== null && ref2 !== void 0 ? ref2 : "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 ref;
|
|
155
|
+
_this.content = (ref = props === null || props === void 0 ? void 0 : props.content) !== null && ref !== void 0 ? ref : ListSelectButtonControl.controlName;
|
|
156
|
+
var ref1;
|
|
157
|
+
_this.icon = (ref1 = props === null || props === void 0 ? void 0 : props.icon) !== null && ref1 !== void 0 ? ref1 : 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 ref;
|
|
120
120
|
_this = _super.call(this, props);
|
|
121
|
-
var
|
|
122
|
-
_this.showType = (
|
|
123
|
-
var
|
|
124
|
-
_this.viewList = (
|
|
121
|
+
var ref1;
|
|
122
|
+
_this.showType = (ref1 = props === null || props === void 0 ? void 0 : props.showType) !== null && ref1 !== void 0 ? ref1 : "select";
|
|
123
|
+
var ref2;
|
|
124
|
+
_this.viewList = (ref2 = props === null || props === void 0 ? void 0 : (ref = props.viewList) === null || ref === void 0 ? void 0 : ref.map(function(item) {
|
|
125
125
|
return new ViewOperationItem(item);
|
|
126
|
-
})) !== null &&
|
|
126
|
+
})) !== null && ref2 !== void 0 ? ref2 : [];
|
|
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";
|