@byteluck-fe/model-driven-controls 6.2.0-1-beta.2 → 6.2.0-1-beta.4
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.
|
@@ -86,7 +86,6 @@ function _is_native_reflect_construct() {
|
|
|
86
86
|
}
|
|
87
87
|
import { DesignerLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
88
88
|
import TableLayoutControlProperty from './property';
|
|
89
|
-
import { DesignerRowControl } from '../Row';
|
|
90
89
|
var TableLayoutControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
91
90
|
"use strict";
|
|
92
91
|
_inherits(TableLayoutControl, DesignerLayoutControl);
|
|
@@ -97,11 +96,6 @@ var TableLayoutControl = /*#__PURE__*/ function(DesignerLayoutControl) {
|
|
|
97
96
|
props
|
|
98
97
|
]), _define_property(_this, "props", void 0);
|
|
99
98
|
_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
99
|
return _this;
|
|
106
100
|
}
|
|
107
101
|
_create_class(TableLayoutControl, null, [
|
|
@@ -82,7 +82,8 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
82
82
|
]), _define_property(_this, "rowCount", void 0 //行数
|
|
83
83
|
), _define_property(_this, "colCount", void 0 //列数
|
|
84
84
|
), _define_property(_this, "labelPosition", void 0 //标题布局
|
|
85
|
-
), _define_property(_this, "
|
|
85
|
+
), _define_property(_this, "colWidthType", void 0 //列宽分配, average 平均分配,custom为自定义分配
|
|
86
|
+
), _define_property(_this, "colWidth", void 0 //列宽分配以冒号分割, 12:12为自定义分配
|
|
86
87
|
), _define_property(_this, "labelWidth", void 0 // label宽度
|
|
87
88
|
);
|
|
88
89
|
var _props_rowCount;
|
|
@@ -91,8 +92,10 @@ var TableLayoutControlProperty = /*#__PURE__*/ function(LayoutControlProperty) {
|
|
|
91
92
|
_this.colCount = (_props_colCount = props === null || props === void 0 ? void 0 : props.colCount) !== null && _props_colCount !== void 0 ? _props_colCount : 2;
|
|
92
93
|
var _props_labelPosition;
|
|
93
94
|
_this.labelPosition = (_props_labelPosition = props === null || props === void 0 ? void 0 : props.labelPosition) !== null && _props_labelPosition !== void 0 ? _props_labelPosition : 'left';
|
|
95
|
+
var _props_colWidthType;
|
|
96
|
+
_this.colWidthType = (_props_colWidthType = props === null || props === void 0 ? void 0 : props.colWidthType) !== null && _props_colWidthType !== void 0 ? _props_colWidthType : 'average';
|
|
94
97
|
var _props_colWidth;
|
|
95
|
-
_this.colWidth = (_props_colWidth = props === null || props === void 0 ? void 0 : props.colWidth) !== null && _props_colWidth !== void 0 ? _props_colWidth : '
|
|
98
|
+
_this.colWidth = (_props_colWidth = props === null || props === void 0 ? void 0 : props.colWidth) !== null && _props_colWidth !== void 0 ? _props_colWidth : '12:12';
|
|
96
99
|
var _props_labelWidth;
|
|
97
100
|
_this.labelWidth = (_props_labelWidth = props === null || props === void 0 ? void 0 : props.labelWidth) !== null && _props_labelWidth !== void 0 ? _props_labelWidth : '';
|
|
98
101
|
return _this;
|