@byteluck-fe/model-driven-controls 2.7.0-alpha.1 → 2.7.0-alpha.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/index.js +9 -3
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +128 -0
- package/dist/esm/layoutControls/GridLayoutContainer/index.js +11 -0
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +90 -0
- package/dist/esm/layoutControls/GridLayoutContainer/runtime.js +110 -0
- package/dist/esm/layoutControls/GridLayoutContainer/types.js +0 -0
- package/dist/esm/layoutControls/index.js +1 -0
- package/dist/esm/wrapControls/GridWrap/designer.js +8 -2
- package/dist/esm/wrapControls/GridWrap/index.js +7 -1
- package/dist/esm/wrapControls/GridWrap/runtime.js +7 -1
- package/dist/esm/wrapControls/GridWrap/setting.js +30 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/layoutControls/GridLayoutContainer/designer.d.ts +13 -0
- package/dist/types/layoutControls/GridLayoutContainer/index.d.ts +12 -0
- package/dist/types/layoutControls/GridLayoutContainer/property.d.ts +8 -0
- package/dist/types/layoutControls/GridLayoutContainer/runtime.d.ts +10 -0
- package/dist/types/layoutControls/GridLayoutContainer/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/GridWrap/designer.d.ts +2 -0
- package/dist/types/wrapControls/GridWrap/runtime.d.ts +1 -2
- package/package.json +5 -5
- package/dist/esm/wrapControls/GridWrap/Setting.js +0 -49
- /package/dist/types/wrapControls/GridWrap/{Setting.d.ts → setting.d.ts} +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
+
* @Date: 2022-12-01 14:40:30
|
|
4
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
+
* @LastEditTime: 2023-08-08 21:46:12
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/index.ts
|
|
7
|
+
*/ import * as baseControls from "./baseControls";
|
|
2
8
|
import * as formControls from "./formControls";
|
|
3
9
|
import * as layoutControls from "./layoutControls";
|
|
4
10
|
import * as listControls from "./listControls";
|
|
5
11
|
import * as columnControls from "./columnControls";
|
|
6
12
|
import * as searchControls from "./searchControls";
|
|
7
|
-
import * as wrapControls from "./wrapControls
|
|
13
|
+
import * as wrapControls from "./wrapControls";
|
|
8
14
|
export { baseControls, formControls, layoutControls, listControls, columnControls, searchControls, wrapControls, };
|
|
9
15
|
export * from "./baseControls";
|
|
10
16
|
export * from "./formControls";
|
|
@@ -14,4 +20,4 @@ export * from "./columnControls";
|
|
|
14
20
|
export * from "./searchControls";
|
|
15
21
|
export * from "./type";
|
|
16
22
|
export * from "./framework";
|
|
17
|
-
export * from "./wrapControls
|
|
23
|
+
export * from "./wrapControls";
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
function _assertThisInitialized(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 _classCallCheck(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _defineProperties(target, props) {
|
|
13
|
+
for(var i = 0; i < props.length; i++){
|
|
14
|
+
var descriptor = props[i];
|
|
15
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16
|
+
descriptor.configurable = true;
|
|
17
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
18
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
|
+
return Constructor;
|
|
25
|
+
}
|
|
26
|
+
function _getPrototypeOf(o) {
|
|
27
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
28
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
29
|
+
};
|
|
30
|
+
return _getPrototypeOf(o);
|
|
31
|
+
}
|
|
32
|
+
function _inherits(subClass, superClass) {
|
|
33
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
34
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
35
|
+
}
|
|
36
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
37
|
+
constructor: {
|
|
38
|
+
value: subClass,
|
|
39
|
+
writable: true,
|
|
40
|
+
configurable: true
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
44
|
+
}
|
|
45
|
+
function _possibleConstructorReturn(self, call) {
|
|
46
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
47
|
+
return call;
|
|
48
|
+
}
|
|
49
|
+
return _assertThisInitialized(self);
|
|
50
|
+
}
|
|
51
|
+
function _setPrototypeOf(o, p) {
|
|
52
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
53
|
+
o.__proto__ = p;
|
|
54
|
+
return o;
|
|
55
|
+
};
|
|
56
|
+
return _setPrototypeOf(o, p);
|
|
57
|
+
}
|
|
58
|
+
var _typeof = function(obj) {
|
|
59
|
+
"@swc/helpers - typeof";
|
|
60
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
61
|
+
};
|
|
62
|
+
function _isNativeReflectConstruct() {
|
|
63
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
64
|
+
if (Reflect.construct.sham) return false;
|
|
65
|
+
if (typeof Proxy === "function") return true;
|
|
66
|
+
try {
|
|
67
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
return true;
|
|
69
|
+
} catch (e) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function _createSuper(Derived) {
|
|
74
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
75
|
+
return function _createSuperInternal() {
|
|
76
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
77
|
+
if (hasNativeReflectConstruct) {
|
|
78
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
79
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
80
|
+
} else {
|
|
81
|
+
result = Super.apply(this, arguments);
|
|
82
|
+
}
|
|
83
|
+
return _possibleConstructorReturn(this, result);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
import { CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
|
|
87
|
+
import { DesignerLayoutControl } from "@byteluck-fe/model-driven-core";
|
|
88
|
+
import GridLayoutContainerControlProperty from "./property";
|
|
89
|
+
var GridLayoutContainerControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
90
|
+
"use strict";
|
|
91
|
+
_inherits(GridLayoutContainerControl, DesignerLayoutControl);
|
|
92
|
+
var _super = _createSuper(GridLayoutContainerControl);
|
|
93
|
+
function GridLayoutContainerControl(props) {
|
|
94
|
+
_classCallCheck(this, GridLayoutContainerControl);
|
|
95
|
+
var _this;
|
|
96
|
+
_this = _super.call(this, props);
|
|
97
|
+
_this.props = new GridLayoutContainerControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
98
|
+
return _this;
|
|
99
|
+
}
|
|
100
|
+
_createClass(GridLayoutContainerControl, null, [
|
|
101
|
+
{
|
|
102
|
+
key: "controlName",
|
|
103
|
+
get: function get() {
|
|
104
|
+
return "自适应换行布局";
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
key: "controlType",
|
|
109
|
+
get: function get() {
|
|
110
|
+
return "grid-layout-container";
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
key: "controlIcon",
|
|
115
|
+
get: function get() {
|
|
116
|
+
return "AdvancedContainer";
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]);
|
|
120
|
+
return GridLayoutContainerControl;
|
|
121
|
+
}(DesignerLayoutControl);
|
|
122
|
+
GridLayoutContainerControl.excludes = [
|
|
123
|
+
CONTROL_TYPE.GRID_LAYOUT_CONTAINER,
|
|
124
|
+
CONTROL_TYPE.CARD_GROUP,
|
|
125
|
+
CONTROL_TYPE.TAB
|
|
126
|
+
];
|
|
127
|
+
export default GridLayoutContainerControl;
|
|
128
|
+
export { GridLayoutContainerControl as DesignerColControl };
|
|
@@ -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,90 @@
|
|
|
1
|
+
function _assertThisInitialized(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 _classCallCheck(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _getPrototypeOf(o) {
|
|
13
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
14
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
15
|
+
};
|
|
16
|
+
return _getPrototypeOf(o);
|
|
17
|
+
}
|
|
18
|
+
function _inherits(subClass, superClass) {
|
|
19
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
20
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
21
|
+
}
|
|
22
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
23
|
+
constructor: {
|
|
24
|
+
value: subClass,
|
|
25
|
+
writable: true,
|
|
26
|
+
configurable: true
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
30
|
+
}
|
|
31
|
+
function _possibleConstructorReturn(self, call) {
|
|
32
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
33
|
+
return call;
|
|
34
|
+
}
|
|
35
|
+
return _assertThisInitialized(self);
|
|
36
|
+
}
|
|
37
|
+
function _setPrototypeOf(o, p) {
|
|
38
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
39
|
+
o.__proto__ = p;
|
|
40
|
+
return o;
|
|
41
|
+
};
|
|
42
|
+
return _setPrototypeOf(o, p);
|
|
43
|
+
}
|
|
44
|
+
var _typeof = function(obj) {
|
|
45
|
+
"@swc/helpers - typeof";
|
|
46
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
47
|
+
};
|
|
48
|
+
function _isNativeReflectConstruct() {
|
|
49
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
50
|
+
if (Reflect.construct.sham) return false;
|
|
51
|
+
if (typeof Proxy === "function") return true;
|
|
52
|
+
try {
|
|
53
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
54
|
+
return true;
|
|
55
|
+
} catch (e) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function _createSuper(Derived) {
|
|
60
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
61
|
+
return function _createSuperInternal() {
|
|
62
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
63
|
+
if (hasNativeReflectConstruct) {
|
|
64
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
65
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
66
|
+
} else {
|
|
67
|
+
result = Super.apply(this, arguments);
|
|
68
|
+
}
|
|
69
|
+
return _possibleConstructorReturn(this, result);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
import { LayoutControlProperty } from "@byteluck-fe/model-driven-core";
|
|
73
|
+
var GridLayoutContainerControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
74
|
+
"use strict";
|
|
75
|
+
_inherits(GridLayoutContainerControlProperty, LayoutControlProperty);
|
|
76
|
+
var _super = _createSuper(GridLayoutContainerControlProperty);
|
|
77
|
+
function GridLayoutContainerControlProperty(props) {
|
|
78
|
+
_classCallCheck(this, GridLayoutContainerControlProperty);
|
|
79
|
+
var _this;
|
|
80
|
+
_this = _super.call(this, props);
|
|
81
|
+
var _props_minWidth;
|
|
82
|
+
_this.minWidth = (_props_minWidth = props === null || props === void 0 ? void 0 : props.minWidth) !== null && _props_minWidth !== void 0 ? _props_minWidth : 30;
|
|
83
|
+
var _props_gap;
|
|
84
|
+
_this.gap = (_props_gap = props === null || props === void 0 ? void 0 : props.gap) !== null && _props_gap !== void 0 ? _props_gap : 10;
|
|
85
|
+
return _this;
|
|
86
|
+
}
|
|
87
|
+
return GridLayoutContainerControlProperty;
|
|
88
|
+
}(LayoutControlProperty);
|
|
89
|
+
export default GridLayoutContainerControlProperty;
|
|
90
|
+
export { GridLayoutContainerControlProperty };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
function _assertThisInitialized(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 _classCallCheck(instance, Constructor) {
|
|
8
|
+
if (!(instance instanceof Constructor)) {
|
|
9
|
+
throw new TypeError("Cannot call a class as a function");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _defineProperties(target, props) {
|
|
13
|
+
for(var i = 0; i < props.length; i++){
|
|
14
|
+
var descriptor = props[i];
|
|
15
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
16
|
+
descriptor.configurable = true;
|
|
17
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
18
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
22
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
23
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
24
|
+
return Constructor;
|
|
25
|
+
}
|
|
26
|
+
function _getPrototypeOf(o) {
|
|
27
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
28
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
29
|
+
};
|
|
30
|
+
return _getPrototypeOf(o);
|
|
31
|
+
}
|
|
32
|
+
function _inherits(subClass, superClass) {
|
|
33
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
34
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
35
|
+
}
|
|
36
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
37
|
+
constructor: {
|
|
38
|
+
value: subClass,
|
|
39
|
+
writable: true,
|
|
40
|
+
configurable: true
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
44
|
+
}
|
|
45
|
+
function _possibleConstructorReturn(self, call) {
|
|
46
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
47
|
+
return call;
|
|
48
|
+
}
|
|
49
|
+
return _assertThisInitialized(self);
|
|
50
|
+
}
|
|
51
|
+
function _setPrototypeOf(o, p) {
|
|
52
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
53
|
+
o.__proto__ = p;
|
|
54
|
+
return o;
|
|
55
|
+
};
|
|
56
|
+
return _setPrototypeOf(o, p);
|
|
57
|
+
}
|
|
58
|
+
var _typeof = function(obj) {
|
|
59
|
+
"@swc/helpers - typeof";
|
|
60
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
61
|
+
};
|
|
62
|
+
function _isNativeReflectConstruct() {
|
|
63
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
64
|
+
if (Reflect.construct.sham) return false;
|
|
65
|
+
if (typeof Proxy === "function") return true;
|
|
66
|
+
try {
|
|
67
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
+
return true;
|
|
69
|
+
} catch (e) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function _createSuper(Derived) {
|
|
74
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
75
|
+
return function _createSuperInternal() {
|
|
76
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
77
|
+
if (hasNativeReflectConstruct) {
|
|
78
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
79
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
80
|
+
} else {
|
|
81
|
+
result = Super.apply(this, arguments);
|
|
82
|
+
}
|
|
83
|
+
return _possibleConstructorReturn(this, result);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
import { RuntimeLayoutControl } from "@byteluck-fe/model-driven-core";
|
|
87
|
+
import GridLayoutContainerControlProperty from "./property";
|
|
88
|
+
var GridLayoutContainerControl = /*#__PURE__*/ function(RuntimeLayoutControl) {
|
|
89
|
+
"use strict";
|
|
90
|
+
_inherits(GridLayoutContainerControl, RuntimeLayoutControl);
|
|
91
|
+
var _super = _createSuper(GridLayoutContainerControl);
|
|
92
|
+
function GridLayoutContainerControl(props) {
|
|
93
|
+
_classCallCheck(this, GridLayoutContainerControl);
|
|
94
|
+
var _this;
|
|
95
|
+
_this = _super.call(this, props);
|
|
96
|
+
_this.props = new GridLayoutContainerControlProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
97
|
+
return _this;
|
|
98
|
+
}
|
|
99
|
+
_createClass(GridLayoutContainerControl, null, [
|
|
100
|
+
{
|
|
101
|
+
key: "controlType",
|
|
102
|
+
get: function get() {
|
|
103
|
+
return "grid-layout-container";
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
]);
|
|
107
|
+
return GridLayoutContainerControl;
|
|
108
|
+
}(RuntimeLayoutControl);
|
|
109
|
+
export default GridLayoutContainerControl;
|
|
110
|
+
export { GridLayoutContainerControl as RuntimeGridContainerControlontrol };
|
|
File without changes
|
|
@@ -6,6 +6,7 @@ export { default as CardGroup } from "./CardGroup";
|
|
|
6
6
|
export { default as SubTableColumn } from "./SubTableColumn";
|
|
7
7
|
export { default as SubTableRow } from "./SubTableRow";
|
|
8
8
|
export { default as GridTableColumn } from "./GridTableColumn";
|
|
9
|
+
export { default as GridLayoutContainer } from "./GridLayoutContainer";
|
|
9
10
|
export { default as Tab } from "./Tab";
|
|
10
11
|
export { default as TabPane } from "./TabPane";
|
|
11
12
|
export { default as Toolbox } from "./Toolbox";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
3
|
* @Date: 2023-08-08 11:13:49
|
|
4
4
|
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
-
* @LastEditTime: 2023-08-
|
|
5
|
+
* @LastEditTime: 2023-08-09 11:26:04
|
|
6
6
|
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridWrap/designer.ts
|
|
7
7
|
*/ function _assertThisInitialized(self) {
|
|
8
8
|
if (self === void 0) {
|
|
@@ -90,13 +90,18 @@ function _createSuper(Derived) {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
import { DesignerWrapControl } from "@byteluck-fe/model-driven-core";
|
|
93
|
+
import GridWrapProperty from "./property";
|
|
94
|
+
import setting from "./setting";
|
|
93
95
|
var GridWrapControl = /*#__PURE__*/ function(DesignerWrapControl) {
|
|
94
96
|
"use strict";
|
|
95
97
|
_inherits(GridWrapControl, DesignerWrapControl);
|
|
96
98
|
var _super = _createSuper(GridWrapControl);
|
|
97
99
|
function GridWrapControl(props) {
|
|
98
100
|
_classCallCheck(this, GridWrapControl);
|
|
99
|
-
|
|
101
|
+
var _this;
|
|
102
|
+
_this = _super.call(this, props);
|
|
103
|
+
_this.props = new GridWrapProperty(props === null || props === void 0 ? void 0 : props.props);
|
|
104
|
+
return _this;
|
|
100
105
|
}
|
|
101
106
|
_createClass(GridWrapControl, null, [
|
|
102
107
|
{
|
|
@@ -120,5 +125,6 @@ var GridWrapControl = /*#__PURE__*/ function(DesignerWrapControl) {
|
|
|
120
125
|
]);
|
|
121
126
|
return GridWrapControl;
|
|
122
127
|
}(DesignerWrapControl);
|
|
128
|
+
GridWrapControl.setting = setting;
|
|
123
129
|
export default GridWrapControl;
|
|
124
130
|
export { GridWrapControl as DesignerGridWrapControl };
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* @Author: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
3
|
+
* @Date: 2023-08-08 11:09:34
|
|
4
|
+
* @LastEditors: zhaoxiaoyang zhaoxiaoyang@byteluck.com
|
|
5
|
+
* @LastEditTime: 2023-08-09 11:02:28
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridWrap/index.ts
|
|
7
|
+
*/ import Designer from "./designer";
|
|
2
8
|
import Runtime from "./runtime";
|
|
3
9
|
import Property from "./property";
|
|
4
10
|
export default {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
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:09:36
|
|
6
|
+
* @FilePath: /model-driven/packages/controls/src/wrapControls/gridWrap/runtime.ts
|
|
7
|
+
*/ function _assertThisInitialized(self) {
|
|
2
8
|
if (self === void 0) {
|
|
3
9
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
10
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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/gridWrap/Setting.ts
|
|
7
|
+
*/ import { defineInstance } from "@byteluck-fe/model-driven-settings";
|
|
8
|
+
export default defineInstance({
|
|
9
|
+
fields: [
|
|
10
|
+
{
|
|
11
|
+
key: "wholeRow",
|
|
12
|
+
type: "boolean",
|
|
13
|
+
component: "switch",
|
|
14
|
+
label: "充满整行"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
groups: [
|
|
18
|
+
{
|
|
19
|
+
type: "tab",
|
|
20
|
+
title: "属性",
|
|
21
|
+
items: [
|
|
22
|
+
{
|
|
23
|
+
items: [
|
|
24
|
+
"wholeRow"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
});
|