@byteluck-fe/model-driven-controls 2.23.0-beta.9 → 3.0.0-beta.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/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 +3 -3
- package/dist/esm/baseControls/Button/designer.js +3 -2
- package/dist/esm/baseControls/Button/property.js +2 -2
- 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 +4 -4
- 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/ReferenceList/designer.js +158 -0
- package/dist/esm/baseControls/ReferenceList/index.js +11 -0
- package/dist/esm/baseControls/ReferenceList/property.js +139 -0
- package/dist/esm/baseControls/ReferenceList/runtime.js +112 -0
- package/dist/esm/baseControls/ReferenceList/types.js +0 -0
- package/dist/esm/baseControls/SubmissionRecordListButton/designer.js +2 -2
- package/dist/esm/baseControls/Text/designer.js +6 -2
- package/dist/esm/baseControls/Text/property.js +9 -3
- 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/index.js +1 -0
- package/dist/esm/baseControls/utils.js +4 -4
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +6 -2
- package/dist/esm/columnControls/ArrayColumn/designer.js +7 -2
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +7 -2
- package/dist/esm/columnControls/CustomColumn/designer.js +7 -2
- package/dist/esm/columnControls/CustomColumn/property.js +2 -2
- package/dist/esm/columnControls/DecimalColumn/designer.js +7 -2
- package/dist/esm/columnControls/DecimalColumn/property.js +4 -4
- package/dist/esm/columnControls/DepartmentColumn/designer.js +7 -2
- package/dist/esm/columnControls/EmployeeColumn/designer.js +7 -2
- package/dist/esm/columnControls/FileColumn/designer.js +12 -9
- package/dist/esm/columnControls/FileColumn/property.js +21 -1
- package/dist/esm/columnControls/ImageColumn/designer.js +7 -2
- package/dist/esm/columnControls/LocationColumn/designer.js +7 -2
- package/dist/esm/columnControls/OperationColumn/designer.js +6 -2
- package/dist/esm/columnControls/OperationColumn/property.js +3 -3
- package/dist/esm/columnControls/OrderColumn/designer.js +6 -2
- package/dist/esm/columnControls/PeopleColumn/designer.js +7 -2
- package/dist/esm/columnControls/TextColumn/designer.js +7 -2
- package/dist/esm/columnControls/TimescopeColumn/designer.js +7 -2
- package/dist/esm/columnControls/TimestampColumn/designer.js +7 -2
- package/dist/esm/columnControls/VarcharColumn/designer.js +8 -2
- package/dist/esm/formControls/Address/designer.js +3 -2
- package/dist/esm/formControls/Address/property.js +5 -5
- package/dist/esm/formControls/Amount/designer.js +3 -2
- package/dist/esm/formControls/Amount/property.js +8 -8
- package/dist/esm/formControls/Attachment/designer.js +11 -2
- package/dist/esm/formControls/Attachment/property.js +24 -14
- 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 +5 -5
- package/dist/esm/formControls/Checkbox/designer.js +7 -2
- package/dist/esm/formControls/Checkbox/property.js +15 -9
- 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 +4 -3
- package/dist/esm/formControls/Department/designer.js +3 -2
- package/dist/esm/formControls/Department/property.js +2 -2
- package/dist/esm/formControls/Department2/designer.js +3 -2
- package/dist/esm/formControls/Department2/property.js +4 -4
- 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 +2 -2
- package/dist/esm/formControls/Employee2/designer.js +5 -3
- package/dist/esm/formControls/Employee2/property.js +7 -4
- package/dist/esm/formControls/Image/designer.js +14 -9
- package/dist/esm/formControls/Image/runtime.js +3 -3
- package/dist/esm/formControls/Input/designer.js +7 -2
- package/dist/esm/formControls/Input/property.js +43 -37
- package/dist/esm/formControls/Number/designer.js +3 -2
- package/dist/esm/formControls/Number/property.js +8 -8
- package/dist/esm/formControls/OrganizationSelection/designer.js +3 -2
- package/dist/esm/formControls/OrganizationSelection/property.js +4 -4
- package/dist/esm/formControls/Radio/designer.js +7 -2
- package/dist/esm/formControls/Radio/property.js +14 -7
- package/dist/esm/formControls/RichText/designer.js +11 -2
- package/dist/esm/formControls/RichText/property.js +45 -11
- 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 +7 -2
- package/dist/esm/formControls/Select/property.js +28 -22
- package/dist/esm/formControls/SelectMultiple/designer.js +7 -2
- package/dist/esm/formControls/SelectMultiple/property.js +28 -22
- package/dist/esm/formControls/SelectRelation/designer.js +7 -2
- package/dist/esm/formControls/SelectRelation/property.js +54 -48
- package/dist/esm/formControls/Textarea/designer.js +11 -2
- package/dist/esm/formControls/Textarea/property.js +76 -30
- 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 +3 -2
- package/dist/esm/formControls/WPS/property.js +6 -6
- package/dist/esm/framework.js +40 -2
- 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 +3 -3
- 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 +5 -5
- 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 +10 -10
- 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 +4 -4
- 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 +15 -15
- package/dist/esm/searchControls/SimpleSearch/property.js +3 -3
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +3 -3
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/ReferenceList/designer.d.ts +14 -0
- package/dist/types/baseControls/ReferenceList/index.d.ts +12 -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/Text/property.d.ts +6 -0
- package/dist/types/baseControls/index.d.ts +1 -0
- package/dist/types/columnControls/DecimalColumn/property.d.ts +2 -2
- package/dist/types/columnControls/FileColumn/property.d.ts +1 -0
- package/dist/types/formControls/Attachment/property.d.ts +2 -0
- package/dist/types/formControls/Checkbox/property.d.ts +6 -0
- package/dist/types/formControls/Employee2/property.d.ts +1 -0
- package/dist/types/formControls/Input/property.d.ts +6 -0
- package/dist/types/formControls/Radio/property.d.ts +6 -0
- package/dist/types/formControls/RichText/property.d.ts +19 -1
- package/dist/types/formControls/Select/property.d.ts +6 -0
- package/dist/types/formControls/SelectMultiple/property.d.ts +6 -0
- package/dist/types/formControls/SelectRelation/property.d.ts +6 -0
- package/dist/types/formControls/Textarea/property.d.ts +19 -1
- package/dist/types/framework.d.ts +17 -1
- package/dist/types/type.d.ts +2 -1
- package/package.json +5 -5
|
@@ -71,7 +71,7 @@ function _is_native_reflect_construct() {
|
|
|
71
71
|
})();
|
|
72
72
|
}
|
|
73
73
|
import { Property, PropertyRules } from '@byteluck-fe/model-driven-core';
|
|
74
|
-
import {
|
|
74
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
75
75
|
var OperationButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
76
76
|
"use strict";
|
|
77
77
|
_inherits(OperationButtonPropertyRules, PropertyRules);
|
|
@@ -88,7 +88,7 @@ var OperationButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
88
88
|
_this.formKey = {
|
|
89
89
|
type: 'string',
|
|
90
90
|
required: true,
|
|
91
|
-
message:
|
|
91
|
+
message: getLocaleText('CMD.pleaseEnterForm', null, '请绑定表单')
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
return _this;
|
|
@@ -105,7 +105,7 @@ var OperationButtonProperty = /*#__PURE__*/ function(Property) {
|
|
|
105
105
|
props
|
|
106
106
|
]), _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);
|
|
107
107
|
var _props_content;
|
|
108
|
-
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content :
|
|
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, '按钮');
|
|
109
109
|
_this.code = props === null || props === void 0 ? void 0 : props.code;
|
|
110
110
|
var _props_command;
|
|
111
111
|
_this.command = (_props_command = props === null || props === void 0 ? void 0 : props.command) !== null && _props_command !== void 0 ? _props_command : 'custom';
|
|
@@ -86,7 +86,7 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerControl } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import PaginationProperty from './property';
|
|
89
|
-
import {
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
90
|
var PaginationControl = /*#__PURE__*/ function(DesignerControl) {
|
|
91
91
|
"use strict";
|
|
92
92
|
_inherits(PaginationControl, DesignerControl);
|
|
@@ -103,7 +103,7 @@ var PaginationControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
103
103
|
{
|
|
104
104
|
key: "controlName",
|
|
105
105
|
get: function get() {
|
|
106
|
-
return
|
|
106
|
+
return getLocaleText('CMD.pagination', null, '分页');
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
{
|
|
@@ -0,0 +1,158 @@
|
|
|
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 { COMMON_SETTING_TYPE, DesignerControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import ReferenceListProperty from './property';
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
|
+
var ReferenceListControl = /*#__PURE__*/ function(DesignerControl) {
|
|
91
|
+
"use strict";
|
|
92
|
+
_inherits(ReferenceListControl, DesignerControl);
|
|
93
|
+
function ReferenceListControl(props) {
|
|
94
|
+
_class_call_check(this, ReferenceListControl);
|
|
95
|
+
var _this;
|
|
96
|
+
_this = _call_super(this, ReferenceListControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
99
|
+
_this.props = new ReferenceListProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
+
return _this;
|
|
101
|
+
}
|
|
102
|
+
_create_class(ReferenceListControl, null, [
|
|
103
|
+
{
|
|
104
|
+
key: "controlName",
|
|
105
|
+
get: function get() {
|
|
106
|
+
return getLocaleText('CMD.referenceList', null, '引用列表');
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
key: "controlIcon",
|
|
111
|
+
get: function get() {
|
|
112
|
+
return 'iconliebiaoxuanze';
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
key: "controlType",
|
|
117
|
+
get: function get() {
|
|
118
|
+
return 'reference-list';
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]);
|
|
122
|
+
return ReferenceListControl;
|
|
123
|
+
}(DesignerControl);
|
|
124
|
+
_define_property(ReferenceListControl, "controlEventKeys", [
|
|
125
|
+
'on_list_rowclick'
|
|
126
|
+
]);
|
|
127
|
+
_define_property(ReferenceListControl, "setting", [
|
|
128
|
+
{
|
|
129
|
+
key: 'caption',
|
|
130
|
+
showItems: [
|
|
131
|
+
COMMON_SETTING_TYPE.CAPTION
|
|
132
|
+
],
|
|
133
|
+
visible: true
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
key: 'common-setting',
|
|
137
|
+
visible: true,
|
|
138
|
+
showItems: [
|
|
139
|
+
COMMON_SETTING_TYPE.IS_HIDE,
|
|
140
|
+
COMMON_SETTING_TYPE.IS_SHOW_SIMPLE_SEARCH,
|
|
141
|
+
COMMON_SETTING_TYPE.IS_SHOW_TOOL_BAE
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
key: 'action-setting',
|
|
146
|
+
visible: true
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
key: 'line-height-setting',
|
|
150
|
+
visible: true
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
key: 'super-setting',
|
|
154
|
+
visible: true
|
|
155
|
+
}
|
|
156
|
+
]);
|
|
157
|
+
export default ReferenceListControl;
|
|
158
|
+
export { ReferenceListControl as ResignerreferenceListControl };
|
|
@@ -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,139 @@
|
|
|
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 { PropertyRules, Property } from '@byteluck-fe/model-driven-core';
|
|
74
|
+
import { ActionSetting, ListHeightSetting } from '../../framework';
|
|
75
|
+
import ReferenceListControl from './designer';
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
|
+
var ReferenceListPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
78
|
+
"use strict";
|
|
79
|
+
_inherits(ReferenceListPropertyRules, PropertyRules);
|
|
80
|
+
function ReferenceListPropertyRules(props) {
|
|
81
|
+
_class_call_check(this, ReferenceListPropertyRules);
|
|
82
|
+
var _this;
|
|
83
|
+
_this = _call_super(this, ReferenceListPropertyRules, [
|
|
84
|
+
props
|
|
85
|
+
]), _define_property(_this, "actionSetting", {
|
|
86
|
+
type: 'object',
|
|
87
|
+
fields: {
|
|
88
|
+
dataCode: {
|
|
89
|
+
type: 'string',
|
|
90
|
+
required: true,
|
|
91
|
+
message: getLocaleText('CMD.pleaseEnterDataCode', null, '请绑定业务模型')
|
|
92
|
+
},
|
|
93
|
+
formKey: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
required: true,
|
|
96
|
+
message: getLocaleText('CMD.pleaseEnterList', null, '请绑定列表')
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
return _this;
|
|
101
|
+
}
|
|
102
|
+
return ReferenceListPropertyRules;
|
|
103
|
+
}(PropertyRules);
|
|
104
|
+
/**
|
|
105
|
+
* ReferenceList 引用列表
|
|
106
|
+
* @public
|
|
107
|
+
*/ var ReferenceListProperty = /*#__PURE__*/ function(Property) {
|
|
108
|
+
"use strict";
|
|
109
|
+
_inherits(ReferenceListProperty, Property);
|
|
110
|
+
function ReferenceListProperty(props) {
|
|
111
|
+
_class_call_check(this, ReferenceListProperty);
|
|
112
|
+
var _this;
|
|
113
|
+
_this = _call_super(this, ReferenceListProperty, [
|
|
114
|
+
props
|
|
115
|
+
]), // 是否显示查询栏
|
|
116
|
+
_define_property(_this, "isShowSimpleSearch", void 0), // 是否显示工具栏
|
|
117
|
+
_define_property(_this, "isShowToolbar", void 0), //动作设置
|
|
118
|
+
_define_property(_this, "actionSetting", void 0), //列表高度配置
|
|
119
|
+
_define_property(_this, "listHeightSetting", void 0), //列表高度配置
|
|
120
|
+
_define_property(_this, "isHideCaption", void 0);
|
|
121
|
+
var _props_caption;
|
|
122
|
+
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : ReferenceListControl.controlName;
|
|
123
|
+
var _props_isShowSimpleSearch;
|
|
124
|
+
_this.isShowSimpleSearch = (_props_isShowSimpleSearch = props === null || props === void 0 ? void 0 : props.isShowSimpleSearch) !== null && _props_isShowSimpleSearch !== void 0 ? _props_isShowSimpleSearch : true;
|
|
125
|
+
var _props_isShowToolbar;
|
|
126
|
+
_this.isShowToolbar = (_props_isShowToolbar = props === null || props === void 0 ? void 0 : props.isShowToolbar) !== null && _props_isShowToolbar !== void 0 ? _props_isShowToolbar : true;
|
|
127
|
+
var _props_isHideCaption;
|
|
128
|
+
_this.isHideCaption = (_props_isHideCaption = props === null || props === void 0 ? void 0 : props.isHideCaption) !== null && _props_isHideCaption !== void 0 ? _props_isHideCaption : false;
|
|
129
|
+
var _ref;
|
|
130
|
+
_this.actionSetting = (_ref = new ActionSetting(props === null || props === void 0 ? void 0 : props.actionSetting)) !== null && _ref !== void 0 ? _ref : new ActionSetting();
|
|
131
|
+
var _ref1;
|
|
132
|
+
_this.listHeightSetting = (_ref1 = new ListHeightSetting(props === null || props === void 0 ? void 0 : props.listHeightSetting)) !== null && _ref1 !== void 0 ? _ref1 : new ListHeightSetting();
|
|
133
|
+
return _this;
|
|
134
|
+
}
|
|
135
|
+
return ReferenceListProperty;
|
|
136
|
+
}(Property);
|
|
137
|
+
_define_property(ReferenceListProperty, "Rules", ReferenceListPropertyRules);
|
|
138
|
+
export default ReferenceListProperty;
|
|
139
|
+
export { ReferenceListProperty, ReferenceListPropertyRules };
|
|
@@ -0,0 +1,112 @@
|
|
|
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 { RuntimeControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import ReferenceListProperty from './property';
|
|
89
|
+
var ReferenceListControl = /*#__PURE__*/ function(RuntimeControl) {
|
|
90
|
+
"use strict";
|
|
91
|
+
_inherits(ReferenceListControl, RuntimeControl);
|
|
92
|
+
function ReferenceListControl(props) {
|
|
93
|
+
_class_call_check(this, ReferenceListControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _call_super(this, ReferenceListControl, [
|
|
96
|
+
props
|
|
97
|
+
]), _define_property(_this, "props", void 0);
|
|
98
|
+
_this.props = new ReferenceListProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
_create_class(ReferenceListControl, null, [
|
|
102
|
+
{
|
|
103
|
+
key: "controlType",
|
|
104
|
+
get: function get() {
|
|
105
|
+
return 'reference-list';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]);
|
|
109
|
+
return ReferenceListControl;
|
|
110
|
+
}(RuntimeControl);
|
|
111
|
+
export default ReferenceListControl;
|
|
112
|
+
export { ReferenceListControl as RuntimeReferenceListControl };
|
|
File without changes
|
|
@@ -86,7 +86,7 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerButtonControl } from '../Button';
|
|
88
88
|
import SubmissionRecordListButtonProperty from './property';
|
|
89
|
-
import {
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
90
|
var SubmissionRecordListButtonControl = /*#__PURE__*/ function(DesignerButtonControl) {
|
|
91
91
|
"use strict";
|
|
92
92
|
_inherits(SubmissionRecordListButtonControl, DesignerButtonControl);
|
|
@@ -103,7 +103,7 @@ var SubmissionRecordListButtonControl = /*#__PURE__*/ function(DesignerButtonCon
|
|
|
103
103
|
{
|
|
104
104
|
key: "controlName",
|
|
105
105
|
get: function get() {
|
|
106
|
-
return
|
|
106
|
+
return getLocaleText('CMD.submissionRecordListButton', null, '批量提交记录');
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
{
|
|
@@ -86,7 +86,7 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import TextProperty from './property';
|
|
89
|
-
import {
|
|
89
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
90
90
|
var TextControl = /*#__PURE__*/ function(DesignerControl) {
|
|
91
91
|
"use strict";
|
|
92
92
|
_inherits(TextControl, DesignerControl);
|
|
@@ -103,7 +103,7 @@ var TextControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
103
103
|
{
|
|
104
104
|
key: "controlName",
|
|
105
105
|
get: function get() {
|
|
106
|
-
return
|
|
106
|
+
return getLocaleText('CMD.text', null, '说明文字');
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
{
|
|
@@ -137,6 +137,10 @@ _define_property(TextControl, "setting", [
|
|
|
137
137
|
COMMON_SETTING_TYPE.IS_HIDE
|
|
138
138
|
]
|
|
139
139
|
},
|
|
140
|
+
{
|
|
141
|
+
key: 'ai-content-search',
|
|
142
|
+
visible: true
|
|
143
|
+
},
|
|
140
144
|
{
|
|
141
145
|
key: 'text-color',
|
|
142
146
|
visible: true
|
|
@@ -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 { Property } from '@byteluck-fe/model-driven-core';
|
|
74
|
-
import { RulesMessage } from '@byteluck-fe/model-driven-shared';
|
|
75
75
|
var TextProperty = /*#__PURE__*/ function(Property) {
|
|
76
76
|
"use strict";
|
|
77
77
|
_inherits(TextProperty, Property);
|
|
@@ -81,7 +81,11 @@ var TextProperty = /*#__PURE__*/ function(Property) {
|
|
|
81
81
|
_this = _call_super(this, TextProperty, [
|
|
82
82
|
props
|
|
83
83
|
]), // public dataBind: DataBind
|
|
84
|
-
_define_property(_this, "content", void 0), _define_property(_this, "fontSize", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "align", void 0), _define_property(_this, "showState", void 0)
|
|
84
|
+
_define_property(_this, "content", void 0), _define_property(_this, "fontSize", void 0), _define_property(_this, "color", void 0), _define_property(_this, "icon", void 0), _define_property(_this, "align", void 0), _define_property(_this, "showState", void 0), /**
|
|
85
|
+
* ai 显示内容搜索 false | true
|
|
86
|
+
* @defaultValue false
|
|
87
|
+
* @public
|
|
88
|
+
*/ _define_property(_this, "aiContentSearch", void 0);
|
|
85
89
|
var _props_fontSize;
|
|
86
90
|
// this.dataBind = new DataBind(props?.dataBind)
|
|
87
91
|
_this.fontSize = (_props_fontSize = props === null || props === void 0 ? void 0 : props.fontSize) !== null && _props_fontSize !== void 0 ? _props_fontSize : '14px';
|
|
@@ -92,9 +96,11 @@ var TextProperty = /*#__PURE__*/ function(Property) {
|
|
|
92
96
|
var _props_showState;
|
|
93
97
|
_this.showState = (_props_showState = props === null || props === void 0 ? void 0 : props.showState) !== null && _props_showState !== void 0 ? _props_showState : 'text';
|
|
94
98
|
var _props_content;
|
|
95
|
-
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content :
|
|
99
|
+
_this.content = (_props_content = props === null || props === void 0 ? void 0 : props.content) !== null && _props_content !== void 0 ? _props_content : getLocaleText('CMD.text', null, '说明文字');
|
|
96
100
|
var _props_align;
|
|
97
101
|
_this.align = (_props_align = props === null || props === void 0 ? void 0 : props.align) !== null && _props_align !== void 0 ? _props_align : '';
|
|
102
|
+
var _props_aiContentSearch;
|
|
103
|
+
_this.aiContentSearch = (_props_aiContentSearch = props === null || props === void 0 ? void 0 : props.aiContentSearch) !== null && _props_aiContentSearch !== void 0 ? _props_aiContentSearch : false;
|
|
98
104
|
return _this;
|
|
99
105
|
}
|
|
100
106
|
return TextProperty;
|
|
@@ -87,7 +87,7 @@ function _is_native_reflect_construct() {
|
|
|
87
87
|
import { COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import { DesignerButtonControl } from '../Button';
|
|
89
89
|
import TextOcrButtonProperty from './property';
|
|
90
|
-
import {
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
91
91
|
var TextOcrButtonControl = /*#__PURE__*/ function(DesignerButtonControl) {
|
|
92
92
|
"use strict";
|
|
93
93
|
_inherits(TextOcrButtonControl, DesignerButtonControl);
|
|
@@ -104,7 +104,7 @@ var TextOcrButtonControl = /*#__PURE__*/ function(DesignerButtonControl) {
|
|
|
104
104
|
{
|
|
105
105
|
key: "controlName",
|
|
106
106
|
get: function get() {
|
|
107
|
-
return
|
|
107
|
+
return getLocaleText('CMD.textOcrButton', null, '文字识别');
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
{
|
|
@@ -73,7 +73,7 @@ function _is_native_reflect_construct() {
|
|
|
73
73
|
import { ButtonProperty } from '../Button';
|
|
74
74
|
import TextOcrButtonControl from './designer';
|
|
75
75
|
import { PropertyRules, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
76
|
-
import {
|
|
76
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
77
77
|
var TextOcrButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
78
78
|
"use strict";
|
|
79
79
|
_inherits(TextOcrButtonPropertyRules, PropertyRules);
|
|
@@ -85,7 +85,7 @@ var TextOcrButtonPropertyRules = /*#__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, "isHideCaption", {
|
|
90
90
|
type: 'boolean'
|
|
91
91
|
}), _define_property(_this, "labelPosition", {
|
|
@@ -97,7 +97,7 @@ var TextOcrButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
97
97
|
}), _define_property(_this, "ocrType", {
|
|
98
98
|
type: 'string',
|
|
99
99
|
required: true,
|
|
100
|
-
message:
|
|
100
|
+
message: getLocaleText('CMD.pleaseSelectOcrType', null, '请选择识别类型')
|
|
101
101
|
}), _define_property(_this, "fillList", {
|
|
102
102
|
type: 'array',
|
|
103
103
|
validator: function validator(rule, value, callback) {
|
|
@@ -105,7 +105,7 @@ var TextOcrButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
105
105
|
return !item.controlId;
|
|
106
106
|
});
|
|
107
107
|
if (isEveryEmpty) {
|
|
108
|
-
callback(
|
|
108
|
+
callback(getLocaleText('CMD.pleaseSelectAtLeastOneFieldToFillIn', null, '请至少选择一个字段进行填充'));
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
111
|
callback();
|
|
@@ -113,7 +113,7 @@ var TextOcrButtonPropertyRules = /*#__PURE__*/ function(PropertyRules) {
|
|
|
113
113
|
}), _define_property(_this, "captionTip", {
|
|
114
114
|
type: 'string',
|
|
115
115
|
required: false,
|
|
116
|
-
message:
|
|
116
|
+
message: getLocaleText('CMD.pleaseEnterCaptionTip', null, '请输入气泡提示语')
|
|
117
117
|
});
|
|
118
118
|
if (props.isShowCaptionTip) {
|
|
119
119
|
_this.captionTip.required = true;
|
|
@@ -87,7 +87,7 @@ function _is_native_reflect_construct() {
|
|
|
87
87
|
import { DesignerControl, COMMON_SETTING_TYPE } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import TitleProperty from './property';
|
|
89
89
|
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
90
|
-
import {
|
|
90
|
+
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
91
91
|
var TitleControl = /*#__PURE__*/ function(DesignerControl) {
|
|
92
92
|
"use strict";
|
|
93
93
|
_inherits(TitleControl, DesignerControl);
|
|
@@ -104,7 +104,7 @@ var TitleControl = /*#__PURE__*/ function(DesignerControl) {
|
|
|
104
104
|
{
|
|
105
105
|
key: "controlName",
|
|
106
106
|
get: function get() {
|
|
107
|
-
return
|
|
107
|
+
return getLocaleText('CMD.title', null, '标题组件');
|
|
108
108
|
}
|
|
109
109
|
},
|
|
110
110
|
{
|