@byteluck-fe/model-driven-controls 4.36.0-lx2 → 5.5.0-1
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/api-doc-index.js +2 -1
- package/dist/esm/baseControls/BatchDeleteButton/designer.js +5 -1
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +5 -1
- package/dist/esm/baseControls/BatchPrintListButton/property.js +2 -2
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +5 -1
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +5 -1
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +3 -3
- package/dist/esm/baseControls/Button/designer.js +12 -1
- package/dist/esm/baseControls/Button/property.js +2 -1
- package/dist/esm/baseControls/CreateFormListButton/designer.js +5 -1
- package/dist/esm/baseControls/CreateFormListButton/property.js +2 -2
- package/dist/esm/baseControls/Dashboard/designer.js +2 -1
- package/dist/esm/baseControls/Dashboard/property.js +4 -4
- package/dist/esm/baseControls/Divider/designer.js +2 -1
- package/dist/esm/baseControls/ExportListButton/designer.js +5 -1
- package/dist/esm/baseControls/ExportListButton/property.js +2 -1
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +5 -1
- package/dist/esm/baseControls/FormSelectButton/designer.js +2 -1
- package/dist/esm/baseControls/FormSelectButton/property.js +4 -4
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +5 -1
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +2 -1
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +4 -4
- package/dist/esm/{formControls → baseControls}/Link/designer.js +6 -30
- package/dist/esm/{formControls → baseControls}/Link/property.js +6 -5
- package/dist/esm/baseControls/ListSelectButton/designer.js +2 -1
- package/dist/esm/baseControls/ListSelectButton/property.js +8 -5
- package/dist/esm/baseControls/ListViewSelect/designer.js +2 -1
- package/dist/esm/baseControls/ListViewSelect/property.js +3 -3
- package/dist/esm/baseControls/OperationButton/designer.js +2 -1
- package/dist/esm/baseControls/OperationButton/property.js +3 -3
- package/dist/esm/baseControls/Pagination/designer.js +2 -1
- package/dist/esm/{formControls/SensitivenInformation → baseControls/ReferenceList}/designer.js +25 -66
- package/dist/esm/baseControls/ReferenceList/property.js +139 -0
- package/dist/esm/baseControls/ReferenceList/runtime.js +112 -0
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +5 -1
- package/dist/esm/baseControls/Text/designer.js +2 -1
- package/dist/esm/baseControls/Text/property.js +2 -1
- package/dist/esm/baseControls/TextOcrButton/designer.js +2 -1
- package/dist/esm/baseControls/TextOcrButton/property.js +5 -5
- package/dist/esm/baseControls/Title/designer.js +2 -1
- package/dist/esm/baseControls/Title/property.js +6 -6
- package/dist/esm/baseControls/index.js +2 -0
- package/dist/esm/baseControls/utils.js +4 -4
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +6 -1
- package/dist/esm/columnControls/ArrayColumn/designer.js +6 -1
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +6 -1
- package/dist/esm/columnControls/CustomColumn/designer.js +9 -1
- package/dist/esm/columnControls/CustomColumn/property.js +2 -2
- package/dist/esm/columnControls/DecimalColumn/designer.js +6 -1
- package/dist/esm/columnControls/DecimalColumn/property.js +4 -4
- package/dist/esm/columnControls/DepartmentColumn/designer.js +6 -1
- package/dist/esm/columnControls/EmployeeColumn/designer.js +7 -2
- package/dist/esm/columnControls/FileColumn/designer.js +11 -8
- package/dist/esm/columnControls/FileColumn/property.js +21 -1
- package/dist/esm/columnControls/ImageColumn/designer.js +6 -1
- package/dist/esm/columnControls/LocationColumn/designer.js +6 -1
- package/dist/esm/columnControls/OperationColumn/designer.js +6 -1
- package/dist/esm/columnControls/OperationColumn/property.js +3 -3
- package/dist/esm/columnControls/OrderColumn/designer.js +6 -1
- package/dist/esm/columnControls/PeopleColumn/designer.js +6 -1
- package/dist/esm/columnControls/TextColumn/designer.js +6 -1
- package/dist/esm/columnControls/TimescopeColumn/designer.js +6 -1
- package/dist/esm/columnControls/TimestampColumn/designer.js +6 -1
- package/dist/esm/columnControls/VarcharColumn/designer.js +4 -2
- package/dist/esm/columnControls/VarcharColumn/property.js +7 -4
- package/dist/esm/formControls/Address/designer.js +2 -10
- package/dist/esm/formControls/Address/property.js +5 -5
- package/dist/esm/formControls/Address/runtime.js +2 -1
- package/dist/esm/formControls/Amount/designer.js +6 -10
- package/dist/esm/formControls/Amount/property.js +14 -8
- package/dist/esm/formControls/Attachment/designer.js +8 -50
- package/dist/esm/formControls/Attachment/property.js +13 -16
- package/dist/esm/formControls/AutoNumber/designer.js +2 -10
- package/dist/esm/formControls/AutoNumber/property.js +2 -1
- package/dist/esm/formControls/Calc/designer.js +6 -10
- package/dist/esm/formControls/Calc/property.js +11 -5
- package/dist/esm/formControls/Checkbox/designer.js +6 -10
- package/dist/esm/formControls/Checkbox/property.js +8 -8
- package/dist/esm/formControls/DatePicker/designer.js +2 -10
- package/dist/esm/formControls/DatePicker/property.js +2 -1
- package/dist/esm/formControls/DateRange/designer.js +2 -10
- package/dist/esm/formControls/DateRange/property.js +3 -2
- package/dist/esm/formControls/Department/designer.js +2 -10
- package/dist/esm/formControls/Department/property.js +2 -1
- package/dist/esm/formControls/Department2/designer.js +3 -11
- package/dist/esm/formControls/Department2/property.js +4 -4
- package/dist/esm/formControls/ElectronicSignature/designer.js +2 -10
- package/dist/esm/formControls/ElectronicSignature/property.js +21 -7
- package/dist/esm/formControls/Employee/designer.js +2 -10
- package/dist/esm/formControls/Employee/property.js +2 -1
- package/dist/esm/formControls/Employee2/designer.js +11 -12
- package/dist/esm/formControls/Employee2/property.js +7 -4
- package/dist/esm/formControls/Image/designer.js +4 -17
- package/dist/esm/formControls/Image/property.js +2 -22
- package/dist/esm/formControls/Image/runtime.js +3 -2
- package/dist/esm/formControls/Input/designer.js +2 -10
- package/dist/esm/formControls/Input/property.js +11 -11
- package/dist/esm/formControls/Number/designer.js +2 -10
- package/dist/esm/formControls/Number/property.js +9 -9
- package/dist/esm/formControls/OrganizationSelection/designer.js +8 -11
- package/dist/esm/formControls/OrganizationSelection/property.js +4 -4
- package/dist/esm/formControls/Radio/designer.js +6 -10
- package/dist/esm/formControls/Radio/property.js +7 -6
- package/dist/esm/formControls/RichText/designer.js +2 -10
- package/dist/esm/formControls/RichText/property.js +9 -9
- package/dist/esm/formControls/Score/designer.js +2 -10
- package/dist/esm/formControls/Score/property.js +8 -8
- package/dist/esm/formControls/SearchDateRange/designer.js +2 -10
- package/dist/esm/formControls/SearchDateRange/property.js +3 -2
- package/dist/esm/formControls/SearchInput/designer.js +2 -10
- package/dist/esm/formControls/SearchNumberRange/designer.js +2 -10
- package/dist/esm/formControls/SearchNumberRange/property.js +5 -5
- package/dist/esm/formControls/Select/designer.js +6 -10
- package/dist/esm/formControls/Select/property.js +9 -9
- package/dist/esm/formControls/SelectMultiple/designer.js +6 -10
- package/dist/esm/formControls/SelectMultiple/property.js +9 -9
- package/dist/esm/formControls/SelectRelation/designer.js +48 -12
- package/dist/esm/formControls/SelectRelation/property.js +12 -7
- package/dist/esm/formControls/Textarea/designer.js +4 -11
- package/dist/esm/formControls/Textarea/property.js +24 -27
- package/dist/esm/formControls/Tree/designer.js +8 -12
- package/dist/esm/formControls/Tree/property.js +5 -5
- package/dist/esm/formControls/VueFormItem/designer.js +7 -11
- package/dist/esm/formControls/VuePage/designer.js +129 -0
- package/dist/esm/formControls/VuePage/index.js +11 -0
- package/dist/esm/formControls/VuePage/property.js +133 -0
- package/dist/esm/formControls/{SensitivenInformation → VuePage}/runtime.js +14 -14
- package/dist/esm/formControls/WPS/designer.js +2 -10
- package/dist/esm/formControls/WPS/property.js +6 -6
- package/dist/esm/formControls/index.js +1 -2
- package/dist/esm/framework.js +138 -0
- package/dist/esm/layoutControls/ActionBar/designer.js +21 -6
- package/dist/esm/layoutControls/AdvancedContainer/Setting.js +4 -3
- package/dist/esm/layoutControls/AdvancedContainer/designer.js +2 -1
- package/dist/esm/layoutControls/CardGroup/designer.js +4 -2
- package/dist/esm/layoutControls/CardGroup/property.js +6 -4
- package/dist/esm/layoutControls/Col/designer.js +3 -2
- package/dist/esm/layoutControls/DataView/designer.js +2 -1
- package/dist/esm/layoutControls/DataView/property.js +5 -4
- package/dist/esm/layoutControls/Grid/designer.js +2 -1
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +2 -1
- package/dist/esm/layoutControls/GridRow/designer.js +2 -1
- package/dist/esm/layoutControls/GridTableColumn/designer.js +2 -1
- package/dist/esm/layoutControls/ListView/designer.js +5 -1
- package/dist/esm/layoutControls/ListView/property.js +13 -28
- package/dist/esm/layoutControls/Page/Setting.js +6 -5
- package/dist/esm/layoutControls/Page/designer.js +2 -1
- package/dist/esm/layoutControls/Position/designer.js +2 -1
- package/dist/esm/layoutControls/PositioningContainer/Setting.js +4 -3
- package/dist/esm/layoutControls/PositioningContainer/designer.js +2 -1
- package/dist/esm/layoutControls/Row/designer.js +2 -1
- package/dist/esm/layoutControls/SubTableColumn/designer.js +4 -2
- package/dist/esm/layoutControls/SubTableColumn/property.js +4 -4
- package/dist/esm/layoutControls/SubTableRow/designer.js +2 -1
- package/dist/esm/layoutControls/Tab/designer.js +2 -1
- package/dist/esm/layoutControls/TabPane/designer.js +3 -3
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/Toolbox/designer.js +2 -1
- package/dist/esm/listControls/GridTable/designer.js +34 -7
- package/dist/esm/listControls/SubTable/designer.js +8 -6
- package/dist/esm/listControls/SubTable/property.js +33 -17
- package/dist/esm/searchControls/SimpleSearch/designer.js +3 -0
- package/dist/esm/searchControls/SimpleSearch/property.js +16 -3
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +3 -2
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +2 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +2 -1
- package/dist/types/baseControls/BatchDeleteButton/designer.d.ts +1 -0
- package/dist/types/baseControls/BatchPrintListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/BatchPrintRecordListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/BatchSubmissionListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/Button/designer.d.ts +1 -0
- package/dist/types/baseControls/CreateFormListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/ExportListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/ExportRecordListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/ImportRecordListButton/designer.d.ts +1 -0
- package/dist/types/{formControls → baseControls}/Link/designer.d.ts +2 -2
- package/dist/types/{formControls → baseControls}/Link/property.d.ts +2 -2
- package/dist/types/baseControls/ListSelectButton/property.d.ts +1 -0
- package/dist/types/baseControls/ReferenceList/designer.d.ts +14 -0
- package/dist/types/baseControls/ReferenceList/property.d.ts +22 -0
- package/dist/types/baseControls/ReferenceList/runtime.d.ts +9 -0
- package/dist/types/baseControls/ReferenceList/types.d.ts +0 -0
- package/dist/types/baseControls/SubmissionRecordListButton/designer.d.ts +1 -0
- package/dist/types/baseControls/index.d.ts +2 -0
- package/dist/types/columnControls/ApprovalStatusColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/ArrayColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/AutoNumberColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/CustomColumn/designer.d.ts +2 -1
- package/dist/types/columnControls/DecimalColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/DecimalColumn/property.d.ts +2 -2
- package/dist/types/columnControls/DepartmentColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/EmployeeColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/FileColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/FileColumn/property.d.ts +1 -0
- package/dist/types/columnControls/ImageColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/LocationColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/OperationColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/OrderColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/PeopleColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/TextColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/TimescopeColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/TimestampColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/VarcharColumn/designer.d.ts +1 -1
- package/dist/types/columnControls/VarcharColumn/property.d.ts +7 -1
- package/dist/types/formControls/Amount/property.d.ts +6 -0
- package/dist/types/formControls/Attachment/designer.d.ts +0 -1
- package/dist/types/formControls/Attachment/property.d.ts +1 -10
- package/dist/types/formControls/Calc/property.d.ts +6 -0
- package/dist/types/formControls/Employee2/designer.d.ts +1 -0
- package/dist/types/formControls/Employee2/property.d.ts +1 -0
- package/dist/types/formControls/Image/designer.d.ts +0 -2
- package/dist/types/formControls/Image/property.d.ts +0 -5
- package/dist/types/formControls/Number/property.d.ts +2 -2
- package/dist/types/formControls/OrganizationSelection/designer.d.ts +1 -1
- package/dist/types/formControls/SelectRelation/designer.d.ts +1 -0
- package/dist/types/formControls/SelectRelation/property.d.ts +3 -1
- package/dist/types/formControls/Textarea/property.d.ts +4 -16
- package/dist/types/formControls/VueFormItem/designer.d.ts +1 -0
- package/dist/types/formControls/VuePage/designer.d.ts +15 -0
- package/dist/types/formControls/VuePage/index.d.ts +12 -0
- package/dist/types/formControls/VuePage/property.d.ts +18 -0
- package/dist/types/formControls/VuePage/runtime.d.ts +12 -0
- package/dist/types/formControls/VuePage/types.d.ts +0 -0
- package/dist/types/formControls/index.d.ts +1 -2
- package/dist/types/framework.d.ts +75 -1
- package/dist/types/layoutControls/ActionBar/designer.d.ts +3 -0
- package/dist/types/layoutControls/CardGroup/property.d.ts +1 -0
- package/dist/types/layoutControls/GridTableColumn/designer.d.ts +1 -1
- package/dist/types/layoutControls/ListView/designer.d.ts +3 -0
- package/dist/types/layoutControls/ListView/property.d.ts +2 -9
- package/dist/types/layoutControls/SubTableColumn/designer.d.ts +1 -1
- package/dist/types/layoutControls/SubTableRow/designer.d.ts +1 -1
- package/dist/types/listControls/GridTable/designer.d.ts +8 -0
- package/dist/types/listControls/GridTable/property.d.ts +1 -1
- package/dist/types/listControls/SubTable/designer.d.ts +3 -0
- package/dist/types/listControls/SubTable/property.d.ts +19 -0
- package/dist/types/searchControls/SimpleSearch/designer.d.ts +3 -0
- package/dist/types/searchControls/SimpleSearch/property.d.ts +13 -1
- package/dist/types/type.d.ts +5 -4
- package/package.json +5 -5
- package/dist/esm/formControls/SensitivenInformation/property.js +0 -206
- package/dist/types/formControls/SensitivenInformation/designer.d.ts +0 -15
- package/dist/types/formControls/SensitivenInformation/property.d.ts +0 -57
- package/dist/types/formControls/SensitivenInformation/runtime.d.ts +0 -12
- /package/dist/esm/{formControls → baseControls}/Link/index.js +0 -0
- /package/dist/esm/{formControls → baseControls}/Link/runtime.js +0 -0
- /package/dist/esm/{formControls → baseControls}/Link/types.js +0 -0
- /package/dist/esm/{formControls/SensitivenInformation → baseControls/ReferenceList}/index.js +0 -0
- /package/dist/esm/{formControls/SensitivenInformation → baseControls/ReferenceList}/types.js +0 -0
- /package/dist/{types/formControls/Link/types.d.ts → esm/formControls/VuePage/types.js} +0 -0
- /package/dist/types/{formControls → baseControls}/Link/index.d.ts +0 -0
- /package/dist/types/{formControls → baseControls}/Link/runtime.d.ts +0 -0
- /package/dist/types/{formControls/SensitivenInformation → baseControls/Link}/types.d.ts +0 -0
- /package/dist/types/{formControls/SensitivenInformation → baseControls/ReferenceList}/index.d.ts +0 -0
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { BaseControlProperty, OptionAndDataSourcePropertyRules, DataSourceBind, MultistageFillingItem, SelectedContentConfig, initOptions, ListBind, FormBind } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import SelectRelationControl from './designer';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSourcePropertyRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(SelectRelationControlPropertyRules, OptionAndDataSourcePropertyRules);
|
|
@@ -84,7 +84,7 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
84
84
|
]), _define_property(_this, "listPageBind", [
|
|
85
85
|
{
|
|
86
86
|
type: 'object',
|
|
87
|
-
message:
|
|
87
|
+
message: getLocaleText('CMD.isNotObject', null, '请输入一个对象')
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
type: 'object',
|
|
@@ -93,12 +93,12 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
93
93
|
formKey: [
|
|
94
94
|
{
|
|
95
95
|
type: 'string',
|
|
96
|
-
message:
|
|
96
|
+
message: getLocaleText('CMD.isNotString', null, '请输入一个字符串')
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
type: 'string',
|
|
100
100
|
required: true,
|
|
101
|
-
message:
|
|
101
|
+
message: getLocaleText('CMD.pleaseEnterList', null, '请绑定列表')
|
|
102
102
|
}
|
|
103
103
|
]
|
|
104
104
|
}
|
|
@@ -108,11 +108,12 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
108
108
|
fields: {
|
|
109
109
|
formKey: {
|
|
110
110
|
type: 'string',
|
|
111
|
-
message:
|
|
111
|
+
message: getLocaleText('CMD.pleaseEnterForm', null, '请绑定表单')
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
if (props.canViewForm === true) {
|
|
116
|
+
;
|
|
116
117
|
_this.formBind.fields.formKey.required = true;
|
|
117
118
|
}
|
|
118
119
|
return _this;
|
|
@@ -173,7 +174,7 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
173
174
|
*/ _define_property(_this, "openMultistageFilling", void 0 //是否开启填充
|
|
174
175
|
), // 展示已选明细
|
|
175
176
|
_define_property(_this, "showSelectedDetail", void 0), // 展示已选内容配置字段
|
|
176
|
-
_define_property(_this, "selectedContentConfig", void 0);
|
|
177
|
+
_define_property(_this, "selectedContentConfig", void 0), _define_property(_this, "optionDisplayConfig", void 0), _define_property(_this, "canSearch", void 0);
|
|
177
178
|
var _props_options;
|
|
178
179
|
_this.options = initOptions((_props_options = props === null || props === void 0 ? void 0 : props.options) !== null && _props_options !== void 0 ? _props_options : []);
|
|
179
180
|
var _props_optionConfig;
|
|
@@ -183,7 +184,7 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
183
184
|
var _props_caption;
|
|
184
185
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SelectRelationControl.controlName;
|
|
185
186
|
var _props_placeholder;
|
|
186
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请选择';
|
|
187
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
187
188
|
var _props_defaultValue;
|
|
188
189
|
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : '';
|
|
189
190
|
var _props_openMultistageFilling;
|
|
@@ -203,6 +204,10 @@ var SelectRelationControlPropertyRules = /*#__PURE__*/ function(OptionAndDataSou
|
|
|
203
204
|
var _props_viewFormModelType;
|
|
204
205
|
_this.viewFormModelType = (_props_viewFormModelType = props === null || props === void 0 ? void 0 : props.viewFormModelType) !== null && _props_viewFormModelType !== void 0 ? _props_viewFormModelType : 'window';
|
|
205
206
|
_this.formBind = new FormBind(props === null || props === void 0 ? void 0 : props.formBind);
|
|
207
|
+
var _props_optionDisplayConfig;
|
|
208
|
+
_this.optionDisplayConfig = (_props_optionDisplayConfig = props === null || props === void 0 ? void 0 : props.optionDisplayConfig) !== null && _props_optionDisplayConfig !== void 0 ? _props_optionDisplayConfig : [];
|
|
209
|
+
var _props_canSearch;
|
|
210
|
+
_this.canSearch = (_props_canSearch = props === null || props === void 0 ? void 0 : props.canSearch) !== null && _props_canSearch !== void 0 ? _props_canSearch : false;
|
|
206
211
|
return _this;
|
|
207
212
|
}
|
|
208
213
|
return SelectRelationProperty;
|
|
@@ -87,6 +87,7 @@ function _is_native_reflect_construct() {
|
|
|
87
87
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
89
|
import TextareaProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var TextareaControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(TextareaControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var TextareaControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return '多行文本';
|
|
107
|
+
return getLocaleText('CMD.textarea', null, '多行文本');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -145,15 +146,6 @@ _define_property(TextareaControl, "setting", [
|
|
|
145
146
|
],
|
|
146
147
|
visible: true
|
|
147
148
|
},
|
|
148
|
-
{
|
|
149
|
-
key: 'caption-style',
|
|
150
|
-
showItems: [
|
|
151
|
-
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
152
|
-
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
153
|
-
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
154
|
-
],
|
|
155
|
-
visible: true
|
|
156
|
-
},
|
|
157
149
|
{
|
|
158
150
|
key: 'label-position',
|
|
159
151
|
visible: true
|
|
@@ -188,8 +180,9 @@ _define_property(TextareaControl, "setting", [
|
|
|
188
180
|
key: 'default-value',
|
|
189
181
|
visible: true
|
|
190
182
|
},
|
|
183
|
+
// { key: 'column-line-ellipsis', visible: true },
|
|
191
184
|
{
|
|
192
|
-
key: '
|
|
185
|
+
key: 'row-height-setting',
|
|
193
186
|
visible: true
|
|
194
187
|
},
|
|
195
188
|
{
|
|
@@ -70,9 +70,9 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
-
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
73
|
+
import { BaseControlProperty, BaseControlPropertyRules, MetaRowHeight, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import TextareaControl from './designer';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var TextareaControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(TextareaControlPropertyRules, BaseControlPropertyRules);
|
|
@@ -84,25 +84,25 @@ var TextareaControlPropertyRules = /*#__PURE__*/ function(BaseControlPropertyRul
|
|
|
84
84
|
]), _define_property(_this, "maxLength", {
|
|
85
85
|
type: 'number',
|
|
86
86
|
min: 0,
|
|
87
|
-
message:
|
|
87
|
+
message: getLocaleText('CMD.TheMaximumLengthIsGreaterThanTheMinimumLength', null, '该控件最大长度需大于最小长度')
|
|
88
88
|
}), _define_property(_this, "minLength", {
|
|
89
89
|
type: 'number',
|
|
90
90
|
max: 1000000,
|
|
91
|
-
message:
|
|
91
|
+
message: getLocaleText('CMD.TheMinimumLengthIsGreaterThanTheMaximumLength', null, '该控件最小长度需小于最大长度')
|
|
92
92
|
}), _define_property(_this, "defaultValue", {
|
|
93
93
|
type: 'string',
|
|
94
94
|
max: 200,
|
|
95
95
|
min: 0,
|
|
96
|
-
message:
|
|
96
|
+
message: getLocaleText('CMD.stringRangeError', null, '请输入长度大于等于{min}且小于等于{max}的值')
|
|
97
97
|
});
|
|
98
98
|
_this.maxLength.min = props.minLength;
|
|
99
99
|
_this.minLength.max = props.maxLength;
|
|
100
100
|
_this.defaultValue.max = props.maxLength;
|
|
101
101
|
_this.defaultValue.min = props.minLength;
|
|
102
|
-
_this.defaultValue.message =
|
|
102
|
+
_this.defaultValue.message = getLocaleText('CMD.stringRangeError', {
|
|
103
103
|
max: props.maxLength,
|
|
104
104
|
min: props.minLength
|
|
105
|
-
});
|
|
105
|
+
}, '请输入长度大于等于{min}且小于等于{max}的值');
|
|
106
106
|
return _this;
|
|
107
107
|
}
|
|
108
108
|
return TextareaControlPropertyRules;
|
|
@@ -120,10 +120,10 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
120
120
|
type: 'string',
|
|
121
121
|
max: props.maxLength,
|
|
122
122
|
min: props.minLength,
|
|
123
|
-
message:
|
|
123
|
+
message: getLocaleText('CMD.stringRangeError', {
|
|
124
124
|
max: props.maxLength,
|
|
125
125
|
min: props.minLength
|
|
126
|
-
})
|
|
126
|
+
}, '请输入长度大于等于{min}且小于等于{max}的值')
|
|
127
127
|
});
|
|
128
128
|
return _this;
|
|
129
129
|
}
|
|
@@ -152,19 +152,17 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
152
152
|
* 默认值
|
|
153
153
|
* @defaultValue ''
|
|
154
154
|
* @public
|
|
155
|
-
*/ _define_property(_this, "defaultValue", void 0), /**
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
*
|
|
163
|
-
|
|
164
|
-
* 最大适应行数
|
|
165
|
-
* @defaultValue 无默认值
|
|
155
|
+
*/ _define_property(_this, "defaultValue", void 0), // /**
|
|
156
|
+
// * 行数设置,开启自适应高度开启时,为最小行数
|
|
157
|
+
// * @defaultValue 4
|
|
158
|
+
// * @public
|
|
159
|
+
// */
|
|
160
|
+
// public lineEllipsis: number
|
|
161
|
+
/**
|
|
162
|
+
* 行高设置 分为pc 和 移动 默认值为 RowHeight
|
|
163
|
+
* @defaultValue MetaRowHeight
|
|
166
164
|
* @public
|
|
167
|
-
*/ _define_property(_this, "
|
|
165
|
+
*/ _define_property(_this, "rowHeightSetting", void 0);
|
|
168
166
|
var _props_maxLength;
|
|
169
167
|
_this.maxLength = (_props_maxLength = props === null || props === void 0 ? void 0 : props.maxLength) !== null && _props_maxLength !== void 0 ? _props_maxLength : 50000;
|
|
170
168
|
var _props_minLength;
|
|
@@ -174,12 +172,11 @@ var TextareaControlPropertyRuntimeRules = /*#__PURE__*/ function(BaseControlProp
|
|
|
174
172
|
var _props_caption;
|
|
175
173
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TextareaControl.controlName;
|
|
176
174
|
var _props_placeholder;
|
|
177
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请输入';
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
_this.
|
|
182
|
-
_this.maxRows = props === null || props === void 0 ? void 0 : props.maxRows;
|
|
175
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseEnter', null, '请输入');
|
|
176
|
+
// this.lineEllipsis = props?.lineEllipsis ?? 4
|
|
177
|
+
// this.autoSize = props?.autoSize ?? false
|
|
178
|
+
// this.maxRows = props?.maxRows
|
|
179
|
+
_this.rowHeightSetting = new MetaRowHeight(props === null || props === void 0 ? void 0 : props.rowHeightSetting);
|
|
183
180
|
return _this;
|
|
184
181
|
}
|
|
185
182
|
return TextareaProperty;
|
|
@@ -87,6 +87,7 @@ function _is_native_reflect_construct() {
|
|
|
87
87
|
import { COMMON_SETTING_TYPE, DesignerFormControl } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
89
|
import TreeProperty from './property';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var TreeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(TreeControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var TreeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return '树';
|
|
107
|
+
return getLocaleText('CMD.tree', null, '树');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -124,12 +125,12 @@ var TreeControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
124
125
|
return [
|
|
125
126
|
{
|
|
126
127
|
key: 'displayBoList',
|
|
127
|
-
name: '
|
|
128
|
+
name: getLocaleText('CMD.07c21751967128276'),
|
|
128
129
|
required: true
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
132
|
key: 'parentField',
|
|
132
|
-
name: '
|
|
133
|
+
name: getLocaleText('CMD.3e751751967125288'),
|
|
133
134
|
required: true
|
|
134
135
|
}
|
|
135
136
|
];
|
|
@@ -156,15 +157,6 @@ _define_property(TreeControl, "setting", [
|
|
|
156
157
|
],
|
|
157
158
|
visible: true
|
|
158
159
|
},
|
|
159
|
-
{
|
|
160
|
-
key: 'caption-style',
|
|
161
|
-
showItems: [
|
|
162
|
-
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
163
|
-
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
164
|
-
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
165
|
-
],
|
|
166
|
-
visible: true
|
|
167
|
-
},
|
|
168
160
|
{
|
|
169
161
|
key: 'label-position',
|
|
170
162
|
visible: true
|
|
@@ -203,6 +195,10 @@ _define_property(TreeControl, "setting", [
|
|
|
203
195
|
key: 'tree-datasource-bind',
|
|
204
196
|
visible: true
|
|
205
197
|
},
|
|
198
|
+
{
|
|
199
|
+
key: 'default-value',
|
|
200
|
+
visible: true
|
|
201
|
+
},
|
|
206
202
|
{
|
|
207
203
|
key: 'super-setting',
|
|
208
204
|
visible: true
|
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import TreeControl from './designer';
|
|
74
74
|
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, MultistageFillingItem, TreeDataSourceBind, initSuperDataSourceRules } from '@byteluck-fe/model-driven-core';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var TreePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(TreePropertyRules, BaseControlPropertyRules);
|
|
@@ -84,7 +84,7 @@ var TreePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
|
84
84
|
]), _define_property(_this, "datasourceBind", [
|
|
85
85
|
{
|
|
86
86
|
type: 'object',
|
|
87
|
-
message:
|
|
87
|
+
message: getLocaleText('CMD.isNotObject', null, '请输入一个对象')
|
|
88
88
|
}
|
|
89
89
|
]);
|
|
90
90
|
initSuperDataSourceRules.call(_this, props, TreeControl.controlCustomAttributes, true);
|
|
@@ -93,7 +93,7 @@ var TreePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
|
93
93
|
{
|
|
94
94
|
type: 'object',
|
|
95
95
|
required: true,
|
|
96
|
-
message:
|
|
96
|
+
message: getLocaleText('CMD.isNotObject', null, '请输入一个对象')
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
type: 'object',
|
|
@@ -112,7 +112,7 @@ var TreePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
|
112
112
|
type: 'array',
|
|
113
113
|
required: true,
|
|
114
114
|
min: 1,
|
|
115
|
-
message:
|
|
115
|
+
message: getLocaleText('CMD.rootNodeIsRequired', null, '请选择根节点')
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -157,7 +157,7 @@ var TreeProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
157
157
|
var _props_caption;
|
|
158
158
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : TreeControl.controlName;
|
|
159
159
|
var _props_placeholder;
|
|
160
|
-
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : '请选择';
|
|
160
|
+
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.pleaseSelect', null, '请选择');
|
|
161
161
|
var _props_multiple;
|
|
162
162
|
_this.multiple = (_props_multiple = props === null || props === void 0 ? void 0 : props.multiple) !== null && _props_multiple !== void 0 ? _props_multiple : false;
|
|
163
163
|
var _props_canSearch;
|
|
@@ -86,7 +86,8 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerFormControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import VueFormItemProperty from './property';
|
|
89
|
-
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
89
|
+
import { DESIGNER_SLOT, FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
91
|
var VueFormItemControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
91
92
|
"use strict";
|
|
92
93
|
_inherits(VueFormItemControl, DesignerFormControl);
|
|
@@ -103,7 +104,7 @@ var VueFormItemControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
103
104
|
{
|
|
104
105
|
key: "controlName",
|
|
105
106
|
get: function get() {
|
|
106
|
-
return 'Vue容器';
|
|
107
|
+
return getLocaleText('CMD.vueFormItem', null, 'Vue容器');
|
|
107
108
|
}
|
|
108
109
|
},
|
|
109
110
|
{
|
|
@@ -123,6 +124,10 @@ var VueFormItemControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
|
123
124
|
}(DesignerFormControl);
|
|
124
125
|
_define_property(VueFormItemControl, "controlFieldType", FieldTypes.ANY);
|
|
125
126
|
_define_property(VueFormItemControl, "controlEventKeys", []);
|
|
127
|
+
_define_property(VueFormItemControl, "slots", [
|
|
128
|
+
'grid-table-toolbar-slot',
|
|
129
|
+
DESIGNER_SLOT.DEFAULT
|
|
130
|
+
]);
|
|
126
131
|
_define_property(VueFormItemControl, "setting", [
|
|
127
132
|
{
|
|
128
133
|
key: 'data-bind-vue',
|
|
@@ -136,15 +141,6 @@ _define_property(VueFormItemControl, "setting", [
|
|
|
136
141
|
],
|
|
137
142
|
visible: true
|
|
138
143
|
},
|
|
139
|
-
{
|
|
140
|
-
key: 'caption-style',
|
|
141
|
-
showItems: [
|
|
142
|
-
COMMON_SETTING_TYPE.CAPTION_SIZE,
|
|
143
|
-
COMMON_SETTING_TYPE.CAPTION_COLOR,
|
|
144
|
-
COMMON_SETTING_TYPE.IS_CAPTION_ITALIC
|
|
145
|
-
],
|
|
146
|
-
visible: true
|
|
147
|
-
},
|
|
148
144
|
{
|
|
149
145
|
key: 'label-position',
|
|
150
146
|
visible: true
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
function _assert_this_initialized(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 _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _defineProperties(target, props) {
|
|
17
|
+
for(var i = 0; i < props.length; i++){
|
|
18
|
+
var descriptor = props[i];
|
|
19
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
20
|
+
descriptor.configurable = true;
|
|
21
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
22
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
26
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
27
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
28
|
+
return Constructor;
|
|
29
|
+
}
|
|
30
|
+
function _define_property(obj, key, value) {
|
|
31
|
+
if (key in obj) {
|
|
32
|
+
Object.defineProperty(obj, key, {
|
|
33
|
+
value: value,
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
obj[key] = value;
|
|
40
|
+
}
|
|
41
|
+
return obj;
|
|
42
|
+
}
|
|
43
|
+
function _get_prototype_of(o) {
|
|
44
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
45
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
46
|
+
};
|
|
47
|
+
return _get_prototype_of(o);
|
|
48
|
+
}
|
|
49
|
+
function _inherits(subClass, superClass) {
|
|
50
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
51
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
52
|
+
}
|
|
53
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
54
|
+
constructor: {
|
|
55
|
+
value: subClass,
|
|
56
|
+
writable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
61
|
+
}
|
|
62
|
+
function _possible_constructor_return(self, call) {
|
|
63
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
64
|
+
return call;
|
|
65
|
+
}
|
|
66
|
+
return _assert_this_initialized(self);
|
|
67
|
+
}
|
|
68
|
+
function _set_prototype_of(o, p) {
|
|
69
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
70
|
+
o.__proto__ = p;
|
|
71
|
+
return o;
|
|
72
|
+
};
|
|
73
|
+
return _set_prototype_of(o, p);
|
|
74
|
+
}
|
|
75
|
+
function _type_of(obj) {
|
|
76
|
+
"@swc/helpers - typeof";
|
|
77
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
+
}
|
|
79
|
+
function _is_native_reflect_construct() {
|
|
80
|
+
try {
|
|
81
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
82
|
+
} catch (_) {}
|
|
83
|
+
return (_is_native_reflect_construct = function() {
|
|
84
|
+
return !!result;
|
|
85
|
+
})();
|
|
86
|
+
}
|
|
87
|
+
import { DesignerFormControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import VuePageProperty from './property';
|
|
89
|
+
import { FieldTypes, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
91
|
+
var VuePageControl = /*#__PURE__*/ function(DesignerFormControl) {
|
|
92
|
+
"use strict";
|
|
93
|
+
_inherits(VuePageControl, DesignerFormControl);
|
|
94
|
+
function VuePageControl(props) {
|
|
95
|
+
_class_call_check(this, VuePageControl);
|
|
96
|
+
var _this;
|
|
97
|
+
_this = _call_super(this, VuePageControl, [
|
|
98
|
+
props
|
|
99
|
+
]), _define_property(_this, "props", void 0);
|
|
100
|
+
_this.props = new VuePageProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
101
|
+
return _this;
|
|
102
|
+
}
|
|
103
|
+
_create_class(VuePageControl, null, [
|
|
104
|
+
{
|
|
105
|
+
key: "controlName",
|
|
106
|
+
get: function get() {
|
|
107
|
+
return getLocaleText('CMD.vuePage', null, 'Vue页面');
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: "controlIcon",
|
|
112
|
+
get: function get() {
|
|
113
|
+
return 'iconvuerongqi';
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
key: "controlType",
|
|
118
|
+
get: function get() {
|
|
119
|
+
return CONTROL_TYPE.VUE_PAGE;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]);
|
|
123
|
+
return VuePageControl;
|
|
124
|
+
}(DesignerFormControl);
|
|
125
|
+
_define_property(VuePageControl, "controlFieldType", FieldTypes.ANY);
|
|
126
|
+
_define_property(VuePageControl, "controlEventKeys", []);
|
|
127
|
+
_define_property(VuePageControl, "setting", []);
|
|
128
|
+
export default VuePageControl;
|
|
129
|
+
export { VuePageControl as DesignerVuePageControl };
|
|
@@ -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';
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
function _assert_this_initialized(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 _call_super(_this, derived, args) {
|
|
8
|
+
derived = _get_prototype_of(derived);
|
|
9
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
|
+
}
|
|
11
|
+
function _class_call_check(instance, Constructor) {
|
|
12
|
+
if (!(instance instanceof Constructor)) {
|
|
13
|
+
throw new TypeError("Cannot call a class as a function");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function _define_property(obj, key, value) {
|
|
17
|
+
if (key in obj) {
|
|
18
|
+
Object.defineProperty(obj, key, {
|
|
19
|
+
value: value,
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
obj[key] = value;
|
|
26
|
+
}
|
|
27
|
+
return obj;
|
|
28
|
+
}
|
|
29
|
+
function _get_prototype_of(o) {
|
|
30
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
31
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
32
|
+
};
|
|
33
|
+
return _get_prototype_of(o);
|
|
34
|
+
}
|
|
35
|
+
function _inherits(subClass, superClass) {
|
|
36
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
37
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
38
|
+
}
|
|
39
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
40
|
+
constructor: {
|
|
41
|
+
value: subClass,
|
|
42
|
+
writable: true,
|
|
43
|
+
configurable: true
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
47
|
+
}
|
|
48
|
+
function _possible_constructor_return(self, call) {
|
|
49
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
50
|
+
return call;
|
|
51
|
+
}
|
|
52
|
+
return _assert_this_initialized(self);
|
|
53
|
+
}
|
|
54
|
+
function _set_prototype_of(o, p) {
|
|
55
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
56
|
+
o.__proto__ = p;
|
|
57
|
+
return o;
|
|
58
|
+
};
|
|
59
|
+
return _set_prototype_of(o, p);
|
|
60
|
+
}
|
|
61
|
+
function _type_of(obj) {
|
|
62
|
+
"@swc/helpers - typeof";
|
|
63
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
|
+
}
|
|
65
|
+
function _is_native_reflect_construct() {
|
|
66
|
+
try {
|
|
67
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
} catch (_) {}
|
|
69
|
+
return (_is_native_reflect_construct = function() {
|
|
70
|
+
return !!result;
|
|
71
|
+
})();
|
|
72
|
+
}
|
|
73
|
+
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
74
|
+
import VuePageControl from './designer';
|
|
75
|
+
var VuePagePropertyRules = /*#__PURE__*/ function(BaseControlPropertyRules) {
|
|
76
|
+
"use strict";
|
|
77
|
+
_inherits(VuePagePropertyRules, BaseControlPropertyRules);
|
|
78
|
+
function VuePagePropertyRules(props) {
|
|
79
|
+
_class_call_check(this, VuePagePropertyRules);
|
|
80
|
+
var _this;
|
|
81
|
+
_this = _call_super(this, VuePagePropertyRules, [
|
|
82
|
+
props
|
|
83
|
+
]);
|
|
84
|
+
_this.dataBind = {
|
|
85
|
+
type: 'any'
|
|
86
|
+
};
|
|
87
|
+
return _this;
|
|
88
|
+
}
|
|
89
|
+
return VuePagePropertyRules;
|
|
90
|
+
}(BaseControlPropertyRules);
|
|
91
|
+
var VuePagePropertyRuntimeRules = /*#__PURE__*/ function(BaseControlPropertyRuntimeRules) {
|
|
92
|
+
"use strict";
|
|
93
|
+
_inherits(VuePagePropertyRuntimeRules, BaseControlPropertyRuntimeRules);
|
|
94
|
+
function VuePagePropertyRuntimeRules(props) {
|
|
95
|
+
_class_call_check(this, VuePagePropertyRuntimeRules);
|
|
96
|
+
var _this;
|
|
97
|
+
_this = _call_super(this, VuePagePropertyRuntimeRules, [
|
|
98
|
+
props
|
|
99
|
+
]);
|
|
100
|
+
if (_this[0] !== undefined) {
|
|
101
|
+
_this[0].type = 'any';
|
|
102
|
+
}
|
|
103
|
+
return _this;
|
|
104
|
+
}
|
|
105
|
+
return VuePagePropertyRuntimeRules;
|
|
106
|
+
}(BaseControlPropertyRuntimeRules);
|
|
107
|
+
var VuePageProperty = /*#__PURE__*/ function(BaseControlProperty) {
|
|
108
|
+
"use strict";
|
|
109
|
+
_inherits(VuePageProperty, BaseControlProperty);
|
|
110
|
+
function VuePageProperty(props) {
|
|
111
|
+
_class_call_check(this, VuePageProperty);
|
|
112
|
+
var _this;
|
|
113
|
+
_this = _call_super(this, VuePageProperty, [
|
|
114
|
+
props
|
|
115
|
+
]), _define_property(_this, "controlExportName", void 0), _define_property(_this, "permissions", void 0), _define_property(_this, "defaultValue", void 0), _define_property(_this, "isInlineEdit", void 0);
|
|
116
|
+
var _props_caption;
|
|
117
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : VuePageControl.controlName;
|
|
118
|
+
var _props_defaultValue;
|
|
119
|
+
_this.defaultValue = (_props_defaultValue = props === null || props === void 0 ? void 0 : props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : undefined;
|
|
120
|
+
var _props_controlExportName;
|
|
121
|
+
_this.controlExportName = (_props_controlExportName = props === null || props === void 0 ? void 0 : props.controlExportName) !== null && _props_controlExportName !== void 0 ? _props_controlExportName : '';
|
|
122
|
+
var _props_permissions;
|
|
123
|
+
_this.permissions = (_props_permissions = props === null || props === void 0 ? void 0 : props.permissions) !== null && _props_permissions !== void 0 ? _props_permissions : [];
|
|
124
|
+
var _props_isInlineEdit;
|
|
125
|
+
_this.isInlineEdit = (_props_isInlineEdit = props === null || props === void 0 ? void 0 : props.isInlineEdit) !== null && _props_isInlineEdit !== void 0 ? _props_isInlineEdit : false;
|
|
126
|
+
return _this;
|
|
127
|
+
}
|
|
128
|
+
return VuePageProperty;
|
|
129
|
+
}(BaseControlProperty);
|
|
130
|
+
_define_property(VuePageProperty, "Rules", VuePagePropertyRules);
|
|
131
|
+
_define_property(VuePageProperty, "RuntimeRules", VuePagePropertyRuntimeRules);
|
|
132
|
+
export default VuePageProperty;
|
|
133
|
+
export { VuePageProperty, VuePagePropertyRules, VuePagePropertyRuntimeRules };
|