linkmore-design 1.0.49 → 1.0.53

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 (189) hide show
  1. package/dist/Button/style/index.d.ts +1 -1
  2. package/dist/CardTable/fns/index.d.ts +9 -0
  3. package/dist/CardTable/hooks/usePagination.d.ts +19 -0
  4. package/dist/CardTable/toolbar/TablePagination.d.ts +4 -0
  5. package/dist/CardTable/toolbar/ToolBarBottom.d.ts +3 -0
  6. package/dist/List/demos/basic.d.ts +2 -0
  7. package/dist/List/index.d.ts +2 -0
  8. package/dist/List/style/index.d.ts +1 -0
  9. package/dist/LmEditTable/DndContainer.d.ts +5 -0
  10. package/dist/LmEditTable/DragHandle.d.ts +4 -0
  11. package/dist/LmEditTable/EditTable.d.ts +31 -0
  12. package/dist/LmEditTable/demos/Editbasic.d.ts +2 -0
  13. package/dist/LmEditTable/demos/basic.d.ts +2 -0
  14. package/dist/LmEditTable/demos/formEditTable.d.ts +2 -0
  15. package/dist/LmEditTable/demos/hoverEdit.d.ts +2 -0
  16. package/dist/LmEditTable/index.d.ts +2 -0
  17. package/dist/LmEditTable/sortableBox.d.ts +5 -0
  18. package/dist/LmEditTable/sortableItem.d.ts +2 -0
  19. package/dist/LmEditTable/style/index.d.ts +1 -0
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.umd.js +3853 -689
  22. package/dist/index.umd.min.js +6 -6
  23. package/dist/message/hooks/useMessage.d.ts +7 -0
  24. package/dist/message/index.d.ts +63 -4
  25. package/es/Button/style/{style.css → index.css} +0 -0
  26. package/es/Button/style/index.d.ts +1 -1
  27. package/es/Button/style/index.js +1 -1
  28. package/es/ButtonTags/style/{style.css → index.css} +0 -0
  29. package/es/ButtonTags/style/index.js +1 -1
  30. package/es/CardTable/card/PictureTextColumn.js +11 -6
  31. package/es/CardTable/card/PictureTextRow.js +11 -6
  32. package/es/CardTable/fns/index.js +106 -0
  33. package/es/CardTable/hooks/usePagination.js +128 -0
  34. package/es/CardTable/index.js +3 -0
  35. package/{lib/CardTable/style/style.css → es/CardTable/style/index.css} +13 -1
  36. package/es/CardTable/style/index.js +1 -1
  37. package/es/CardTable/table/TableRoot.js +43 -64
  38. package/es/CardTable/table/TableWrapper.js +4 -0
  39. package/es/CardTable/toolbar/TablePagination.js +62 -0
  40. package/es/CardTable/toolbar/ToolBarBottom.js +47 -0
  41. package/es/Checkbox/style/{style.css → index.css} +0 -0
  42. package/es/Checkbox/style/index.js +1 -1
  43. package/es/CkFilter/style/{style.css → index.css} +0 -0
  44. package/es/CkFilter/style/index.js +1 -1
  45. package/es/CustomTableOption/columnsSort.js +5 -5
  46. package/es/CustomTableOption/filterSort.js +3 -3
  47. package/es/CustomTableOption/index.js +1 -2
  48. package/es/CustomerService/style/{style.css → index.css} +0 -0
  49. package/es/CustomerService/style/index.js +1 -1
  50. package/es/EditTable/style/{style.css → index.css} +0 -0
  51. package/es/EditTable/style/index.js +1 -1
  52. package/es/EnlargeImg/style/{style.css → index.css} +0 -0
  53. package/es/EnlargeImg/style/index.js +1 -1
  54. package/es/Filter/style/{style.css → index.css} +0 -0
  55. package/es/Filter/style/index.js +1 -1
  56. package/es/IconSelect/style/{style.css → index.css} +0 -0
  57. package/es/IconSelect/style/index.js +1 -1
  58. package/{lib/Input/style/style.css → es/Input/style/index.css} +21 -1
  59. package/es/Input/style/index.js +1 -1
  60. package/es/LeftTable/style/{style.css → index.css} +0 -0
  61. package/es/LeftTable/style/index.js +1 -1
  62. package/es/List/index.d.ts +2 -0
  63. package/es/List/index.js +3 -0
  64. package/es/List/style/index.css +505 -0
  65. package/es/List/style/index.d.ts +1 -0
  66. package/es/List/style/index.js +1 -0
  67. package/es/LmEditTable/DndContainer.d.ts +5 -0
  68. package/es/LmEditTable/DndContainer.js +35 -0
  69. package/es/LmEditTable/DragHandle.d.ts +4 -0
  70. package/es/LmEditTable/DragHandle.js +22 -0
  71. package/es/LmEditTable/EditTable.d.ts +31 -0
  72. package/es/LmEditTable/EditTable.js +892 -0
  73. package/es/LmEditTable/index.d.ts +2 -0
  74. package/es/LmEditTable/index.js +2 -0
  75. package/es/LmEditTable/sortableBox.d.ts +5 -0
  76. package/es/LmEditTable/sortableBox.js +13 -0
  77. package/es/LmEditTable/sortableItem.d.ts +2 -0
  78. package/es/LmEditTable/sortableItem.js +43 -0
  79. package/es/LmEditTable/style/index.css +574 -0
  80. package/es/LmEditTable/style/index.d.ts +1 -0
  81. package/es/LmEditTable/style/index.js +1 -0
  82. package/es/LmTable/Table.js +16 -6
  83. package/{lib/LmTable/style/style.css → es/LmTable/style/index.css} +6 -0
  84. package/es/LmTable/style/index.js +1 -1
  85. package/es/OldModal/style/{style.css → index.css} +0 -0
  86. package/es/OldModal/style/index.js +1 -1
  87. package/es/PopTable/style/{style.css → index.css} +0 -0
  88. package/es/PopTable/style/index.js +1 -1
  89. package/es/ProTable/style/{style.css → index.css} +0 -0
  90. package/es/ProTable/style/index.js +1 -1
  91. package/es/Radio/style/{style.css → index.css} +0 -0
  92. package/es/Radio/style/index.js +1 -1
  93. package/es/Select/style/index.css +3 -0
  94. package/es/TableRender/style/{style.css → index.css} +0 -0
  95. package/es/TableRender/style/index.js +1 -1
  96. package/es/UploadOss/style/{style.css → index.css} +0 -0
  97. package/es/UploadOss/style/index.js +1 -1
  98. package/es/VirtualList/style/{style.css → index.css} +0 -0
  99. package/es/VirtualList/style/index.js +1 -1
  100. package/es/index.d.ts +2 -0
  101. package/es/index.js +3 -1
  102. package/es/message/hooks/useMessage.d.ts +7 -0
  103. package/es/message/hooks/useMessage.js +83 -0
  104. package/es/message/index.d.ts +63 -4
  105. package/es/message/index.js +241 -12
  106. package/es/message/style/index.css +27 -1
  107. package/lib/Button/style/{style.css → index.css} +0 -0
  108. package/lib/Button/style/index.d.ts +1 -1
  109. package/lib/Button/style/index.js +1 -1
  110. package/lib/ButtonTags/style/{style.css → index.css} +0 -0
  111. package/lib/ButtonTags/style/index.js +1 -1
  112. package/lib/CardTable/card/PictureTextColumn.js +11 -6
  113. package/lib/CardTable/card/PictureTextRow.js +11 -6
  114. package/lib/CardTable/fns/index.js +106 -0
  115. package/lib/CardTable/hooks/usePagination.js +128 -0
  116. package/lib/CardTable/index.js +3 -0
  117. package/{es/CardTable/style/style.css → lib/CardTable/style/index.css} +13 -1
  118. package/lib/CardTable/style/index.js +1 -1
  119. package/lib/CardTable/table/TableRoot.js +43 -64
  120. package/lib/CardTable/table/TableWrapper.js +4 -0
  121. package/lib/CardTable/toolbar/TablePagination.js +62 -0
  122. package/lib/CardTable/toolbar/ToolBarBottom.js +47 -0
  123. package/lib/Checkbox/style/{style.css → index.css} +0 -0
  124. package/lib/Checkbox/style/index.js +1 -1
  125. package/lib/CkFilter/style/{style.css → index.css} +0 -0
  126. package/lib/CkFilter/style/index.js +1 -1
  127. package/lib/CustomTableOption/columnsSort.js +5 -5
  128. package/lib/CustomTableOption/filterSort.js +3 -3
  129. package/lib/CustomTableOption/index.js +1 -2
  130. package/lib/CustomerService/style/{style.css → index.css} +0 -0
  131. package/lib/CustomerService/style/index.js +1 -1
  132. package/lib/EditTable/style/{style.css → index.css} +0 -0
  133. package/lib/EditTable/style/index.js +1 -1
  134. package/lib/EnlargeImg/style/{style.css → index.css} +0 -0
  135. package/lib/EnlargeImg/style/index.js +1 -1
  136. package/lib/Filter/style/{style.css → index.css} +0 -0
  137. package/lib/Filter/style/index.js +1 -1
  138. package/lib/IconSelect/style/{style.css → index.css} +0 -0
  139. package/lib/IconSelect/style/index.js +1 -1
  140. package/{es/Input/style/style.css → lib/Input/style/index.css} +21 -1
  141. package/lib/Input/style/index.js +1 -1
  142. package/lib/LeftTable/style/{style.css → index.css} +0 -0
  143. package/lib/LeftTable/style/index.js +1 -1
  144. package/lib/List/index.d.ts +2 -0
  145. package/lib/List/index.js +15 -0
  146. package/lib/List/style/index.css +505 -0
  147. package/lib/List/style/index.d.ts +1 -0
  148. package/lib/List/style/index.js +3 -0
  149. package/lib/LmEditTable/DndContainer.d.ts +5 -0
  150. package/lib/LmEditTable/DndContainer.js +49 -0
  151. package/lib/LmEditTable/DragHandle.d.ts +4 -0
  152. package/lib/LmEditTable/DragHandle.js +37 -0
  153. package/lib/LmEditTable/EditTable.d.ts +31 -0
  154. package/lib/LmEditTable/EditTable.js +925 -0
  155. package/lib/LmEditTable/index.d.ts +2 -0
  156. package/lib/LmEditTable/index.js +13 -0
  157. package/lib/LmEditTable/sortableBox.d.ts +5 -0
  158. package/lib/LmEditTable/sortableBox.js +24 -0
  159. package/lib/LmEditTable/sortableItem.d.ts +2 -0
  160. package/lib/LmEditTable/sortableItem.js +55 -0
  161. package/lib/LmEditTable/style/index.css +574 -0
  162. package/lib/LmEditTable/style/index.d.ts +1 -0
  163. package/lib/LmEditTable/style/index.js +3 -0
  164. package/lib/LmTable/Table.js +16 -6
  165. package/{es/LmTable/style/style.css → lib/LmTable/style/index.css} +6 -0
  166. package/lib/LmTable/style/index.js +1 -1
  167. package/lib/OldModal/style/{style.css → index.css} +0 -0
  168. package/lib/OldModal/style/index.js +1 -1
  169. package/lib/PopTable/style/{style.css → index.css} +0 -0
  170. package/lib/PopTable/style/index.js +1 -1
  171. package/lib/ProTable/style/{style.css → index.css} +0 -0
  172. package/lib/ProTable/style/index.js +1 -1
  173. package/lib/Radio/style/{style.css → index.css} +0 -0
  174. package/lib/Radio/style/index.js +1 -1
  175. package/lib/Select/style/index.css +3 -0
  176. package/lib/TableRender/style/{style.css → index.css} +0 -0
  177. package/lib/TableRender/style/index.js +1 -1
  178. package/lib/UploadOss/style/{style.css → index.css} +0 -0
  179. package/lib/UploadOss/style/index.js +1 -1
  180. package/lib/VirtualList/style/{style.css → index.css} +0 -0
  181. package/lib/VirtualList/style/index.js +1 -1
  182. package/lib/index.d.ts +2 -0
  183. package/lib/index.js +17 -1
  184. package/lib/message/hooks/useMessage.d.ts +7 -0
  185. package/lib/message/hooks/useMessage.js +101 -0
  186. package/lib/message/index.d.ts +63 -4
  187. package/lib/message/index.js +262 -16
  188. package/lib/message/style/index.css +27 -1
  189. package/package.json +2 -1
