@luck-design-biz/luckda 1.0.2-16 → 1.0.2-18

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
  }()),
@@ -4,18 +4,20 @@ import { stringify } from 'qs';
4
4
  import { request } from '@luck-design-biz/base/utils';
5
5
  import api from "@/services/ApiConfig";
6
6
  export var fetchContent = /*#__PURE__*/function () {
7
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dmCode, get) {
7
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dmCode, get, post) {
8
8
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9
9
  while (1) switch (_context.prev = _context.next) {
10
10
  case 0:
11
- return _context.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/complex/noAuthFetchContent?").concat(stringify(get))));
11
+ return _context.abrupt("return", request("".concat(api.API_HOST, "/").concat(dmCode, "/ui/builder/complex/noAuthFetchContent?").concat(stringify(get)), {
12
+ data: post
13
+ }));
12
14
  case 1:
13
15
  case "end":
14
16
  return _context.stop();
15
17
  }
16
18
  }, _callee);
17
19
  }));
18
- return function fetchContent(_x, _x2) {
20
+ return function fetchContent(_x, _x2, _x3) {
19
21
  return _ref.apply(this, arguments);
20
22
  };
21
23
  }();
@@ -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
  }()),
@@ -11,18 +11,20 @@ var _qs = require("qs");
11
11
  var _utils = require("@luck-design-biz/base/utils");
12
12
  var _ApiConfig = _interopRequireDefault(require("@/services/ApiConfig"));
13
13
  var fetchContent = exports.fetchContent = /*#__PURE__*/function () {
14
- var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(dmCode, get) {
14
+ var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(dmCode, get, post) {
15
15
  return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
16
16
  while (1) switch (_context.prev = _context.next) {
17
17
  case 0:
18
- return _context.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/complex/noAuthFetchContent?").concat((0, _qs.stringify)(get))));
18
+ return _context.abrupt("return", (0, _utils.request)("".concat(_ApiConfig.default.API_HOST, "/").concat(dmCode, "/ui/builder/complex/noAuthFetchContent?").concat((0, _qs.stringify)(get)), {
19
+ data: post
20
+ }));
19
21
  case 1:
20
22
  case "end":
21
23
  return _context.stop();
22
24
  }
23
25
  }, _callee);
24
26
  }));
25
- return function fetchContent(_x, _x2) {
27
+ return function fetchContent(_x, _x2, _x3) {
26
28
  return _ref.apply(this, arguments);
27
29
  };
28
30
  }();
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "1.0.2-16",
3
+ "version": "1.0.2-18",
4
4
  "description": "前端配置管理中心业务组件库",
5
5
  "scripts": {
6
6
  "start": "cross-env NODE_OPTIONS=--max-old-space-size=10240 USER_RUNTIME=SITE RUNTIME=dev umi dev",