@byteluck-fe/model-driven-controls 6.1.0-1-beta.4 → 6.2.0-1-beta.2
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/formControls/Employee2/property.js +1 -2
- package/dist/esm/formControls/Image/property.js +3 -6
- package/dist/esm/framework.js +5 -10
- package/dist/esm/layoutControls/TableLayout/designer.js +153 -0
- package/dist/esm/layoutControls/TableLayout/index.js +11 -0
- package/dist/esm/layoutControls/TableLayout/property.js +103 -0
- package/dist/esm/layoutControls/TableLayout/runtime.js +112 -0
- package/dist/esm/layoutControls/TableLayout/types.js +0 -0
- package/dist/esm/layoutControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/framework.d.ts +19 -19
- package/dist/types/layoutControls/TableLayout/designer.d.ts +13 -0
- package/dist/types/layoutControls/TableLayout/index.d.ts +12 -0
- package/dist/types/layoutControls/TableLayout/property.d.ts +11 -0
- package/dist/types/layoutControls/TableLayout/runtime.d.ts +10 -0
- package/dist/types/layoutControls/TableLayout/types.d.ts +0 -0
- package/dist/types/layoutControls/index.d.ts +1 -0
- package/dist/types/type.d.ts +2 -1
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -160,8 +160,7 @@ var Employee2Property = /*#__PURE__*/ function(BaseControlProperty) {
|
|
|
160
160
|
attributes: Employee2Control.controlCustomAttributes
|
|
161
161
|
});
|
|
162
162
|
var _props_datasourceType;
|
|
163
|
-
_this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL //默认内部组织 EXTERNAL 外部组织
|
|
164
|
-
;
|
|
163
|
+
_this.datasourceType = (_props_datasourceType = props === null || props === void 0 ? void 0 : props.datasourceType) !== null && _props_datasourceType !== void 0 ? _props_datasourceType : OrganizeType.INTERNAL; //默认内部组织 EXTERNAL 外部组织
|
|
165
164
|
var _props_insideType;
|
|
166
165
|
_this.insideType = (_props_insideType = props === null || props === void 0 ? void 0 : props.insideType) !== null && _props_insideType !== void 0 ? _props_insideType : InternalType.ADMIN;
|
|
167
166
|
var _props_externalType;
|
|
@@ -97,14 +97,11 @@ var ImageProperty = /*#__PURE__*/ function(AttachmentProperty) {
|
|
|
97
97
|
var _props_placeholder;
|
|
98
98
|
_this.placeholder = (_props_placeholder = props === null || props === void 0 ? void 0 : props.placeholder) !== null && _props_placeholder !== void 0 ? _props_placeholder : getLocaleText('CMD.uploadImg', null, '上传图片');
|
|
99
99
|
var _props_compressTypeCode;
|
|
100
|
-
_this.compressTypeCode = (_props_compressTypeCode = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _props_compressTypeCode !== void 0 ? _props_compressTypeCode : ImageCompressType.NO_COMPRESS // 默认不压缩
|
|
101
|
-
;
|
|
100
|
+
_this.compressTypeCode = (_props_compressTypeCode = props === null || props === void 0 ? void 0 : props.compressTypeCode) !== null && _props_compressTypeCode !== void 0 ? _props_compressTypeCode : ImageCompressType.NO_COMPRESS; // 默认不压缩
|
|
102
101
|
var _props_compressRatio;
|
|
103
|
-
_this.compressRatio = (_props_compressRatio = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _props_compressRatio !== void 0 ? _props_compressRatio : 1 // 默认压缩比例1
|
|
104
|
-
;
|
|
102
|
+
_this.compressRatio = (_props_compressRatio = props === null || props === void 0 ? void 0 : props.compressRatio) !== null && _props_compressRatio !== void 0 ? _props_compressRatio : 1; // 默认压缩比例1
|
|
105
103
|
var _props_maxPixel;
|
|
106
|
-
_this.maxPixel = (_props_maxPixel = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _props_maxPixel !== void 0 ? _props_maxPixel : 1080 // 默认最大像素1080
|
|
107
|
-
;
|
|
104
|
+
_this.maxPixel = (_props_maxPixel = props === null || props === void 0 ? void 0 : props.maxPixel) !== null && _props_maxPixel !== void 0 ? _props_maxPixel : 1080; // 默认最大像素1080
|
|
108
105
|
return _this;
|
|
109
106
|
}
|
|
110
107
|
return ImageProperty;
|
package/dist/esm/framework.js
CHANGED
|
@@ -59,13 +59,10 @@ export var TitleConfigEnum = /*#__PURE__*/ function(TitleConfigEnum) {
|
|
|
59
59
|
]
|
|
60
60
|
};
|
|
61
61
|
_class_call_check(this, LimitDate);
|
|
62
|
-
_define_property(this, "dateConfigType", void 0 // 范围类型
|
|
63
|
-
);
|
|
64
|
-
_define_property(this, "dateLimitType", void 0 // 限制类型
|
|
65
|
-
);
|
|
62
|
+
_define_property(this, "dateConfigType", void 0); // 范围类型
|
|
63
|
+
_define_property(this, "dateLimitType", void 0); // 限制类型
|
|
66
64
|
_define_property(this, "id", void 0);
|
|
67
|
-
_define_property(this, "value", void 0 // 存储值
|
|
68
|
-
);
|
|
65
|
+
_define_property(this, "value", void 0); // 存储值
|
|
69
66
|
this.id = props.id;
|
|
70
67
|
this.dateConfigType = props.dateConfigType;
|
|
71
68
|
this.dateLimitType = props.dateLimitType;
|
|
@@ -378,10 +375,8 @@ export var PrintTemplate = function PrintTemplate(props) {
|
|
|
378
375
|
_class_call_check(this, PrintTemplate);
|
|
379
376
|
_define_property(this, "fileId", void 0);
|
|
380
377
|
_define_property(this, "fileName", void 0);
|
|
381
|
-
_define_property(this, "ruleName", void 0 //规则名称
|
|
382
|
-
);
|
|
383
|
-
_define_property(this, "isDefault", void 0 //是否是默认模板
|
|
384
|
-
);
|
|
378
|
+
_define_property(this, "ruleName", void 0); //规则名称
|
|
379
|
+
_define_property(this, "isDefault", void 0); //是否是默认模板
|
|
385
380
|
_define_property(this, "rules", void 0);
|
|
386
381
|
var _props_fileId;
|
|
387
382
|
this.fileId = (_props_fileId = props === null || props === void 0 ? void 0 : props.fileId) !== null && _props_fileId !== void 0 ? _props_fileId : '';
|
|
@@ -0,0 +1,153 @@
|
|
|
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 { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import TableLayoutControlProperty from './property';
|
|
89
|
+
import { DesignerRowControl } from '../Row';
|
|
90
|
+
var TableLayoutControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
91
|
+
"use strict";
|
|
92
|
+
_inherits(TableLayoutControl, DesignerLayoutControl);
|
|
93
|
+
function TableLayoutControl(props) {
|
|
94
|
+
_class_call_check(this, TableLayoutControl);
|
|
95
|
+
var _this;
|
|
96
|
+
_this = _call_super(this, TableLayoutControl, [
|
|
97
|
+
props
|
|
98
|
+
]), _define_property(_this, "props", void 0);
|
|
99
|
+
_this.props = new TableLayoutControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
100
|
+
var _props_children;
|
|
101
|
+
_this.children = (_props_children = props === null || props === void 0 ? void 0 : props.children) !== null && _props_children !== void 0 ? _props_children : [
|
|
102
|
+
new DesignerRowControl(),
|
|
103
|
+
new DesignerRowControl()
|
|
104
|
+
];
|
|
105
|
+
return _this;
|
|
106
|
+
}
|
|
107
|
+
_create_class(TableLayoutControl, null, [
|
|
108
|
+
{
|
|
109
|
+
key: "controlName",
|
|
110
|
+
get: function get() {
|
|
111
|
+
return '表格布局';
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
key: "controlIcon",
|
|
116
|
+
get: function get() {
|
|
117
|
+
return 'iconliebiaoxuanze';
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
key: "controlType",
|
|
122
|
+
get: function get() {
|
|
123
|
+
return 'table-layout';
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
]);
|
|
127
|
+
return TableLayoutControl;
|
|
128
|
+
}(DesignerLayoutControl);
|
|
129
|
+
_define_property(TableLayoutControl, "excludes", []);
|
|
130
|
+
_define_property(TableLayoutControl, "setting", [
|
|
131
|
+
{
|
|
132
|
+
key: 'row-count',
|
|
133
|
+
visible: true
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
key: 'col-count',
|
|
137
|
+
visible: true
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
key: 'col-width',
|
|
141
|
+
visible: true
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
key: 'label-position',
|
|
145
|
+
visible: true
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
key: 'label-width',
|
|
149
|
+
visible: true
|
|
150
|
+
}
|
|
151
|
+
]);
|
|
152
|
+
export default TableLayoutControl;
|
|
153
|
+
export { TableLayoutControl as DesignerTableLayoutControl };
|
|
@@ -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,103 @@
|
|
|
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 { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
74
|
+
var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
75
|
+
"use strict";
|
|
76
|
+
_inherits(TableLayoutControlProperty, LayoutControlProperty);
|
|
77
|
+
function TableLayoutControlProperty(props) {
|
|
78
|
+
_class_call_check(this, TableLayoutControlProperty);
|
|
79
|
+
var _this;
|
|
80
|
+
_this = _call_super(this, TableLayoutControlProperty, [
|
|
81
|
+
props
|
|
82
|
+
]), _define_property(_this, "rowCount", void 0 //行数
|
|
83
|
+
), _define_property(_this, "colCount", void 0 //列数
|
|
84
|
+
), _define_property(_this, "labelPosition", void 0 //标题布局
|
|
85
|
+
), _define_property(_this, "colWidth", void 0 //列宽分配, average 平均分配,12:12等为自定义分配
|
|
86
|
+
), _define_property(_this, "labelWidth", void 0 // label宽度
|
|
87
|
+
);
|
|
88
|
+
var _props_rowCount;
|
|
89
|
+
_this.rowCount = (_props_rowCount = props === null || props === void 0 ? void 0 : props.rowCount) !== null && _props_rowCount !== void 0 ? _props_rowCount : 2;
|
|
90
|
+
var _props_colCount;
|
|
91
|
+
_this.colCount = (_props_colCount = props === null || props === void 0 ? void 0 : props.colCount) !== null && _props_colCount !== void 0 ? _props_colCount : 2;
|
|
92
|
+
var _props_labelPosition;
|
|
93
|
+
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'left';
|
|
94
|
+
var _props_colWidth;
|
|
95
|
+
_this.colWidth = (_props_colWidth = props === null || props === void 0 ? void 0 : props.colWidth) !== null && _props_colWidth !== void 0 ? _props_colWidth : 'average';
|
|
96
|
+
var _props_labelWidth;
|
|
97
|
+
_this.labelWidth = (_props_labelWidth = props === null || props === void 0 ? void 0 : props.labelWidth) !== null && _props_labelWidth !== void 0 ? _props_labelWidth : '';
|
|
98
|
+
return _this;
|
|
99
|
+
}
|
|
100
|
+
return TableLayoutControlProperty;
|
|
101
|
+
}(LayoutControlProperty);
|
|
102
|
+
export default TableLayoutControlProperty;
|
|
103
|
+
export { TableLayoutControlProperty };
|
|
@@ -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 { RuntimeLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
88
|
+
import { TableLayoutControlProperty } from './property';
|
|
89
|
+
var TableLayoutControlControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
90
|
+
"use strict";
|
|
91
|
+
_inherits(TableLayoutControlControl, RuntimeLayoutControl);
|
|
92
|
+
function TableLayoutControlControl(props) {
|
|
93
|
+
_class_call_check(this, TableLayoutControlControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _call_super(this, TableLayoutControlControl, [
|
|
96
|
+
props
|
|
97
|
+
]), _define_property(_this, "props", void 0);
|
|
98
|
+
_this.props = new TableLayoutControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
99
|
+
return _this;
|
|
100
|
+
}
|
|
101
|
+
_create_class(TableLayoutControlControl, null, [
|
|
102
|
+
{
|
|
103
|
+
key: "controlType",
|
|
104
|
+
get: function get() {
|
|
105
|
+
return 'table-layout';
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
]);
|
|
109
|
+
return TableLayoutControlControl;
|
|
110
|
+
}(RuntimeLayoutControl);
|
|
111
|
+
export default TableLayoutControlControl;
|
|
112
|
+
export { TableLayoutControlControl as RuntimeGridControl };
|
|
File without changes
|