@@ -43,7 +43,7 @@ var _empty = _interopRequireDefault(require("./assets/empty.png"));
43
43
 
44
44
  var _resetConfig = _interopRequireDefault(require("./resetConfig"));
45
45
 
46
- var _excluded = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "resizeable", "customCheck", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size"],
46
+ var _excluded = ["dataSource", "autoSize", "columns", "rowClick", "onDoubleClick", "checkConfig", "summary", "pagination", "hiddenPage", "loading", "virtual", "sortOpen", "resizeable", "customCheck", "components", "rowSelection", "columnsState", "onChange", "filterChange", "tableRowType", "size"],
47
47
  _excluded2 = ["className", "style"],
48
48
  _excluded3 = ["onResize", "width", "onResizeStop"];
49
49
  var Summary = _proTable.default.Summary;
@@ -83,6 +83,7 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
83
83
  _props$resizeable = props.resizeable,
84
84
  resizeable = _props$resizeable === void 0 ? false : _props$resizeable,
85
85
  customCheck = props.customCheck,
86
+ components = props.components,
86
87
  rowSelection = props.rowSelection,
87
88
  columnsState = props.columnsState,
88
89
  onChange = props.onChange,
@@ -154,7 +155,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
154
155
  var index = dataSource.findIndex(function (x) {
155
156
  return x[rowKey || 'index'] === restProps['data-row-key'];
156
157
  });
