antd-management-fast-framework 1.12.30 → 1.12.33

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.
Files changed (78) hide show
  1. package/es/customComponents/ActiveChart/index.d.ts +2 -2
  2. package/es/customComponents/AnimalBox/FadeBox/index.d.ts +2 -2
  3. package/es/customComponents/AnimalBox/QueueBox/index.d.ts +2 -2
  4. package/es/customComponents/AnimalBox/QueueListBox/index.d.ts +2 -2
  5. package/es/customComponents/AnimalBox/RotateBox/index.d.ts +2 -2
  6. package/es/customComponents/AudioUpload/index.d.ts +2 -2
  7. package/es/customComponents/Authorized/AuthorizedRoute.js +2 -2
  8. package/es/customComponents/Authorized/PromiseRender.js +2 -10
  9. package/es/customComponents/CenterBox/index.d.ts +2 -2
  10. package/es/customComponents/Charts/Bar/index.d.ts +2 -2
  11. package/es/customComponents/Charts/Bar/index.js +2 -2
  12. package/es/customComponents/Charts/ChartCard/index.js +1 -8
  13. package/es/customComponents/Charts/Gauge/index.js +2 -2
  14. package/es/customComponents/Charts/MiniArea/index.js +2 -2
  15. package/es/customComponents/Charts/MiniBar/index.js +2 -2
  16. package/es/customComponents/Charts/Pie/index.d.ts +2 -2
  17. package/es/customComponents/Charts/Pie/index.js +2 -2
  18. package/es/customComponents/Charts/TagCloud/index.d.ts +2 -2
  19. package/es/customComponents/Charts/TagCloud/index.js +4 -7
  20. package/es/customComponents/Charts/TimelineChart/index.js +2 -2
  21. package/es/customComponents/Charts/WaterWave/index.d.ts +2 -2
  22. package/es/customComponents/ColorText/index.d.ts +2 -2
  23. package/es/customComponents/DecorateAvatar/index.d.ts +2 -2
  24. package/es/customComponents/DisplayCopyData/index.js +3 -5
  25. package/es/customComponents/EditableItem/index.d.ts +2 -2
  26. package/es/customComponents/EditableLinkGroup/index.d.ts +2 -2
  27. package/es/customComponents/Ellipsis/index.d.ts +2 -2
  28. package/es/customComponents/EllipsisCustom/index.d.ts +2 -2
  29. package/es/customComponents/Entrance/EntranceItem.js +2 -9
  30. package/es/customComponents/Entrance/EntranceTab.js +1 -2
  31. package/es/customComponents/EverySpace/index.d.ts +2 -2
  32. package/es/customComponents/FigureRange/index.d.ts +2 -2
  33. package/es/customComponents/FileBase64Upload/index.d.ts +2 -2
  34. package/es/customComponents/FileUpload/index.d.ts +2 -2
  35. package/es/customComponents/FlexBox/index.d.ts +2 -2
  36. package/es/customComponents/FlexText/index.d.ts +2 -2
  37. package/es/customComponents/FooterToolbar/index.d.ts +2 -2
  38. package/es/customComponents/FromDisplayItem/index.d.ts +2 -2
  39. package/es/customComponents/FunctionComponent/index.d.ts +3 -3
  40. package/es/customComponents/HelpBox/index.d.ts +2 -2
  41. package/es/customComponents/HelpCard/index.d.ts +2 -2
  42. package/es/customComponents/HtmlBox/index.d.ts +2 -2
  43. package/es/customComponents/IconInfo/index.d.ts +2 -2
  44. package/es/customComponents/ImageUpload/index.d.ts +2 -2
  45. package/es/customComponents/MobileContainor/ContentView/index.d.ts +2 -2
  46. package/es/customComponents/MobileContainor/Devices/GalaxyNote8/index.d.ts +2 -2
  47. package/es/customComponents/MobileContainor/Devices/IPhone5S/index.d.ts +2 -2
  48. package/es/customComponents/MobileContainor/Devices/Iphone8/index.d.ts +2 -2
  49. package/es/customComponents/MobileContainor/Devices/Iphone8plus/index.d.ts +2 -2
  50. package/es/customComponents/MobileContainor/Devices/IphoneX/index.d.ts +2 -2
  51. package/es/customComponents/MobileContainor/Devices/RoughSketch/index.d.ts +2 -2
  52. package/es/customComponents/MobileContainor/MobileSimulation/index.d.ts +2 -2
  53. package/es/customComponents/NoticeIconCustom/NoticeList.js +13 -15
  54. package/es/customComponents/PercentageBox/index.d.ts +2 -2
  55. package/es/customComponents/PriceBox/index.d.ts +2 -2
  56. package/es/customComponents/StandardTable/index.d.ts +2 -2
  57. package/es/customComponents/StandardTableCustom/index.d.ts +2 -2
  58. package/es/customComponents/StatusBar/index.d.ts +2 -2
  59. package/es/customComponents/VerticalBox/index.d.ts +2 -2
  60. package/es/customComponents/VideoUpload/index.d.ts +2 -2
  61. package/es/framework/AuthorizationWrapper/index.js +1 -4
  62. package/es/framework/Base/index.js +2 -4
  63. package/es/framework/Common/index.js +0 -2
  64. package/es/framework/DataListView/BatchAction/index.js +2 -2
  65. package/es/framework/DataListView/DensityAction/index.d.ts +2 -2
  66. package/es/utils/actionAssist.js +4 -2
  67. package/es/utils/dva.d.ts +31 -0
  68. package/es/utils/dva.js +56 -0
  69. package/es/utils/proLayoutCollection.d.ts +1 -1
  70. package/es/utils/proLayoutCollection.js +1 -1
  71. package/es/utils/request.js +1 -5
  72. package/es/utils/requestAssistor.d.ts +1 -1
  73. package/es/utils/requestAssistor.js +6 -9
  74. package/es/utils/tools.d.ts +5 -3
  75. package/es/utils/tools.js +12 -0
  76. package/es/utils/virtualRequest.d.ts +2 -1
  77. package/es/utils/virtualRequest.js +5 -8
  78. package/package.json +6 -2
