@autobest-ui/components 1.4.0 → 2.0.1

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 (183) hide show
  1. package/esm/accordion/Item.d.ts +1 -1
  2. package/esm/accordion/Item.js +5 -3
  3. package/esm/accordion/index.d.ts +1 -1
  4. package/esm/accordion/index.js +5 -3
  5. package/esm/affix/PortalAffix.js +7 -7
  6. package/esm/affix/index.js +19 -17
  7. package/esm/carousel/index.js +16 -14
  8. package/esm/checkbox/index.js +19 -17
  9. package/esm/collapse/index.js +13 -11
  10. package/esm/confirm/index.d.ts +1 -1
  11. package/esm/confirm/index.js +14 -14
  12. package/esm/date-picker/calendar/Day.d.ts +1 -1
  13. package/esm/date-picker/calendar/Day.js +11 -11
  14. package/esm/date-picker/calendar/MonthYear.js +8 -8
  15. package/esm/date-picker/calendar/grid/index.js +18 -18
  16. package/esm/date-picker/calendar/index.js +7 -5
  17. package/esm/date-picker/calendar/types.js +1 -0
  18. package/esm/date-picker/index.js +15 -13
  19. package/esm/drawer/Child.js +6 -6
  20. package/esm/drawer/index.js +11 -9
  21. package/esm/ellipsis/index.js +4 -4
  22. package/esm/guide/index.d.ts +4 -5
  23. package/esm/guide/index.js +19 -19
  24. package/esm/index.d.ts +0 -1
  25. package/esm/index.js +0 -1
  26. package/esm/input-number/index.d.ts +4 -4
  27. package/esm/input-number/index.js +27 -25
  28. package/esm/lazy-image/index.d.ts +3 -3
  29. package/esm/lazy-image/index.js +6 -4
  30. package/esm/link-list/index.js +24 -22
  31. package/esm/link-list/style/index.css +1 -1
  32. package/esm/loading/index.d.ts +7 -2
  33. package/esm/loading/index.js +20 -26
  34. package/esm/loading/style/index.css +1 -1
  35. package/esm/loading/style/index.scss +0 -10
  36. package/esm/loading-bar/index.d.ts +1 -0
  37. package/esm/loading-bar/index.js +3 -3
  38. package/esm/loading-container/index.js +6 -6
  39. package/esm/loading-icon/index.js +12 -12
  40. package/esm/mask/index.js +4 -4
  41. package/esm/message/index.js +14 -14
  42. package/esm/modal/Affix.d.ts +1 -0
  43. package/esm/modal/Affix.js +1 -1
  44. package/esm/modal/Title.js +9 -9
  45. package/esm/modal/getPopupLocation.js +1 -1
  46. package/esm/modal/index.d.ts +1 -1
  47. package/esm/modal/index.js +21 -19
  48. package/esm/modal/style/index.css +1 -1
  49. package/esm/move/index.d.ts +1 -1
  50. package/esm/move/index.js +14 -12
  51. package/esm/popover/index.js +9 -9
  52. package/esm/portal/index.js +5 -3
  53. package/esm/script/index.js +8 -6
  54. package/esm/select/index.d.ts +3 -3
  55. package/esm/select/index.js +34 -36
  56. package/esm/show-more/index.js +14 -12
  57. package/esm/skeleton/Item.js +3 -3
  58. package/esm/skeleton/index.js +11 -15
  59. package/esm/style.css +14 -15
  60. package/esm/table/body/BodyRow.js +8 -8
  61. package/esm/table/body/CheckIcon.js +7 -7
  62. package/esm/table/body/index.d.ts +1 -1
  63. package/esm/table/body/index.js +6 -6
  64. package/esm/table/header/CheckIcon.js +6 -6
  65. package/esm/table/header/HeaderCell.d.ts +1 -1
  66. package/esm/table/header/HeaderCell.js +10 -8
  67. package/esm/table/header/HeaderRow.d.ts +1 -0
  68. package/esm/table/header/HeaderRow.js +2 -2
  69. package/esm/table/index.d.ts +3 -7
  70. package/esm/table/index.js +20 -18
  71. package/esm/table/interface.js +1 -0
  72. package/esm/tabs/index.d.ts +1 -1
  73. package/esm/tabs/index.js +14 -12
  74. package/esm/tooltip/index.d.ts +1 -0
  75. package/esm/tooltip/index.js +1 -1
  76. package/esm/trigger/bottomAlign.js +2 -2
  77. package/esm/trigger/getPopupLocation.js +2 -1
  78. package/esm/trigger/index.d.ts +4 -4
  79. package/esm/trigger/index.js +24 -22
  80. package/esm/trigger/leftAlign.js +2 -2
  81. package/esm/trigger/rightAlign.js +2 -2
  82. package/esm/trigger/topAlign.js +2 -2
  83. package/esm/trigger/utils.js +2 -2
  84. package/lib/accordion/Item.d.ts +1 -1
  85. package/lib/accordion/Item.js +5 -3
  86. package/lib/accordion/index.d.ts +1 -1
  87. package/lib/accordion/index.js +5 -3
  88. package/lib/affix/PortalAffix.js +7 -7
  89. package/lib/affix/index.js +19 -17
  90. package/lib/carousel/index.js +16 -14
  91. package/lib/checkbox/index.js +19 -17
  92. package/lib/collapse/index.js +13 -11
  93. package/lib/confirm/index.d.ts +1 -1
  94. package/lib/confirm/index.js +14 -14
  95. package/lib/date-picker/calendar/Day.d.ts +1 -1
  96. package/lib/date-picker/calendar/Day.js +12 -12
  97. package/lib/date-picker/calendar/MonthYear.js +9 -9
  98. package/lib/date-picker/calendar/grid/index.js +18 -18
  99. package/lib/date-picker/calendar/index.js +8 -6
  100. package/lib/date-picker/calendar/types.js +5 -1
  101. package/lib/date-picker/index.js +15 -13
  102. package/lib/date-picker/utils.js +8 -8
  103. package/lib/drawer/Child.js +6 -6
  104. package/lib/drawer/index.js +11 -9
  105. package/lib/ellipsis/index.js +4 -4
  106. package/lib/guide/index.d.ts +4 -5
  107. package/lib/guide/index.js +19 -20
  108. package/lib/index.d.ts +0 -1
  109. package/lib/index.js +54 -62
  110. package/lib/input-number/index.d.ts +4 -4
  111. package/lib/input-number/index.js +27 -25
  112. package/lib/lazy-image/index.d.ts +3 -3
  113. package/lib/lazy-image/index.js +6 -4
  114. package/lib/link-list/index.js +24 -22
  115. package/lib/link-list/style/index.css +1 -1
  116. package/lib/loading/index.d.ts +7 -2
  117. package/lib/loading/index.js +20 -27
  118. package/lib/loading/style/index.css +1 -1
  119. package/lib/loading/style/index.scss +0 -10
  120. package/lib/loading-bar/index.d.ts +1 -0
  121. package/lib/loading-bar/index.js +3 -3
  122. package/lib/loading-container/index.js +6 -6
  123. package/lib/loading-icon/index.js +12 -12
  124. package/lib/mask/index.js +4 -4
  125. package/lib/message/index.js +14 -14
  126. package/lib/modal/Affix.d.ts +1 -0
  127. package/lib/modal/Affix.js +1 -1
  128. package/lib/modal/Title.js +9 -9
  129. package/lib/modal/getPopupLocation.js +1 -1
  130. package/lib/modal/index.d.ts +1 -1
  131. package/lib/modal/index.js +22 -20
  132. package/lib/modal/style/index.css +1 -1
  133. package/lib/move/index.d.ts +1 -1
  134. package/lib/move/index.js +14 -12
  135. package/lib/popover/index.js +9 -9
  136. package/lib/portal/index.js +5 -3
  137. package/lib/script/index.js +8 -6
  138. package/lib/select/index.d.ts +3 -3
  139. package/lib/select/index.js +34 -36
  140. package/lib/show-more/index.js +14 -12
  141. package/lib/skeleton/Item.js +3 -3
  142. package/lib/skeleton/index.js +11 -15
  143. package/lib/style.css +14 -15
  144. package/lib/table/body/BodyRow.js +8 -8
  145. package/lib/table/body/CheckIcon.js +7 -7
  146. package/lib/table/body/index.d.ts +1 -1
  147. package/lib/table/body/index.js +6 -6
  148. package/lib/table/header/CheckIcon.js +6 -6
  149. package/lib/table/header/HeaderCell.d.ts +1 -1
  150. package/lib/table/header/HeaderCell.js +10 -8
  151. package/lib/table/header/HeaderRow.d.ts +1 -0
  152. package/lib/table/header/HeaderRow.js +2 -2
  153. package/lib/table/index.d.ts +3 -7
  154. package/lib/table/index.js +20 -18
  155. package/lib/table/interface.js +5 -1
  156. package/lib/tabs/index.d.ts +1 -1
  157. package/lib/tabs/index.js +14 -12
  158. package/lib/tooltip/index.d.ts +1 -0
  159. package/lib/tooltip/index.js +1 -1
  160. package/lib/trigger/align.js +24 -24
  161. package/lib/trigger/bottomAlign.js +3 -3
  162. package/lib/trigger/constants.js +1 -1
  163. package/lib/trigger/getPopupLocation.js +2 -1
  164. package/lib/trigger/index.d.ts +4 -4
  165. package/lib/trigger/index.js +25 -23
  166. package/lib/trigger/leftAlign.js +3 -3
  167. package/lib/trigger/ref.js +1 -1
  168. package/lib/trigger/rightAlign.js +3 -3
  169. package/lib/trigger/topAlign.js +3 -3
  170. package/lib/trigger/utils.js +4 -4
  171. package/package.json +3 -3
  172. package/esm/use-config/index.d.ts +0 -5
  173. package/esm/use-config/index.js +0 -13
  174. package/esm/use-config/style/index.css +0 -0
  175. package/esm/use-config/style/index.d.ts +0 -1
  176. package/esm/use-config/style/index.js +0 -1
  177. package/esm/use-config/style/index.scss +0 -0
  178. package/lib/use-config/index.d.ts +0 -5
  179. package/lib/use-config/index.js +0 -21
  180. package/lib/use-config/style/index.css +0 -0
  181. package/lib/use-config/style/index.d.ts +0 -1
  182. package/lib/use-config/style/index.js +0 -1
  183. package/lib/use-config/style/index.scss +0 -0