157
- console.log(dataSource, restProps, 222, index);
158
158
  return /*#__PURE__*/_react.default.createElement(SortableItem, (0, _extends2.default)({
159
159
  index: index
160
160
  }, restProps));
@@ -228,8 +228,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
228
228
  trigger = _Object$assign.trigger,
229
229
  highlight = _Object$assign.highlight;
230
230
 
231
- console.log(trigger, highlight, 'rowclick');
232
-
233
231
  if (highlight) {
234
232
  setActiveKey(record[rowKey]);
235
233
  }
@@ -407,7 +405,10 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
407
405
  });
408
406
  rowClick === null || rowClick === void 0 ? void 0 : rowClick(value);
409
407
  },
410
- checkboxRecords: useSelectedRows.selectedRows
408
+ checkboxRecords: useSelectedRows.selectedRows,
409
+ columns: useColumns.map(function (item) {
410
+ return (0, _lodash.omit)(item, ['render', 'sorter', 'onFilter', 'filters']);
411
+ })
411
412
  };
412
413
  }); // loading触发清空选中状态
413
414
 
@@ -490,8 +491,17 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
490
491
  };
491
492
  }
492
493
 
494
+ if (components) {
495
+ var _components$body = components.body,
496
+ body = _components$body === void 0 ? {} : _components$body,
497
+ _components$header = components.header,
498
+ header = _components$header === void 0 ? {} : _components$header;
499
+ obj['body'] = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, obj['body']), body);
500
+ obj['header'] = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, obj['header']), header);
501
+ }
502
+
493
503
  return obj;
