@qsxy/element-plus-react 1.0.0-next.11 → 1.0.0-next.13

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 (177) hide show
  1. package/dist/Avatar/Avatar.d.ts +2 -2
  2. package/dist/Avatar/Avatar.js +13 -6
  3. package/dist/Badge/Badge.d.ts +1 -1
  4. package/dist/Badge/Badge.js +15 -3
  5. package/dist/Checkbox/Checkbox.js +14 -12
  6. package/dist/Checkbox/CheckboxButton.js +15 -14
  7. package/dist/Checkbox/typings.d.ts +2 -1
  8. package/dist/Dropdown/Dropdown.d.ts +3 -3
  9. package/dist/Dropdown/Dropdown.js +20 -6
  10. package/dist/Dropdown/typings.d.ts +8 -1
  11. package/dist/Input/Input.js +3 -2
  12. package/dist/Input/typings.d.ts +1 -1
  13. package/dist/InputNumber/InputNumber.d.ts +2 -2
  14. package/dist/InputNumber/InputNumber.js +10 -5
  15. package/dist/Loading/Loading.d.ts +7 -2
  16. package/dist/Loading/Loading.js +108 -57
  17. package/dist/Loading/typings.d.ts +7 -1
  18. package/dist/Message/Main.d.ts +0 -7
  19. package/dist/Message/Main.js +0 -7
  20. package/dist/Message/Message.d.ts +2 -2
  21. package/dist/Message/Message.js +4 -3
  22. package/dist/Message/index.d.ts +0 -8
  23. package/dist/Message/index.js +5 -9
  24. package/dist/MessageBox/MessageBox.js +2 -1
  25. package/dist/MessageBox/index.d.ts +5 -5
  26. package/dist/MessageBox/index.js +1 -0
  27. package/dist/Notification/Main.d.ts +0 -7
  28. package/dist/Notification/Main.js +0 -7
  29. package/dist/Popover/Popover.d.ts +3 -2
  30. package/dist/Popover/Popover.js +10 -5
  31. package/dist/Popover/typings.d.ts +0 -1
  32. package/dist/Radio/Radio.js +14 -10
  33. package/dist/Radio/RadioButton.d.ts +2 -2
  34. package/dist/Radio/RadioButton.js +14 -4
  35. package/dist/Radio/typings.d.ts +2 -1
  36. package/dist/Switch/Switch.js +9 -3
  37. package/dist/Table/Table.d.ts +0 -1
  38. package/dist/Table/Table.js +1 -1
  39. package/dist/Table/hooks/useSelection.d.ts +1 -1
  40. package/dist/Tag/Tag.js +19 -8
  41. package/dist/TimePicker/TimeSpinnerPanel.js +5 -5
  42. package/dist/Tooltip/Tooltip.d.ts +3 -3
  43. package/dist/Tooltip/Tooltip.js +6 -6
  44. package/dist/Upload/use-handlers.d.ts +1 -1
  45. package/dist/index.css +1 -1
  46. package/package.json +1 -1
  47. package/theme-chalk/message/index.scss +11 -3
  48. package/dist/theme-chalk/avatar/index.scss +0 -50
  49. package/dist/theme-chalk/badge/index.scss +0 -63
  50. package/dist/theme-chalk/breadcrumb/index.scss +0 -65
  51. package/dist/theme-chalk/build.scss +0 -2
  52. package/dist/theme-chalk/button/_mixins.scss +0 -317
  53. package/dist/theme-chalk/button/button-group.scss +0 -83
  54. package/dist/theme-chalk/button/button.scss +0 -382
  55. package/dist/theme-chalk/button/index.scss +0 -2
  56. package/dist/theme-chalk/calendar/date-picker.scss +0 -112
  57. package/dist/theme-chalk/calendar/date-range-picker.scss +0 -139
  58. package/dist/theme-chalk/calendar/date-table.scss +0 -156
  59. package/dist/theme-chalk/calendar/index.scss +0 -6
  60. package/dist/theme-chalk/calendar/month-table.scss +0 -92
  61. package/dist/theme-chalk/calendar/picker-panel.scss +0 -136
  62. package/dist/theme-chalk/calendar/year-table.scss +0 -107
  63. package/dist/theme-chalk/card/index.scss +0 -44
  64. package/dist/theme-chalk/carousel/index.scss +0 -237
  65. package/dist/theme-chalk/cascader/cascader-panel.scss +0 -184
  66. package/dist/theme-chalk/cascader/cascader.scss +0 -239
  67. package/dist/theme-chalk/cascader/index.scss +0 -2
  68. package/dist/theme-chalk/checkbox/index.scss +0 -255
  69. package/dist/theme-chalk/checkbox-button/index.scss +0 -117
  70. package/dist/theme-chalk/checkbox-group/index.scss +0 -33
  71. package/dist/theme-chalk/col/_mixins.scss +0 -62
  72. package/dist/theme-chalk/col/index.scss +0 -50
  73. package/dist/theme-chalk/collapse/index.scss +0 -84
  74. package/dist/theme-chalk/color-picker/index.scss +0 -340
  75. package/dist/theme-chalk/common/_var.scss +0 -6
  76. package/dist/theme-chalk/common/index.d.ts +0 -1
  77. package/dist/theme-chalk/common/index.js +0 -1
  78. package/dist/theme-chalk/common/index.scss +0 -222
  79. package/dist/theme-chalk/date-picker/index.scss +0 -253
  80. package/dist/theme-chalk/date-time-picker/index.scss +0 -3
  81. package/dist/theme-chalk/date-time-picker/time-picker.scss +0 -83
  82. package/dist/theme-chalk/date-time-picker/time-range-picker.scss +0 -32
  83. package/dist/theme-chalk/descriptions/descriptions-item.scss +0 -66
  84. package/dist/theme-chalk/descriptions/descriptions.scss +0 -160
  85. package/dist/theme-chalk/descriptions/index.scss +0 -2
  86. package/dist/theme-chalk/dev.scss +0 -2
  87. package/dist/theme-chalk/dialog/index.scss +0 -190
  88. package/dist/theme-chalk/display.scss +0 -46
  89. package/dist/theme-chalk/divider/index.scss +0 -51
  90. package/dist/theme-chalk/doc.scss +0 -2
  91. package/dist/theme-chalk/drawer/index.scss +0 -250
  92. package/dist/theme-chalk/dropdown/index.scss +0 -147
  93. package/dist/theme-chalk/empty/index.scss +0 -69
  94. package/dist/theme-chalk/fonts/fa-brands-400.ttf +0 -0
  95. package/dist/theme-chalk/fonts/fa-brands-400.woff2 +0 -0
  96. package/dist/theme-chalk/fonts/fa-duotone-900.ttf +0 -0
  97. package/dist/theme-chalk/fonts/fa-duotone-900.woff2 +0 -0
  98. package/dist/theme-chalk/fonts/fa-light-300.ttf +0 -0
  99. package/dist/theme-chalk/fonts/fa-light-300.woff2 +0 -0
  100. package/dist/theme-chalk/fonts/fa-regular-400.ttf +0 -0
  101. package/dist/theme-chalk/fonts/fa-regular-400.woff2 +0 -0
  102. package/dist/theme-chalk/fonts/fa-solid-900.ttf +0 -0
  103. package/dist/theme-chalk/fonts/fa-solid-900.woff2 +0 -0
  104. package/dist/theme-chalk/fonts/fa-thin-100.ttf +0 -0
  105. package/dist/theme-chalk/fonts/fa-thin-100.woff2 +0 -0
  106. package/dist/theme-chalk/fonts/fa-v4compatibility.ttf +0 -0
  107. package/dist/theme-chalk/fonts/fa-v4compatibility.woff2 +0 -0
  108. package/dist/theme-chalk/form/index.scss +0 -378
  109. package/dist/theme-chalk/icon/fonts.scss +0 -9
  110. package/dist/theme-chalk/icon/index.scss +0 -44
  111. package/dist/theme-chalk/icon/scss/_animated.scss +0 -205
  112. package/dist/theme-chalk/icon/scss/_bordered-pulled.scss +0 -20
  113. package/dist/theme-chalk/icon/scss/_core.scss +0 -33
  114. package/dist/theme-chalk/icon/scss/_duotone-icons.scss +0 -12
  115. package/dist/theme-chalk/icon/scss/_fixed-width.scss +0 -7
  116. package/dist/theme-chalk/icon/scss/_functions.scss +0 -57
  117. package/dist/theme-chalk/icon/scss/_icons.scss +0 -11
  118. package/dist/theme-chalk/icon/scss/_list.scss +0 -20
  119. package/dist/theme-chalk/icon/scss/_mixins.scss +0 -102
  120. package/dist/theme-chalk/icon/scss/_rotated-flipped.scss +0 -31
  121. package/dist/theme-chalk/icon/scss/_screen-reader.scss +0 -14
  122. package/dist/theme-chalk/icon/scss/_shims.scss +0 -2606
  123. package/dist/theme-chalk/icon/scss/_sizing.scss +0 -16
  124. package/dist/theme-chalk/icon/scss/_stacked.scss +0 -32
  125. package/dist/theme-chalk/icon/scss/_variables.scss +0 -9189
  126. package/dist/theme-chalk/icon/scss/brands.scss +0 -27
  127. package/dist/theme-chalk/icon/scss/duotone.scss +0 -72
  128. package/dist/theme-chalk/icon/scss/fontawesome.scss +0 -13
  129. package/dist/theme-chalk/icon/scss/index.scss +0 -15
  130. package/dist/theme-chalk/icon/scss/light.scss +0 -21
  131. package/dist/theme-chalk/icon/scss/regular.scss +0 -21
  132. package/dist/theme-chalk/icon/scss/solid.scss +0 -21
  133. package/dist/theme-chalk/icon/scss/thin.scss +0 -21
  134. package/dist/theme-chalk/icon/scss/v4-shims.scss +0 -3
  135. package/dist/theme-chalk/index.scss +0 -67
  136. package/dist/theme-chalk/input/_mixins.scss +0 -16
  137. package/dist/theme-chalk/input/index.scss +0 -3
  138. package/dist/theme-chalk/input/input-range.scss +0 -208
  139. package/dist/theme-chalk/input/input.scss +0 -577
  140. package/dist/theme-chalk/input-number/index.scss +0 -172
  141. package/dist/theme-chalk/link/index.scss +0 -99
  142. package/dist/theme-chalk/loading/index.scss +0 -94
  143. package/dist/theme-chalk/message/index.scss +0 -169
  144. package/dist/theme-chalk/message-box/index.scss +0 -184
  145. package/dist/theme-chalk/notification/index.scss +0 -155
  146. package/dist/theme-chalk/pagination/index.scss +0 -515
  147. package/dist/theme-chalk/placeholder/index.scss +0 -135
  148. package/dist/theme-chalk/popconfirm/index.scss +0 -35
  149. package/dist/theme-chalk/popover/index.scss +0 -54
  150. package/dist/theme-chalk/popper/index.scss +0 -86
  151. package/dist/theme-chalk/progress/index.scss +0 -155
  152. package/dist/theme-chalk/radio/index.scss +0 -2
  153. package/dist/theme-chalk/radio/radio-button.scss +0 -128
  154. package/dist/theme-chalk/radio/radio.scss +0 -171
  155. package/dist/theme-chalk/radio-group/index.scss +0 -31
  156. package/dist/theme-chalk/row/index.scss +0 -30
  157. package/dist/theme-chalk/scrollbar/index.scss +0 -103
  158. package/dist/theme-chalk/select/index.scss +0 -244
  159. package/dist/theme-chalk/select/option-group.scss +0 -54
  160. package/dist/theme-chalk/select/option.scss +0 -63
  161. package/dist/theme-chalk/select/select-dropdown.scss +0 -57
  162. package/dist/theme-chalk/switch/index.scss +0 -273
  163. package/dist/theme-chalk/table/index.scss +0 -714
  164. package/dist/theme-chalk/tabs/index.scss +0 -620
  165. package/dist/theme-chalk/tag/index.scss +0 -360
  166. package/dist/theme-chalk/time-line/_timeline-item.scss +0 -90
  167. package/dist/theme-chalk/time-line/_timeline.scss +0 -50
  168. package/dist/theme-chalk/time-line/index.scss +0 -2
  169. package/dist/theme-chalk/time-picker/index.scss +0 -109
  170. package/dist/theme-chalk/tooltip/index.scss +0 -13
  171. package/dist/theme-chalk/transfer/index.scss +0 -247
  172. package/dist/theme-chalk/transition/index.scss +0 -756
  173. package/dist/theme-chalk/tree/_directory.scss +0 -73
  174. package/dist/theme-chalk/tree/_tree.scss +0 -401
  175. package/dist/theme-chalk/tree/index.scss +0 -2
  176. package/dist/theme-chalk/tree-select/index.scss +0 -25
  177. package/dist/theme-chalk/upload/index.scss +0 -631
