@byteluck-fe/model-driven-controls 2.22.2-beta.17 → 2.22.2-beta.18
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/designer.js +2 -2
- package/dist/esm/baseControls/BatchPrintListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchPrintListButton/property.js +2 -2
- package/dist/esm/baseControls/BatchPrintRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchSubmissionListButton/designer.js +2 -2
- package/dist/esm/baseControls/BatchSubmissionListButton/property.js +10 -10
- package/dist/esm/baseControls/Button/designer.js +3 -2
- package/dist/esm/baseControls/Button/property.js +34 -34
- package/dist/esm/baseControls/CreateFormListButton/designer.js +2 -2
- package/dist/esm/baseControls/CreateFormListButton/property.js +2 -2
- package/dist/esm/baseControls/Dashboard/designer.js +2 -2
- package/dist/esm/baseControls/Dashboard/property.js +4 -4
- package/dist/esm/baseControls/Divider/designer.js +2 -2
- package/dist/esm/baseControls/ExportListButton/designer.js +2 -2
- package/dist/esm/baseControls/ExportListButton/property.js +2 -2
- package/dist/esm/baseControls/ExportRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/FormSelectButton/designer.js +2 -2
- package/dist/esm/baseControls/FormSelectButton/property.js +4 -4
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/InvoiceCheckButton/designer.js +2 -2
- package/dist/esm/baseControls/InvoiceCheckButton/property.js +4 -4
- package/dist/esm/baseControls/Link/designer.js +2 -2
- package/dist/esm/baseControls/Link/property.js +2 -2
- package/dist/esm/baseControls/ListSelectButton/designer.js +2 -2
- package/dist/esm/baseControls/ListSelectButton/property.js +19 -19
- package/dist/esm/baseControls/ListViewSelect/designer.js +2 -2
- package/dist/esm/baseControls/ListViewSelect/property.js +3 -3
- package/dist/esm/baseControls/OperationButton/designer.js +2 -2
- package/dist/esm/baseControls/OperationButton/property.js +3 -3
- package/dist/esm/baseControls/Pagination/designer.js +2 -2
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/Text/designer.js +2 -2
- package/dist/esm/baseControls/Text/property.js +2 -2
- package/dist/esm/baseControls/TextOcrButton/designer.js +2 -2
- package/dist/esm/baseControls/TextOcrButton/property.js +5 -5
- package/dist/esm/baseControls/Title/designer.js +2 -2
- package/dist/esm/baseControls/Title/property.js +6 -6
- package/dist/esm/baseControls/utils.js +4 -4
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +2 -2
- package/dist/esm/columnControls/ArrayColumn/designer.js +3 -2
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +3 -2
- package/dist/esm/columnControls/CustomColumn/designer.js +3 -2
- package/dist/esm/columnControls/CustomColumn/property.js +5 -5
- package/dist/esm/columnControls/DecimalColumn/designer.js +3 -2
- package/dist/esm/columnControls/DepartmentColumn/designer.js +3 -2
- package/dist/esm/columnControls/EmployeeColumn/designer.js +3 -2
- package/dist/esm/columnControls/FileColumn/designer.js +9 -8
- package/dist/esm/columnControls/ImageColumn/designer.js +3 -2
- package/dist/esm/columnControls/LocationColumn/designer.js +3 -2
- package/dist/esm/columnControls/OperationColumn/designer.js +2 -2
- package/dist/esm/columnControls/OperationColumn/property.js +14 -14
- package/dist/esm/columnControls/OrderColumn/designer.js +2 -2
- package/dist/esm/columnControls/PeopleColumn/designer.js +3 -2
- package/dist/esm/columnControls/TextColumn/designer.js +3 -2
- package/dist/esm/columnControls/TimescopeColumn/designer.js +3 -2
- package/dist/esm/columnControls/TimestampColumn/designer.js +3 -2
- package/dist/esm/columnControls/VarcharColumn/designer.js +3 -2
- package/dist/esm/formControls/Address/designer.js +3 -2
- package/dist/esm/formControls/Address/property.js +16 -16
- package/dist/esm/formControls/Amount/designer.js +3 -2
- package/dist/esm/formControls/Amount/property.js +42 -42
- package/dist/esm/formControls/Attachment/designer.js +3 -2
- package/dist/esm/formControls/Attachment/property.js +13 -13
- package/dist/esm/formControls/AutoNumber/designer.js +3 -2
- package/dist/esm/formControls/AutoNumber/property.js +2 -2
- package/dist/esm/formControls/Calc/designer.js +3 -2
- package/dist/esm/formControls/Calc/property.js +30 -30
- package/dist/esm/formControls/Checkbox/designer.js +3 -2
- package/dist/esm/formControls/Checkbox/property.js +2 -2
- package/dist/esm/formControls/DatePicker/designer.js +3 -2
- package/dist/esm/formControls/DatePicker/property.js +3 -2
- package/dist/esm/formControls/DateRange/designer.js +3 -2
- package/dist/esm/formControls/DateRange/property.js +49 -48
- package/dist/esm/formControls/Department/designer.js +3 -2
- package/dist/esm/formControls/Department/property.js +20 -20
- package/dist/esm/formControls/Department2/designer.js +3 -2
- package/dist/esm/formControls/Department2/property.js +26 -26
- package/dist/esm/formControls/ElectronicSignature/designer.js +3 -2
- package/dist/esm/formControls/ElectronicSignature/property.js +9 -8
- package/dist/esm/formControls/Employee/designer.js +3 -2
- package/dist/esm/formControls/Employee/property.js +4 -4
- package/dist/esm/formControls/Employee2/designer.js +3 -2
- package/dist/esm/formControls/Employee2/property.js +6 -6
- package/dist/esm/formControls/Image/designer.js +10 -9
- package/dist/esm/formControls/Image/runtime.js +3 -3
- package/dist/esm/formControls/Input/designer.js +3 -2
- package/dist/esm/formControls/Input/property.js +36 -36
- package/dist/esm/formControls/Number/designer.js +3 -2
- package/dist/esm/formControls/Number/property.js +58 -58
- package/dist/esm/formControls/OrganizationSelection/designer.js +3 -2
- package/dist/esm/formControls/OrganizationSelection/property.js +29 -29
- package/dist/esm/formControls/Radio/designer.js +3 -2
- package/dist/esm/formControls/RichText/designer.js +3 -2
- package/dist/esm/formControls/RichText/property.js +9 -9
- package/dist/esm/formControls/Score/designer.js +3 -2
- package/dist/esm/formControls/Score/property.js +8 -8
- package/dist/esm/formControls/SearchDateRange/designer.js +3 -2
- package/dist/esm/formControls/SearchDateRange/property.js +4 -3
- package/dist/esm/formControls/SearchInput/designer.js +2 -2
- package/dist/esm/formControls/SearchNumberRange/designer.js +3 -2
- package/dist/esm/formControls/SearchNumberRange/property.js +5 -5
- package/dist/esm/formControls/Select/designer.js +3 -2
- package/dist/esm/formControls/Select/property.js +15 -15
- package/dist/esm/formControls/SelectMultiple/designer.js +3 -2
- package/dist/esm/formControls/SelectMultiple/property.js +15 -15
- package/dist/esm/formControls/SelectRelation/designer.js +3 -2
- package/dist/esm/formControls/SelectRelation/property.js +47 -47
- package/dist/esm/formControls/Textarea/designer.js +3 -2
- package/dist/esm/formControls/Textarea/property.js +28 -28
- package/dist/esm/formControls/Tree/designer.js +3 -2
- package/dist/esm/formControls/Tree/property.js +5 -5
- package/dist/esm/formControls/VueFormItem/designer.js +3 -2
- package/dist/esm/formControls/VuePage/designer.js +3 -2
- package/dist/esm/formControls/WPS/designer.js +10 -9
- package/dist/esm/formControls/WPS/property.js +6 -6
- package/dist/esm/framework.js +27 -26
- package/dist/esm/layoutControls/ActionBar/designer.js +2 -2
- package/dist/esm/layoutControls/AdvancedContainer/designer.js +2 -2
- package/dist/esm/layoutControls/CardGroup/designer.js +3 -2
- package/dist/esm/layoutControls/CardGroup/property.js +8 -8
- package/dist/esm/layoutControls/Col/designer.js +3 -2
- package/dist/esm/layoutControls/DataView/designer.js +2 -2
- package/dist/esm/layoutControls/DataView/property.js +17 -17
- package/dist/esm/layoutControls/Grid/designer.js +3 -2
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +3 -2
- package/dist/esm/layoutControls/GridRow/designer.js +3 -2
- package/dist/esm/layoutControls/ListView/designer.js +3 -2
- package/dist/esm/layoutControls/ListView/property.js +76 -76
- package/dist/esm/layoutControls/Page/designer.js +2 -2
- package/dist/esm/layoutControls/Position/designer.js +2 -2
- package/dist/esm/layoutControls/PositioningContainer/designer.js +2 -2
- package/dist/esm/layoutControls/Row/designer.js +3 -2
- package/dist/esm/layoutControls/SubTableColumn/designer.js +3 -2
- package/dist/esm/layoutControls/SubTableColumn/property.js +17 -17
- package/dist/esm/layoutControls/SubTableRow/designer.js +3 -2
- package/dist/esm/layoutControls/Tab/designer.js +3 -2
- package/dist/esm/layoutControls/TabPane/designer.js +4 -4
- package/dist/esm/layoutControls/TabPane/property.js +2 -2
- package/dist/esm/layoutControls/Toolbox/designer.js +3 -2
- package/dist/esm/listControls/GridTable/designer.js +3 -2
- package/dist/esm/listControls/SubTable/designer.js +2 -2
- package/dist/esm/listControls/SubTable/property.js +128 -128
- package/dist/esm/searchControls/SimpleSearch/property.js +48 -48
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +9 -9
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +8 -8
- package/dist/index.umd.js +1 -1
- package/package.json +5 -5
|
@@ -72,7 +72,7 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import { LayoutControlProperty, PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
74
74
|
import { DesignerTabControl } from '../Tab';
|
|
75
|
-
import {
|
|
75
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
76
76
|
var TabPaneControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
77
77
|
"use strict";
|
|
78
78
|
_inherits(TabPaneControlPropertyRules, PropertyRules);
|
|
@@ -84,7 +84,7 @@ var TabPaneControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
84
84
|
]), _define_property(_this, "caption", {
|
|
85
85
|
type: 'string',
|
|
86
86
|
required: true,
|
|
87
|
-
message:
|
|
87
|
+
message: getLocaleText('CMD.pleaseEnterCaption', null, '请输入标题')
|
|
88
88
|
});
|
|
89
89
|
return _this;
|
|
90
90
|
}
|
|
@@ -84,10 +84,11 @@ function _is_native_reflect_construct() {
|
|
|
84
84
|
return !!result;
|
|
85
85
|
})();
|
|
86
86
|
}
|
|
87
|
-
import { CONTROL_TYPE
|
|
87
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
88
88
|
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
89
89
|
import { ColControlProperty, DesignerColControl } from '../Col';
|
|
90
90
|
import { ToolboxControlProperty } from './property';
|
|
91
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
91
92
|
var ToolboxControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
92
93
|
"use strict";
|
|
93
94
|
_inherits(ToolboxControl, DesignerLayoutControl);
|
|
@@ -116,7 +117,7 @@ var ToolboxControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
116
117
|
{
|
|
117
118
|
key: "controlName",
|
|
118
119
|
get: function get() {
|
|
119
|
-
return
|
|
120
|
+
return getLocaleText('CMD.toolbox', null, '工具栏');
|
|
120
121
|
}
|
|
121
122
|
},
|
|
122
123
|
{
|
|
@@ -281,7 +281,8 @@ import { GridTableControlProperty } from './property';
|
|
|
281
281
|
import { DesignerListControl, defineControlArrayToProperty } from '@byteluck-fe/model-driven-core';
|
|
282
282
|
import { DesignerOrderColumnControl } from '../../columnControls/OrderColumn';
|
|
283
283
|
import { DesignerOperationColumnControl } from '../../columnControls/OperationColumn';
|
|
284
|
-
import { JSONCopy
|
|
284
|
+
import { JSONCopy } from '@byteluck-fe/model-driven-shared';
|
|
285
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
285
286
|
var CHILDREN_MAX_LENGTH = 10000;
|
|
286
287
|
var GridTableControl = /*#__PURE__*/ function _target(DesignerListControl) {
|
|
287
288
|
"use strict";
|
|
@@ -369,7 +370,7 @@ var GridTableControl = /*#__PURE__*/ function _target(DesignerListControl) {
|
|
|
369
370
|
{
|
|
370
371
|
key: "controlName",
|
|
371
372
|
get: function get() {
|
|
372
|
-
return
|
|
373
|
+
return getLocaleText('CMD.gridTable', null, '表格');
|
|
373
374
|
}
|
|
374
375
|
},
|
|
375
376
|
{
|
|
@@ -87,7 +87,7 @@ function _is_native_reflect_construct() {
|
|
|
87
87
|
import SubTableControlProperty from './property';
|
|
88
88
|
import { DesignerListControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
89
89
|
import { DesignerSubTableColumnControl } from '../../layoutControls/SubTableColumn';
|
|
90
|
-
import {
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
91
91
|
var SubTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
92
92
|
"use strict";
|
|
93
93
|
_inherits(SubTableControl, DesignerListControl);
|
|
@@ -127,7 +127,7 @@ var SubTableControl = /*#__PURE__*/ function(DesignerListControl) {
|
|
|
127
127
|
{
|
|
128
128
|
key: "controlName",
|
|
129
129
|
get: function get() {
|
|
130
|
-
return
|
|
130
|
+
return getLocaleText('CMD.subTable', null, '明细子表');
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
{
|
|
@@ -72,8 +72,8 @@ function _is_native_reflect_construct() {
|
|
|
72
72
|
}
|
|
73
73
|
import SubTableControl from './designer';
|
|
74
74
|
import { ListControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, DataStorageDoc } from '@byteluck-fe/model-driven-core';
|
|
75
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
76
75
|
import { SUBTABLE_DEFAULT_MAX_HEIGHT, ExportConfig, ImportConfig } from '../../framework';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
var SubTableControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
78
78
|
"use strict";
|
|
79
79
|
_inherits(SubTableControlPropertyRules, PropertyRules);
|
|
@@ -85,35 +85,35 @@ var SubTableControlPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
85
85
|
]), _define_property(_this, "caption", {
|
|
86
86
|
type: 'string',
|
|
87
87
|
required: true,
|
|
88
|
-
message:
|
|
88
|
+
message: getLocaleText('CMD.pleaseEnterCaption', null, '请输入标题')
|
|
89
89
|
}), _define_property(_this, "limitRows", [
|
|
90
90
|
{
|
|
91
91
|
type: 'number',
|
|
92
92
|
required: true,
|
|
93
|
-
message:
|
|
93
|
+
message: getLocaleText('CMD.isNotNumber', null, '请输入一个数字')
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
type: 'number',
|
|
97
97
|
min: 0,
|
|
98
|
-
message:
|
|
98
|
+
message: getLocaleText('CMD.limitRowsCannotBeLessThan0', null, '最少填写行数不能小于0')
|
|
99
99
|
}
|
|
100
100
|
]), _define_property(_this, "formKey", {
|
|
101
101
|
type: 'string',
|
|
102
102
|
required: false,
|
|
103
|
-
message:
|
|
103
|
+
message: getLocaleText('CMD.pleaseEnterForm', null, '请绑定表单')
|
|
104
104
|
}), _define_property(_this, "maxHeight", {
|
|
105
105
|
type: 'number',
|
|
106
106
|
required: true,
|
|
107
|
-
message:
|
|
107
|
+
message: getLocaleText('CMD.pleaseEnterMaxHeight', null, '请输入最大高度')
|
|
108
108
|
}), _define_property(_this, "captionTip", {
|
|
109
109
|
type: 'string',
|
|
110
110
|
required: false,
|
|
111
|
-
message:
|
|
111
|
+
message: getLocaleText('CMD.pleaseEnterCaptionTip', null, '请输入气泡提示语')
|
|
112
112
|
}), // 行标题必填
|
|
113
113
|
_define_property(_this, "mobileRowCaption", {
|
|
114
114
|
type: 'string',
|
|
115
115
|
required: false,
|
|
116
|
-
message:
|
|
116
|
+
message: getLocaleText('CMD.pleaseEnterRowCaption', null, '请输入行标题')
|
|
117
117
|
});
|
|
118
118
|
if (props.openType === 'modal') {
|
|
119
119
|
_this.formKey.required = true;
|
|
@@ -141,31 +141,31 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
141
141
|
_this.push({
|
|
142
142
|
type: 'array',
|
|
143
143
|
required: props.limitRows > 0,
|
|
144
|
-
message:
|
|
144
|
+
message: getLocaleText('CMD.runtimeRequired', {
|
|
145
145
|
caption: props.caption
|
|
146
|
-
})
|
|
146
|
+
}, '{caption}必填')
|
|
147
147
|
}, {
|
|
148
148
|
type: 'array',
|
|
149
149
|
validator: function validator(rule, value, callback) {
|
|
150
150
|
if (value.length < props.limitRows) {
|
|
151
|
-
callback(
|
|
151
|
+
callback(getLocaleText('CMD.TheNumberOfRowsCannotBeLessThanMinRows', {
|
|
152
152
|
min: props.limitRows
|
|
153
|
-
}));
|
|
153
|
+
}, '行数量不能小于{min}行'));
|
|
154
154
|
}
|
|
155
155
|
callback();
|
|
156
156
|
},
|
|
157
|
-
message:
|
|
157
|
+
message: getLocaleText('CMD.TheNumberOfRowsCannotBeLessThanMinRows', {
|
|
158
158
|
min: props.limitRows
|
|
159
|
-
})
|
|
159
|
+
}, '行数量不能小于{min}行')
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
return _this;
|
|
163
163
|
}
|
|
164
164
|
return SubtableControlRuntimeRules;
|
|
165
165
|
}(PropertyRuntimeRules);
|
|
166
|
-
/**
|
|
167
|
-
* SubTable 明细表
|
|
168
|
-
* @public
|
|
166
|
+
/**
|
|
167
|
+
* SubTable 明细表
|
|
168
|
+
* @public
|
|
169
169
|
*/ var SubTableControlProperty = /*#__PURE__*/ function(ListControlProperty) {
|
|
170
170
|
"use strict";
|
|
171
171
|
_inherits(SubTableControlProperty, ListControlProperty);
|
|
@@ -176,116 +176,116 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
176
176
|
parent,
|
|
177
177
|
props,
|
|
178
178
|
SubTableControlProperty.mode
|
|
179
|
-
]), /**
|
|
180
|
-
* 标题
|
|
181
|
-
* */ _define_property(_this, "caption", void 0), /**
|
|
182
|
-
* 标题布局
|
|
183
|
-
* @defaultValue 'top'
|
|
184
|
-
* @public
|
|
185
|
-
* */ _define_property(_this, "labelPosition", void 0), /**
|
|
186
|
-
* 隐藏标题
|
|
187
|
-
* @defaultValue false
|
|
188
|
-
* @public
|
|
189
|
-
* */ _define_property(_this, "isHideCaption", void 0), /**
|
|
190
|
-
* 开启气泡提示
|
|
191
|
-
* @defaultValue false
|
|
192
|
-
* @public
|
|
193
|
-
* */ _define_property(_this, "isShowCaptionTip", void 0), /**
|
|
194
|
-
* 气泡提示语
|
|
195
|
-
* @defaultValue ''
|
|
196
|
-
* @public
|
|
197
|
-
* */ _define_property(_this, "captionTip", void 0), /**
|
|
198
|
-
* 默认状态 default=普通 readonly=只读
|
|
199
|
-
* @defaultValue 'default'
|
|
200
|
-
* @public
|
|
201
|
-
* */ _define_property(_this, "defaultState", void 0), /**
|
|
202
|
-
* 最小填写行数,并且是默认行数
|
|
203
|
-
* @defaultValue 1
|
|
204
|
-
* @public
|
|
205
|
-
* */ _define_property(_this, "limitRows", void 0), /**
|
|
206
|
-
* 最多填写行数
|
|
207
|
-
* @defaultValue
|
|
208
|
-
* @public
|
|
209
|
-
* */ _define_property(_this, "maxRows", void 0), /**
|
|
210
|
-
* 默认填写行数
|
|
211
|
-
* @defaultValue 1
|
|
212
|
-
* @public
|
|
213
|
-
* */ _define_property(_this, "defaultRows", void 0), /**
|
|
214
|
-
* 绑定数据源
|
|
215
|
-
* @public
|
|
216
|
-
* */ _define_property(_this, "datasourceBind", void 0), /**
|
|
217
|
-
* 打印配置 col=纵向打印|row=横向打印
|
|
218
|
-
* @defaultValue 'row'
|
|
219
|
-
* @public
|
|
220
|
-
* */ _define_property(_this, "printMode", void 0), /**
|
|
221
|
-
* 打开方式(查看,编辑,创建)
|
|
222
|
-
* default列表模式|modal表单模式
|
|
223
|
-
* @defaultValue 'default'
|
|
224
|
-
* @public
|
|
225
|
-
* */ _define_property(_this, "openType", void 0), /**
|
|
226
|
-
* openType=modal表单模式,formKey为绑定的表单
|
|
227
|
-
* @defaultValue ''
|
|
228
|
-
* @public
|
|
229
|
-
* */ _define_property(_this, "formKey", void 0), /**
|
|
230
|
-
* 使用自定义高度
|
|
231
|
-
* @defaultValue false
|
|
232
|
-
* @public
|
|
233
|
-
* */ _define_property(_this, "useCustomHeight", void 0), /**
|
|
234
|
-
* 用户自定义最大高度,默认480
|
|
235
|
-
* @defaultValue 480
|
|
236
|
-
* @public
|
|
237
|
-
* */ _define_property(_this, "maxHeight", void 0), /**
|
|
238
|
-
* 可以新增
|
|
239
|
-
* */ _define_property(_this, "canAdd", void 0), /**
|
|
240
|
-
* 可以删除
|
|
241
|
-
* */ _define_property(_this, "canDelete", void 0), /**
|
|
242
|
-
* 可以查看
|
|
243
|
-
* */ _define_property(_this, "canCheck", void 0), /**
|
|
244
|
-
* 可以编辑
|
|
245
|
-
* */ _define_property(_this, "canEdit", void 0), /**
|
|
246
|
-
* 可以导入
|
|
247
|
-
* */ _define_property(_this, "canImport", void 0), /**
|
|
248
|
-
* 导入配置
|
|
249
|
-
* */ _define_property(_this, "importConfig", void 0), /**
|
|
250
|
-
* 可以导出
|
|
251
|
-
* */ _define_property(_this, "canExport", void 0), /**
|
|
252
|
-
* 导出配置
|
|
253
|
-
* */ _define_property(_this, "exportConfig", void 0), /**
|
|
254
|
-
* 可以清除
|
|
255
|
-
* */ _define_property(_this, "canClear", void 0), /**
|
|
256
|
-
* 是否展示粘贴按钮
|
|
257
|
-
* */ _define_property(_this, "isPaste", void 0), /**
|
|
258
|
-
* 移动端展现形式 tile=平铺|list=列表
|
|
259
|
-
* @defaultValue 'list'
|
|
260
|
-
* @public
|
|
261
|
-
* */ _define_property(_this, "mobileShowType", void 0), /**
|
|
262
|
-
* 移动端默认展示条数
|
|
263
|
-
* @defaultValue tile 5 | list 10
|
|
264
|
-
* @public
|
|
265
|
-
* */ _define_property(_this, "mobileDefaultNum", void 0), /**
|
|
266
|
-
* 数据收起简述
|
|
267
|
-
* @defaultValue
|
|
268
|
-
* @public
|
|
269
|
-
* */ _define_property(_this, "dataStorageDoc", void 0), /**
|
|
270
|
-
* 开启后端分页
|
|
271
|
-
* */ _define_property(_this, "serverPagination", void 0), /**
|
|
272
|
-
* 固定列 字段
|
|
273
|
-
* @defaultValue []
|
|
274
|
-
* @public
|
|
275
|
-
* */ _define_property(_this, "fixedColumn", void 0), /**
|
|
276
|
-
* 移动端平铺行展示标题
|
|
277
|
-
* @defaultValue '明细'
|
|
278
|
-
* @public
|
|
279
|
-
* */ _define_property(_this, "mobileRowCaption", void 0), /**
|
|
280
|
-
* 移动端平铺数据流开关
|
|
281
|
-
* @defaultValue false
|
|
282
|
-
* @public
|
|
283
|
-
* */ _define_property(_this, "mobileIsTile", void 0), /**
|
|
284
|
-
* 是否开启数据排序
|
|
285
|
-
* @defaultValue false
|
|
286
|
-
* @public
|
|
287
|
-
* */ _define_property(_this, "sortable", void 0), /**
|
|
288
|
-
* 排序or筛选字段
|
|
179
|
+
]), /**
|
|
180
|
+
* 标题
|
|
181
|
+
* */ _define_property(_this, "caption", void 0), /**
|
|
182
|
+
* 标题布局
|
|
183
|
+
* @defaultValue 'top'
|
|
184
|
+
* @public
|
|
185
|
+
* */ _define_property(_this, "labelPosition", void 0), /**
|
|
186
|
+
* 隐藏标题
|
|
187
|
+
* @defaultValue false
|
|
188
|
+
* @public
|
|
189
|
+
* */ _define_property(_this, "isHideCaption", void 0), /**
|
|
190
|
+
* 开启气泡提示
|
|
191
|
+
* @defaultValue false
|
|
192
|
+
* @public
|
|
193
|
+
* */ _define_property(_this, "isShowCaptionTip", void 0), /**
|
|
194
|
+
* 气泡提示语
|
|
195
|
+
* @defaultValue ''
|
|
196
|
+
* @public
|
|
197
|
+
* */ _define_property(_this, "captionTip", void 0), /**
|
|
198
|
+
* 默认状态 default=普通 readonly=只读
|
|
199
|
+
* @defaultValue 'default'
|
|
200
|
+
* @public
|
|
201
|
+
* */ _define_property(_this, "defaultState", void 0), /**
|
|
202
|
+
* 最小填写行数,并且是默认行数
|
|
203
|
+
* @defaultValue 1
|
|
204
|
+
* @public
|
|
205
|
+
* */ _define_property(_this, "limitRows", void 0), /**
|
|
206
|
+
* 最多填写行数
|
|
207
|
+
* @defaultValue
|
|
208
|
+
* @public
|
|
209
|
+
* */ _define_property(_this, "maxRows", void 0), /**
|
|
210
|
+
* 默认填写行数
|
|
211
|
+
* @defaultValue 1
|
|
212
|
+
* @public
|
|
213
|
+
* */ _define_property(_this, "defaultRows", void 0), /**
|
|
214
|
+
* 绑定数据源
|
|
215
|
+
* @public
|
|
216
|
+
* */ _define_property(_this, "datasourceBind", void 0), /**
|
|
217
|
+
* 打印配置 col=纵向打印|row=横向打印
|
|
218
|
+
* @defaultValue 'row'
|
|
219
|
+
* @public
|
|
220
|
+
* */ _define_property(_this, "printMode", void 0), /**
|
|
221
|
+
* 打开方式(查看,编辑,创建)
|
|
222
|
+
* default列表模式|modal表单模式
|
|
223
|
+
* @defaultValue 'default'
|
|
224
|
+
* @public
|
|
225
|
+
* */ _define_property(_this, "openType", void 0), /**
|
|
226
|
+
* openType=modal表单模式,formKey为绑定的表单
|
|
227
|
+
* @defaultValue ''
|
|
228
|
+
* @public
|
|
229
|
+
* */ _define_property(_this, "formKey", void 0), /**
|
|
230
|
+
* 使用自定义高度
|
|
231
|
+
* @defaultValue false
|
|
232
|
+
* @public
|
|
233
|
+
* */ _define_property(_this, "useCustomHeight", void 0), /**
|
|
234
|
+
* 用户自定义最大高度,默认480
|
|
235
|
+
* @defaultValue 480
|
|
236
|
+
* @public
|
|
237
|
+
* */ _define_property(_this, "maxHeight", void 0), /**
|
|
238
|
+
* 可以新增
|
|
239
|
+
* */ _define_property(_this, "canAdd", void 0), /**
|
|
240
|
+
* 可以删除
|
|
241
|
+
* */ _define_property(_this, "canDelete", void 0), /**
|
|
242
|
+
* 可以查看
|
|
243
|
+
* */ _define_property(_this, "canCheck", void 0), /**
|
|
244
|
+
* 可以编辑
|
|
245
|
+
* */ _define_property(_this, "canEdit", void 0), /**
|
|
246
|
+
* 可以导入
|
|
247
|
+
* */ _define_property(_this, "canImport", void 0), /**
|
|
248
|
+
* 导入配置
|
|
249
|
+
* */ _define_property(_this, "importConfig", void 0), /**
|
|
250
|
+
* 可以导出
|
|
251
|
+
* */ _define_property(_this, "canExport", void 0), /**
|
|
252
|
+
* 导出配置
|
|
253
|
+
* */ _define_property(_this, "exportConfig", void 0), /**
|
|
254
|
+
* 可以清除
|
|
255
|
+
* */ _define_property(_this, "canClear", void 0), /**
|
|
256
|
+
* 是否展示粘贴按钮
|
|
257
|
+
* */ _define_property(_this, "isPaste", void 0), /**
|
|
258
|
+
* 移动端展现形式 tile=平铺|list=列表
|
|
259
|
+
* @defaultValue 'list'
|
|
260
|
+
* @public
|
|
261
|
+
* */ _define_property(_this, "mobileShowType", void 0), /**
|
|
262
|
+
* 移动端默认展示条数
|
|
263
|
+
* @defaultValue tile 5 | list 10
|
|
264
|
+
* @public
|
|
265
|
+
* */ _define_property(_this, "mobileDefaultNum", void 0), /**
|
|
266
|
+
* 数据收起简述
|
|
267
|
+
* @defaultValue
|
|
268
|
+
* @public
|
|
269
|
+
* */ _define_property(_this, "dataStorageDoc", void 0), /**
|
|
270
|
+
* 开启后端分页
|
|
271
|
+
* */ _define_property(_this, "serverPagination", void 0), /**
|
|
272
|
+
* 固定列 字段
|
|
273
|
+
* @defaultValue []
|
|
274
|
+
* @public
|
|
275
|
+
* */ _define_property(_this, "fixedColumn", void 0), /**
|
|
276
|
+
* 移动端平铺行展示标题
|
|
277
|
+
* @defaultValue '明细'
|
|
278
|
+
* @public
|
|
279
|
+
* */ _define_property(_this, "mobileRowCaption", void 0), /**
|
|
280
|
+
* 移动端平铺数据流开关
|
|
281
|
+
* @defaultValue false
|
|
282
|
+
* @public
|
|
283
|
+
* */ _define_property(_this, "mobileIsTile", void 0), /**
|
|
284
|
+
* 是否开启数据排序
|
|
285
|
+
* @defaultValue false
|
|
286
|
+
* @public
|
|
287
|
+
* */ _define_property(_this, "sortable", void 0), /**
|
|
288
|
+
* 排序or筛选字段
|
|
289
289
|
* */ _define_property(_this, "sortKey", void 0);
|
|
290
290
|
var _props_caption;
|
|
291
291
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : SubTableControl.controlName;
|
|
@@ -341,7 +341,7 @@ var SubtableControlRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
|
341
341
|
var _props_fixedColumn;
|
|
342
342
|
_this.fixedColumn = (_props_fixedColumn = props === null || props === void 0 ? void 0 : props.fixedColumn) !== null && _props_fixedColumn !== void 0 ? _props_fixedColumn : [];
|
|
343
343
|
var _props_mobileRowCaption;
|
|
344
|
-
_this.mobileRowCaption = (_props_mobileRowCaption = props === null || props === void 0 ? void 0 : props.mobileRowCaption) !== null && _props_mobileRowCaption !== void 0 ? _props_mobileRowCaption :
|
|
344
|
+
_this.mobileRowCaption = (_props_mobileRowCaption = props === null || props === void 0 ? void 0 : props.mobileRowCaption) !== null && _props_mobileRowCaption !== void 0 ? _props_mobileRowCaption : getLocaleText('CMD.detailed', null, '明细');
|
|
345
345
|
var _props_mobileIsTile;
|
|
346
346
|
_this.mobileIsTile = (_props_mobileIsTile = props === null || props === void 0 ? void 0 : props.mobileIsTile) !== null && _props_mobileIsTile !== void 0 ? _props_mobileIsTile : false;
|
|
347
347
|
var _props_isPaste;
|
|
@@ -70,8 +70,8 @@ function _is_native_reflect_construct() {
|
|
|
70
70
|
return !!result;
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
73
74
|
import { SearchControlProperty, PropertyRuntimeRules, OperationItem } from '@byteluck-fe/model-driven-core';
|
|
74
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
75
75
|
var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRuntimeRules) {
|
|
76
76
|
"use strict";
|
|
77
77
|
_inherits(SimpleSearchControlPropertyRuntimeRules, PropertyRuntimeRules);
|
|
@@ -89,9 +89,9 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
89
89
|
}
|
|
90
90
|
return SimpleSearchControlPropertyRuntimeRules;
|
|
91
91
|
}(PropertyRuntimeRules);
|
|
92
|
-
/**
|
|
93
|
-
* SimpleSearch 搜索栏
|
|
94
|
-
* @public
|
|
92
|
+
/**
|
|
93
|
+
* SimpleSearch 搜索栏
|
|
94
|
+
* @public
|
|
95
95
|
*/ var SimpleSearchControlProperty = /*#__PURE__*/ function(SearchControlProperty) {
|
|
96
96
|
"use strict";
|
|
97
97
|
_inherits(SimpleSearchControlProperty, SearchControlProperty);
|
|
@@ -100,48 +100,48 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
100
100
|
var _this;
|
|
101
101
|
_this = _call_super(this, SimpleSearchControlProperty, [
|
|
102
102
|
props
|
|
103
|
-
]), /**
|
|
104
|
-
* 查询按钮
|
|
105
|
-
* @public
|
|
106
|
-
*/ _define_property(_this, "search", void 0), /**
|
|
107
|
-
* 取消按钮
|
|
108
|
-
* @public
|
|
109
|
-
*/ _define_property(_this, "cancel", void 0), /**
|
|
110
|
-
* 查询类型
|
|
111
|
-
* @defaultValue 'model'
|
|
112
|
-
* @public
|
|
113
|
-
*/ _define_property(_this, "searchType", void 0), /**
|
|
114
|
-
* 标题布局
|
|
115
|
-
* @defaultValue 'top'
|
|
116
|
-
* @public
|
|
117
|
-
*/ _define_property(_this, "labelPosition", void 0), /**
|
|
118
|
-
* 默认状态
|
|
119
|
-
* @defaultValue 'mini'
|
|
120
|
-
* @public
|
|
121
|
-
*/ _define_property(_this, "viewType", void 0), /**
|
|
122
|
-
* 加载中
|
|
123
|
-
* @defaultValue false
|
|
124
|
-
* @public
|
|
125
|
-
*/ _define_property(_this, "isLoading", void 0), _define_property(_this, "custom", void 0), /**
|
|
126
|
-
* 筛选条件-查询设置
|
|
127
|
-
* @defaultValue []
|
|
128
|
-
* @public
|
|
129
|
-
*/ _define_property(_this, "queryTypeMap", void 0), /**
|
|
130
|
-
* 控件宽度最小值
|
|
131
|
-
* @defaultValue 230
|
|
132
|
-
* @public
|
|
133
|
-
*/ _define_property(_this, "childMinWidth", void 0), /**
|
|
134
|
-
* 控件间距
|
|
135
|
-
* @defaultValue 24
|
|
136
|
-
* @public
|
|
137
|
-
*/ _define_property(_this, "colGap", void 0), /**
|
|
138
|
-
* 查询方案字段
|
|
139
|
-
* @defaultValue []
|
|
140
|
-
* @public
|
|
141
|
-
*/ _define_property(_this, "viewConfig", void 0), /**
|
|
142
|
-
* 普通筛选项查询字段
|
|
143
|
-
* @defaultValue []
|
|
144
|
-
* @public
|
|
103
|
+
]), /**
|
|
104
|
+
* 查询按钮
|
|
105
|
+
* @public
|
|
106
|
+
*/ _define_property(_this, "search", void 0), /**
|
|
107
|
+
* 取消按钮
|
|
108
|
+
* @public
|
|
109
|
+
*/ _define_property(_this, "cancel", void 0), /**
|
|
110
|
+
* 查询类型
|
|
111
|
+
* @defaultValue 'model'
|
|
112
|
+
* @public
|
|
113
|
+
*/ _define_property(_this, "searchType", void 0), /**
|
|
114
|
+
* 标题布局
|
|
115
|
+
* @defaultValue 'top'
|
|
116
|
+
* @public
|
|
117
|
+
*/ _define_property(_this, "labelPosition", void 0), /**
|
|
118
|
+
* 默认状态
|
|
119
|
+
* @defaultValue 'mini'
|
|
120
|
+
* @public
|
|
121
|
+
*/ _define_property(_this, "viewType", void 0), /**
|
|
122
|
+
* 加载中
|
|
123
|
+
* @defaultValue false
|
|
124
|
+
* @public
|
|
125
|
+
*/ _define_property(_this, "isLoading", void 0), _define_property(_this, "custom", void 0), /**
|
|
126
|
+
* 筛选条件-查询设置
|
|
127
|
+
* @defaultValue []
|
|
128
|
+
* @public
|
|
129
|
+
*/ _define_property(_this, "queryTypeMap", void 0), /**
|
|
130
|
+
* 控件宽度最小值
|
|
131
|
+
* @defaultValue 230
|
|
132
|
+
* @public
|
|
133
|
+
*/ _define_property(_this, "childMinWidth", void 0), /**
|
|
134
|
+
* 控件间距
|
|
135
|
+
* @defaultValue 24
|
|
136
|
+
* @public
|
|
137
|
+
*/ _define_property(_this, "colGap", void 0), /**
|
|
138
|
+
* 查询方案字段
|
|
139
|
+
* @defaultValue []
|
|
140
|
+
* @public
|
|
141
|
+
*/ _define_property(_this, "viewConfig", void 0), /**
|
|
142
|
+
* 普通筛选项查询字段
|
|
143
|
+
* @defaultValue []
|
|
144
|
+
* @public
|
|
145
145
|
*/ _define_property(_this, "simpleConfig", void 0);
|
|
146
146
|
var _props_searchType;
|
|
147
147
|
_this.searchType = (_props_searchType = props === null || props === void 0 ? void 0 : props.searchType) !== null && _props_searchType !== void 0 ? _props_searchType : 'model';
|
|
@@ -151,12 +151,12 @@ var SimpleSearchControlPropertyRuntimeRules = /*#__PURE__*/ function(PropertyRun
|
|
|
151
151
|
_this.viewType = (_props_viewType = props === null || props === void 0 ? void 0 : props.viewType) !== null && _props_viewType !== void 0 ? _props_viewType : 'mini';
|
|
152
152
|
var _props_search;
|
|
153
153
|
_this.search = new OperationItem((_props_search = props === null || props === void 0 ? void 0 : props.search) !== null && _props_search !== void 0 ? _props_search : {
|
|
154
|
-
content:
|
|
154
|
+
content: getLocaleText('CMD.query', null, '查询'),
|
|
155
155
|
isShow: true
|
|
156
156
|
});
|
|
157
157
|
var _props_cancel;
|
|
158
158
|
_this.cancel = new OperationItem((_props_cancel = props === null || props === void 0 ? void 0 : props.cancel) !== null && _props_cancel !== void 0 ? _props_cancel : {
|
|
159
|
-
content:
|
|
159
|
+
content: getLocaleText('CMD.reset', null, '重置'),
|
|
160
160
|
isShow: true
|
|
161
161
|
});
|
|
162
162
|
var _props_isLoading;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2023-08-08 11:13:49
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-08-09 14:06:17
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/Setting.ts
|
|
7
|
-
*/ import {
|
|
8
|
-
import {
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
+
* @Date: 2023-08-08 11:13:49
|
|
4
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
+
* @LastEditTime: 2023-08-09 14:06:17
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/Setting.ts
|
|
7
|
+
*/ import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
8
|
+
import { defineInstance } from '@byteluck-fe/model-driven-settings';
|
|
9
9
|
export default defineInstance({
|
|
10
10
|
fields: [
|
|
11
11
|
{
|
|
12
12
|
key: 'wholeRow',
|
|
13
13
|
type: 'boolean',
|
|
14
14
|
component: 'switch',
|
|
15
|
-
label:
|
|
15
|
+
label: getLocaleText('CMD.fullLine', null, '充满整行'),
|
|
16
16
|
props: {
|
|
17
17
|
updateParent: true
|
|
18
18
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
-
* @Date: 2023-08-08 11:13:49
|
|
4
|
-
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-08-09 11:26:04
|
|
6
|
-
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/designer.ts
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
+
* @Date: 2023-08-08 11:13:49
|
|
4
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
+
* @LastEditTime: 2023-08-09 11:26:04
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridLayoutWrap/designer.ts
|
|
7
7
|
*/ function _assert_this_initialized(self) {
|
|
8
8
|
if (self === void 0) {
|
|
9
9
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -93,7 +93,7 @@ function _is_native_reflect_construct() {
|
|
|
93
93
|
import { DesignerWrapControl } from '@byteluck-fe/model-driven-core';
|
|
94
94
|
import GridLayoutWrapProperty from './property';
|
|
95
95
|
// import Setting from './Setting'
|
|
96
|
-
import {
|
|
96
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
97
97
|
var GridLayoutWrapControl = /*#__PURE__*/ function(DesignerWrapControl) {
|
|
98
98
|
"use strict";
|
|
99
99
|
_inherits(GridLayoutWrapControl, DesignerWrapControl);
|
|
@@ -111,7 +111,7 @@ var GridLayoutWrapControl = /*#__PURE__*/ function(DesignerWrapControl) {
|
|
|
111
111
|
{
|
|
112
112
|
key: "controlName",
|
|
113
113
|
get: function get() {
|
|
114
|
-
return
|
|
114
|
+
return getLocaleText('CMD.gridLayoutWrap', null, '换行容器Wrap');
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
{
|