@quansitech/antd-admin 1.1.22 → 1.1.23

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.
@@ -69,7 +69,7 @@ export function modalShow(_x) {
69
69
  }
70
70
  function _modalShow() {
71
71
  _modalShow = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options) {
72
- var props, res, Component, _afterClose, modal;
72
+ var props, res, _options$content, Component, _afterClose, modal;
73
73
  return _regeneratorRuntime().wrap(function _callee$(_context) {
74
74
  while (1) switch (_context.prev = _context.next) {
75
75
  case 0:
@@ -106,6 +106,9 @@ function _modalShow() {
106
106
  if (typeof props.ajaxRequest === 'undefined') {
107
107
  props.ajaxRequest = true;
108
108
  }
109
+ if (!props.searchUrl) {
110
+ props.searchUrl = ((_options$content = options.content) === null || _options$content === void 0 ? void 0 : _options$content.url) || '';
111
+ }
109
112
  }
110
113
  Component = container.get('Modal.' + upperFirst(props.type));
111
114
  _afterClose = function afterClose() {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quansitech/antd-admin",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"