494
- }, [sortOpen, resizeable]);
504
+ }, [sortOpen, resizeable, components]);
495
505
  return /*#__PURE__*/_react.default.createElement("div", {
496
506
  style: {
497
507
  height: '100%',
@@ -1101,6 +1101,12 @@ html {
1101
1101
  #lm_protable_warp .lm_protable .lm_table_empty > span {
1102
1102
  color: var(--font-color);
1103
1103
  }
1104
+ #lm_protable_warp .lm_protable .ant-table-empty table {
1105
+ height: 100%;
1106
+ }
1107
+ #lm_protable_warp .lm_protable .ant-table-empty table .ant-table-cell {
1108
+ border-bottom: 0;
1109
+ }
1104
1110
  #lm_protable_warp .ant-table-expand-icon-col {
1105
1111
  width: 32px;
1106
1112
  }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
@@ -506,6 +506,9 @@ html {
506
506
  .lm_select.ant-select {
507
507
  font-size: 12px;
508
508
  }
509
+ .lm_select.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
510
+ box-shadow: none;
511
+ }
509
512
  .lm_select_dropdown .ant-select-item-option-active:not(.ant-select-item-option-disabled) {
510
513
  background-color: var(--background-color);
511
514
  }
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
File without changes
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
 
3
- require("./style.css");
3
+ require("./index.css");
package/lib/index.d.ts CHANGED
@@ -46,3 +46,5 @@ export type { UploadProps, UploadFile, RcFile } from './Upload';
46
46
  export { default as Tooltip } from './Tooltip';
47
47
  export { default as Form } from './Form';
48
48
  export { default as Spin } from './Spin';
49
+ export { default as LmEditTable } from './LmEditTable';
50
+ export { default as List } from './List';
package/lib/index.js CHANGED
@@ -137,6 +137,18 @@ Object.defineProperty(exports, "LeftTable", {
137
137
  return _LeftTable.default;
138
138
  }
139
139
  });
