@byteluck-fe/model-driven-controls 1.8.1-beta.2 → 1.8.1-beta.3
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.
|
@@ -113,11 +113,12 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
113
113
|
function OperationColumnControlProperty(props) {
|
|
114
114
|
_classCallCheck(this, OperationColumnControlProperty);
|
|
115
115
|
var _this;
|
|
116
|
+
var _props_autoWidth;
|
|
116
117
|
_this = _super.call(this, props);
|
|
117
118
|
var _props_fixed;
|
|
118
119
|
_this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : "right";
|
|
119
120
|
_this.widthType = "auto";
|
|
120
|
-
var
|
|
121
|
+
var _props_autoWidth_minWidth;
|
|
121
122
|
// this.check = new OperationItem(
|
|
122
123
|
// props?.check ?? {
|
|
123
124
|
// content: '查看',
|
|
@@ -133,6 +134,8 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
133
134
|
// props?.delete ?? { content: '删除', type: 'delete', isShow: false }
|
|
134
135
|
// )
|
|
135
136
|
// this.custom = (props?.custom ?? []).map((item) => new OperationItem(item))
|
|
137
|
+
_this.autoWidth.minWidth = (_props_autoWidth_minWidth = props === null || props === void 0 ? void 0 : (_props_autoWidth = props.autoWidth) === null || _props_autoWidth === void 0 ? void 0 : _props_autoWidth.minWidth) !== null && _props_autoWidth_minWidth !== void 0 ? _props_autoWidth_minWidth : 84;
|
|
138
|
+
var _props_caption;
|
|
136
139
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerOperationColumnControl.controlName;
|
|
137
140
|
var _props_showType;
|
|
138
141
|
_this.showType = (_props_showType = props === null || props === void 0 ? void 0 : props.showType) !== null && _props_showType !== void 0 ? _props_showType : "icon";
|
|
@@ -91,13 +91,18 @@ var OrderColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
|
91
91
|
function OrderColumnControlProperty(props) {
|
|
92
92
|
_classCallCheck(this, OrderColumnControlProperty);
|
|
93
93
|
var _this;
|
|
94
|
+
var _props_autoWidth, _props_autoWidth1;
|
|
94
95
|
_this = _super.call(this, props);
|
|
95
96
|
var _props_fixed;
|
|
96
97
|
_this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : "left";
|
|
97
98
|
var _props_caption;
|
|
98
99
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerOrderColumnControl.controlName;
|
|
99
100
|
var _props_width;
|
|
100
|
-
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width :
|
|
101
|
+
_this.width = (_props_width = props === null || props === void 0 ? void 0 : props.width) !== null && _props_width !== void 0 ? _props_width : 60;
|
|
102
|
+
var _props_autoWidth_minWidth;
|
|
103
|
+
_this.autoWidth.minWidth = (_props_autoWidth_minWidth = props === null || props === void 0 ? void 0 : (_props_autoWidth = props.autoWidth) === null || _props_autoWidth === void 0 ? void 0 : _props_autoWidth.minWidth) !== null && _props_autoWidth_minWidth !== void 0 ? _props_autoWidth_minWidth : 60;
|
|
104
|
+
var _props_autoWidth_flex;
|
|
105
|
+
_this.autoWidth.flex = (_props_autoWidth_flex = props === null || props === void 0 ? void 0 : (_props_autoWidth1 = props.autoWidth) === null || _props_autoWidth1 === void 0 ? void 0 : _props_autoWidth1.flex) !== null && _props_autoWidth_flex !== void 0 ? _props_autoWidth_flex : 0.4;
|
|
101
106
|
var _props_widthType;
|
|
102
107
|
_this.widthType = (_props_widthType = props === null || props === void 0 ? void 0 : props.widthType) !== null && _props_widthType !== void 0 ? _props_widthType : "px";
|
|
103
108
|
return _this;
|