@byteluck-fe/model-driven-upgrade 2.8.1-beta5 → 2.8.1-beta7
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 +7 -10
- 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-22
|
|
6
|
+
* @LastEditTime: 2023-12-22 09:24:37
|
|
7
7
|
*/ function _define_property(obj, key, value) {
|
|
8
8
|
if (key in obj) {
|
|
9
9
|
Object.defineProperty(obj, key, {
|
|
@@ -131,11 +131,6 @@ function conversion(schema, payload) {
|
|
|
131
131
|
key: "template-type",
|
|
132
132
|
value: "system"
|
|
133
133
|
}
|
|
134
|
-
]), _define_property(_obj, CONTROL_TYPE.OPERATION_COLUMN, [
|
|
135
|
-
{
|
|
136
|
-
key: "limit",
|
|
137
|
-
value: 3
|
|
138
|
-
}
|
|
139
134
|
]), _obj);
|
|
140
135
|
if (schema.type in addKeysDefaultValueMapping) {
|
|
141
136
|
addKeysDefaultValueMapping[schema.type].forEach(function(item) {
|
|
@@ -146,11 +141,13 @@ function conversion(schema, payload) {
|
|
|
146
141
|
}
|
|
147
142
|
if (schema.type === CONTROL_TYPE.GRID_TABLE) {
|
|
148
143
|
var gridTableInstance = schema;
|
|
149
|
-
|
|
144
|
+
schema.props.headers.forEach(function(item) {
|
|
150
145
|
if (item.type === CONTROL_TYPE.OPERATION_COLUMN) {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
146
|
+
if (item.props.limit === undefined) {
|
|
147
|
+
item.props.limit = 3;
|
|
148
|
+
}
|
|
149
|
+
if (item.props.show_type === undefined) {
|
|
150
|
+
item.props.show_type === "icon";
|
|
154
151
|
}
|
|
155
152
|
}
|
|
156
153
|
});
|