@@ -1,4 +1,4 @@
1
- export default class ActiveChart extends React.Component<any, any, any> {
1
+ export default class ActiveChart extends Component<any, any, any> {
2
2
  constructor(props: any);
3
3
  constructor(props: any, context: any);
4
4
  state: {
@@ -14,4 +14,4 @@ export default class ActiveChart extends React.Component<any, any, any> {
14
14
  timer: NodeJS.Timeout | undefined;
15
15
  render(): JSX.Element;
16
16
  }
17
- import React from "react";
17
+ import { Component } from "react";
@@ -1,5 +1,5 @@
1
1
  export default FadeBox;
2
- declare class FadeBox extends React.PureComponent<any, any, any> {
2
+ declare class FadeBox extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  render(): JSX.Element;
@@ -11,4 +11,4 @@ declare namespace FadeBox {
11
11
  const bodyStyle: null;
12
12
  }
13
13
  }
14
- import React from "react";
14
+ import { PureComponent } from "react";
@@ -1,5 +1,5 @@
1
1
  export default QueueBox;
2
- declare class QueueBox extends React.PureComponent<any, any, any> {
2
+ declare class QueueBox extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  render(): JSX.Element;
@@ -9,4 +9,4 @@ declare namespace QueueBox {
9
9
  const show: boolean;
10
10
  }
11
11
  }
12
- import React from "react";
12
+ import { PureComponent } from "react";
@@ -1,5 +1,5 @@
1
1
  export default QueueListBox;
2
- declare class QueueListBox extends React.PureComponent<any, any, any> {
2
+ declare class QueueListBox extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  render(): JSX.Element;
@@ -12,4 +12,4 @@ declare namespace QueueListBox {
12
12
  const itemStyle: null;
13
13
  }
14
14
  }
15
- import React from "react";
15
+ import { PureComponent } from "react";
@@ -1,5 +1,5 @@
1
1
  export default RotateBox;
2
- declare class RotateBox extends React.PureComponent<any, any, any> {
2
+ declare class RotateBox extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  render(): JSX.Element;
@@ -11,4 +11,4 @@ declare namespace RotateBox {
11
11
  const onClick: null;
12
12
  }
13
13
  }
14
- import React from "react";
14
+ import { PureComponent } from "react";
@@ -1,5 +1,5 @@
1
1
  export default AudioUpload;
2
- declare class AudioUpload extends React.PureComponent<any, any, any> {
2
+ declare class AudioUpload extends PureComponent<any, any, any> {
3
3
  static getDerivedStateFromProps(nextProps: any, prevState: any): {
4
4
  audioSource: any;
5
5
  audioUrl: any;
@@ -36,4 +36,4 @@ declare namespace AudioUpload {
36
36
  function afterChangeSuccess(): void;
37
37
  }
38
38
  }
39
- import React from "react";
39
+ import { PureComponent } from "react";
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _umi = require("umi");
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
10
+ var _umi = require("umi");
11
+
12
12
  var _Authorized = _interopRequireDefault(require("./Authorized"));
13
13
 
14
14
  var _excluded = ["component", "render", "authority", "redirectPath"];
@@ -17,13 +17,9 @@ var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
17
17
 
18
18
  var _Secured = require("./Secured");
19
19
 
20
- var _excluded = ["ok", "error", "promise"];
21
-
22
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
21
 
24
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
-
26
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
22
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
27
23
 
28
24
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
25
 
@@ -133,11 +129,7 @@ var PromiseRender = /*#__PURE__*/function (_React$Component) {
133
129
  value: function render() {
134
130
  var Component = this.state.component;
135
131
 
136
- var _this$props = this.props,
137
- ok = _this$props.ok,
138
- error = _this$props.error,
139
- promise = _this$props.promise,
140
- rest = _objectWithoutProperties(_this$props, _excluded);
132
+ var rest = _extends({}, this.props);
141
133
 
142
134
  return Component ? /*#__PURE__*/_react.default.createElement(Component, rest) : /*#__PURE__*/_react.default.createElement("div", {
143
135
  style: {
@@ -1,7 +1,7 @@
1
1
  export default CenterBox;
2
- declare class CenterBox extends React.PureComponent<any, any, any> {
2
+ declare class CenterBox extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  render(): JSX.Element;
6
6
  }
7
- import React from "react";
7
+ import { PureComponent } from "react";
@@ -1,5 +1,5 @@
1
1
  export default Bar;
2
- declare class Bar extends React.Component<any, any, any> {
2
+ declare class Bar extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  state: {
@@ -7,4 +7,4 @@ declare class Bar extends React.Component<any, any, any> {
7
7
  };
8
8
  render(): JSX.Element;
9
9
  }
10
- import React from "react";
10
+ import { Component } from "react";
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
- var _bizcharts = require("bizcharts");
11
-
12
10
  var _react = _interopRequireWildcard(require("react"));
13
11
 
12
+ var _bizcharts = require("bizcharts");
13
+
14
14
  var _index = _interopRequireDefault(require("../index.less"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -15,7 +15,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
16
  var _index = _interopRequireDefault(require("./index.less"));
17
17
 
18
- var _excluded = ["loading", "contentHeight", "title", "avatar", "action", "total", "footer", "children"];
18
+ var _excluded = ["loading"];
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
21
 
@@ -142,13 +142,6 @@ var ChartCard = /*#__PURE__*/function (_React$Component) {
142
142
  var _this$props2 = this.props,
143
143
  _this$props2$loading = _this$props2.loading,
144
144
  loading = _this$props2$loading === void 0 ? false : _this$props2$loading,
145
- contentHeight = _this$props2.contentHeight,
146
- title = _this$props2.title,
147
- avatar = _this$props2.avatar,
148
- action = _this$props2.action,
149
- total = _this$props2.total,
150
- footer = _this$props2.footer,
151
- children = _this$props2.children,
152
145
  rest = _objectWithoutProperties(_this$props2, _excluded);
153
146
 
154
147
  return /*#__PURE__*/_react.default.createElement(_card.default, _extends({
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _bizcharts = require("bizcharts");
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
10
+ var _bizcharts = require("bizcharts");
11
+
12
12
  var _autoHeight = _interopRequireDefault(require("../autoHeight"));
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _bizcharts = require("bizcharts");
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
10
+ var _bizcharts = require("bizcharts");
11
+
12
12
  var _index = _interopRequireDefault(require("../index.less"));
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _bizcharts = require("bizcharts");
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
 
10
+ var _bizcharts = require("bizcharts");
11
+
12
12
  var _index = _interopRequireDefault(require("../index.less"));
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,5 +1,5 @@
1
1
  export default Pie;
2
- declare class Pie extends React.Component<any, any, any> {
2
+ declare class Pie extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  state: {};
@@ -7,4 +7,4 @@ declare class Pie extends React.Component<any, any, any> {
7
7
  handleLegendClick: (item: any, i: any) => void;
8
8
  render(): JSX.Element;
9
9
  }
10
- import React from "react";
10
+ import { Component } from "react";
@@ -19,12 +19,12 @@ require("antd/es/col/style");
19
19
 
20
20
  var _col = _interopRequireDefault(require("antd/es/col"));
21
21
 
22
- var _bizcharts = require("bizcharts");
23
-
24
22
  var _react = _interopRequireWildcard(require("react"));
25
23
 
26
24
  var _classnames = _interopRequireDefault(require("classnames"));
27
25
 
26
+ var _bizcharts = require("bizcharts");
27
+
28
28
  var _index = _interopRequireDefault(require("./index.less"));
29
29
 
30
30
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -1,5 +1,5 @@
1
1
  export default TagCloud;
2
- declare class TagCloud extends React.Component<any, any, any> {
2
+ declare class TagCloud extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  state: {
@@ -20,4 +20,4 @@ declare class TagCloud extends React.Component<any, any, any> {
20
20
  renderChart: import("lodash").DebouncedFunc<(nextProps: any) => void>;
21
21
  render(): JSX.Element;
22
22
  }
23
- import React from "react";
23
+ import { Component } from "react";
@@ -7,15 +7,15 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
- var _bizcharts = require("bizcharts");
11
-
12
10
  var _react = _interopRequireWildcard(require("react"));
13
11
 
14
- var _dataSet = _interopRequireDefault(require("@antv/data-set"));
12
+ var _classnames = _interopRequireDefault(require("classnames"));
15
13
 
16
14
  var _lodash = _interopRequireDefault(require("lodash.debounce"));
17
15
 
18
- var _classnames = _interopRequireDefault(require("classnames"));
16
+ var _dataSet = _interopRequireDefault(require("@antv/data-set"));
17
+
18
+ var _bizcharts = require("bizcharts");
19
19
 
20
20
  var _autoHeight = _interopRequireDefault(require("../autoHeight"));
21
21
 
@@ -65,9 +65,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
65
65
 
66
66
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
67
67
 
68
- /* eslint no-underscore-dangle: 0 */
69
-
70
- /* eslint no-param-reassign: 0 */
71
68
  var imgUrl = 'https://gw.alipayobjects.com/zos/rmsportal/gWyeGLCdFFRavBGIDzWk.png';
72
69
 
73
70
  var TagCloud = /*#__PURE__*/function (_Component) {
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _react = _interopRequireDefault(require("react"));
9
+
8
10
  var _bizcharts = require("bizcharts");
9
11
 
10
12
  var _dataSet = _interopRequireDefault(require("@antv/data-set"));
11
13
 
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
14
  var _autoHeight = _interopRequireDefault(require("../autoHeight"));
15
15
 
16
16
  var _index = _interopRequireDefault(require("./index.less"));
@@ -1,5 +1,5 @@
1
1
  export default WaterWave;
2
- declare class WaterWave extends React.Component<any, any, any> {
2
+ declare class WaterWave extends Component<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  state: {
@@ -15,4 +15,4 @@ declare class WaterWave extends React.Component<any, any, any> {
15
15
  renderChart(type: any): void;
16
16
  render(): JSX.Element;
17
17
  }
18
- import React from "react";
18
+ import { Component } from "react";
@@ -1,5 +1,5 @@
1
1
  export default ColorText;
2
- declare class ColorText extends React.PureComponent<any, any, any> {
2
+ declare class ColorText extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  copyText: () => void;
@@ -19,4 +19,4 @@ declare namespace ColorText {
19
19
  const separatorStyle: null;
20
20
  }
21
21
  }
22
- import React from "react";
22
+ import { PureComponent } from "react";
@@ -17,7 +17,7 @@ export namespace avatarImageLoadResultCollection {
17
17
  const fail: number;
18
18
  }
19
19
  export default DecorateAvatar;
20
- declare class DecorateAvatar extends React.PureComponent<any, any, any> {
20
+ declare class DecorateAvatar extends PureComponent<any, any, any> {
21
21
  constructor(props: any);
22
22
  state: {
23
23
  avatarImageLoadResult: number;
@@ -34,4 +34,4 @@ declare namespace DecorateAvatar {
34
34
  const reloading: boolean;
35
35
  }
36
36
  }
37
- import React from "react";
37
+ import { PureComponent } from "react";
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
10
  var _tools = require("../../utils/tools");
13
11
 
14
12
  var _CustomBase2 = _interopRequireDefault(require("../../framework/CustomBase"));
@@ -54,7 +52,7 @@ var DisplayCopyData = /*#__PURE__*/function (_CustomBase) {
54
52
  copyMode = _this$props.copyMode;
55
53
 
56
54
  if (copyMode === 'click') {
57
- return /*#__PURE__*/_react.default.createElement("span", {
55
+ return /*#__PURE__*/React.createElement("span", {
58
56
  onClick: function onClick() {
59
57
  (0, _tools.copyToClipboard)(data);
60
58
  }
@@ -62,7 +60,7 @@ var DisplayCopyData = /*#__PURE__*/function (_CustomBase) {
62
60
  }
63
61
 
64
62
  if (copyMode === 'button') {
65
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, data, (data || null) === null ? null : /*#__PURE__*/_react.default.createElement("a", {
63
+ return /*#__PURE__*/React.createElement(React.Fragment, null, data, (data || null) === null ? null : /*#__PURE__*/React.createElement("a", {
66
64
  style: {
67
65
  marginLeft: '10px'
68
66
  },
@@ -72,7 +70,7 @@ var DisplayCopyData = /*#__PURE__*/function (_CustomBase) {
72
70
  }, "[\u590D\u5236]"));
73
71
  }
74
72
 
75
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, data);
73
+ return /*#__PURE__*/React.createElement(React.Fragment, null, data);
76
74
  }
77
75
  }]);
78
76
 
@@ -1,4 +1,4 @@
1
- export default class EditableItem extends React.PureComponent<any, any, any> {
1
+ export default class EditableItem extends PureComponent<any, any, any> {
2
2
  constructor(props: any);
3
3
  state: {
4
4
  value: any;
@@ -9,4 +9,4 @@ export default class EditableItem extends React.PureComponent<any, any, any> {
9
9
  edit: () => void;
10
10
  render(): JSX.Element;
11
11
  }
12
- import React from "react";
12
+ import { PureComponent } from "react";
@@ -1,5 +1,5 @@
1
1
  export default EditableLinkGroup;
2
- declare class EditableLinkGroup extends React.PureComponent<any, any, any> {
2
+ declare class EditableLinkGroup extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  render(): JSX.Element;
@@ -19,5 +19,5 @@ declare namespace EditableLinkGroup {
19
19
  export { linkElement_1 as linkElement };
20
20
  }
21
21
  }
22
- import React from "react";
22
+ import { PureComponent } from "react";
23
23
  import PropTypes from "prop-types";
@@ -1,6 +1,6 @@
1
1
  export function getStrFullLength(str?: string): number;
2
2
  export function cutStrByFullLength(str: string | undefined, maxLength: any): string;
3
- export default class Ellipsis extends React.Component<any, any, any> {
3
+ export default class Ellipsis extends Component<any, any, any> {
4
4
  constructor(props: any);
5
5
  constructor(props: any, context: any);
6
6
  state: {
@@ -23,4 +23,4 @@ export default class Ellipsis extends React.Component<any, any, any> {
23
23
  shadowChildren: any;
24
24
  render(): any;
25
25
  }
26
- import React from "react";
26
+ import { Component } from "react";
@@ -1,6 +1,6 @@
1
1
  export function getStrFullLength(str?: string): number;
2
2
  export function cutStrByFullLength(str: string | undefined, maxLength: any): string;
3
- export default class EllipsisCustom extends React.Component<any, any, any> {
3
+ export default class EllipsisCustom extends Component<any, any, any> {
4
4
  constructor(props: any);
5
5
  constructor(props: any, context: any);
6
6
  state: {
@@ -23,4 +23,4 @@ export default class EllipsisCustom extends React.Component<any, any, any> {
23
23
  shadowChildren: any;
24
24
  render(): JSX.Element;
25
25
  }
26
- import React from "react";
26
+ import { Component } from "react";
@@ -43,7 +43,7 @@ var _EntranceContext = _interopRequireDefault(require("./EntranceContext"));
43
43
 
44
44
  var _index = _interopRequireDefault(require("./index.less"));
45
45
 
46
- var _excluded = ["onChange", "customProps", "defaultValue", "rules", "name", "getCaptchaButtonText", "getCaptchaSecondText", "updateActive", "type", "tabUtil"];
46
+ var _excluded = ["customProps", "name", "type"];
47
47
 
48
48
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
49
49
 
@@ -108,16 +108,9 @@ var EntranceItem = function EntranceItem(props) {
108
108
  setTiming = _useState4[1]; // 这么写是为了防止restProps中 带入 onChange, defaultValue, rules props tabUtil
109
109
 
110
110
 
111
- var onChange = props.onChange,
112
- customProps = props.customProps,
113
- defaultValue = props.defaultValue,
114
- rules = props.rules,
111
+ var customProps = props.customProps,
115
112
  name = props.name,
116
- getCaptchaButtonText = props.getCaptchaButtonText,
117
- getCaptchaSecondText = props.getCaptchaSecondText,
118
- updateActive = props.updateActive,
119
113
  type = props.type,
120
- tabUtil = props.tabUtil,
121
114
  restProps = _objectWithoutProperties(props, _excluded);
122
115
 
123
116
  var onGetCaptcha = (0, _react.useCallback)( /*#__PURE__*/function () {
@@ -13,14 +13,13 @@ var _tabs = _interopRequireDefault(require("antd/es/tabs"));
13
13
 
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
 
16
- var _EntranceContext = _interopRequireDefault(require("./EntranceContext"));
17
-
18
16
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
17
 
20
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
19
 
22
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
21
 
22
+ // import EntranceContext from './EntranceContext';
24
23
  var TabPane = _tabs.default.TabPane;
25
24
 
26
25
  var generateId = function () {
@@ -1,5 +1,5 @@
1
1
  export default EverySpace;
2
- declare class EverySpace extends React.PureComponent<any, any, any> {
2
+ declare class EverySpace extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  render(): JSX.Element | null;
@@ -13,4 +13,4 @@ declare namespace EverySpace {
13
13
  const borderRadius: string;
14
14
  }
15
15
  }
16
- import React from "react";
16
+ import { PureComponent } from "react";
@@ -53,7 +53,7 @@ export namespace figureRangeType {
53
53
  }
54
54
  }
55
55
  export default FigureRange;
56
- declare class FigureRange extends React.PureComponent<any, any, any> {
56
+ declare class FigureRange extends PureComponent<any, any, any> {
57
57
  static getDerivedStateFromProps(nextProps: any, prevState: any): {
58
58
  type: number;
59
59
  min: null;
@@ -130,4 +130,4 @@ declare namespace FigureRange {
130
130
  export const value: null;
131
131
  }
132
132
  }
133
- import React from "react";
133
+ import { PureComponent } from "react";
@@ -1,5 +1,5 @@
1
1
  export default FileBase64Upload;
2
- declare class FileBase64Upload extends React.PureComponent<any, any, any> {
2
+ declare class FileBase64Upload extends PureComponent<any, any, any> {
3
3
  static getDerivedStateFromProps(nextProps: any, prevState: any): {
4
4
  base64: any;
5
5
  };
@@ -24,4 +24,4 @@ declare namespace FileBase64Upload {
24
24
  function afterUploadSuccess(): void;
25
25
  }
26
26
  }
27
- import React from "react";
27
+ import { PureComponent } from "react";
@@ -1,5 +1,5 @@
1
1
  export default VideoUpload;
2
- declare class VideoUpload extends React.PureComponent<any, any, any> {
2
+ declare class VideoUpload extends PureComponent<any, any, any> {
3
3
  static getDerivedStateFromProps(nextProps: any, prevState: any): {
4
4
  fileSource: any;
5
5
  fileUrl: any;
@@ -32,4 +32,4 @@ declare namespace VideoUpload {
32
32
  function afterChangeSuccess(): void;
33
33
  }
34
34
  }
35
- import React from "react";
35
+ import { PureComponent } from "react";
@@ -1,5 +1,5 @@
1
1
  export default FlexBox;
2
- declare class FlexBox extends React.PureComponent<any, any, any> {
2
+ declare class FlexBox extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  render(): JSX.Element;
@@ -20,4 +20,4 @@ declare namespace FlexBox {
20
20
  const style: null;
21
21
  }
22
22
  }
23
- import React from "react";
23
+ import { PureComponent } from "react";
@@ -1,5 +1,5 @@
1
1
  export default FlexText;
2
- declare class FlexText extends React.PureComponent<any, any, any> {
2
+ declare class FlexText extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  render(): JSX.Element;
@@ -18,4 +18,4 @@ declare namespace FlexText {
18
18
  const style: null;
19
19
  }
20
20
  }
21
- import React from "react";
21
+ import { PureComponent } from "react";
@@ -1,4 +1,4 @@
1
- export default class FooterToolbar extends React.Component<any, any, any> {
1
+ export default class FooterToolbar extends Component<any, any, any> {
2
2
  static contextTypes: {
3
3
  isMobile: PropTypes.Requireable<boolean>;
4
4
  };
@@ -12,5 +12,5 @@ export default class FooterToolbar extends React.Component<any, any, any> {
12
12
  resizeFooterToolbar: () => void;
13
13
  render(): JSX.Element;
14
14
  }
15
- import React from "react";
15
+ import { Component } from "react";
16
16
  import PropTypes from "prop-types";
@@ -1,5 +1,5 @@
1
1
  export default FromDisplayItem;
2
- declare class FromDisplayItem extends React.PureComponent<any, any, any> {
2
+ declare class FromDisplayItem extends PureComponent<any, any, any> {
3
3
  constructor(props: any);
4
4
  constructor(props: any, context: any);
5
5
  render(): JSX.Element;
@@ -11,4 +11,4 @@ declare namespace FromDisplayItem {
11
11
  const empty: string;
12
12
  }
13
13
  }
14
- import React from "react";
14
+ import { PureComponent } from "react";
@@ -20,7 +20,7 @@ export function buildButton({ key: keySource, type: typeSource, size: sizeSource
20
20
  showIcon?: boolean | undefined;
21
21
  }): JSX.Element | null;
22
22
  export function buildDropdownButton({ key, tooltip, placement, type: typeSource, size, text, icon, handleData: r, arrow, disabled, hidden, confirm, handleButtonClick, handleMenuClick, menuItems, }: {
23
- key?: any;
23
+ key?: string | undefined;
24
24
  tooltip?: boolean | undefined;
25
25
  placement?: string | undefined;
26
26
  type?: string | undefined;
@@ -37,7 +37,7 @@ export function buildDropdownButton({ key, tooltip, placement, type: typeSource,
37
37
  menuItems?: any[] | undefined;
38
38
  }): JSX.Element | null;
39
39
  export function buildDropdownEllipsis({ key, tooltip, type: typeSource, size, icon, arrow, disabled, hidden, handleData: r, handleMenuClick, menuItems, }: {
40
- key?: any;
40
+ key?: string | undefined;
41
41
  tooltip?: {
42
42
  placement: string;
43
43
  title: string;
@@ -53,7 +53,7 @@ export function buildDropdownEllipsis({ key, tooltip, type: typeSource, size, ic
53
53
  menuItems?: any[] | undefined;
54
54
  }): JSX.Element | null;
55
55
  export function buildDropdown({ key, tooltip: tooltipSource, type: typeSource, placement: placementDropdown, size, text, icon, handleData: r, arrow, disabled, hidden, handleButtonClick, handleMenuClick, menuItems, confirm, processing, iconProcessing, }: {
56
- key?: any;
56
+ key?: string | undefined;
57
57
  tooltip?: boolean | undefined;
58
58
  type?: string | undefined;
59
59
  placement?: string | undefined;