@quansitech/antd-admin 1.1.12 → 1.1.14

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.
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ColumnReadonlyProps } from "./types";
3
+ export default function (props: ColumnReadonlyProps): React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { replaceUrl } from "../../../lib/helpers";
3
+ export default function (props) {
4
+ var url = replaceUrl(props.fieldProps.url || props.fieldProps.href || '', props.record);
5
+ return /*#__PURE__*/React.createElement("a", {
6
+ href: url
7
+ }, props.text);
8
+ }
@@ -3,5 +3,6 @@ declare const _default: {
3
3
  File: () => Promise<typeof import("./File")>;
4
4
  Image: () => Promise<typeof import("./Image")>;
5
5
  Action: () => Promise<typeof import("./Action")>;
6
+ Link: () => Promise<typeof import("./Link")>;
6
7
  };
7
8
  export default _default;
@@ -10,5 +10,8 @@ export default {
10
10
  },
11
11
  Action: function Action() {
12
12
  return import("./Action");
13
+ },
14
+ Link: function Link() {
15
+ return import("./Link");
13
16
  }
14
17
  };
@@ -80,7 +80,7 @@ export default function (props) {
80
80
  (_modalContext$context = modalContext.contexts) === null || _modalContext$context === void 0 || (_modalContext$context = _modalContext$context.tableContext) === null || _modalContext$context === void 0 || _modalContext$context.getActionRef().reload();
81
81
  });
82
82
  }
83
- if (!tableContext.getActionRef()) {
83
+ if (!tableContext.getActionRef) {
84
84
  _context.next = 5;
85
85
  break;
86
86
  }
@@ -114,18 +114,20 @@ export default function (props) {
114
114
  return _context2.abrupt("return");
115
115
  case 28:
116
116
  if (!props.modal) {
117
- _context2.next = 32;
117
+ _context2.next = 34;
118
118
  break;
119
119
  }
120
- _context2.next = 31;
120
+ setLoading(true);
121
+ _context2.next = 32;
121
122
  return modalShow(_objectSpread(_objectSpread({}, props.modal), {}, {
122
123
  contexts: {
123
124
  tableContext: tableContext
124
125
  }
125
126
  }));
126
- case 31:
127
- return _context2.abrupt("return");
128
127
  case 32:
128
+ setLoading(false);
129
+ return _context2.abrupt("return");
130
+ case 34:
129
131
  case "end":
130
132
  return _context2.stop();
131
133
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quansitech/antd-admin",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"