@byteluck-fe/model-driven-controls 2.0.7-beta.0 → 2.0.7
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.
|
@@ -71,41 +71,6 @@ function _createSuper(Derived) {
|
|
|
71
71
|
}
|
|
72
72
|
import { ColumnControlProperty, AutoWidth } from "@byteluck-fe/model-driven-core";
|
|
73
73
|
import { DesignerOperationColumnControl } from "./designer";
|
|
74
|
-
//qiyu 因为都是自定义的了,无法在模型中定义必填校验了
|
|
75
|
-
// class OperationColumnControlPropertyRules extends ColumnControlPropertyRules {
|
|
76
|
-
// public check: RuleItem[] = [
|
|
77
|
-
// {
|
|
78
|
-
// type: 'object',
|
|
79
|
-
// message: RulesMessage.getMessage('isNotObject'),
|
|
80
|
-
// },
|
|
81
|
-
// ]
|
|
82
|
-
// public edit: RuleItem[] = [
|
|
83
|
-
// {
|
|
84
|
-
// type: 'object',
|
|
85
|
-
// message: RulesMessage.getMessage('isNotObject'),
|
|
86
|
-
// },
|
|
87
|
-
// ]
|
|
88
|
-
// constructor(props: OperationColumnControlProperty) {
|
|
89
|
-
// super(props)
|
|
90
|
-
// const getRules = () =>
|
|
91
|
-
// ({
|
|
92
|
-
// type: 'object',
|
|
93
|
-
// fields: {
|
|
94
|
-
// formKey: {
|
|
95
|
-
// type: 'string',
|
|
96
|
-
// required: true,
|
|
97
|
-
// message: RulesMessage.getMessage('pleaseEnterForm'),
|
|
98
|
-
// },
|
|
99
|
-
// },
|
|
100
|
-
// } as RuleItem)
|
|
101
|
-
// if (props.check.isShow) {
|
|
102
|
-
// this.check.push(getRules())
|
|
103
|
-
// }
|
|
104
|
-
// if (props.edit.isShow) {
|
|
105
|
-
// this.edit.push(getRules())
|
|
106
|
-
// }
|
|
107
|
-
// }
|
|
108
|
-
// }
|
|
109
74
|
var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlProperty) {
|
|
110
75
|
"use strict";
|
|
111
76
|
_inherits(OperationColumnControlProperty, ColumnControlProperty);
|
|
@@ -117,7 +82,6 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
117
82
|
var _props_fixed;
|
|
118
83
|
_this.fixed = (_props_fixed = props === null || props === void 0 ? void 0 : props.fixed) !== null && _props_fixed !== void 0 ? _props_fixed : "right";
|
|
119
84
|
_this.widthType = "auto";
|
|
120
|
-
var _props_autoWidth;
|
|
121
85
|
// this.check = new OperationItem(
|
|
122
86
|
// props?.check ?? {
|
|
123
87
|
// content: '查看',
|
|
@@ -133,7 +97,7 @@ var OperationColumnControlProperty = /*#__PURE__*/ function(ColumnControlPropert
|
|
|
133
97
|
// props?.delete ?? { content: '删除', type: 'delete', isShow: false }
|
|
134
98
|
// )
|
|
135
99
|
// this.custom = (props?.custom ?? []).map((item) => new OperationItem(item))
|
|
136
|
-
_this.autoWidth = (
|
|
100
|
+
_this.autoWidth = new AutoWidth(props === null || props === void 0 ? void 0 : props.autoWidth);
|
|
137
101
|
var _props_caption;
|
|
138
102
|
_this.caption = (_props_caption = props === null || props === void 0 ? void 0 : props.caption) !== null && _props_caption !== void 0 ? _props_caption : DesignerOperationColumnControl.controlName;
|
|
139
103
|
var _props_showType;
|