@luck-design-biz/luckda 1.0.4-13tl → 1.0.6-13tl
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/lowcode/view/lc-components/Dialog/index.js +7 -8
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +0 -1
- package/es/lowcode/view/lc-components/Table/index.js +3 -2
- package/lib/lowcode/view/lc-components/Dialog/index.js +7 -8
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +0 -1
- package/lib/lowcode/view/lc-components/Table/index.js +3 -2
- package/package.json +1 -1
|
@@ -82,19 +82,18 @@ var LCDialog = function LCDialog(_ref) {
|
|
|
82
82
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
83
83
|
while (1) switch (_context.prev = _context.next) {
|
|
84
84
|
case 0:
|
|
85
|
-
|
|
86
|
-
_context.
|
|
87
|
-
_context.next = 4;
|
|
85
|
+
_context.prev = 0;
|
|
86
|
+
_context.next = 3;
|
|
88
87
|
return ctx.doAction(advance.events.onOk);
|
|
89
|
-
case
|
|
90
|
-
_context.prev =
|
|
88
|
+
case 3:
|
|
89
|
+
_context.prev = 3;
|
|
91
90
|
setLoading(false);
|
|
92
|
-
return _context.finish(
|
|
93
|
-
case
|
|
91
|
+
return _context.finish(3);
|
|
92
|
+
case 6:
|
|
94
93
|
case "end":
|
|
95
94
|
return _context.stop();
|
|
96
95
|
}
|
|
97
|
-
}, _callee, null, [[
|
|
96
|
+
}, _callee, null, [[0,, 3, 6]]);
|
|
98
97
|
})));
|
|
99
98
|
var _footer = useCreation(function () {
|
|
100
99
|
if (isBoolean(footer) && !footer || isObject(footer) && !footer.checked || isObject(footer) && footer.code && !executeCode(ctx, footer.code)) return {
|
|
@@ -49,7 +49,6 @@ export var ImportUploadPop = function ImportUploadPop(_ref) {
|
|
|
49
49
|
// 清除进度
|
|
50
50
|
var clearProgress = function clearProgress(batchNo) {
|
|
51
51
|
clearProcess(batchNo).then(function () {
|
|
52
|
-
console.log(options.tableRef);
|
|
53
52
|
options.tableRef && options.tableRef.current && options.tableRef.current.onLdQuery();
|
|
54
53
|
});
|
|
55
54
|
};
|
|
@@ -413,6 +413,7 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
413
413
|
}, [fields, formatDataSource, getDataPath, columnsRewrite, columnsReset, modelParams, draggable]);
|
|
414
414
|
var renderFunctionArea = useCallback(function () {
|
|
415
415
|
var _topActionGroup$todoL;
|
|
416
|
+
var _moduleCode = getLDMetaAttr('moduleCode');
|
|
416
417
|
var resultComp = [];
|
|
417
418
|
if (!!(topActionGroup !== null && topActionGroup !== void 0 && (_topActionGroup$todoL = topActionGroup.todoList) !== null && _topActionGroup$todoL !== void 0 && _topActionGroup$todoL.length)) {
|
|
418
419
|
resultComp.push( /*#__PURE__*/React.createElement(LDActions, _extends({}, topActionGroup, {
|
|
@@ -430,7 +431,7 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
430
431
|
apiUrl = _instanceRef$current$2.apiUrl;
|
|
431
432
|
resultComp.push( /*#__PURE__*/React.createElement(TopUpload, {
|
|
432
433
|
apiUrl: apiUrl,
|
|
433
|
-
moduleCode:
|
|
434
|
+
moduleCode: _moduleCode,
|
|
434
435
|
options: impexp,
|
|
435
436
|
tableRef: instanceRef
|
|
436
437
|
}));
|
|
@@ -441,7 +442,7 @@ var LCTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
441
442
|
_apiUrl = _instanceRef$current$3.apiUrl;
|
|
442
443
|
resultComp.push( /*#__PURE__*/React.createElement(TopExport, {
|
|
443
444
|
apiUrl: _apiUrl,
|
|
444
|
-
moduleCode:
|
|
445
|
+
moduleCode: _moduleCode,
|
|
445
446
|
options: impexp,
|
|
446
447
|
tableRef: instanceRef
|
|
447
448
|
}));
|
|
@@ -90,19 +90,18 @@ var LCDialog = function LCDialog(_ref) {
|
|
|
90
90
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
91
91
|
while (1) switch (_context.prev = _context.next) {
|
|
92
92
|
case 0:
|
|
93
|
-
|
|
94
|
-
_context.
|
|
95
|
-
_context.next = 4;
|
|
93
|
+
_context.prev = 0;
|
|
94
|
+
_context.next = 3;
|
|
96
95
|
return ctx.doAction(advance.events.onOk);
|
|
97
|
-
case
|
|
98
|
-
_context.prev =
|
|
96
|
+
case 3:
|
|
97
|
+
_context.prev = 3;
|
|
99
98
|
setLoading(false);
|
|
100
|
-
return _context.finish(
|
|
101
|
-
case
|
|
99
|
+
return _context.finish(3);
|
|
100
|
+
case 6:
|
|
102
101
|
case "end":
|
|
103
102
|
return _context.stop();
|
|
104
103
|
}
|
|
105
|
-
}, _callee, null, [[
|
|
104
|
+
}, _callee, null, [[0,, 3, 6]]);
|
|
106
105
|
})));
|
|
107
106
|
var _footer = (0, _ahooks.useCreation)(function () {
|
|
108
107
|
if ((0, _lodash.isBoolean)(footer) && !footer || (0, _lodash.isObject)(footer) && !footer.checked || (0, _lodash.isObject)(footer) && footer.code && !(0, _helper.executeCode)(ctx, footer.code)) return {
|
|
@@ -57,7 +57,6 @@ var ImportUploadPop = exports.ImportUploadPop = function ImportUploadPop(_ref) {
|
|
|
57
57
|
// 清除进度
|
|
58
58
|
var clearProgress = function clearProgress(batchNo) {
|
|
59
59
|
(0, _apiUrl.clearProcess)(batchNo).then(function () {
|
|
60
|
-
console.log(options.tableRef);
|
|
61
60
|
options.tableRef && options.tableRef.current && options.tableRef.current.onLdQuery();
|
|
62
61
|
});
|
|
63
62
|
};
|
|
@@ -421,6 +421,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
421
421
|
}, [fields, formatDataSource, getDataPath, columnsRewrite, columnsReset, modelParams, draggable]);
|
|
422
422
|
var renderFunctionArea = (0, _react.useCallback)(function () {
|
|
423
423
|
var _topActionGroup$todoL;
|
|
424
|
+
var _moduleCode = (0, _helper.getLDMetaAttr)('moduleCode');
|
|
424
425
|
var resultComp = [];
|
|
425
426
|
if (!!(topActionGroup !== null && topActionGroup !== void 0 && (_topActionGroup$todoL = topActionGroup.todoList) !== null && _topActionGroup$todoL !== void 0 && _topActionGroup$todoL.length)) {
|
|
426
427
|
resultComp.push( /*#__PURE__*/_react.default.createElement(_index.LDActions, (0, _extends2.default)({}, topActionGroup, {
|
|
@@ -438,7 +439,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
438
439
|
apiUrl = _instanceRef$current$2.apiUrl;
|
|
439
440
|
resultComp.push( /*#__PURE__*/_react.default.createElement(_TopImex.TopUpload, {
|
|
440
441
|
apiUrl: apiUrl,
|
|
441
|
-
moduleCode:
|
|
442
|
+
moduleCode: _moduleCode,
|
|
442
443
|
options: impexp,
|
|
443
444
|
tableRef: instanceRef
|
|
444
445
|
}));
|
|
@@ -449,7 +450,7 @@ var LCTable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
449
450
|
_apiUrl = _instanceRef$current$3.apiUrl;
|
|
450
451
|
resultComp.push( /*#__PURE__*/_react.default.createElement(_TopImex.TopExport, {
|
|
451
452
|
apiUrl: _apiUrl,
|
|
452
|
-
moduleCode:
|
|
453
|
+
moduleCode: _moduleCode,
|
|
453
454
|
options: impexp,
|
|
454
455
|
tableRef: instanceRef
|
|
455
456
|
}));
|
package/package.json
CHANGED