@byteluck-fe/model-driven-upgrade 2.8.1-alpha.12-e → 2.8.1-alpha.12-f
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/upgrade/v3_1.js +17 -6
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/esm/upgrade/v3_1.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @Autor: SuperLucky-Q
|
|
4
4
|
* @Date: 2023-02-16 14:45:22
|
|
5
5
|
* @LastEditors: SuperLuckyqi
|
|
6
|
-
* @LastEditTime: 2023-12-
|
|
6
|
+
* @LastEditTime: 2023-12-22 08:42:05
|
|
7
7
|
*/ function _define_property(obj, key, value) {
|
|
8
8
|
if (key in obj) {
|
|
9
9
|
Object.defineProperty(obj, key, {
|
|
@@ -126,16 +126,16 @@ function conversion(schema, payload) {
|
|
|
126
126
|
key: "child-min-width",
|
|
127
127
|
value: 230
|
|
128
128
|
}
|
|
129
|
-
]), _define_property(_obj, CONTROL_TYPE.OPERATION_COLUMN, [
|
|
130
|
-
{
|
|
131
|
-
key: "limit",
|
|
132
|
-
value: 3
|
|
133
|
-
}
|
|
134
129
|
]), _define_property(_obj, CONTROL_TYPE.IMPORT_RECORD_LIST_BUTTON, [
|
|
135
130
|
{
|
|
136
131
|
key: "template-type",
|
|
137
132
|
value: "system"
|
|
138
133
|
}
|
|
134
|
+
]), _define_property(_obj, CONTROL_TYPE.OPERATION_COLUMN, [
|
|
135
|
+
{
|
|
136
|
+
key: "limit",
|
|
137
|
+
value: 3
|
|
138
|
+
}
|
|
139
139
|
]), _obj);
|
|
140
140
|
if (schema.type in addKeysDefaultValueMapping) {
|
|
141
141
|
addKeysDefaultValueMapping[schema.type].forEach(function(item) {
|
|
@@ -144,6 +144,17 @@ function conversion(schema, payload) {
|
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
+
if (schema.type === CONTROL_TYPE.GRID_TABLE) {
|
|
148
|
+
var gridTableInstance = schema;
|
|
149
|
+
gridTableInstance.props.headers.forEach(function(item) {
|
|
150
|
+
if (item.type === CONTROL_TYPE.OPERATION_COLUMN) {
|
|
151
|
+
var operationColumnInstance = item;
|
|
152
|
+
if (operationColumnInstance.props.limit === undefined) {
|
|
153
|
+
operationColumnInstance.props.limit = 3;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
147
158
|
//将操作项按钮的完成时事件转成点击时事件
|
|
148
159
|
conversionListener(payload);
|
|
149
160
|
return schema;
|