package/lib/index.js CHANGED
@@ -5,183 +5,175 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- Object.defineProperty(exports, "UseConfig", {
9
- enumerable: true,
10
- get: function get() {
11
- return _useConfig.default;
12
- }
13
- });
14
8
  Object.defineProperty(exports, "Accordion", {
15
9
  enumerable: true,
16
10
  get: function get() {
17
11
  return _accordion.default;
18
12
  }
19
13
  });
20
- Object.defineProperty(exports, "Ellipsis", {
14
+ Object.defineProperty(exports, "Affix", {
21
15
  enumerable: true,
22
16
  get: function get() {
23
- return _ellipsis.default;
17
+ return _affix.default;
24
18
  }
25
19
  });
26
- Object.defineProperty(exports, "Affix", {
20
+ Object.defineProperty(exports, "Carousel", {
27
21
  enumerable: true,
28
22
  get: function get() {
29
- return _affix.default;
23
+ return _carousel.default;
30
24
  }
31
25
  });
32
- Object.defineProperty(exports, "Modal", {
26
+ Object.defineProperty(exports, "Checkbox", {
33
27
  enumerable: true,
34
28
  get: function get() {
35
- return _modal.default;
29
+ return _checkbox.default;
36
30
  }
37
31
  });
38
- Object.defineProperty(exports, "Popover", {
32
+ Object.defineProperty(exports, "Collapse", {
39
33
  enumerable: true,
40
34
  get: function get() {
41
- return _popover.default;
35
+ return _collapse.default;
42
36
  }
43
37
  });
44
- Object.defineProperty(exports, "Tooltip", {
38
+ Object.defineProperty(exports, "Confirm", {
45
39
  enumerable: true,
46
40
  get: function get() {
47
- return _tooltip.default;
41
+ return _confirm.default;
48
42
  }
49
43
  });
50
- Object.defineProperty(exports, "Skeleton", {
44
+ Object.defineProperty(exports, "DatePicker", {
51
45
  enumerable: true,
52
46
  get: function get() {
53
- return _skeleton.default;
47
+ return _datePicker.default;
54
48
  }
55
49
  });
56
- Object.defineProperty(exports, "Move", {
50
+ Object.defineProperty(exports, "Drawer", {
57
51
  enumerable: true,
58
52
  get: function get() {
59
- return _move.default;
53
+ return _drawer.default;
60
54
  }
61
55
  });
62
- Object.defineProperty(exports, "ShowMore", {
56
+ Object.defineProperty(exports, "Ellipsis", {
63
57
  enumerable: true,
64
58
  get: function get() {
65
- return _showMore.default;
59
+ return _ellipsis.default;
66
60
  }
67
61
  });
68
- Object.defineProperty(exports, "Select", {
62
+ Object.defineProperty(exports, "Guide", {
69
63
  enumerable: true,
70
64
  get: function get() {
71
- return _select.default;
65
+ return _guide.default;
72
66
  }
73
67
  });
74
- Object.defineProperty(exports, "Confirm", {
68
+ Object.defineProperty(exports, "InputNumber", {
75
69
  enumerable: true,
76
70
  get: function get() {
77
- return _confirm.default;
71
+ return _inputNumber.default;
78
72
  }
79
73
  });
80
- Object.defineProperty(exports, "Collapse", {
74
+ Object.defineProperty(exports, "LazyImage", {
81
75
  enumerable: true,
82
76
  get: function get() {
83
- return _collapse.default;
77
+ return _lazyImage.default;
84
78
  }
85
79
  });
86
- Object.defineProperty(exports, "Carousel", {
80
+ Object.defineProperty(exports, "LinkList", {
87
81
  enumerable: true,
88
82
  get: function get() {
89
- return _carousel.default;
83
+ return _linkList.default;
90
84
  }
91
85
  });
92
- Object.defineProperty(exports, "Guide", {
86
+ Object.defineProperty(exports, "Loading", {
93
87
  enumerable: true,
94
88
  get: function get() {
95
- return _guide.default;
89
+ return _loading.default;
96
90
  }
97
91
  });
98
- Object.defineProperty(exports, "Drawer", {
92
+ Object.defineProperty(exports, "LoadingBar", {
99
93
  enumerable: true,
100
94
  get: function get() {
101
- return _drawer.default;
95
+ return _loadingBar.default;
102
96
  }
103
97
  });
104
- Object.defineProperty(exports, "InputNumber", {
98
+ Object.defineProperty(exports, "LoadingContainer", {
105
99
  enumerable: true,
106
100
  get: function get() {
107
- return _inputNumber.default;
101
+ return _loadingContainer.default;
108
102
  }
109
103
  });
110
- Object.defineProperty(exports, "LazyImage", {
104
+ Object.defineProperty(exports, "LoadingIcon", {
111
105
  enumerable: true,
112
106
  get: function get() {
113
- return _lazyImage.default;
107
+ return _loadingIcon.default;
114
108
  }
115
109
  });
116
- Object.defineProperty(exports, "LinkList", {
110
+ Object.defineProperty(exports, "Message", {
117
111
  enumerable: true,
118
112
  get: function get() {
119
- return _linkList.default;
113
+ return _message.default;
120
114
  }
121
115
  });
122
- Object.defineProperty(exports, "Checkbox", {
116
+ Object.defineProperty(exports, "Modal", {
123
117
  enumerable: true,
124
118
  get: function get() {
125
- return _checkbox.default;
119
+ return _modal.default;
126
120
  }
127
121
  });
128
- Object.defineProperty(exports, "Script", {
122
+ Object.defineProperty(exports, "Move", {
129
123
  enumerable: true,
130
124
  get: function get() {
131
- return _script.default;
125
+ return _move.default;
132
126
  }
133
127
  });
134
- Object.defineProperty(exports, "Message", {
128
+ Object.defineProperty(exports, "Popover", {
135
129
  enumerable: true,
136
130
  get: function get() {
137
- return _message.default;
131
+ return _popover.default;
138
132
  }
139
133
  });
140
- Object.defineProperty(exports, "Table", {
134
+ Object.defineProperty(exports, "Script", {
141
135
  enumerable: true,
142
136
  get: function get() {
143
- return _table.default;
137
+ return _script.default;
144
138
  }
145
139
  });
146
- Object.defineProperty(exports, "DatePicker", {
140
+ Object.defineProperty(exports, "Select", {
147
141
  enumerable: true,
148
142
  get: function get() {
149
- return _datePicker.default;
143
+ return _select.default;
150
144
  }
151
145
  });
152
- Object.defineProperty(exports, "Tabs", {
146
+ Object.defineProperty(exports, "ShowMore", {
153
147
  enumerable: true,
154
148
  get: function get() {
155
- return _tabs.default;
149
+ return _showMore.default;
156
150
  }
157
151
  });
158
- Object.defineProperty(exports, "Loading", {
152
+ Object.defineProperty(exports, "Skeleton", {
159
153
  enumerable: true,
160
154
  get: function get() {
161
- return _loading.default;
155
+ return _skeleton.default;
162
156
  }
163
157
  });
164
- Object.defineProperty(exports, "LoadingContainer", {
158
+ Object.defineProperty(exports, "Table", {
165
159
  enumerable: true,
166
160
  get: function get() {
167
- return _loadingContainer.default;
161
+ return _table.default;
168
162
  }
169
163
  });
170
- Object.defineProperty(exports, "LoadingBar", {
164
+ Object.defineProperty(exports, "Tabs", {
171
165
  enumerable: true,
172
166
  get: function get() {
173
- return _loadingBar.default;
167
+ return _tabs.default;
174
168
  }
175
169
  });
176
- Object.defineProperty(exports, "LoadingIcon", {
170
+ Object.defineProperty(exports, "Tooltip", {
177
171
  enumerable: true,
178
172
  get: function get() {
179
- return _loadingIcon.default;
173
+ return _tooltip.default;
180
174
  }
181
175
  });
182
176
 
183
- var _useConfig = _interopRequireDefault(require("./use-config"));
184
-
185
177
  var _accordion = _interopRequireDefault(require("./accordion"));
186
178
 
187
179
  var _ellipsis = _interopRequireDefault(require("./ellipsis"));
@@ -106,8 +106,8 @@ declare class InputNumber extends React.Component<InputNumberProps, InputNumberS
106
106
  onBlur: (e: any) => void;
107
107
  onMouseEnter: () => void;
108
108
  onMouseLeave: () => void;
109
- onMouseMove: (ev: React.MouseEvent<Element, MouseEvent>) => void;
110
- onMouseDown: (ev: React.MouseEvent<Element, MouseEvent>) => void;
109
+ onMouseMove: (ev: React.MouseEvent) => void;
110
+ onMouseDown: (ev: React.MouseEvent) => void;
111
111
  onMouseUp: () => void;
112
112
  addMouseMoveListener: () => void;
113
113
  addMouseUpListener: () => void;
@@ -116,11 +116,11 @@ declare class InputNumber extends React.Component<InputNumberProps, InputNumberS
116
116
  addBtnEl: HTMLDivElement;
117
117
  subBtnEl: HTMLDivElement;
118
118
  };
119
- getMouseElement: (ev: React.MouseEvent<Element, MouseEvent>) => {
119
+ getMouseElement: (ev: React.MouseEvent) => {
120
120
  isAdd: boolean;
121
121
  isSub: boolean;
122
122
  };
123
- isInside: (ev: React.MouseEvent<Element, MouseEvent>, locationInfo: LocationInfo) => boolean;
123
+ isInside: (ev: React.MouseEvent, locationInfo: LocationInfo) => boolean;
124
124
  getLocationInfo: () => void;
125
125
  getCurrentValue: (value: string) => number;
126
126
  getPadDigitalValue: (value: string) => string;
@@ -21,7 +21,7 @@ var __extends = void 0 && (void 0).__extends || function () {
21
21
  d.__proto__ = b;
22
22
  } || function (d, b) {
23
23
  for (var p in b) {
24
- if (b.hasOwnProperty(p)) d[p] = b[p];
24
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
25
25
  }
26
26
  };
27
27
 
@@ -29,6 +29,8 @@ var __extends = void 0 && (void 0).__extends || function () {
29
29
  };
30
30
 
31
31
  return function (d, b) {
32
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
33
+
32
34
  _extendStatics(d, b);
33
35
 
34
36
  function __() {
@@ -65,7 +67,7 @@ function (_super) {
65
67
  function InputNumber(props) {
66
68
  var _this = _super.call(this, props) || this;
67
69
 
68
- _this.currentRef = _react.default.createRef();
70
+ _this.currentRef = /*#__PURE__*/_react.default.createRef();
69
71
 
70
72
  _this.onFocus = function (e) {
71
73
  var _a = _this.props,
@@ -145,19 +147,19 @@ function (_super) {
145
147
 
146
148
  if (isAdd) {
147
149
  inputEl.style.cursor = 'default';
148
- addBtnEl.setAttribute('class', cls + "-button " + cls + "-hover");
150
+ addBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-hover"));
149
151
  return;
150
152
  }
151
153
 
152
154
  if (isSub) {
153
155
  inputEl.style.cursor = 'default';
154
- subBtnEl.setAttribute('class', cls + "-button " + cls + "-hover");
156
+ subBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-hover"));
155
157
  return;
156
158
  }
157
159
 
158
160
  inputEl.style.cursor = 'text';
159
- addBtnEl.setAttribute('class', cls + "-button");
160
- subBtnEl.setAttribute('class', cls + "-button");
161
+ addBtnEl.setAttribute('class', "".concat(cls, "-button"));
162
+ subBtnEl.setAttribute('class', "".concat(cls, "-button"));
161
163
  };
162
164
 
163
165
  _this.onMouseDown = function (ev) {
@@ -185,13 +187,13 @@ function (_super) {
185
187
  isSub = _b.isSub;
186
188
 
187
189
  if (isAdd) {
188
- addBtnEl.setAttribute('class', cls + "-button " + cls + "-active");
190
+ addBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-active"));
189
191
 
190
192
  _this.onAdd();
191
193
  }
192
194
 
193
195
  if (isSub) {
194
- subBtnEl.setAttribute('class', cls + "-button " + cls + "-active");
196
+ subBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-active"));
195
197
 
196
198
  _this.onSub();
197
199
  }
@@ -211,8 +213,8 @@ function (_super) {
211
213
  subBtnEl = _a.subBtnEl;
212
214
 
213
215
  if (addBtnEl && subBtnEl) {
214
- addBtnEl.setAttribute('class', cls + "-button");
215
- subBtnEl.setAttribute('class', cls + "-button");
216
+ addBtnEl.setAttribute('class', "".concat(cls, "-button"));
217
+ subBtnEl.setAttribute('class', "".concat(cls, "-button"));
216
218
  } // 重新添加move事件
217
219
 
218
220
 
@@ -327,7 +329,7 @@ function (_super) {
327
329
  }
328
330
 
329
331
  var resultArr = value.split('.');
330
- return resultArr[0] + "." + (resultArr[1] || '').padEnd(digital, '0');
332
+ return "".concat(resultArr[0], ".").concat((resultArr[1] || '').padEnd(digital, '0'));
331
333
  };
332
334
 
333
335
  _this.onChangePackMultipleValue = function (value) {
@@ -450,7 +452,7 @@ function (_super) {
450
452
 
451
453
 
452
454
  if (digital) {
453
- currentValue = new RegExp("[^.]+([.](\\d{0," + digital + "}))?").exec(currentValue)[0].toString();
455
+ currentValue = new RegExp("[^.]+([.](\\d{0,".concat(digital, "}))?")).exec(currentValue)[0].toString();
454
456
  }
455
457
 
456
458
  var valueNumber = parseFloat(currentValue);
@@ -529,18 +531,18 @@ function (_super) {
529
531
 
530
532
 
531
533
  _this.renderButton = function () {
532
- return _react.default.createElement("div", {
533
- className: cls + "-button-wrap"
534
- }, _react.default.createElement("div", {
535
- className: cls + "-button",
534
+ return /*#__PURE__*/_react.default.createElement("div", {
535
+ className: "".concat(cls, "-button-wrap")
536
+ }, /*#__PURE__*/_react.default.createElement("div", {
537
+ className: "".concat(cls, "-button"),
536
538
  onClick: _this.onAdd
537
- }, _react.default.createElement("div", {
538
- className: cls + "-add"
539
- })), _react.default.createElement("div", {
540
- className: cls + "-button",
539
+ }, /*#__PURE__*/_react.default.createElement("div", {
540
+ className: "".concat(cls, "-add")
541
+ })), /*#__PURE__*/_react.default.createElement("div", {
542
+ className: "".concat(cls, "-button"),
541
543
  onClick: _this.onSub
542
- }, _react.default.createElement("div", {
543
- className: cls + "-sub"
544
+ }, /*#__PURE__*/_react.default.createElement("div", {
545
+ className: "".concat(cls, "-sub")
544
546
  })));
545
547
  };
546
548
 
@@ -609,10 +611,10 @@ function (_super) {
609
611
  var inputStyle = visibleButton ? {
610
612
  paddingRight: '.2rem'
611
613
  } : {};
612
- return _react.default.createElement("label", {
613
- className: cls + "-wrap",
614
+ return /*#__PURE__*/_react.default.createElement("label", {
615
+ className: "".concat(cls, "-wrap"),
614
616
  ref: this.currentRef
615
- }, _react.default.createElement("input", __assign({}, copyProps, {
617
+ }, /*#__PURE__*/_react.default.createElement("input", __assign({}, copyProps, {
616
618
  className: (0, _classnames.default)(cls, className),
617
619
  type: "text",
618
620
  onChange: this.onValueChange,
@@ -1,4 +1,4 @@
1
- import React, { MouseEventHandler } from 'react';
1
+ import React, { MouseEventHandler, MouseEvent } from 'react';
2
2
  export interface LazyImageProps {
3
3
  /**
4
4
  * 需要显示的图片
@@ -71,8 +71,8 @@ declare class LazyImage extends React.Component<LazyImageProps, LazyImageStates>
71
71
  * 监听原生lazy loading, 并回调不同的事件
72
72
  */
73
73
  originalLazyLoad: () => void;
74
- onMouseOut: (ev: React.MouseEvent<HTMLImageElement, globalThis.MouseEvent>) => void;
75
- onMouseOver: (ev: React.MouseEvent<HTMLImageElement, globalThis.MouseEvent>) => void;
74
+ onMouseOut: (ev: MouseEvent<HTMLImageElement>) => void;
75
+ onMouseOver: (ev: MouseEvent<HTMLImageElement>) => void;
76
76
  render(): JSX.Element;
77
77
  }
78
78
  export default LazyImage;
@@ -19,7 +19,7 @@ var __extends = void 0 && (void 0).__extends || function () {
19
19
  d.__proto__ = b;
20
20
  } || function (d, b) {
21
21
  for (var p in b) {
22
- if (b.hasOwnProperty(p)) d[p] = b[p];
22
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
23
23
  }
24
24
  };
25
25
 
@@ -27,6 +27,8 @@ var __extends = void 0 && (void 0).__extends || function () {
27
27
  };
28
28
 
29
29
  return function (d, b) {
30
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
31
+
30
32
  _extendStatics(d, b);
31
33
 
32
34
  function __() {
@@ -64,7 +66,7 @@ function (_super) {
64
66
  var _this = _super.call(this, props) || this;
65
67
 
66
68
  _this.prefixCls = 'ab-lazy-image';
67
- _this.rootRef = _react.default.createRef();
69
+ _this.rootRef = /*#__PURE__*/_react.default.createRef();
68
70
  _this.isUnmount = false;
69
71
  /**
70
72
  * 监听原生lazy loading, 并回调不同的事件
@@ -203,10 +205,10 @@ function (_super) {
203
205
  delete props.active;
204
206
  delete props.onLoading;
205
207
  delete props.onLoaded;
206
- return _react.default.createElement("img", __assign({
208
+ return /*#__PURE__*/_react.default.createElement("img", __assign({
207
209
  alt: ""
208
210
  }, props, {
209
- className: (0, _classnames.default)(cls, className, (_a = {}, _a[cls + "-loading"] = loading, _a[cls + "-active"] = loading && active, _a)),
211
+ className: (0, _classnames.default)(cls, className, (_a = {}, _a["".concat(cls, "-loading")] = loading, _a["".concat(cls, "-active")] = loading && active, _a)),
210
212
  onMouseOver: this.onMouseOver,
211
213
  onMouseOut: this.onMouseOut,
212
214
  onFocus: noop,
@@ -23,7 +23,7 @@ var __extends = void 0 && (void 0).__extends || function () {
23
23
  d.__proto__ = b;
24
24
  } || function (d, b) {
25
25
  for (var p in b) {
26
- if (b.hasOwnProperty(p)) d[p] = b[p];
26
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
27
27
  }
28
28
  };
29
29
 
@@ -31,6 +31,8 @@ var __extends = void 0 && (void 0).__extends || function () {
31
31
  };
32
32
 
33
33
  return function (d, b) {
34
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
35
+
34
36
  _extendStatics(d, b);
35
37
 
36
38
  function __() {
@@ -68,15 +70,15 @@ function (_super) {
68
70
 
69
71
  var hrefTarget = this.props.hrefTarget;
70
72
  var cls = this.prefixCls;
71
- return item.url ? _react.default.createElement("a", {
73
+ return item.url ? /*#__PURE__*/_react.default.createElement("a", {
72
74
  href: item.url,
73
- className: item.isHidden ? cls + "-hidden" : undefined,
75
+ className: item.isHidden ? "".concat(cls, "-hidden") : undefined,
74
76
  key: item.url,
75
77
  target: hrefTarget
76
- }, item.name + " ") : _react.default.createElement("span", {
78
+ }, "".concat(item.name, " ")) : /*#__PURE__*/_react.default.createElement("span", {
77
79
  key: item.name,
78
- className: (0, _classnames.default)((_a = {}, _a[cls + "-hidden"] = item.isHidden, _a))
79
- }, item.name + " ");
80
+ className: (0, _classnames.default)((_a = {}, _a["".concat(cls, "-hidden")] = item.isHidden, _a))
81
+ }, "".concat(item.name, " "));
80
82
  };
81
83
 
82
84
  LinkList.prototype.renderItem = function (item) {
@@ -87,21 +89,21 @@ function (_super) {
87
89
 
88
90
  var subInfo = item.subInfo;
89
91
  var cls = this.prefixCls;
90
- return _react.default.createElement(_popover.default, {
92
+ return /*#__PURE__*/_react.default.createElement(_popover.default, {
91
93
  key: item.name,
92
- tip: _react.default.createElement(_react.default.Fragment, null, _react.default.createElement("strong", {
93
- className: cls + "-sub-title"
94
+ tip: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("strong", {
95
+ className: "".concat(cls, "-sub-title")
94
96
  }, subInfo.title, ": "), subInfo.list.map(function (subItem, index) {
95
- return _react.default.createElement("a", {
97
+ return /*#__PURE__*/_react.default.createElement("a", {
96
98
  href: subItem.url,
97
99
  key: index,
98
- className: cls + "-sub-link"
99
- }, subItem.name + " ");
100
+ className: "".concat(cls, "-sub-link")
101
+ }, "".concat(subItem.name, " "));
100
102
  })),
101
103
  isInsertNode: true,
102
104
  placement: "BottomLeft",
103
105
  trigger: "click",
104
- wrapClassName: cls + "-wrap-popover",
106
+ wrapClassName: "".concat(cls, "-wrap-popover"),
105
107
  mouseEnterDelay: 0.1
106
108
  }, this.renderItemContent(item));
107
109
  };
@@ -136,17 +138,17 @@ function (_super) {
136
138
  extraTopElement = _c.extraTopElement,
137
139
  extraBottomElement = _c.extraBottomElement,
138
140
  columnCount = _c.columnCount;
139
- return _react.default.createElement("div", {
141
+ return /*#__PURE__*/_react.default.createElement("div", {
140
142
  className: (0, _classnames.default)(cls, className)
141
- }, title ? _react.default.createElement("div", {
142
- className: (0, _classnames.default)(cls + "-title", (_a = {}, _a[cls + "-divider"] = !visible, _a)),
143
+ }, title ? /*#__PURE__*/_react.default.createElement("div", {
144
+ className: (0, _classnames.default)("".concat(cls, "-title"), (_a = {}, _a["".concat(cls, "-divider")] = !visible, _a)),
143
145
  onClick: this.onVisibleChange
144
- }, title, _react.default.createElement("span", {
145
- className: cls + "-icon"
146
- }, visible ? '-' : '+')) : null, _react.default.createElement("div", {
147
- className: (0, _classnames.default)(cls + "-body", (_b = {}, _b[cls + "-active"] = visible, _b))
148
- }, extraTopElement, _react.default.createElement("div", {
149
- className: (0, _classnames.default)(cls + "-content", cls + "-col" + columnCount)
146
+ }, title, /*#__PURE__*/_react.default.createElement("span", {
147
+ className: "".concat(cls, "-icon")
148
+ }, visible ? '-' : '+')) : null, /*#__PURE__*/_react.default.createElement("div", {
149
+ className: (0, _classnames.default)("".concat(cls, "-body"), (_b = {}, _b["".concat(cls, "-active")] = visible, _b))
150
+ }, extraTopElement, /*#__PURE__*/_react.default.createElement("div", {
151
+ className: (0, _classnames.default)("".concat(cls, "-content"), "".concat(cls, "-col").concat(columnCount))
150
152
  }, this.renderContent()), extraBottomElement));
151
153
  };
152
154
 
@@ -1 +1 @@
1
- .ab-link-list-title{font-size:.16rem;margin:0 0;padding:0 0 .12rem 0;display:flex;justify-content:space-between;align-items:center}.ab-link-list-icon{display:none}.ab-link-list-content{flex-wrap:wrap;width:auto;margin-right:-.15rem}.ab-link-list-content.ab-link-list-col2>a,.ab-link-list-content.ab-link-list-col2>span{min-width:calc(100% / 2 - .15rem);max-width:calc(100% / 2 - .15rem)}.ab-link-list-content.ab-link-list-col4>a,.ab-link-list-content.ab-link-list-col4>span{min-width:calc(100% / 4 - .15rem);max-width:calc(100% / 4 - .15rem)}.ab-link-list-content.ab-link-list-col5>a,.ab-link-list-content.ab-link-list-col5>span{min-width:calc(100% / 5 - .15rem);max-width:calc(100% / 5 - .15rem)}.ab-link-list-content.ab-link-list-col6>a,.ab-link-list-content.ab-link-list-col6>span{min-width:calc(100% / 6 - .15rem);max-width:calc(100% / 6 - .15rem)}.ab-link-list-content.ab-link-list-col8>a,.ab-link-list-content.ab-link-list-col8>span{min-width:calc(100% / 8 - .15rem);max-width:calc(100% / 8 - .15rem)}.ab-link-list-content>a,.ab-link-list-content>span{cursor:pointer;border:.5px solid #d0d0d0;margin-bottom:8px;display:inline-block;justify-content:space-between;align-items:center;width:100%;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.085rem .15rem .085rem .12rem;color:#333;margin-right:.15rem}.ab-link-list-content>a:after,.ab-link-list-content>span:after{content:'>';position:absolute;right:.1rem;top:50%;transform:translateY(-50%);color:grey;font-size:.12rem}.ab-link-list-content>a:hover,.ab-link-list-content>span:hover{text-decoration:underline;color:#f97601}.ab-link-list-content>.ab-link-list-hidden{display:none}.ab-link-list-wrap-popover.ab-popover-wrap{max-width:3.5rem;min-width:3rem}.ab-link-list-sub-title{display:block;padding-bottom:.06rem;font-size:.12rem}.ab-link-list-sub-link{text-decoration:underline;color:#333;font-size:.12rem;padding:0 .05rem .05rem 0;display:inline-block}@media only screen and (max-width:767px){.ab-link-list-divider{border-bottom:1px solid #d0d0d0}.ab-link-list-body{height:0;width:0;overflow:hidden}.ab-link-list-body.ab-link-list-active{height:auto;width:auto}.ab-link-list-content>a,.ab-link-list-content>span{min-width:calc(50% - .15rem)!important;max-width:calc(50% - .15rem)!important}.ab-link-list-icon{font-weight:700;font-size:.22rem;cursor:pointer;width:.2rem;height:.2rem;display:flex;align-items:center;justify-content:center}}
1
+ .ab-link-list-title{font-size:.16rem;margin:0 0;padding:0 0 .12rem 0;display:flex;justify-content:space-between;align-items:center}.ab-link-list-icon{display:none}.ab-link-list-content{flex-wrap:wrap;width:auto;margin-right:-.15rem}.ab-link-list-content.ab-link-list-col2>a,.ab-link-list-content.ab-link-list-col2>span{min-width:calc(100% / 2 - .15rem);max-width:calc(100% / 2 - .15rem)}.ab-link-list-content.ab-link-list-col4>a,.ab-link-list-content.ab-link-list-col4>span{min-width:calc(100% / 4 - .15rem);max-width:calc(100% / 4 - .15rem)}.ab-link-list-content.ab-link-list-col5>a,.ab-link-list-content.ab-link-list-col5>span{min-width:calc(100% / 5 - .15rem);max-width:calc(100% / 5 - .15rem)}.ab-link-list-content.ab-link-list-col6>a,.ab-link-list-content.ab-link-list-col6>span{min-width:calc(100% / 6 - .15rem);max-width:calc(100% / 6 - .15rem)}.ab-link-list-content.ab-link-list-col8>a,.ab-link-list-content.ab-link-list-col8>span{min-width:calc(100% / 8 - .15rem);max-width:calc(100% / 8 - .15rem)}.ab-link-list-content>a,.ab-link-list-content>span{cursor:pointer;border:.5px solid #d0d0d0;margin-bottom:8px;display:inline-block;justify-content:space-between;align-items:center;width:100%;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.085rem .15rem .085rem .12rem;color:#333;margin-right:.15rem}.ab-link-list-content>a:after,.ab-link-list-content>span:after{content:">";position:absolute;right:.1rem;top:50%;transform:translateY(-50%);color:grey;font-size:.12rem}.ab-link-list-content>a:hover,.ab-link-list-content>span:hover{text-decoration:underline;color:#f97601}.ab-link-list-content>.ab-link-list-hidden{display:none}.ab-link-list-wrap-popover.ab-popover-wrap{max-width:3.5rem;min-width:3rem}.ab-link-list-sub-title{display:block;padding-bottom:.06rem;font-size:.12rem}.ab-link-list-sub-link{text-decoration:underline;color:#333;font-size:.12rem;padding:0 .05rem .05rem 0;display:inline-block}@media only screen and (max-width:767px){.ab-link-list-divider{border-bottom:1px solid #d0d0d0}.ab-link-list-body{height:0;width:0;overflow:hidden}.ab-link-list-body.ab-link-list-active{height:auto;width:auto}.ab-link-list-content>a,.ab-link-list-content>span{min-width:calc(50% - .15rem)!important;max-width:calc(50% - .15rem)!important}.ab-link-list-icon{font-weight:700;font-size:.22rem;cursor:pointer;width:.2rem;height:.2rem;display:flex;align-items:center;justify-content:center}}
@@ -1,8 +1,13 @@
1
+ import React from 'react';
1
2
  export interface LoadingProps {
2
3
  /**
3
- * loading 样式的另一种
4
+ * loading 样式
4
5
  */
5
- isRectLoading?: boolean;
6
+ className?: string;
7
+ /**
8
+ * 自定义loading, 需要补全自定义元素样式
9
+ */
10
+ customIcon?: React.ReactElement;
6
11
  /**
7
12
  * loading开始后自动隐藏的时间,单位:毫秒
8
13
  */