140
+ Object.defineProperty(exports, "List", {
141
+ enumerable: true,
142
+ get: function get() {
143
+ return _List.default;
144
+ }
145
+ });
146
+ Object.defineProperty(exports, "LmEditTable", {
147
+ enumerable: true,
148
+ get: function get() {
149
+ return _LmEditTable.default;
150
+ }
151
+ });
140
152
  Object.defineProperty(exports, "LmSelect", {
141
153
  enumerable: true,
142
154
  get: function get() {
@@ -380,4 +392,8 @@ var _Tooltip = _interopRequireDefault(require("./Tooltip"));
380
392
 
381
393
  var _Form = _interopRequireDefault(require("./Form"));
382
394
 
383
- var _Spin = _interopRequireDefault(require("./Spin"));
395
+ var _Spin = _interopRequireDefault(require("./Spin"));
396
+
397
+ var _LmEditTable = _interopRequireDefault(require("./LmEditTable"));
398
+
399
+ var _List = _interopRequireDefault(require("./List"));
@@ -0,0 +1,7 @@
1
+ import type { NoticeContent as RCNoticeContent, NotificationInstance as RCNotificationInstance } from 'rc-notification/lib/Notification';
2
+ import * as React from 'react';
3
+ import type { ArgsProps, MessageInstance } from '..';
4
+ export default function createUseMessage(getRcNotificationInstance: (args: ArgsProps, callback: (info: {
5
+ prefixCls: string;
6
+ instance: RCNotificationInstance;
7
+ }) => void) => void, getRCNoticeProps: (args: ArgsProps, prefixCls: string) => RCNoticeContent): () => [MessageInstance, React.ReactElement];
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
+
7
+ Object.defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+ exports.default = createUseMessage;
11
+
12
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
+
14
+ var _useNotification = _interopRequireDefault(require("rc-notification/lib/useNotification"));
15
+
16
+ var React = _interopRequireWildcard(require("react"));
17
+
18
+ var _ = require("..");
19
+
20
+ var _configProvider = require("antd/es/config-provider");
21
+
22
+ function createUseMessage(getRcNotificationInstance, getRCNoticeProps) {
23
+ var useMessage = function useMessage() {
24
+ // We can only get content by render
25
+ var getPrefixCls;
26
+ var getPopupContainer; // We create a proxy to handle delay created instance
27
+
28
+ var innerInstance = null;
29
+ var proxy = {
30
+ add: function add(noticeProps, holderCallback) {
31
+ innerInstance === null || innerInstance === void 0 ? void 0 : innerInstance.component.add(noticeProps, holderCallback);
32
+ }
33
+ };
34
+
35
+ var _useRCNotification = (0, _useNotification.default)(proxy),
36
+ _useRCNotification2 = (0, _slicedToArray2.default)(_useRCNotification, 2),
37
+ hookNotify = _useRCNotification2[0],
38
+ holder = _useRCNotification2[1];
39
+
40
+ function notify(args) {
41
+ var customizePrefixCls = args.prefixCls;
42
+ var mergedPrefixCls = getPrefixCls('message', customizePrefixCls);
43
+ var rootPrefixCls = getPrefixCls();
44
+ var target = args.key || (0, _.getKeyThenIncreaseKey)();
45
+ var closePromise = new Promise(function (resolve) {
46
+ var callback = function callback() {
47
+ if (typeof args.onClose === 'function') {
48
+ args.onClose();
49
+ }
50
+
51
+ return resolve(true);
52
+ };
53
+
54
+ getRcNotificationInstance(Object.assign(Object.assign({}, args), {
55
+ prefixCls: mergedPrefixCls,
56
+ rootPrefixCls: rootPrefixCls,
57
+ getPopupContainer: getPopupContainer
58
+ }), function (_ref) {
59
+ var prefixCls = _ref.prefixCls,
60
+ instance = _ref.instance;
61
+ innerInstance = instance;
62
+ hookNotify(getRCNoticeProps(Object.assign(Object.assign({}, args), {
63
+ key: target,
64
+ onClose: callback
65
+ }), prefixCls));
66
+ });
67
+ });
68
+
69
+ var result = function result() {
70
+ if (innerInstance) {
71
+ innerInstance.removeNotice(target);
72
+ }
73
+ };
74
+
75
+ result.then = function (filled, rejected) {
76
+ return closePromise.then(filled, rejected);
77
+ };
78
+
79
+ result.promise = closePromise;
80
+ return result;
81
+ } // Fill functions
82
+
83
+
84
+ var hookApiRef = React.useRef({});
85
+ hookApiRef.current.open = notify;
86
+
87
+ _.typeList.forEach(function (type) {
88
+ return (0, _.attachTypeApi)(hookApiRef.current, type);
89
+ });
90
+
91
+ return [hookApiRef.current, /*#__PURE__*/React.createElement(_configProvider.ConfigConsumer, {
92
+ key: "holder"
93
+ }, function (context) {
94
+ getPrefixCls = context.getPrefixCls;
95
+ getPopupContainer = context.getPopupContainer;
96
+ return holder;
97
+ })];
98
+ };
99
+
100
+ return useMessage;
101
+ }
@@ -1,7 +1,66 @@
1
+ import type { NotificationInstance as RCNotificationInstance } from 'rc-notification/lib/Notification';
1
2
  import React from 'react';
2
- import { message } from 'antd';
3
- export interface IMessageProps {
4
- className?: string;
3
+ export declare function getKeyThenIncreaseKey(): number;
4
+ export interface ConfigOptions {
5
+ top?: number;
6
+ duration?: number;
7
+ prefixCls?: string;
8
+ getContainer?: () => HTMLElement;
9
+ transitionName?: string;
10
+ maxCount?: number;
11
+ rtl?: boolean;
12
+ }
13
+ export interface ThenableArgument {
14
+ (val: any): void;
15
+ }
16
+ export interface MessageType extends PromiseLike<any> {
17
+ (): void;
18
+ }
19
+ declare const typeToIcon: {
20
+ info: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "children" | "className" | "size" | "type" | "default" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
21
+ success: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "children" | "className" | "size" | "type" | "default" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
22
+ error: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "children" | "className" | "size" | "type" | "default" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
23
+ warning: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "children" | "className" | "size" | "type" | "default" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
24
+ loading: React.ForwardRefExoticComponent<Pick<import("@ant-design/icons/lib/components/AntdIcon").AntdIconProps, "children" | "className" | "size" | "type" | "default" | "onClick" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "list" | "step" | "shape" | "cite" | "data" | "label" | "span" | "summary" | "pattern" | "maxLength" | "open" | "multiple" | "key" | "classID" | "height" | "width" | "checked" | "max" | "required" | "high" | "low" | "start" | "content" | "rotate" | "acceptCharset" | "action" | "method" | "noValidate" | "nonce" | "async" | "manifest" | "wrap" | "src" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | "spin" | "twoToneColor"> & React.RefAttributes<HTMLSpanElement>>;
25
+ };
26
+ export declare type NoticeType = keyof typeof typeToIcon;
27
+ export declare const typeList: ("loading" | "warning" | "error" | "info" | "success")[];
28
+ export interface ArgsProps {
29
+ content: any;
30
+ duration?: number;
31
+ type?: NoticeType;
32
+ prefixCls?: string;
33
+ rootPrefixCls?: string;
34
+ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
35
+ onClose?: () => void;
36
+ icon?: React.ReactNode;
37
+ key?: string | number;
5
38
  style?: React.CSSProperties;
39
+ className?: string;
40
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
41
+ /** 是否要显示进度条 */
42
+ progress?: boolean;
43
+ }
44
+ declare type ConfigContent = React.ReactNode;
45
+ declare type ConfigDuration = number | (() => void);
46
+ declare type JointContent = ConfigContent | ArgsProps;
47
+ export declare type ConfigOnClose = () => void;
48
+ export declare function attachTypeApi(originalApi: MessageApi, type: NoticeType): void;
49
+ export interface MessageInstance {
50
+ info(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
51
+ success(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
52
+ error(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
53
+ warning(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
54
+ loading(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
55
+ open(args: ArgsProps): MessageType;
56
+ }
57
+ export interface MessageApi extends MessageInstance {
58
+ warn(content: JointContent, duration?: ConfigDuration, onClose?: ConfigOnClose): MessageType;
59
+ config(options: ConfigOptions): void;
60
+ destroy(messageKey?: React.Key): void;
61
+ useMessage(): [MessageInstance, React.ReactElement];
6
62
  }
7
- export default message;
63
+ /** @private test Only function. Not work on production */
64
+ export declare const getInstance: () => RCNotificationInstance;
65
+ declare const _default: MessageApi;
66
+ export default _default;