@autobest-ui/components 1.5.0 → 2.0.2

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 (160) 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.js +15 -13
  23. package/esm/input-number/index.d.ts +4 -4
  24. package/esm/input-number/index.js +27 -25
  25. package/esm/lazy-image/index.d.ts +3 -3
  26. package/esm/lazy-image/index.js +6 -4
  27. package/esm/link-list/index.js +24 -22
  28. package/esm/link-list/style/index.css +1 -1
  29. package/esm/loading/index.js +4 -4
  30. package/esm/loading-bar/index.d.ts +1 -0
  31. package/esm/loading-bar/index.js +3 -3
  32. package/esm/loading-container/index.js +6 -6
  33. package/esm/loading-icon/index.js +12 -12
  34. package/esm/mask/index.js +4 -4
  35. package/esm/message/index.js +14 -14
  36. package/esm/modal/Affix.d.ts +1 -0
  37. package/esm/modal/Affix.js +1 -1
  38. package/esm/modal/Title.js +9 -9
  39. package/esm/modal/getPopupLocation.js +1 -1
  40. package/esm/modal/index.d.ts +1 -1
  41. package/esm/modal/index.js +21 -19
  42. package/esm/modal/style/index.css +1 -1
  43. package/esm/move/index.d.ts +1 -1
  44. package/esm/move/index.js +14 -12
  45. package/esm/popover/index.js +9 -9
  46. package/esm/portal/index.js +5 -3
  47. package/esm/script/index.js +8 -6
  48. package/esm/select/index.d.ts +3 -3
  49. package/esm/select/index.js +34 -36
  50. package/esm/show-more/index.js +14 -12
  51. package/esm/skeleton/Item.js +3 -3
  52. package/esm/skeleton/index.js +11 -15
  53. package/esm/style.css +12 -12
  54. package/esm/table/body/BodyRow.js +9 -8
  55. package/esm/table/body/CheckIcon.js +7 -7
  56. package/esm/table/body/index.d.ts +1 -1
  57. package/esm/table/body/index.js +6 -6
  58. package/esm/table/header/CheckIcon.js +6 -6
  59. package/esm/table/header/HeaderCell.d.ts +1 -1
  60. package/esm/table/header/HeaderCell.js +10 -8
  61. package/esm/table/header/HeaderRow.d.ts +1 -0
  62. package/esm/table/header/HeaderRow.js +2 -2
  63. package/esm/table/index.d.ts +3 -7
  64. package/esm/table/index.js +20 -18
  65. package/esm/table/interface.js +1 -0
  66. package/esm/tabs/index.d.ts +1 -1
  67. package/esm/tabs/index.js +14 -12
  68. package/esm/tooltip/index.d.ts +1 -0
  69. package/esm/tooltip/index.js +1 -1
  70. package/esm/trigger/bottomAlign.js +2 -2
  71. package/esm/trigger/getPopupLocation.js +2 -1
  72. package/esm/trigger/index.d.ts +4 -4
  73. package/esm/trigger/index.js +24 -22
  74. package/esm/trigger/leftAlign.js +2 -2
  75. package/esm/trigger/rightAlign.js +2 -2
  76. package/esm/trigger/topAlign.js +2 -2
  77. package/esm/trigger/utils.js +2 -2
  78. package/lib/accordion/Item.d.ts +1 -1
  79. package/lib/accordion/Item.js +5 -3
  80. package/lib/accordion/index.d.ts +1 -1
  81. package/lib/accordion/index.js +5 -3
  82. package/lib/affix/PortalAffix.js +7 -7
  83. package/lib/affix/index.js +19 -17
  84. package/lib/carousel/index.js +16 -14
  85. package/lib/checkbox/index.js +19 -17
  86. package/lib/collapse/index.js +13 -11
  87. package/lib/confirm/index.d.ts +1 -1
  88. package/lib/confirm/index.js +14 -14
  89. package/lib/date-picker/calendar/Day.d.ts +1 -1
  90. package/lib/date-picker/calendar/Day.js +12 -12
  91. package/lib/date-picker/calendar/MonthYear.js +9 -9
  92. package/lib/date-picker/calendar/grid/index.js +18 -18
  93. package/lib/date-picker/calendar/index.js +8 -6
  94. package/lib/date-picker/calendar/types.js +5 -1
  95. package/lib/date-picker/index.js +15 -13
  96. package/lib/date-picker/utils.js +8 -8
  97. package/lib/drawer/Child.js +6 -6
  98. package/lib/drawer/index.js +11 -9
  99. package/lib/ellipsis/index.js +4 -4
  100. package/lib/guide/index.js +15 -13
  101. package/lib/index.js +54 -54
  102. package/lib/input-number/index.d.ts +4 -4
  103. package/lib/input-number/index.js +27 -25
  104. package/lib/lazy-image/index.d.ts +3 -3
  105. package/lib/lazy-image/index.js +6 -4
  106. package/lib/link-list/index.js +24 -22
  107. package/lib/link-list/style/index.css +1 -1
  108. package/lib/loading/index.js +4 -4
  109. package/lib/loading-bar/index.d.ts +1 -0
  110. package/lib/loading-bar/index.js +3 -3
  111. package/lib/loading-container/index.js +6 -6
  112. package/lib/loading-icon/index.js +12 -12
  113. package/lib/mask/index.js +4 -4
  114. package/lib/message/index.js +14 -14
  115. package/lib/modal/Affix.d.ts +1 -0
  116. package/lib/modal/Affix.js +1 -1
  117. package/lib/modal/Title.js +9 -9
  118. package/lib/modal/getPopupLocation.js +1 -1
  119. package/lib/modal/index.d.ts +1 -1
  120. package/lib/modal/index.js +22 -20
  121. package/lib/modal/style/index.css +1 -1
  122. package/lib/move/index.d.ts +1 -1
  123. package/lib/move/index.js +14 -12
  124. package/lib/popover/index.js +9 -9
  125. package/lib/portal/index.js +5 -3
  126. package/lib/script/index.js +8 -6
  127. package/lib/select/index.d.ts +3 -3
  128. package/lib/select/index.js +34 -36
  129. package/lib/show-more/index.js +14 -12
  130. package/lib/skeleton/Item.js +3 -3
  131. package/lib/skeleton/index.js +11 -15
  132. package/lib/style.css +12 -12
  133. package/lib/table/body/BodyRow.js +9 -8
  134. package/lib/table/body/CheckIcon.js +7 -7
  135. package/lib/table/body/index.d.ts +1 -1
  136. package/lib/table/body/index.js +6 -6
  137. package/lib/table/header/CheckIcon.js +6 -6
  138. package/lib/table/header/HeaderCell.d.ts +1 -1
  139. package/lib/table/header/HeaderCell.js +10 -8
  140. package/lib/table/header/HeaderRow.d.ts +1 -0
  141. package/lib/table/header/HeaderRow.js +2 -2
  142. package/lib/table/index.d.ts +3 -7
  143. package/lib/table/index.js +20 -18
  144. package/lib/table/interface.js +5 -1
  145. package/lib/tabs/index.d.ts +1 -1
  146. package/lib/tabs/index.js +14 -12
  147. package/lib/tooltip/index.d.ts +1 -0
  148. package/lib/tooltip/index.js +1 -1
  149. package/lib/trigger/align.js +24 -24
  150. package/lib/trigger/bottomAlign.js +3 -3
  151. package/lib/trigger/constants.js +1 -1
  152. package/lib/trigger/getPopupLocation.js +2 -1
  153. package/lib/trigger/index.d.ts +4 -4
  154. package/lib/trigger/index.js +25 -23
  155. package/lib/trigger/leftAlign.js +3 -3
  156. package/lib/trigger/ref.js +1 -1
  157. package/lib/trigger/rightAlign.js +3 -3
  158. package/lib/trigger/topAlign.js +3 -3
  159. package/lib/trigger/utils.js +4 -4
  160. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -11,166 +11,166 @@ Object.defineProperty(exports, "Accordion", {
11
11
  return _accordion.default;
12
12
  }
13
13
  });
