@luck-design-biz/luckda 1.0.2-16 → 1.0.2-17
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.
|
@@ -42,7 +42,7 @@ var Index = function Index(_ref) {
|
|
|
42
42
|
keyName: keyField,
|
|
43
43
|
titleKey: "title",
|
|
44
44
|
api: ( /*#__PURE__*/function () {
|
|
45
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(get) {
|
|
45
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(get, post) {
|
|
46
46
|
var res, formatData, detail;
|
|
47
47
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
48
48
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -51,7 +51,9 @@ var Index = function Index(_ref) {
|
|
|
51
51
|
return fetchContent(dataModel, _objectSpread({
|
|
52
52
|
datasetCode: dataSetCode,
|
|
53
53
|
moduleCode: moduleCode
|
|
54
|
-
}, get)
|
|
54
|
+
}, get), {
|
|
55
|
+
_AutoFilter: post
|
|
56
|
+
});
|
|
55
57
|
case 2:
|
|
56
58
|
res = _context.sent;
|
|
57
59
|
formatData = (res === null || res === void 0 ? void 0 : res.data.map(function (i) {
|
|
@@ -72,7 +74,7 @@ var Index = function Index(_ref) {
|
|
|
72
74
|
}
|
|
73
75
|
}, _callee);
|
|
74
76
|
}));
|
|
75
|
-
return function (_x) {
|
|
77
|
+
return function (_x, _x2) {
|
|
76
78
|
return _ref2.apply(this, arguments);
|
|
77
79
|
};
|
|
78
80
|
}()),
|
|
@@ -293,7 +293,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
293
293
|
getContainer: getContainer
|
|
294
294
|
}), sortBy([].concat(_toConsumableArray(formList), _toConsumableArray(formExtra)), function (o) {
|
|
295
295
|
var _o$props;
|
|
296
|
-
return o.order || ((_o$props = o.props) === null || _o$props === void 0 ? void 0 : _o$props.order);
|
|
296
|
+
return (o === null || o === void 0 ? void 0 : o.order) || (o === null || o === void 0 || (_o$props = o.props) === null || _o$props === void 0 ? void 0 : _o$props.order);
|
|
297
297
|
}).map(function (formProps) {
|
|
298
298
|
var _formProps$type = formProps.type,
|
|
299
299
|
type = _formProps$type === void 0 ? 'auto' : _formProps$type;
|
|
@@ -49,7 +49,7 @@ var Index = function Index(_ref) {
|
|
|
49
49
|
keyName: keyField,
|
|
50
50
|
titleKey: "title",
|
|
51
51
|
api: ( /*#__PURE__*/function () {
|
|
52
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(get) {
|
|
52
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(get, post) {
|
|
53
53
|
var res, formatData, detail;
|
|
54
54
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
55
55
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -58,7 +58,9 @@ var Index = function Index(_ref) {
|
|
|
58
58
|
return (0, _service.fetchContent)(dataModel, (0, _objectSpread2.default)({
|
|
59
59
|
datasetCode: dataSetCode,
|
|
60
60
|
moduleCode: moduleCode
|
|
61
|
-
}, get)
|
|
61
|
+
}, get), {
|
|
62
|
+
_AutoFilter: post
|
|
63
|
+
});
|
|
62
64
|
case 2:
|
|
63
65
|
res = _context.sent;
|
|
64
66
|
formatData = (res === null || res === void 0 ? void 0 : res.data.map(function (i) {
|
|
@@ -79,7 +81,7 @@ var Index = function Index(_ref) {
|
|
|
79
81
|
}
|
|
80
82
|
}, _callee);
|
|
81
83
|
}));
|
|
82
|
-
return function (_x) {
|
|
84
|
+
return function (_x, _x2) {
|
|
83
85
|
return _ref2.apply(this, arguments);
|
|
84
86
|
};
|
|
85
87
|
}()),
|
|
@@ -300,7 +300,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
300
300
|
getContainer: getContainer
|
|
301
301
|
}), (0, _lodash.sortBy)([].concat((0, _toConsumableArray2.default)(formList), (0, _toConsumableArray2.default)(formExtra)), function (o) {
|
|
302
302
|
var _o$props;
|
|
303
|
-
return o.order || ((_o$props = o.props) === null || _o$props === void 0 ? void 0 : _o$props.order);
|
|
303
|
+
return (o === null || o === void 0 ? void 0 : o.order) || (o === null || o === void 0 || (_o$props = o.props) === null || _o$props === void 0 ? void 0 : _o$props.order);
|
|
304
304
|
}).map(function (formProps) {
|
|
305
305
|
var _formProps$type = formProps.type,
|
|
306
306
|
type = _formProps$type === void 0 ? 'auto' : _formProps$type;
|
package/package.json
CHANGED