@luck-design-biz/luckda 1.0.1-5 → 1.0.1-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.
- package/es/components/LdGridForm/index.js +6 -0
- package/es/lowcode/engine/meta/table.props.json +1 -1
- package/es/lowcode/view/lc-components/Table/index.js +2 -1
- package/es/lowcode/view/lc-components/Table/meta.json +1 -1
- package/lib/components/LdGridForm/index.js +6 -0
- package/lib/lowcode/engine/meta/table.props.json +1 -1
- package/lib/lowcode/view/lc-components/Table/index.js +2 -1
- package/lib/lowcode/view/lc-components/Table/meta.json +1 -1
- package/package.json +1 -1
|
@@ -83,6 +83,12 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
|
83
83
|
customColumn.mode = 'form';
|
|
84
84
|
} else if (!(col !== null && col !== void 0 && col.isShowInForm) && col !== null && col !== void 0 && col.isShowInGrid) {
|
|
85
85
|
customColumn.mode = 'grid';
|
|
86
|
+
customColumn.editable = false;
|
|
87
|
+
customColumn.formItemProps = function () {
|
|
88
|
+
return {
|
|
89
|
+
readOnly: true
|
|
90
|
+
};
|
|
91
|
+
};
|
|
86
92
|
}
|
|
87
93
|
if (col.isReadOnly) customColumn = _objectSpread(_objectSpread({}, customColumn), {}, {
|
|
88
94
|
editable: false,
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"default": {
|
|
169
169
|
"todoList": []
|
|
170
170
|
},
|
|
171
|
-
"defaultCode": "function onBatchOperationsClick(key, selectedRows) {\n\n}",
|
|
171
|
+
"defaultCode": "function onBatchOperationsClick(key, selectedRows, cb) {\n\n}",
|
|
172
172
|
"suppressDisplay": true,
|
|
173
173
|
"suppressMax": true,
|
|
174
174
|
"suppressMore": true,
|
|
@@ -338,12 +338,13 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
338
338
|
resource: action.serial
|
|
339
339
|
};
|
|
340
340
|
}),
|
|
341
|
-
onBatchOperationsClick: function onBatchOperationsClick(key, selectedRows) {
|
|
341
|
+
onBatchOperationsClick: function onBatchOperationsClick(key, selectedRows, cb) {
|
|
342
342
|
var todoListById = keyBy(bantchActions.todoList, 'id');
|
|
343
343
|
var doAction = function doAction() {
|
|
344
344
|
ctx.doAction(todoListById[key].actionPool, {
|
|
345
345
|
key: key,
|
|
346
346
|
selectedRows: selectedRows,
|
|
347
|
+
cb: cb,
|
|
347
348
|
datasetCode: dataset.code
|
|
348
349
|
});
|
|
349
350
|
};
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"default": {
|
|
169
169
|
"todoList": []
|
|
170
170
|
},
|
|
171
|
-
"defaultCode": "function onBatchOperationsClick(key, selectedRows) {\n\n}",
|
|
171
|
+
"defaultCode": "function onBatchOperationsClick(key, selectedRows, cb) {\n\n}",
|
|
172
172
|
"suppressDisplay": true,
|
|
173
173
|
"suppressMax": true,
|
|
174
174
|
"suppressMore": true,
|
|
@@ -91,6 +91,12 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
|
91
91
|
customColumn.mode = 'form';
|
|
92
92
|
} else if (!(col !== null && col !== void 0 && col.isShowInForm) && col !== null && col !== void 0 && col.isShowInGrid) {
|
|
93
93
|
customColumn.mode = 'grid';
|
|
94
|
+
customColumn.editable = false;
|
|
95
|
+
customColumn.formItemProps = function () {
|
|
96
|
+
return {
|
|
97
|
+
readOnly: true
|
|
98
|
+
};
|
|
99
|
+
};
|
|
94
100
|
}
|
|
95
101
|
if (col.isReadOnly) customColumn = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, customColumn), {}, {
|
|
96
102
|
editable: false,
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"default": {
|
|
169
169
|
"todoList": []
|
|
170
170
|
},
|
|
171
|
-
"defaultCode": "function onBatchOperationsClick(key, selectedRows) {\n\n}",
|
|
171
|
+
"defaultCode": "function onBatchOperationsClick(key, selectedRows, cb) {\n\n}",
|
|
172
172
|
"suppressDisplay": true,
|
|
173
173
|
"suppressMax": true,
|
|
174
174
|
"suppressMore": true,
|
|
@@ -346,12 +346,13 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
346
346
|
resource: action.serial
|
|
347
347
|
};
|
|
348
348
|
}),
|
|
349
|
-
onBatchOperationsClick: function onBatchOperationsClick(key, selectedRows) {
|
|
349
|
+
onBatchOperationsClick: function onBatchOperationsClick(key, selectedRows, cb) {
|
|
350
350
|
var todoListById = (0, _lodash.keyBy)(bantchActions.todoList, 'id');
|
|
351
351
|
var doAction = function doAction() {
|
|
352
352
|
ctx.doAction(todoListById[key].actionPool, {
|
|
353
353
|
key: key,
|
|
354
354
|
selectedRows: selectedRows,
|
|
355
|
+
cb: cb,
|
|
355
356
|
datasetCode: dataset.code
|
|
356
357
|
});
|
|
357
358
|
};
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"default": {
|
|
169
169
|
"todoList": []
|
|
170
170
|
},
|
|
171
|
-
"defaultCode": "function onBatchOperationsClick(key, selectedRows) {\n\n}",
|
|
171
|
+
"defaultCode": "function onBatchOperationsClick(key, selectedRows, cb) {\n\n}",
|
|
172
172
|
"suppressDisplay": true,
|
|
173
173
|
"suppressMax": true,
|
|
174
174
|
"suppressMore": true,
|