14
- Object.defineProperty(exports, "Ellipsis", {
14
+ Object.defineProperty(exports, "Affix", {
15
15
  enumerable: true,
16
16
  get: function get() {
17
- return _ellipsis.default;
17
+ return _affix.default;
18
18
  }
19
19
  });
20
- Object.defineProperty(exports, "Affix", {
20
+ Object.defineProperty(exports, "Carousel", {
21
21
  enumerable: true,
22
22
  get: function get() {
23
- return _affix.default;
23
+ return _carousel.default;
24
24
  }
25
25
  });
26
- Object.defineProperty(exports, "Modal", {
26
+ Object.defineProperty(exports, "Checkbox", {
27
27
  enumerable: true,
28
28
  get: function get() {
29
- return _modal.default;
29
+ return _checkbox.default;
30
30
  }
31
31
  });
32
- Object.defineProperty(exports, "Popover", {
32
+ Object.defineProperty(exports, "Collapse", {
33
33
  enumerable: true,
34
34
  get: function get() {
35
- return _popover.default;
35
+ return _collapse.default;
36
36
  }
37
37
  });
38
- Object.defineProperty(exports, "Tooltip", {
38
+ Object.defineProperty(exports, "Confirm", {
39
39
  enumerable: true,
40
40
  get: function get() {
41
- return _tooltip.default;
41
+ return _confirm.default;
42
42
  }
43
43
  });
44
- Object.defineProperty(exports, "Skeleton", {
44
+ Object.defineProperty(exports, "DatePicker", {
45
45
  enumerable: true,
46
46
  get: function get() {
47
- return _skeleton.default;
47
+ return _datePicker.default;
48
48
  }
49
49
  });
50
- Object.defineProperty(exports, "Move", {
50
+ Object.defineProperty(exports, "Drawer", {
51
51
  enumerable: true,
52
52
  get: function get() {
53
- return _move.default;
53
+ return _drawer.default;
54
54
  }
55
55
  });
56
- Object.defineProperty(exports, "ShowMore", {
56
+ Object.defineProperty(exports, "Ellipsis", {
57
57
  enumerable: true,
58
58
  get: function get() {
59
- return _showMore.default;
59
+ return _ellipsis.default;
60
60
  }
61
61
  });
62
- Object.defineProperty(exports, "Select", {
62
+ Object.defineProperty(exports, "Guide", {
63
63
  enumerable: true,
64
64
  get: function get() {
65
- return _select.default;
65
+ return _guide.default;
66
66
  }
67
67
  });
68
- Object.defineProperty(exports, "Confirm", {
68
+ Object.defineProperty(exports, "InputNumber", {
69
69
  enumerable: true,
70
70
  get: function get() {
71
- return _confirm.default;
71
+ return _inputNumber.default;
72
72
  }
73
73
  });
74
- Object.defineProperty(exports, "Collapse", {
74
+ Object.defineProperty(exports, "LazyImage", {
75
75
  enumerable: true,
76
76
  get: function get() {
77
- return _collapse.default;
77
+ return _lazyImage.default;
78
78
  }
79
79
  });
80
- Object.defineProperty(exports, "Carousel", {
80
+ Object.defineProperty(exports, "LinkList", {
81
81
  enumerable: true,
82
82
  get: function get() {
83
- return _carousel.default;
83
+ return _linkList.default;
84
84
  }
85
85
  });
86
- Object.defineProperty(exports, "Guide", {
86
+ Object.defineProperty(exports, "Loading", {
87
87
  enumerable: true,
88
88
  get: function get() {
89
- return _guide.default;
89
+ return _loading.default;
90
90
  }
91
91
  });
92
- Object.defineProperty(exports, "Drawer", {
92
+ Object.defineProperty(exports, "LoadingBar", {
93
93
  enumerable: true,
94
94
  get: function get() {
95
- return _drawer.default;
95
+ return _loadingBar.default;
96
96
  }
97
97
  });
98
- Object.defineProperty(exports, "InputNumber", {
98
+ Object.defineProperty(exports, "LoadingContainer", {
99
99
  enumerable: true,
100
100
  get: function get() {
101
- return _inputNumber.default;
101
+ return _loadingContainer.default;
102
102
  }
103
103
  });
104
- Object.defineProperty(exports, "LazyImage", {
104
+ Object.defineProperty(exports, "LoadingIcon", {
105
105
  enumerable: true,
106
106
  get: function get() {
107
- return _lazyImage.default;
107
+ return _loadingIcon.default;
108
108
  }
109
109
  });
110
- Object.defineProperty(exports, "LinkList", {
110
+ Object.defineProperty(exports, "Message", {
111
111
  enumerable: true,
112
112
  get: function get() {
113
- return _linkList.default;
113
+ return _message.default;
114
114
  }
115
115
  });
116
- Object.defineProperty(exports, "Checkbox", {
116
+ Object.defineProperty(exports, "Modal", {
117
117
  enumerable: true,
118
118
  get: function get() {
119
- return _checkbox.default;
119
+ return _modal.default;
120
120
  }
121
121
  });
122
- Object.defineProperty(exports, "Script", {
122
+ Object.defineProperty(exports, "Move", {
123
123
  enumerable: true,
124
124
  get: function get() {
125
- return _script.default;
125
+ return _move.default;
126
126
  }
127
127
  });
128
- Object.defineProperty(exports, "Message", {
128
+ Object.defineProperty(exports, "Popover", {
129
129
  enumerable: true,
130
130
  get: function get() {
131
- return _message.default;
131
+ return _popover.default;
132
132
  }
133
133
  });
134
- Object.defineProperty(exports, "Table", {
134
+ Object.defineProperty(exports, "Script", {
135
135
  enumerable: true,
136
136
  get: function get() {
137
- return _table.default;
137
+ return _script.default;
138
138
  }
139
139
  });
140
- Object.defineProperty(exports, "DatePicker", {
140
+ Object.defineProperty(exports, "Select", {
141
141
  enumerable: true,
142
142
  get: function get() {
143
- return _datePicker.default;
143
+ return _select.default;
144
144
  }
145
145
  });
146
- Object.defineProperty(exports, "Tabs", {
146
+ Object.defineProperty(exports, "ShowMore", {
147
147
  enumerable: true,
148
148
  get: function get() {
149
- return _tabs.default;
149
+ return _showMore.default;
150
150
  }
151
151
  });
152
- Object.defineProperty(exports, "Loading", {
152
+ Object.defineProperty(exports, "Skeleton", {
153
153
  enumerable: true,
154
154
  get: function get() {
155
- return _loading.default;
155
+ return _skeleton.default;
156
156
  }
157
157
  });
158
- Object.defineProperty(exports, "LoadingContainer", {
158
+ Object.defineProperty(exports, "Table", {
159
159
  enumerable: true,
160
160
  get: function get() {
161
- return _loadingContainer.default;
161
+ return _table.default;
162
162
  }
163
163
  });
164
- Object.defineProperty(exports, "LoadingBar", {
164
+ Object.defineProperty(exports, "Tabs", {
165
165
  enumerable: true,
166
166
  get: function get() {
167
- return _loadingBar.default;
167
+ return _tabs.default;
168
168
  }
169
169
  });
170
- Object.defineProperty(exports, "LoadingIcon", {
170
+ Object.defineProperty(exports, "Tooltip", {
171
171
  enumerable: true,
172
172
  get: function get() {
173
- return _loadingIcon.default;
173
+ return _tooltip.default;
174
174
  }
175
175
  });
176
176
 
@@ -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}}
@@ -41,10 +41,10 @@ var prevCustomIcon = null;
41
41
  var cls = 'ab-loading';
42
42
 
43
43
  function getLoadingContainer(customIcon, className) {
44
- return _react.default.createElement("div", {
45
- className: (0, _classnames.default)(cls + "-wrap", className)
46
- }, customIcon || _react.default.createElement(_loadingIcon.default, {
47
- className: cls + "-content"
44
+ return /*#__PURE__*/_react.default.createElement("div", {
45
+ className: (0, _classnames.default)("".concat(cls, "-wrap"), className)
46
+ }, customIcon || /*#__PURE__*/_react.default.createElement(_loadingIcon.default, {
47
+ className: "".concat(cls, "-content")
48
48
  }));
49
49
  } // openIds 容器
50
50
 
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function LoadingBar(): JSX.Element;
@@ -14,9 +14,9 @@ var _portal = _interopRequireDefault(require("../portal"));
14
14
  var cls = 'ab-loading-bar';
15
15
 
16
16
  function LoadingBar() {
17
- return _react.default.createElement(_portal.default, null, _react.default.createElement("div", {
17
+ return /*#__PURE__*/_react.default.createElement(_portal.default, null, /*#__PURE__*/_react.default.createElement("div", {
18
18
  className: cls
19
- }, _react.default.createElement("span", {
20
- className: cls + "-bar"
19
+ }, /*#__PURE__*/_react.default.createElement("span", {
20
+ className: "".concat(cls, "-bar")
21
21
  })));
22
22
  }
@@ -22,12 +22,12 @@ function LoadingContainer(props) {
22
22
  loading = _b === void 0 ? false : _b,
23
23
  className = props.className,
24
24
  children = props.children;
25
- return _react.default.createElement("div", {
26
- className: (0, _classnames.default)(className, cls, (_a = {}, _a[cls + "-active"] = loading, _a))
27
- }, children, loading && _react.default.createElement("div", {
28
- className: cls + "-icon-box"
29
- }, _react.default.createElement(_loadingIcon.default, {
30
- className: cls + "-icon"
25
+ return /*#__PURE__*/_react.default.createElement("div", {
26
+ className: (0, _classnames.default)(className, cls, (_a = {}, _a["".concat(cls, "-active")] = loading, _a))
27
+ }, children, loading && /*#__PURE__*/_react.default.createElement("div", {
28
+ className: "".concat(cls, "-icon-box")
29
+ }, /*#__PURE__*/_react.default.createElement(_loadingIcon.default, {
30
+ className: "".concat(cls, "-icon")
31
31
  })));
32
32
  }
33
33