@@ -1,5 +1,6 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
3
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
@@ -15,7 +16,7 @@ import isBoolean from 'lodash/isBoolean';
15
16
  import React, { forwardRef, isValidElement, useCallback, useMemo, useRef } from 'react';
16
17
  import Icon from "../Icon/Icon";
17
18
  import { mergeDefaultProps, warning } from "../Util";
18
- import { useClassNames, useControlled, useDisabled, useSize } from "../hooks";
19
+ import { partitionHTMLProps, useClassNames, useControlled, useDisabled, useSize } from "../hooks";
19
20
  var Switch = /*#__PURE__*/forwardRef(function (props, ref) {
20
21
  props = mergeDefaultProps({
21
22
  disabled: false,
@@ -58,6 +59,11 @@ var Switch = /*#__PURE__*/forwardRef(function (props, ref) {
58
59
  m = _useClassNames.m,
59
60
  em = _useClassNames.em,
60
61
  is = _useClassNames.is;
62
+ var _partitionHTMLProps = partitionHTMLProps(props, {
63
+ htmlProps: ['onMouseEnter', 'onMouseLeave', 'onClick', 'onContextMenu']
64
+ }),
65
+ _partitionHTMLProps2 = _slicedToArray(_partitionHTMLProps, 1),
66
+ tooltipEvents = _partitionHTMLProps2[0];
61
67
  var _useControlled = useControlled(props.value, defaultValue),
62
68
  _useControlled2 = _slicedToArray(_useControlled, 2),
63
69
  value = _useControlled2[0],
@@ -137,7 +143,7 @@ var Switch = /*#__PURE__*/forwardRef(function (props, ref) {
137
143
  }
138
144
  return null;
139
145
  }, [active, activeIcon, activeText, e, em, is]);
140
- return /*#__PURE__*/React.createElement("div", {
146
+ return /*#__PURE__*/React.createElement("div", _extends({
141
147
  className: classNames(b(), m(_defineProperty({}, size, size)), is({
142
148
  disabled: disabled,
143
149
  checked: active
@@ -148,7 +154,7 @@ var Switch = /*#__PURE__*/forwardRef(function (props, ref) {
148
154
  onMouseEnter: onMouseEnter,
149
155
  onMouseLeave: onMouseLeave,
150
156
  onContextMenu: onContextMenu
151
- }, /*#__PURE__*/React.createElement("input", {
157
+ }, tooltipEvents), /*#__PURE__*/React.createElement("input", {
152
158
  ref: inputRef,
153
159
  className: e(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["input"]))),
154
160
  type: "checkbox",
@@ -6,7 +6,6 @@ declare const ForwardTable: <RecordType extends object = any>(props: TableProps<
6
6
  type InternalTableType = typeof ForwardTable;
7
7
  interface TableInterface extends InternalTableType {
8
8
  displayName?: string;
9
- defaultProps?: Partial<TableProps<any>>;
10
9
  }
11
10
  declare const Table: TableInterface;
12
11
  export default Table;
@@ -247,5 +247,5 @@ function InternalTable(props, ref) {
247
247
  }
248
248
  var ForwardTable = /*#__PURE__*/forwardRef(InternalTable);
249
249
  var Table = ForwardTable;
250
- Table.displayName = 'Table';
250
+ Table.displayName = 'ElTable';
251
251
  export default Table;
@@ -39,4 +39,4 @@ export declare const activeRow: <T>(payload: T) => Action;
39
39
  * @param payload
40
40
  * @returns
41
41
  */
42
- export declare const onCheck: <T>(payload: Pick<State<T>, "isIndeterminate" | "selection">) => Action;
42
+ export declare const onCheck: <T>(payload: Pick<State<T>, "selection" | "isIndeterminate">) => Action;
package/dist/Tag/Tag.js CHANGED
@@ -1,17 +1,24 @@
1
- var _templateObject, _templateObject2;
2
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _templateObject, _templateObject2;
3
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
3
4
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
7
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
16
  import classNames from 'classnames';
10
17
  import { useComposeRef } from 'rc-util/lib/ref';
11
18
  import React, { forwardRef, useCallback, useRef } from 'react';
12
19
  import Icon from "../Icon/Icon";
13
20
  import Transition from "../Transition/Transition";
14
- import { useClassNames } from "../hooks";
21
+ import { partitionHTMLProps, useClassNames } from "../hooks";
15
22
  var Tag = /*#__PURE__*/forwardRef(function (props, ref) {
16
23
  var _props$type = props.type,
17
24
  type = _props$type === void 0 ? 'primary' : _props$type,
@@ -34,6 +41,11 @@ var Tag = /*#__PURE__*/forwardRef(function (props, ref) {
34
41
  m = _useClassNames.m,
35
42
  e = _useClassNames.e,
36
43
  is = _useClassNames.is;
44
+ var _partitionHTMLProps = partitionHTMLProps(props, {
45
+ htmlProps: ['onMouseEnter', 'onMouseLeave', 'onClick', 'onContextMenu']
46
+ }),
47
+ _partitionHTMLProps2 = _slicedToArray(_partitionHTMLProps, 1),
48
+ tooltipEvents = _partitionHTMLProps2[0];
37
49
  var containerRef = useRef(null);
38
50
  var mergedRef = useComposeRef(ref, containerRef);
39
51
  var onClickTag = useCallback(function (event) {
@@ -52,7 +64,7 @@ var Tag = /*#__PURE__*/forwardRef(function (props, ref) {
52
64
  transitionAppear: true,
53
65
  unmountOnExit: true,
54
66
  duration: 200
55
- }, /*#__PURE__*/React.createElement("span", {
67
+ }, /*#__PURE__*/React.createElement("span", _extends({
56
68
  ref: mergedRef,
57
69
  className: classNames(b(), m(type, theme, _defineProperty({}, size, size)), is({
58
70
  round: round,
@@ -60,11 +72,10 @@ var Tag = /*#__PURE__*/forwardRef(function (props, ref) {
60
72
  }), className),
61
73
  style: _objectSpread({
62
74
  background: color
63
- }, style),
64
- onClick: onClickTag,
65
- onMouseEnter: props.onMouseEnter,
66
- onMouseLeave: props.onMouseLeave
67
- }, /*#__PURE__*/React.createElement("span", {
75
+ }, style)
76
+ }, tooltipEvents, {
77
+ onClick: onClickTag
78
+ }), /*#__PURE__*/React.createElement("span", {
68
79
  className: e(_templateObject || (_templateObject = _taggedTemplateLiteral(["content"])))
69
80
  }, props.children), closable && /*#__PURE__*/React.createElement(Icon, {
70
81
  name: "xmark",
@@ -213,11 +213,11 @@ var TimeSpinnerPanel = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (prop
213
213
  if (!isInit.current) {
214
214
  handleSelectRange(type);
215
215
  }
216
- }, isRange ? 500 : 200);
217
- if (!isRange) {
218
- isScrolling.current = false;
219
- }
220
- }, [debouncedResetScroll, handleSelectRange, isRange, listRefsMap, modifyDateField, scrollBarHeight, typeItemHeight]);
216
+ }, 1000);
217
+ // if (!isRange) {
218
+ // isScrolling.current = false;
219
+ // }
220
+ }, [debouncedResetScroll, handleSelectRange, listRefsMap, modifyDateField, scrollBarHeight, typeItemHeight]);
221
221
 
222
222
  /** 绑定时间滚动事件 */
223
223
  var bindFuntion = useCallback(function (type) {
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { TooltipProps } from './typings';
3
- declare const Tooltip: FC<TooltipProps>;
1
+ import React from 'react';
2
+ import { TooltipProps, TooltipRef } from './typings';
3
+ declare const Tooltip: React.MemoExoticComponent<React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<TooltipRef>>>;
4
4
  export default Tooltip;
@@ -18,12 +18,12 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
18
18
  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; }
19
19
  import classNames from 'classnames';
20
20
  import noop from 'lodash/noop';
21
- import React, { Children, cloneElement, forwardRef, useCallback, useImperativeHandle, useRef } from 'react';
21
+ import React, { Children, cloneElement, forwardRef, memo, useCallback, useImperativeHandle, useRef } from 'react';
22
22
  import * as ReactIs from 'react-is';
23
- import { partitionAnimationProps, partitionPopperPropsUtils, useClassNames, useControlled } from "../hooks";
24
23
  import Popper from "../Popper/Popper";
24
+ import { partitionAnimationProps, partitionPopperPropsUtils, useClassNames, useControlled } from "../hooks";
25
25
  import { TooltipContext } from "./TooltipContext";
26
- var Tooltip = /*#__PURE__*/forwardRef(function (props, ref) {
26
+ var Tooltip = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (props, ref) {
27
27
  var _props$classPrefix = props.classPrefix,
28
28
  classPrefix = _props$classPrefix === void 0 ? 'tooltip' : _props$classPrefix,
29
29
  _props$effect = props.effect,
@@ -37,7 +37,7 @@ var Tooltip = /*#__PURE__*/forwardRef(function (props, ref) {
37
37
  _props$showAfter = props.showAfter,
38
38
  showAfter = _props$showAfter === void 0 ? 0 : _props$showAfter,
39
39
  _props$hideAfter = props.hideAfter,
40
- hideAfter = _props$hideAfter === void 0 ? 0 : _props$hideAfter,
40
+ hideAfter = _props$hideAfter === void 0 ? 100 : _props$hideAfter,
41
41
  onMouseEnter = props.onMouseEnter,
42
42
  onMouseLeave = props.onMouseLeave,
43
43
  onEnter = props.onEnter,
@@ -194,6 +194,6 @@ var Tooltip = /*#__PURE__*/forwardRef(function (props, ref) {
194
194
  }
195
195
  }
196
196
  }, contentSlot !== null && contentSlot !== void 0 ? contentSlot : /*#__PURE__*/React.createElement("span", null, content))));
197
- });
198
- Tooltip.displayName = 'Tooltip';
197
+ }));
198
+ Tooltip.displayName = 'ElTooltip';
199
199
  export default Tooltip;
@@ -12,6 +12,6 @@ export declare const useHandlers: (props: Omit<UploadProps, 'fileList'> & {
12
12
  handleProgress: (evt: import("./typings").UploadProgressEvent, rawFile: UploadRawFile) => void;
13
13
  handleStart: (rawFile: UploadRawFile) => void;
14
14
  handleSuccess: (response: any, rawFile: UploadRawFile) => unknown;
15
- handleRemove: (file: UploadFile | UploadRawFile) => void;
15
+ handleRemove: (file: UploadRawFile | UploadFile) => void;
16
16
  submit: () => void;
17
17
  };