@byteluck-fe/model-driven-controls 7.0.0-props.7 → 7.0.0-props.8
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/BatchDeleteButton/property.js +10 -18
- package/dist/esm/baseControls/BatchPrintListButton/property.js +6 -9
- package/dist/esm/baseControls/BatchPrintRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +7 -12
- package/dist/esm/baseControls/Button/property.js +10 -18
- package/dist/esm/baseControls/Comment/property.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/property.js +5 -8
- package/dist/esm/baseControls/Dashboard/property.js +9 -16
- package/dist/esm/baseControls/Divider/designer.js +33 -1
- package/dist/esm/baseControls/Divider/property.js +12 -7
- package/dist/esm/baseControls/ExportListButton/property.js +6 -9
- package/dist/esm/baseControls/ExportRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/FormSelectButton/property.js +4 -6
- package/dist/esm/baseControls/ImportRecordListButton/property.js +6 -9
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +11 -19
- package/dist/esm/baseControls/Link/designer.js +33 -0
- package/dist/esm/baseControls/Link/property.js +9 -7
- package/dist/esm/baseControls/ListSelectButton/property.js +6 -10
- package/dist/esm/baseControls/ListViewSelect/property.js +4 -5
- package/dist/esm/baseControls/OperationButton/property.js +7 -12
- package/dist/esm/baseControls/ReferenceList/property.js +7 -12
- package/dist/esm/baseControls/SubmissionRecordListButton/property.js +3 -4
- package/dist/esm/baseControls/Text/designer.js +8 -0
- package/dist/esm/baseControls/Text/property.js +18 -13
- package/dist/esm/baseControls/TextOcrButton/property.js +11 -19
- package/dist/esm/baseControls/Title/property.js +4 -6
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +4 -6
- package/dist/esm/columnControls/ArrayColumn/property.js +5 -8
- package/dist/esm/columnControls/AutoNumberColumn/property.js +3 -4
- package/dist/esm/columnControls/CustomColumn/property.js +4 -6
- package/dist/esm/columnControls/DecimalColumn/property.js +8 -14
- package/dist/esm/columnControls/DepartmentColumn/property.js +3 -4
- package/dist/esm/columnControls/EmployeeColumn/property.js +3 -4
- package/dist/esm/columnControls/FileColumn/property.js +3 -4
- package/dist/esm/columnControls/GroupColumn/designer.js +2 -1
- package/dist/esm/columnControls/GroupColumn/property.js +2 -2
- package/dist/esm/columnControls/ImageColumn/property.js +2 -2
- package/dist/esm/columnControls/LocationColumn/property.js +3 -4
- package/dist/esm/columnControls/OperationColumn/designer.js +12 -4
- package/dist/esm/columnControls/OperationColumn/property.js +6 -10
- package/dist/esm/columnControls/OrderColumn/property.js +7 -12
- package/dist/esm/columnControls/PeopleColumn/property.js +2 -2
- package/dist/esm/columnControls/TextColumn/property.js +5 -8
- package/dist/esm/columnControls/TimescopeColumn/property.js +5 -8
- package/dist/esm/columnControls/TimestampColumn/property.js +5 -8
- package/dist/esm/columnControls/VarcharColumn/property.js +7 -12
- package/dist/esm/formControls/Address/property.js +6 -10
- package/dist/esm/formControls/Amount/property.js +13 -24
- package/dist/esm/formControls/Attachment/property.js +26 -42
- package/dist/esm/formControls/AutoNumber/property.js +4 -6
- package/dist/esm/formControls/Calc/property.js +10 -18
- package/dist/esm/formControls/Cascader/property.js +17 -31
- package/dist/esm/formControls/Checkbox/property.js +18 -33
- package/dist/esm/formControls/DatePicker/designer.js +4 -0
- package/dist/esm/formControls/DatePicker/property.js +19 -25
- package/dist/esm/formControls/DateRange/property.js +13 -23
- package/dist/esm/formControls/Department/property.js +12 -22
- package/dist/esm/formControls/Department2/designer.js +8 -0
- package/dist/esm/formControls/Department2/property.js +29 -34
- package/dist/esm/formControls/ElectronicSignature/property.js +7 -12
- package/dist/esm/formControls/Employee/property.js +10 -18
- package/dist/esm/formControls/Employee2/designer.js +4 -0
- package/dist/esm/formControls/Employee2/property.js +19 -33
- package/dist/esm/formControls/Image/designer.js +8 -8
- package/dist/esm/formControls/Image/property.js +8 -14
- package/dist/esm/formControls/Input/property.js +11 -20
- package/dist/esm/formControls/Number/property.js +17 -32
- package/dist/esm/formControls/OrganizationSelection/property.js +19 -36
- package/dist/esm/formControls/Radio/property.js +15 -28
- package/dist/esm/formControls/RichText/designer.js +8 -0
- package/dist/esm/formControls/RichText/property.js +51 -21
- package/dist/esm/formControls/Score/property.js +11 -19
- package/dist/esm/formControls/SearchDateRange/property.js +14 -25
- package/dist/esm/formControls/SearchNumberRange/property.js +7 -12
- package/dist/esm/formControls/Select/property.js +14 -26
- package/dist/esm/formControls/SelectMultiple/property.js +13 -24
- package/dist/esm/formControls/SelectRelation/property.js +14 -26
- package/dist/esm/formControls/Textarea/property.js +11 -20
- package/dist/esm/formControls/TimePicker/property.js +8 -13
- package/dist/esm/formControls/TimeRange/property.js +10 -17
- package/dist/esm/formControls/Tree/designer.js +2 -1
- package/dist/esm/formControls/Tree/property.js +44 -38
- package/dist/esm/formControls/VueFormItem/property.js +6 -10
- package/dist/esm/formControls/VuePage/property.js +6 -10
- package/dist/esm/formControls/WPS/designer.js +9 -9
- package/dist/esm/formControls/WPS/property.js +13 -24
- package/dist/esm/framework.js +81 -121
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/ActionBar/property.js +4 -6
- package/dist/esm/layoutControls/ActionBar/runtime.js +2 -2
- package/dist/esm/layoutControls/CardGroup/property.js +11 -20
- package/dist/esm/layoutControls/Col/property.js +4 -6
- package/dist/esm/layoutControls/Collapse/designer.js +2 -2
- package/dist/esm/layoutControls/Collapse/property.js +4 -6
- package/dist/esm/layoutControls/CollapsePane/property.js +2 -2
- package/dist/esm/layoutControls/DataView/property.js +12 -13
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +3 -4
- package/dist/esm/layoutControls/GridTableColumn/property.js +11 -20
- package/dist/esm/layoutControls/ListView/property.js +15 -28
- package/dist/esm/layoutControls/Page/property.js +2 -2
- package/dist/esm/layoutControls/Position/property.js +5 -8
- package/dist/esm/layoutControls/Row/property.js +6 -10
- package/dist/esm/layoutControls/Step/designer.js +2 -2
- package/dist/esm/layoutControls/Step/property.js +12 -22
- package/dist/esm/layoutControls/StepPane/property.js +9 -16
- package/dist/esm/layoutControls/SubTableColumn/property.js +6 -10
- package/dist/esm/layoutControls/Tab/designer.js +2 -2
- package/dist/esm/layoutControls/Tab/property.js +6 -10
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/TableLayout/designer.js +6 -1
- package/dist/esm/layoutControls/TableLayout/property.js +18 -29
- package/dist/esm/layoutControls/TableLayoutCol/property.js +11 -20
- package/dist/esm/layoutControls/TableLayoutRow/property.js +3 -4
- package/dist/esm/layoutControls/TableLayoutWrapper/property.js +4 -6
- package/dist/esm/listControls/GridTable/designer.js +12 -4
- package/dist/esm/listControls/GridTable/property.js +15 -19
- package/dist/esm/listControls/SubTable/property.js +36 -70
- package/dist/esm/searchControls/SimpleSearch/property.js +13 -24
- 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 +2 -2
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +8 -8
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Divider/property.d.ts +28 -1
- package/dist/types/baseControls/Link/property.d.ts +8 -0
- package/dist/types/baseControls/Text/property.d.ts +29 -0
- package/dist/types/columnControls/GroupColumn/designer.d.ts +1 -1
- package/dist/types/formControls/DatePicker/property.d.ts +4 -0
- package/dist/types/formControls/Department2/property.d.ts +14 -1
- package/dist/types/formControls/Employee2/property.d.ts +2 -0
- package/dist/types/formControls/RichText/property.d.ts +4 -0
- package/dist/types/formControls/Tree/property.d.ts +31 -0
- package/dist/types/framework.d.ts +6 -0
- package/dist/types/layoutControls/DataView/property.d.ts +5 -0
- package/dist/types/layoutControls/TableLayout/property.d.ts +2 -0
- package/dist/types/layoutControls/TableLayoutCol/property.d.ts +5 -5
- package/package.json +5 -5
|
@@ -101,29 +101,24 @@ var OperationButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
101
101
|
function OperationButtonProperty(props) {
|
|
102
102
|
_class_call_check(this, OperationButtonProperty);
|
|
103
103
|
var _this;
|
|
104
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
104
105
|
_this = _call_super(this, OperationButtonProperty, [
|
|
105
106
|
props
|
|
106
107
|
]), _define_property(_this, "content", void 0), _define_property(_this, "code", void 0), _define_property(_this, "command", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "formKey", void 0), _define_property(_this, "openType", void 0), _define_property(_this, "needConfirm", void 0), _define_property(_this, "confirmMessage", void 0), _define_property(_this, "options", void 0), _define_property(_this, "defaultState", void 0), _define_property(_this, "priorityProcess", void 0), _define_property(_this, "isLoading", void 0), _define_property(_this, "isSyncDelete", void 0);
|
|
107
|
-
|
|
108
|
-
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.button', null, '按钮');
|
|
108
|
+
_this.content = (_ref = props === null || props === void 0 ? void 0 : props.content) !== null && _ref !== void 0 ? _ref : getLocaleText('CMD.button', null, '按钮');
|
|
109
109
|
_this.code = props === null || props === void 0 ? void 0 : props.code;
|
|
110
|
-
|
|
111
|
-
_this.
|
|
112
|
-
var _props_color;
|
|
113
|
-
_this.color = (_props_color = props === null || props === void 0 ? void 0 : props.color) !== null && _props_color !== void 0 ? _props_color : 'primary';
|
|
110
|
+
_this.command = (_ref1 = props === null || props === void 0 ? void 0 : props.command) !== null && _ref1 !== void 0 ? _ref1 : 'custom';
|
|
111
|
+
_this.color = (_ref2 = props === null || props === void 0 ? void 0 : props.color) !== null && _ref2 !== void 0 ? _ref2 : 'primary';
|
|
114
112
|
_this.icon = props === null || props === void 0 ? void 0 : props.icon;
|
|
115
113
|
_this.formKey = props === null || props === void 0 ? void 0 : props.formKey;
|
|
116
114
|
_this.openType = props === null || props === void 0 ? void 0 : props.openType;
|
|
117
115
|
_this.needConfirm = props === null || props === void 0 ? void 0 : props.needConfirm;
|
|
118
116
|
_this.confirmMessage = props === null || props === void 0 ? void 0 : props.confirmMessage;
|
|
119
117
|
_this.options = props === null || props === void 0 ? void 0 : props.options;
|
|
120
|
-
|
|
121
|
-
_this.defaultState = (_props_defaultState = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _props_defaultState !== void 0 ? _props_defaultState : 'default';
|
|
118
|
+
_this.defaultState = (_ref3 = props === null || props === void 0 ? void 0 : props.defaultState) !== null && _ref3 !== void 0 ? _ref3 : 'default';
|
|
122
119
|
_this.priorityProcess = props === null || props === void 0 ? void 0 : props.priorityProcess;
|
|
123
|
-
|
|
124
|
-
_this.
|
|
125
|
-
var _props_isSyncDelete;
|
|
126
|
-
_this.isSyncDelete = (_props_isSyncDelete = props === null || props === void 0 ? void 0 : props.isSyncDelete) !== null && _props_isSyncDelete !== void 0 ? _props_isSyncDelete : false;
|
|
120
|
+
_this.isLoading = (_ref4 = props === null || props === void 0 ? void 0 : props.isLoading) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
121
|
+
_this.isSyncDelete = (_ref5 = props === null || props === void 0 ? void 0 : props.isSyncDelete) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
127
122
|
return _this;
|
|
128
123
|
}
|
|
129
124
|
return OperationButtonProperty;
|
|
@@ -110,21 +110,16 @@ var ReferenceListPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
110
110
|
function ReferenceListProperty(props) {
|
|
111
111
|
_class_call_check(this, ReferenceListProperty);
|
|
112
112
|
var _this;
|
|
113
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
113
114
|
_this = _call_super(this, ReferenceListProperty, [
|
|
114
115
|
props
|
|
115
116
|
]), _define_property(_this, "isShowSimpleSearch", void 0), _define_property(_this, "isShowToolbar", void 0), _define_property(_this, "actionSetting", void 0), _define_property(_this, "listHeightSetting", void 0), _define_property(_this, "isHideCaption", void 0);
|
|
116
|
-
|
|
117
|
-
_this.
|
|
118
|
-
|
|
119
|
-
_this.
|
|
120
|
-
|
|
121
|
-
_this.
|
|
122
|
-
var _props_isHideCaption;
|
|
123
|
-
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
124
|
-
var _ref;
|
|
125
|
-
_this.actionSetting = (_ref = new ActionSetting(props === null || props === void 0 ? void 0 : props.actionSetting)) !== null && _ref !== void 0 ? _ref : new ActionSetting();
|
|
126
|
-
var _ref1;
|
|
127
|
-
_this.listHeightSetting = (_ref1 = new ListHeightSetting(props === null || props === void 0 ? void 0 : props.listHeightSetting)) !== null && _ref1 !== void 0 ? _ref1 : new ListHeightSetting();
|
|
117
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : ReferenceListControl.controlName;
|
|
118
|
+
_this.isShowSimpleSearch = (_ref1 = props === null || props === void 0 ? void 0 : props.isShowSimpleSearch) !== null && _ref1 !== void 0 ? _ref1 : true;
|
|
119
|
+
_this.isShowToolbar = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowToolbar) !== null && _ref2 !== void 0 ? _ref2 : true;
|
|
120
|
+
_this.isHideCaption = (_ref3 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
121
|
+
_this.actionSetting = (_ref4 = new ActionSetting(props === null || props === void 0 ? void 0 : props.actionSetting)) !== null && _ref4 !== void 0 ? _ref4 : new ActionSetting();
|
|
122
|
+
_this.listHeightSetting = (_ref5 = new ListHeightSetting(props === null || props === void 0 ? void 0 : props.listHeightSetting)) !== null && _ref5 !== void 0 ? _ref5 : new ListHeightSetting();
|
|
128
123
|
return _this;
|
|
129
124
|
}
|
|
130
125
|
return ReferenceListProperty;
|
|
@@ -65,13 +65,12 @@ var SubmissionRecordListButtonProperty = /*#__PURE__*/ function(ButtonProperty)
|
|
|
65
65
|
function SubmissionRecordListButtonProperty(props) {
|
|
66
66
|
_class_call_check(this, SubmissionRecordListButtonProperty);
|
|
67
67
|
var _this;
|
|
68
|
+
var _ref, _ref1;
|
|
68
69
|
_this = _call_super(this, SubmissionRecordListButtonProperty, [
|
|
69
70
|
props
|
|
70
71
|
]);
|
|
71
|
-
|
|
72
|
-
_this.
|
|
73
|
-
var _props_icon;
|
|
74
|
-
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : SubmissionRecordListButtonControl.controlIcon;
|
|
72
|
+
_this.content = (_ref = props === null || props === void 0 ? void 0 : props.content) !== null && _ref !== void 0 ? _ref : SubmissionRecordListButtonControl.controlName;
|
|
73
|
+
_this.icon = (_ref1 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref1 !== void 0 ? _ref1 : SubmissionRecordListButtonControl.controlIcon;
|
|
75
74
|
return _this;
|
|
76
75
|
}
|
|
77
76
|
return SubmissionRecordListButtonProperty;
|
|
@@ -142,6 +142,14 @@ _define_property(TextControl, "setting", [
|
|
|
142
142
|
],
|
|
143
143
|
visible: true
|
|
144
144
|
},
|
|
145
|
+
{
|
|
146
|
+
key: 'close-setting',
|
|
147
|
+
visible: true
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
key: 'dynamic-background',
|
|
151
|
+
visible: true
|
|
152
|
+
},
|
|
145
153
|
{
|
|
146
154
|
key: 'ai-content-search',
|
|
147
155
|
visible: true
|
|
@@ -78,30 +78,35 @@ var TextProperty = /*#__PURE__*/ function(Property) {
|
|
|
78
78
|
function TextProperty(props) {
|
|
79
79
|
_class_call_check(this, TextProperty);
|
|
80
80
|
var _this;
|
|
81
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
81
82
|
_this = _call_super(this, TextProperty, [
|
|
82
83
|
props
|
|
83
84
|
]), // public dataBind: DataBind
|
|
84
85
|
_define_property(_this, "content", void 0), // public fontSize: string
|
|
85
86
|
// public color: string
|
|
86
|
-
_define_property(_this, "icon", void 0), _define_property(_this, "align", void 0), _define_property(_this, "showState", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "isLabel", void 0);
|
|
87
|
+
_define_property(_this, "icon", void 0), _define_property(_this, "align", void 0), _define_property(_this, "showState", void 0), _define_property(_this, "captionSize", void 0), _define_property(_this, "captionColor", void 0), _define_property(_this, "isCaptionItalic", void 0), _define_property(_this, "aiContentSearch", void 0), _define_property(_this, "isLabel", void 0), _define_property(_this, "close", void 0), _define_property(_this, "background", void 0);
|
|
87
88
|
// this.dataBind = new DataBind(props?.dataBind)
|
|
88
89
|
// this.fontSize = props?.fontSize ?? '14px'
|
|
89
90
|
// this.color = props?.color ?? '#646A73'
|
|
90
91
|
_this.captionColor = (props === null || props === void 0 ? void 0 : props.captionColor) || '';
|
|
91
92
|
_this.captionSize = (props === null || props === void 0 ? void 0 : props.captionSize) || '';
|
|
92
93
|
_this.isCaptionItalic = (props === null || props === void 0 ? void 0 : props.isCaptionItalic) || false;
|
|
93
|
-
|
|
94
|
-
_this.
|
|
95
|
-
|
|
96
|
-
_this.
|
|
97
|
-
|
|
98
|
-
_this.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
94
|
+
_this.icon = (_ref = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref !== void 0 ? _ref : 'page-hint';
|
|
95
|
+
_this.showState = (_ref1 = props === null || props === void 0 ? void 0 : props.showState) !== null && _ref1 !== void 0 ? _ref1 : 'text';
|
|
96
|
+
_this.content = (_ref2 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref2 !== void 0 ? _ref2 : getLocaleText('CMD.text', null, '说明文字');
|
|
97
|
+
_this.align = (_ref3 = props === null || props === void 0 ? void 0 : props.align) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
98
|
+
_this.aiContentSearch = (_ref4 = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _ref4 !== void 0 ? _ref4 : false;
|
|
99
|
+
_this.isLabel = (_ref5 = props === null || props === void 0 ? void 0 : props.isLabel) !== null && _ref5 !== void 0 ? _ref5 : false;
|
|
100
|
+
_this.background = (_ref6 = props === null || props === void 0 ? void 0 : props.background) !== null && _ref6 !== void 0 ? _ref6 : {
|
|
101
|
+
type: 'backgroundColor',
|
|
102
|
+
backgroundColor: '',
|
|
103
|
+
backgroundImage: '',
|
|
104
|
+
placementMode: 'contain'
|
|
105
|
+
};
|
|
106
|
+
_this.close = (_ref7 = props === null || props === void 0 ? void 0 : props.close) !== null && _ref7 !== void 0 ? _ref7 : {
|
|
107
|
+
show: false,
|
|
108
|
+
text: getLocaleText('CMD.closeText', null, '关闭')
|
|
109
|
+
};
|
|
105
110
|
return _this;
|
|
106
111
|
}
|
|
107
112
|
return TextProperty;
|
|
@@ -128,30 +128,22 @@ var TextOcrButtonProperty = /*#__PURE__*/ function(ButtonProperty) {
|
|
|
128
128
|
function TextOcrButtonProperty(props) {
|
|
129
129
|
_class_call_check(this, TextOcrButtonProperty);
|
|
130
130
|
var _this;
|
|
131
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8;
|
|
131
132
|
var _props_fillList;
|
|
132
133
|
_this = _call_super(this, TextOcrButtonProperty, [
|
|
133
134
|
props
|
|
134
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, "ocrType", void 0), _define_property(_this, "fillList", void 0);
|
|
135
|
-
|
|
136
|
-
_this.
|
|
137
|
-
|
|
138
|
-
_this.
|
|
139
|
-
|
|
140
|
-
_this.
|
|
141
|
-
|
|
142
|
-
_this.
|
|
143
|
-
|
|
144
|
-
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'top';
|
|
145
|
-
var _props_content;
|
|
146
|
-
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : TextOcrButtonControl.controlName;
|
|
147
|
-
var _props_icon;
|
|
148
|
-
_this.icon = (_props_icon = props === null || props === void 0 ? void 0 : props.icon) !== null && _props_icon !== void 0 ? _props_icon : TextOcrButtonControl.controlIcon;
|
|
149
|
-
var _props_ocrType;
|
|
150
|
-
_this.ocrType = (_props_ocrType = props === null || props === void 0 ? void 0 : props.ocrType) !== null && _props_ocrType !== void 0 ? _props_ocrType : '';
|
|
151
|
-
var _props_fillList_map;
|
|
152
|
-
_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) {
|
|
136
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : TextOcrButtonControl.controlName;
|
|
137
|
+
_this.isHideCaption = (_ref1 = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
138
|
+
_this.isShowCaptionTip = (_ref2 = props === null || props === void 0 ? void 0 : props.isShowCaptionTip) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
139
|
+
_this.captionTip = (_ref3 = props === null || props === void 0 ? void 0 : props.captionTip) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
140
|
+
_this.labelPosition = (_ref4 = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _ref4 !== void 0 ? _ref4 : 'top';
|
|
141
|
+
_this.content = (_ref5 = props === null || props === void 0 ? void 0 : props.content) !== null && _ref5 !== void 0 ? _ref5 : TextOcrButtonControl.controlName;
|
|
142
|
+
_this.icon = (_ref6 = props === null || props === void 0 ? void 0 : props.icon) !== null && _ref6 !== void 0 ? _ref6 : TextOcrButtonControl.controlIcon;
|
|
143
|
+
_this.ocrType = (_ref7 = props === null || props === void 0 ? void 0 : props.ocrType) !== null && _ref7 !== void 0 ? _ref7 : '';
|
|
144
|
+
_this.fillList = (_ref8 = props === null || props === void 0 ? void 0 : (_props_fillList = props.fillList) === null || _props_fillList === void 0 ? void 0 : _props_fillList.map(function(item) {
|
|
153
145
|
return new MultistageFillingItem(item);
|
|
154
|
-
})) !== null &&
|
|
146
|
+
})) !== null && _ref8 !== void 0 ? _ref8 : [];
|
|
155
147
|
return _this;
|
|
156
148
|
}
|
|
157
149
|
return TextOcrButtonProperty;
|
|
@@ -128,12 +128,12 @@ var TitleProperty = /*#__PURE__*/ function(Property) {
|
|
|
128
128
|
function TitleProperty(props) {
|
|
129
129
|
_class_call_check(this, TitleProperty);
|
|
130
130
|
var _this;
|
|
131
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
131
132
|
_this = _call_super(this, TitleProperty, [
|
|
132
133
|
props
|
|
133
134
|
]), _define_property(_this, "dataBind", void 0), _define_property(_this, "caption", void 0), _define_property(_this, "config", void 0), _define_property(_this, "position", void 0);
|
|
134
135
|
_this.dataBind = new DataBind(props === null || props === void 0 ? void 0 : props.dataBind);
|
|
135
|
-
|
|
136
|
-
_this.config = (_props_config = props === null || props === void 0 ? void 0 : props.config) !== null && _props_config !== void 0 ? _props_config : [
|
|
136
|
+
_this.config = (_ref = props === null || props === void 0 ? void 0 : props.config) !== null && _ref !== void 0 ? _ref : [
|
|
137
137
|
// TitleConfigEnum.ShowBizKey,
|
|
138
138
|
TitleConfigEnum.ShowSubmitUser,
|
|
139
139
|
TitleConfigEnum.ShowSubmitDept,
|
|
@@ -141,10 +141,8 @@ var TitleProperty = /*#__PURE__*/ function(Property) {
|
|
|
141
141
|
TitleConfigEnum.ShowCurrentApprovar,
|
|
142
142
|
TitleConfigEnum.ShowTitle
|
|
143
143
|
];
|
|
144
|
-
|
|
145
|
-
_this.
|
|
146
|
-
var _props_position;
|
|
147
|
-
_this.position = (_props_position = props === null || props === void 0 ? void 0 : props.position) !== null && _props_position !== void 0 ? _props_position : 'top';
|
|
144
|
+
_this.caption = (_ref1 = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : DesignerTitleControl === null || DesignerTitleControl === void 0 ? void 0 : DesignerTitleControl.controlName) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
145
|
+
_this.position = (_ref3 = props === null || props === void 0 ? void 0 : props.position) !== null && _ref3 !== void 0 ? _ref3 : 'top';
|
|
148
146
|
return _this;
|
|
149
147
|
}
|
|
150
148
|
return TitleProperty;
|
|
@@ -78,16 +78,14 @@ var ApprovalStatusColumnControlProperty = /*#__PURE__*/ function(ColumnControlPr
|
|
|
78
78
|
function ApprovalStatusColumnControlProperty(props) {
|
|
79
79
|
_class_call_check(this, ApprovalStatusColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
|
+
var _ref, _ref1, _ref2;
|
|
81
82
|
_this = _call_super(this, ApprovalStatusColumnControlProperty, [
|
|
82
83
|
props
|
|
83
84
|
]), _define_property(_this, "lineEllipsis", void 0), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0);
|
|
84
|
-
|
|
85
|
-
_this.
|
|
86
|
-
var _props_showLinkOperation;
|
|
87
|
-
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
85
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerApprovalStatusColumnControl.controlName;
|
|
86
|
+
_this.showLinkOperation = (_ref1 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
88
87
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
89
|
-
|
|
90
|
-
_this.lineEllipsis = (_props_lineEllipsis = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _props_lineEllipsis !== void 0 ? _props_lineEllipsis : 1;
|
|
88
|
+
_this.lineEllipsis = (_ref2 = props === null || props === void 0 ? void 0 : props.lineEllipsis) !== null && _ref2 !== void 0 ? _ref2 : 1;
|
|
91
89
|
return _this;
|
|
92
90
|
}
|
|
93
91
|
return ApprovalStatusColumnControlProperty;
|
|
@@ -95,19 +95,16 @@ var ArrayColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
|
95
95
|
function ArrayColumnControlProperty(props) {
|
|
96
96
|
_class_call_check(this, ArrayColumnControlProperty);
|
|
97
97
|
var _this;
|
|
98
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
98
99
|
_this = _call_super(this, ArrayColumnControlProperty, [
|
|
99
100
|
props
|
|
100
101
|
]), _define_property(_this, "optionConfig", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0), _define_property(_this, "options", void 0);
|
|
101
|
-
|
|
102
|
-
_this.
|
|
103
|
-
var _props_optionConfig;
|
|
104
|
-
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'none';
|
|
102
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerArrayColumnControl.controlName;
|
|
103
|
+
_this.optionConfig = (_ref1 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref1 !== void 0 ? _ref1 : 'none';
|
|
105
104
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
106
|
-
|
|
107
|
-
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
105
|
+
_this.showLinkOperation = (_ref2 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
108
106
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
109
|
-
|
|
110
|
-
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
107
|
+
_this.options = initOptions((_ref3 = props === null || props === void 0 ? void 0 : props.options) !== null && _ref3 !== void 0 ? _ref3 : [
|
|
111
108
|
{}
|
|
112
109
|
]);
|
|
113
110
|
return _this;
|
|
@@ -95,13 +95,12 @@ var AutoNumberColumnControlPropertyRules = /*#__PURE__*/ function(ColumnControlP
|
|
|
95
95
|
function AutoNumberColumnControlProperty(props) {
|
|
96
96
|
_class_call_check(this, AutoNumberColumnControlProperty);
|
|
97
97
|
var _this;
|
|
98
|
+
var _ref, _ref1;
|
|
98
99
|
_this = _call_super(this, AutoNumberColumnControlProperty, [
|
|
99
100
|
props
|
|
100
101
|
]), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0);
|
|
101
|
-
|
|
102
|
-
_this.
|
|
103
|
-
var _props_showLinkOperation;
|
|
104
|
-
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
102
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerAutoNumberColumnControl.controlName;
|
|
103
|
+
_this.showLinkOperation = (_ref1 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
105
104
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
106
105
|
return _this;
|
|
107
106
|
}
|
|
@@ -98,15 +98,13 @@ var CustomColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty)
|
|
|
98
98
|
function CustomColumnControlProperty(props) {
|
|
99
99
|
_class_call_check(this, CustomColumnControlProperty);
|
|
100
100
|
var _this;
|
|
101
|
+
var _ref, _ref1, _ref2;
|
|
101
102
|
_this = _call_super(this, CustomColumnControlProperty, [
|
|
102
103
|
props
|
|
103
104
|
]), _define_property(_this, "fieldCodeList", void 0), _define_property(_this, "sortFieldCode", void 0);
|
|
104
|
-
|
|
105
|
-
_this.
|
|
106
|
-
|
|
107
|
-
_this.fieldCodeList = (_props_fieldCodeList = props === null || props === void 0 ? void 0 : props.fieldCodeList) !== null && _props_fieldCodeList !== void 0 ? _props_fieldCodeList : [];
|
|
108
|
-
var _props_sortFieldCode;
|
|
109
|
-
_this.sortFieldCode = (_props_sortFieldCode = props === null || props === void 0 ? void 0 : props.sortFieldCode) !== null && _props_sortFieldCode !== void 0 ? _props_sortFieldCode : '';
|
|
105
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerCustomColumnControl.controlName;
|
|
106
|
+
_this.fieldCodeList = (_ref1 = props === null || props === void 0 ? void 0 : props.fieldCodeList) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
107
|
+
_this.sortFieldCode = (_ref2 = props === null || props === void 0 ? void 0 : props.sortFieldCode) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
110
108
|
return _this;
|
|
111
109
|
}
|
|
112
110
|
return CustomColumnControlProperty;
|
|
@@ -92,26 +92,20 @@ var DecimalColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty)
|
|
|
92
92
|
function DecimalColumnControlProperty(props) {
|
|
93
93
|
_class_call_check(this, DecimalColumnControlProperty);
|
|
94
94
|
var _this;
|
|
95
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
|
|
95
96
|
_this = _call_super(this, DecimalColumnControlProperty, [
|
|
96
97
|
props
|
|
97
98
|
]), _define_property(_this, "optionConfig", void 0), _define_property(_this, "datasourceBind", void 0), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0), _define_property(_this, "options", void 0), _define_property(_this, "precision", void 0), _define_property(_this, "micrometer", void 0), _define_property(_this, "percentageFormat", void 0);
|
|
98
|
-
|
|
99
|
-
_this.
|
|
100
|
-
|
|
101
|
-
_this.
|
|
102
|
-
|
|
103
|
-
_this.micrometer = (_props_micrometer = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _props_micrometer !== void 0 ? _props_micrometer : false;
|
|
104
|
-
var _props_percentageFormat;
|
|
105
|
-
_this.percentageFormat = (_props_percentageFormat = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _props_percentageFormat !== void 0 ? _props_percentageFormat : false;
|
|
106
|
-
var _props_optionConfig;
|
|
107
|
-
_this.optionConfig = (_props_optionConfig = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _props_optionConfig !== void 0 ? _props_optionConfig : 'none';
|
|
99
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerDecimalColumnControl.controlName;
|
|
100
|
+
_this.precision = (_ref1 = props === null || props === void 0 ? void 0 : props.precision) !== null && _ref1 !== void 0 ? _ref1 : 0;
|
|
101
|
+
_this.micrometer = (_ref2 = props === null || props === void 0 ? void 0 : props.micrometer) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
102
|
+
_this.percentageFormat = (_ref3 = props === null || props === void 0 ? void 0 : props.percentageFormat) !== null && _ref3 !== void 0 ? _ref3 : false;
|
|
103
|
+
_this.optionConfig = (_ref4 = props === null || props === void 0 ? void 0 : props.optionConfig) !== null && _ref4 !== void 0 ? _ref4 : 'none';
|
|
108
104
|
_this.datasourceBind = new DataSourceBind(props === null || props === void 0 ? void 0 : props.datasourceBind);
|
|
109
|
-
|
|
110
|
-
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : [
|
|
105
|
+
_this.options = initOptions((_ref5 = props === null || props === void 0 ? void 0 : props.options) !== null && _ref5 !== void 0 ? _ref5 : [
|
|
111
106
|
{}
|
|
112
107
|
]);
|
|
113
|
-
|
|
114
|
-
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
108
|
+
_this.showLinkOperation = (_ref6 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref6 !== void 0 ? _ref6 : false;
|
|
115
109
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
116
110
|
return _this;
|
|
117
111
|
}
|
|
@@ -78,13 +78,12 @@ var DepartmentColumnControlProperty = /*#__PURE__*/ function(ColumnControlProper
|
|
|
78
78
|
function DepartmentColumnControlProperty(props) {
|
|
79
79
|
_class_call_check(this, DepartmentColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
|
+
var _ref, _ref1;
|
|
81
82
|
_this = _call_super(this, DepartmentColumnControlProperty, [
|
|
82
83
|
props
|
|
83
84
|
]), _define_property(_this, "displayLevel", void 0);
|
|
84
|
-
|
|
85
|
-
_this.
|
|
86
|
-
var _props_displayLevel;
|
|
87
|
-
_this.displayLevel = (_props_displayLevel = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _props_displayLevel !== void 0 ? _props_displayLevel : 1;
|
|
85
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerDepartmentColumnControl.controlName;
|
|
86
|
+
_this.displayLevel = (_ref1 = props === null || props === void 0 ? void 0 : props.displayLevel) !== null && _ref1 !== void 0 ? _ref1 : 1;
|
|
88
87
|
return _this;
|
|
89
88
|
}
|
|
90
89
|
return DepartmentColumnControlProperty;
|
|
@@ -78,13 +78,12 @@ var EmployeeColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty
|
|
|
78
78
|
function EmployeeColumnControlProperty(props) {
|
|
79
79
|
_class_call_check(this, EmployeeColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
|
+
var _ref, _ref1;
|
|
81
82
|
_this = _call_super(this, EmployeeColumnControlProperty, [
|
|
82
83
|
props
|
|
83
84
|
]), _define_property(_this, "datasourceBind", void 0);
|
|
84
|
-
|
|
85
|
-
_this.
|
|
86
|
-
var _props_datasourceBind;
|
|
87
|
-
_this.datasourceBind = new SuperDataSourceBind((_props_datasourceBind = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _props_datasourceBind !== void 0 ? _props_datasourceBind : {
|
|
85
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : EmployeeColumnControl.controlName;
|
|
86
|
+
_this.datasourceBind = new SuperDataSourceBind((_ref1 = props === null || props === void 0 ? void 0 : props.datasourceBind) !== null && _ref1 !== void 0 ? _ref1 : {
|
|
88
87
|
attributes: EmployeeColumnControl.controlCustomAttributes
|
|
89
88
|
});
|
|
90
89
|
return _this;
|
|
@@ -78,13 +78,12 @@ var FileColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
|
78
78
|
function FileColumnControlProperty(props) {
|
|
79
79
|
_class_call_check(this, FileColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
|
+
var _ref, _ref1;
|
|
81
82
|
_this = _call_super(this, FileColumnControlProperty, [
|
|
82
83
|
props
|
|
83
84
|
]), _define_property(_this, "operation", void 0);
|
|
84
|
-
|
|
85
|
-
_this.
|
|
86
|
-
var _props_operation;
|
|
87
|
-
_this.operation = (_props_operation = props === null || props === void 0 ? void 0 : props.operation) !== null && _props_operation !== void 0 ? _props_operation : [
|
|
85
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerFileColumnControl.controlName;
|
|
86
|
+
_this.operation = (_ref1 = props === null || props === void 0 ? void 0 : props.operation) !== null && _ref1 !== void 0 ? _ref1 : [
|
|
88
87
|
'info',
|
|
89
88
|
'preview',
|
|
90
89
|
'download'
|
|
@@ -72,6 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { DesignerColumnControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import GroupColumnControlProperty from './property';
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
75
76
|
var GroupColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
76
77
|
"use strict";
|
|
77
78
|
_inherits(GroupColumnControl, DesignerColumnControl);
|
|
@@ -87,7 +88,7 @@ var GroupColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
|
87
88
|
return GroupColumnControl;
|
|
88
89
|
}(DesignerColumnControl);
|
|
89
90
|
_define_property(GroupColumnControl, "controlType", 'group-column');
|
|
90
|
-
_define_property(GroupColumnControl, "controlName", '
|
|
91
|
+
_define_property(GroupColumnControl, "controlName", getLocaleText('CMD.43541769566517351'));
|
|
91
92
|
_define_property(GroupColumnControl, "controlIcon", 'group-column');
|
|
92
93
|
_define_property(GroupColumnControl, "setting", [
|
|
93
94
|
{
|
|
@@ -64,11 +64,11 @@ var GroupColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
|
64
64
|
function GroupColumnControlProperty(props) {
|
|
65
65
|
_class_call_check(this, GroupColumnControlProperty);
|
|
66
66
|
var _this;
|
|
67
|
+
var _ref;
|
|
67
68
|
_this = _call_super(this, GroupColumnControlProperty, [
|
|
68
69
|
props
|
|
69
70
|
]);
|
|
70
|
-
|
|
71
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : '';
|
|
71
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : '';
|
|
72
72
|
return _this;
|
|
73
73
|
}
|
|
74
74
|
return GroupColumnControlProperty;
|
|
@@ -65,11 +65,11 @@ var ImageColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
|
65
65
|
function ImageColumnControlProperty(props) {
|
|
66
66
|
_class_call_check(this, ImageColumnControlProperty);
|
|
67
67
|
var _this;
|
|
68
|
+
var _ref;
|
|
68
69
|
_this = _call_super(this, ImageColumnControlProperty, [
|
|
69
70
|
props
|
|
70
71
|
]);
|
|
71
|
-
|
|
72
|
-
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerImageColumnControl.controlName;
|
|
72
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerImageColumnControl.controlName;
|
|
73
73
|
return _this;
|
|
74
74
|
}
|
|
75
75
|
return ImageColumnControlProperty;
|
|
@@ -92,13 +92,12 @@ var LocationColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty
|
|
|
92
92
|
function LocationColumnControlProperty(props) {
|
|
93
93
|
_class_call_check(this, LocationColumnControlProperty);
|
|
94
94
|
var _this;
|
|
95
|
+
var _ref, _ref1;
|
|
95
96
|
_this = _call_super(this, LocationColumnControlProperty, [
|
|
96
97
|
props
|
|
97
98
|
]), _define_property(_this, "showLinkOperation", void 0), _define_property(_this, "linkOperationOption", void 0);
|
|
98
|
-
|
|
99
|
-
_this.
|
|
100
|
-
var _props_showLinkOperation;
|
|
101
|
-
_this.showLinkOperation = (_props_showLinkOperation = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _props_showLinkOperation !== void 0 ? _props_showLinkOperation : false;
|
|
99
|
+
_this.caption = (_ref = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref !== void 0 ? _ref : DesignerLocationColumnControl.controlName;
|
|
100
|
+
_this.showLinkOperation = (_ref1 = props === null || props === void 0 ? void 0 : props.showLinkOperation) !== null && _ref1 !== void 0 ? _ref1 : false;
|
|
102
101
|
_this.linkOperationOption = new LinkOperationOption(props === null || props === void 0 ? void 0 : props.linkOperationOption);
|
|
103
102
|
return _this;
|
|
104
103
|
}
|
|
@@ -145,9 +145,17 @@ function _ts_generator(thisArg, body) {
|
|
|
145
145
|
},
|
|
146
146
|
trys: [],
|
|
147
147
|
ops: []
|
|
148
|
-
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
149
|
-
return
|
|
150
|
-
|
|
148
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
149
|
+
return d(g, "next", {
|
|
150
|
+
value: verb(0)
|
|
151
|
+
}), d(g, "throw", {
|
|
152
|
+
value: verb(1)
|
|
153
|
+
}), d(g, "return", {
|
|
154
|
+
value: verb(2)
|
|
155
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
156
|
+
value: function() {
|
|
157
|
+
return this;
|
|
158
|
+
}
|
|
151
159
|
}), g;
|
|
152
160
|
function verb(n) {
|
|
153
161
|
return function(v) {
|
|
@@ -273,7 +281,7 @@ var OperationColumnControl = /*#__PURE__*/ function(DesignerColumnControl) {
|
|
|
273
281
|
// }
|
|
274
282
|
function validate(messages, ignore) {
|
|
275
283
|
var _this = this;
|
|
276
|
-
var _this1 = this, _superprop_get_validate = function() {
|
|
284
|
+
var _this1 = this, _superprop_get_validate = function _superprop_get_validate() {
|
|
277
285
|
return _get(_get_prototype_of(OperationColumnControl.prototype), "validate", _this);
|
|
278
286
|
};
|
|
279
287
|
return _async_to_generator(function() {
|
|
@@ -78,6 +78,7 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
78
78
|
function OperationColumnControlProperty(props) {
|
|
79
79
|
_class_call_check(this, OperationColumnControlProperty);
|
|
80
80
|
var _this;
|
|
81
|
+
var _ref, _ref1, _ref2, _ref3, _ref4;
|
|
81
82
|
var _props_autoWidth;
|
|
82
83
|
_this = _call_super(this, OperationColumnControlProperty, [
|
|
83
84
|
props
|
|
@@ -87,10 +88,8 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
87
88
|
// public delete: OperationItem
|
|
88
89
|
// public custom: OperationItem[]
|
|
89
90
|
_define_property(_this, "showType", void 0), _define_property(_this, "limit", void 0);
|
|
90
|
-
|
|
91
|
-
_this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : 'right';
|
|
91
|
+
_this.fixed = (_ref = props === null || props === void 0 ? void 0 : props.fixed) !== null && _ref !== void 0 ? _ref : 'right';
|
|
92
92
|
_this.widthType = 'auto';
|
|
93
|
-
var _props_autoWidth_minWidth;
|
|
94
93
|
// this.check = new OperationItem(
|
|
95
94
|
// props?.check ?? {
|
|
96
95
|
// content: '查看',
|
|
@@ -106,13 +105,10 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
106
105
|
// props?.delete ?? { content: '删除', type: 'delete', isShow: false }
|
|
107
106
|
// )
|
|
108
107
|
// this.custom = (props?.custom ?? []).map((item) => new OperationItem(item))
|
|
109
|
-
_this.autoWidth.minWidth = (
|
|
110
|
-
|
|
111
|
-
_this.
|
|
112
|
-
|
|
113
|
-
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : 'icon';
|
|
114
|
-
var _props_limit;
|
|
115
|
-
_this.limit = (_props_limit = props === null || props === void 0 ? void 0 : props.limit) !== null && _props_limit !== void 0 ? _props_limit : 3;
|
|
108
|
+
_this.autoWidth.minWidth = (_ref1 = props === null || props === void 0 ? void 0 : (_props_autoWidth = props.autoWidth) === null || _props_autoWidth === void 0 ? void 0 : _props_autoWidth.minWidth) !== null && _ref1 !== void 0 ? _ref1 : 84;
|
|
109
|
+
_this.caption = (_ref2 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref2 !== void 0 ? _ref2 : DesignerOperationColumnControl.controlName;
|
|
110
|
+
_this.showType = (_ref3 = props === null || props === void 0 ? void 0 : props.showType) !== null && _ref3 !== void 0 ? _ref3 : 'icon';
|
|
111
|
+
_this.limit = (_ref4 = props === null || props === void 0 ? void 0 : props.limit) !== null && _ref4 !== void 0 ? _ref4 : 3;
|
|
116
112
|
return _this;
|
|
117
113
|
}
|
|
118
114
|
return OperationColumnControlProperty;
|
|
@@ -92,22 +92,17 @@ var OrderColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
|
92
92
|
function OrderColumnControlProperty(props) {
|
|
93
93
|
_class_call_check(this, OrderColumnControlProperty);
|
|
94
94
|
var _this;
|
|
95
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
|
|
95
96
|
var _props_autoWidth, _props_autoWidth1;
|
|
96
97
|
_this = _call_super(this, OrderColumnControlProperty, [
|
|
97
98
|
props
|
|
98
99
|
]);
|
|
99
|
-
|
|
100
|
-
_this.
|
|
101
|
-
|
|
102
|
-
_this.
|
|
103
|
-
|
|
104
|
-
_this.
|
|
105
|
-
var _props_autoWidth_minWidth;
|
|
106
|
-
_this.autoWidth.minWidth = (_props_autoWidth_minWidth = props === null || props === void 0 ? void 0 : (_props_autoWidth = props.autoWidth) === null || _props_autoWidth === void 0 ? void 0 : _props_autoWidth.minWidth) !== null && _props_autoWidth_minWidth !== void 0 ? _props_autoWidth_minWidth : 60;
|
|
107
|
-
var _props_autoWidth_flex;
|
|
108
|
-
_this.autoWidth.flex = (_props_autoWidth_flex = props === null || props === void 0 ? void 0 : (_props_autoWidth1 = props.autoWidth) === null || _props_autoWidth1 === void 0 ? void 0 : _props_autoWidth1.flex) !== null && _props_autoWidth_flex !== void 0 ? _props_autoWidth_flex : 0.4;
|
|
109
|
-
var _props_widthType;
|
|
110
|
-
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : 'px';
|
|
100
|
+
_this.fixed = (_ref = props === null || props === void 0 ? void 0 : props.fixed) !== null && _ref !== void 0 ? _ref : 'left';
|
|
101
|
+
_this.caption = (_ref1 = props === null || props === void 0 ? void 0 : props.caption) !== null && _ref1 !== void 0 ? _ref1 : DesignerOrderColumnControl.controlName;
|
|
102
|
+
_this.width = (_ref2 = props === null || props === void 0 ? void 0 : props.width) !== null && _ref2 !== void 0 ? _ref2 : 60;
|
|
103
|
+
_this.autoWidth.minWidth = (_ref3 = props === null || props === void 0 ? void 0 : (_props_autoWidth = props.autoWidth) === null || _props_autoWidth === void 0 ? void 0 : _props_autoWidth.minWidth) !== null && _ref3 !== void 0 ? _ref3 : 60;
|
|
104
|
+
_this.autoWidth.flex = (_ref4 = props === null || props === void 0 ? void 0 : (_props_autoWidth1 = props.autoWidth) === null || _props_autoWidth1 === void 0 ? void 0 : _props_autoWidth1.flex) !== null && _ref4 !== void 0 ? _ref4 : 0.4;
|
|
105
|
+
_this.widthType = (_ref5 = props === null || props === void 0 ? void 0 : props.widthType) !== null && _ref5 !== void 0 ? _ref5 : 'px';
|
|
111
106
|
return _this;
|
|
112
107
|
}
|
|
113
108
|
return OrderColumnControlProperty;
|