@nutui/nutui-react 2.0.6 → 2.0.8
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.
- package/CHANGELOG.md +18 -0
- package/dist/esm/Audio.js +1 -1
- package/dist/esm/Button.js +15 -18
- package/dist/esm/Range.js +5 -13
- package/dist/esm/Space/style/css.js +1 -0
- package/dist/esm/Space/style/index.js +2 -0
- package/dist/esm/Space/style/style.css +1 -0
- package/dist/esm/Space.js +45 -0
- package/dist/esm/Uploader.js +3 -0
- package/dist/esm/nutui-react.es.js +162 -160
- package/dist/esm/types/src/packages/audio/audio.d.ts +5 -4
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +2 -1
- package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/backtop/backtop.d.ts +2 -1
- package/dist/esm/types/src/packages/backtop/backtop.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/button/button.d.ts +2 -1
- package/dist/esm/types/src/packages/button/button.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/col/col.d.ts +2 -1
- package/dist/esm/types/src/packages/col/col.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +2 -1
- package/dist/esm/types/src/packages/formitem/types.d.ts +2 -1
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/nutui.react.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +3 -1
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -1
- package/dist/esm/types/src/packages/row/row.d.ts +2 -1
- package/dist/esm/types/src/packages/row/row.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +6 -5
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +6 -5
- package/dist/esm/types/src/packages/space/__test__/space.spec.d.ts +1 -0
- package/dist/esm/types/src/packages/space/demo.d.ts +3 -0
- package/dist/esm/types/src/packages/space/demo.taro.d.ts +3 -0
- package/dist/esm/types/src/packages/space/index.d.ts +2 -0
- package/dist/esm/types/src/packages/space/index.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/space/space.d.ts +9 -0
- package/dist/esm/types/src/packages/space/space.taro.d.ts +9 -0
- package/dist/esm/types/src/packages/swipe/swipe.d.ts +5 -4
- package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +5 -4
- package/dist/esm/types/src/packages/tag/tag.d.ts +2 -1
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/textarea/textarea.d.ts +3 -2
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +1 -0
- package/dist/esm/types/src/utils/use-touch.d.ts +2 -2
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +87 -63
- package/dist/nutui.react.umd.js +87 -63
- package/dist/packages/space/space.scss +73 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/styles/variables.scss +3 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/packages/audio/audio.d.ts +5 -4
- package/dist/types/packages/avatar/avatar.d.ts +2 -1
- package/dist/types/packages/backtop/backtop.d.ts +2 -1
- package/dist/types/packages/button/button.d.ts +3 -2
- package/dist/types/packages/col/col.d.ts +2 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/config.d.ts +2 -1
- package/dist/types/packages/formitem/types.d.ts +2 -1
- package/dist/types/packages/row/row.d.ts +2 -1
- package/dist/types/packages/searchbar/searchbar.d.ts +6 -5
- package/dist/types/packages/space/index.d.ts +2 -0
- package/dist/types/packages/space/space.d.ts +9 -0
- package/dist/types/packages/swipe/swipe.d.ts +5 -4
- package/dist/types/packages/tag/tag.d.ts +2 -1
- package/dist/types/packages/textarea/textarea.d.ts +3 -2
- package/dist/types/packages/uploader/uploader.d.ts +1 -0
- package/dist/types/utils/use-touch.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# v2.0.8
|
|
2
|
+
`2023-07-28`
|
|
3
|
+
|
|
4
|
+
* :sparkles: feat: 增加了space组件 (#1259) @ivan-My
|
|
5
|
+
* 🛠 refactor: tabs 去除 console (#1261) @vapao
|
|
6
|
+
* 🔨 chore(script): 简化开发环境启动逻辑 (#1264) @Eiinu
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# v2.0.7
|
|
11
|
+
`2023-07-26`
|
|
12
|
+
|
|
13
|
+
* :sparkles: feat: formitem label 支持 reactnode (#1254) @oasis-cloud
|
|
14
|
+
* :sparkles: feat: uploader 添加上传的响应数据 (#1251) @逍遥
|
|
15
|
+
* 🔨 chore: 优化 any 类型 (#1222) @junjun666
|
|
16
|
+
* 📖 docs(SearchBar): 补充 onClear 属性说明 (#1256) @Tralafalgar Wang
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
# v2.0.6
|
|
2
20
|
`2023-07-21`
|
|
3
21
|
|
package/dist/esm/Audio.js
CHANGED
|
@@ -216,7 +216,7 @@ var Audio = function Audio2(props) {
|
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
218
|
var onTimeupdate = function onTimeupdate2(e) {
|
|
219
|
-
var time = parseInt(e.target.currentTime);
|
|
219
|
+
var time = parseInt(String(e.target.currentTime));
|
|
220
220
|
var formated = formatSeconds("".concat(time));
|
|
221
221
|
statusRef.current.currentDuration = formated;
|
|
222
222
|
setPercent(time / statusRef.current.second * 100);
|
package/dist/esm/Button.js
CHANGED
|
@@ -65,24 +65,21 @@ var Button = React__default.forwardRef(function(props, ref) {
|
|
|
65
65
|
onClick2(e);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
return (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
className: icon || loading ? "nut-button-text" : ""
|
|
84
|
-
}, children)))
|
|
85
|
-
);
|
|
68
|
+
return React__default.createElement("button", _objectSpread(_objectSpread({}, rest), {}, {
|
|
69
|
+
ref,
|
|
70
|
+
type: nativeType,
|
|
71
|
+
className: classNames(prefixCls, className, props.type ? "".concat(prefixCls, "--").concat(type) : null, props.fill ? "".concat(prefixCls, "--").concat(fill) : null, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "--").concat(size), size), _defineProperty(_classNames, "".concat(prefixCls, "--").concat(shape), shape), _defineProperty(_classNames, "".concat(prefixCls, "--block"), block), _defineProperty(_classNames, "".concat(prefixCls, "--disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "--loading"), loading), _classNames)),
|
|
72
|
+
style: _objectSpread(_objectSpread({}, getStyle()), style),
|
|
73
|
+
onClick: function onClick3(e) {
|
|
74
|
+
return handleClick(e);
|
|
75
|
+
}
|
|
76
|
+
}), React__default.createElement("div", {
|
|
77
|
+
className: "nut-button__warp"
|
|
78
|
+
}, loading ? React__default.createElement(Loading, {
|
|
79
|
+
className: "nut-icon-loading"
|
|
80
|
+
}) : null, !loading && icon ? icon : null, children && React__default.createElement("div", {
|
|
81
|
+
className: icon || loading ? "nut-button-text" : ""
|
|
82
|
+
}, children)));
|
|
86
83
|
});
|
|
87
84
|
Button.displayName = "NutButton";
|
|
88
85
|
export {
|
package/dist/esm/Range.js
CHANGED
|
@@ -226,7 +226,7 @@ var Range = function Range2(props) {
|
|
|
226
226
|
setEaxctValue(newValue);
|
|
227
227
|
updateValue(newValue);
|
|
228
228
|
};
|
|
229
|
-
var
|
|
229
|
+
var onTouchEnd = function onTouchEnd2() {
|
|
230
230
|
if (disabled) {
|
|
231
231
|
return;
|
|
232
232
|
}
|
|
@@ -285,12 +285,8 @@ var Range = function Range2(props) {
|
|
|
285
285
|
onTouchMove: function onTouchMove(e) {
|
|
286
286
|
return _onTouchMove(e);
|
|
287
287
|
},
|
|
288
|
-
onTouchEnd
|
|
289
|
-
|
|
290
|
-
},
|
|
291
|
-
onTouchCancel: function onTouchCancel(e) {
|
|
292
|
-
return _onTouchEnd();
|
|
293
|
-
},
|
|
288
|
+
onTouchEnd,
|
|
289
|
+
onTouchCancel: onTouchEnd,
|
|
294
290
|
onClick: function onClick(e) {
|
|
295
291
|
return e.stopPropagation();
|
|
296
292
|
}
|
|
@@ -303,12 +299,8 @@ var Range = function Range2(props) {
|
|
|
303
299
|
onTouchMove: function onTouchMove(e) {
|
|
304
300
|
return _onTouchMove(e);
|
|
305
301
|
},
|
|
306
|
-
onTouchEnd
|
|
307
|
-
|
|
308
|
-
},
|
|
309
|
-
onTouchCancel: function onTouchCancel(e) {
|
|
310
|
-
return _onTouchEnd();
|
|
311
|
-
},
|
|
302
|
+
onTouchEnd,
|
|
303
|
+
onTouchCancel: onTouchEnd,
|
|
312
304
|
onClick: function onClick(e) {
|
|
313
305
|
return e.stopPropagation();
|
|
314
306
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './style.css'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.nut-space{display:flex}.nut-space-item{flex:none}.nut-space-vertical{flex-direction:column}.nut-space-vertical>.nut-space-item{margin-bottom:var(--nutui-space-gap, 8px)}.nut-space-vertical>.nut-space-item:last-child{margin-bottom:0}.nut-space-horizontal{flex-direction:row}.nut-space-horizontal>.nut-space-item{margin-right:var(--nutui-space-gap, 8px)}.nut-space-horizontal>.nut-space-item:last-child{margin-right:0}.nut-space-horizontal.nut-space-wrap{flex-wrap:wrap;margin-bottom:calc(var(--nutui-space-gap, 8px) * -1)}.nut-space-horizontal.nut-space-wrap>.nut-space-item{padding-bottom:var(--nutui-space-gap, 8px)}.nut-space-align-center{align-items:center}.nut-space-align-start{align-items:flex-start}.nut-space-align-end{align-items:flex-end}.nut-space-align-baseline{align-items:baseline}.nut-space-justify-center{justify-content:center}.nut-space-justify-start{justify-content:flex-start}.nut-space-justify-end{justify-content:flex-end}.nut-space-justify-between{justify-content:space-between}.nut-space-justify-around{justify-content:space-around}.nut-space-justify-evenly{justify-content:space-evenly}.nut-space-justify-stretch{justify-content:stretch}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(object, enumerableOnly) {
|
|
3
|
+
var keys = Object.keys(object);
|
|
4
|
+
if (Object.getOwnPropertySymbols) {
|
|
5
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
6
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
7
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
8
|
+
})), keys.push.apply(keys, symbols);
|
|
9
|
+
}
|
|
10
|
+
return keys;
|
|
11
|
+
}
|
|
12
|
+
function _objectSpread(target) {
|
|
13
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
14
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
15
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
16
|
+
_defineProperty(target, key, source[key]);
|
|
17
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
18
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return target;
|
|
22
|
+
}
|
|
23
|
+
import React__default from "react";
|
|
24
|
+
import classNames from "classnames";
|
|
25
|
+
var prefixCls = "nut-space";
|
|
26
|
+
var defaultProps = {
|
|
27
|
+
direction: "horizontal"
|
|
28
|
+
};
|
|
29
|
+
var Space = function Space2(props) {
|
|
30
|
+
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props), className = _defaultProps$props.className, style = _defaultProps$props.style, children = _defaultProps$props.children, wrap = _defaultProps$props.wrap, align = _defaultProps$props.align, direction = _defaultProps$props.direction, justify = _defaultProps$props.justify;
|
|
31
|
+
var cls = classNames(className, prefixCls, wrap && "".concat(prefixCls, "-wrap"), direction && "".concat(prefixCls, "-").concat(direction), align && "".concat(prefixCls, "-align-").concat(align), justify && "".concat(prefixCls, "-justify-").concat(justify));
|
|
32
|
+
return React__default.createElement("div", {
|
|
33
|
+
className: cls,
|
|
34
|
+
style
|
|
35
|
+
}, React__default.Children.map(children, function(child) {
|
|
36
|
+
return child !== null && child !== void 0 && React__default.createElement("div", {
|
|
37
|
+
className: "".concat(prefixCls, "-item")
|
|
38
|
+
}, child);
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
41
|
+
Space.defaultProps = defaultProps;
|
|
42
|
+
Space.displayName = "NutSpace";
|
|
43
|
+
export {
|
|
44
|
+
Space as default
|
|
45
|
+
};
|
package/dist/esm/Uploader.js
CHANGED
|
@@ -158,6 +158,7 @@ var FileItem = /* @__PURE__ */ _createClass(function FileItem2() {
|
|
|
158
158
|
_defineProperty(this, "path", void 0);
|
|
159
159
|
_defineProperty(this, "percentage", 0);
|
|
160
160
|
_defineProperty(this, "formData", new FormData());
|
|
161
|
+
_defineProperty(this, "responseText", void 0);
|
|
161
162
|
});
|
|
162
163
|
var InternalUploader = function InternalUploader2(props, ref) {
|
|
163
164
|
var _useConfig = useConfig(), locale = _useConfig.locale;
|
|
@@ -256,6 +257,7 @@ var InternalUploader = function InternalUploader2(props, ref) {
|
|
|
256
257
|
if (item.uid === fileItem.uid) {
|
|
257
258
|
item.status = "success";
|
|
258
259
|
item.message = locale.uploader.success;
|
|
260
|
+
item.responseText = responseText;
|
|
259
261
|
}
|
|
260
262
|
return item;
|
|
261
263
|
});
|
|
@@ -273,6 +275,7 @@ var InternalUploader = function InternalUploader2(props, ref) {
|
|
|
273
275
|
if (item.uid === fileItem.uid) {
|
|
274
276
|
item.status = "error";
|
|
275
277
|
item.message = locale.uploader.error;
|
|
278
|
+
item.responseText = responseText;
|
|
276
279
|
}
|
|
277
280
|
return item;
|
|
278
281
|
});
|
|
@@ -10,177 +10,179 @@ import { default as default10 } from "./Grid.js";
|
|
|
10
10
|
import { default as default11 } from "./GridItem.js";
|
|
11
11
|
import { default as default12 } from "./Layout.js";
|
|
12
12
|
import { default as default13 } from "./Row.js";
|
|
13
|
-
import { default as default14 } from "./
|
|
14
|
-
import { default as default15 } from "./
|
|
15
|
-
import { default as default16 } from "./
|
|
16
|
-
import { default as default17 } from "./
|
|
17
|
-
import { default as default18 } from "./
|
|
18
|
-
import { default as default19 } from "./
|
|
19
|
-
import { default as default20 } from "./
|
|
20
|
-
import { default as default21 } from "./
|
|
21
|
-
import { default as default22 } from "./
|
|
22
|
-
import { default as default23 } from "./
|
|
23
|
-
import { default as default24 } from "./
|
|
24
|
-
import { default as default25 } from "./
|
|
25
|
-
import { default as default26 } from "./
|
|
26
|
-
import { default as default27 } from "./
|
|
27
|
-
import { default as default28 } from "./
|
|
28
|
-
import { default as default29 } from "./
|
|
29
|
-
import { default as default30 } from "./
|
|
30
|
-
import { default as default31 } from "./
|
|
31
|
-
import { default as default32 } from "./
|
|
32
|
-
import { default as default33 } from "./
|
|
33
|
-
import { default as default34 } from "./
|
|
34
|
-
import { default as default35 } from "./
|
|
35
|
-
import { default as default36 } from "./
|
|
36
|
-
import { default as default37 } from "./
|
|
37
|
-
import { default as default38 } from "./
|
|
38
|
-
import { default as default39 } from "./
|
|
39
|
-
import { default as default40 } from "./
|
|
40
|
-
import { default as default41 } from "./
|
|
41
|
-
import { default as default42 } from "./
|
|
42
|
-
import { default as default43 } from "./
|
|
43
|
-
import { default as default44 } from "./
|
|
44
|
-
import { default as default45 } from "./
|
|
45
|
-
import { default as default46 } from "./
|
|
46
|
-
import { default as default47 } from "./
|
|
47
|
-
import { default as default48 } from "./
|
|
48
|
-
import { default as default49 } from "./
|
|
49
|
-
import { default as default50 } from "./
|
|
50
|
-
import { default as default51 } from "./
|
|
51
|
-
import { default as default52 } from "./
|
|
52
|
-
import { default as default53 } from "./
|
|
53
|
-
import { default as default54 } from "./
|
|
54
|
-
import { default as default55 } from "./
|
|
55
|
-
import { default as default56 } from "./
|
|
56
|
-
import { default as default57 } from "./
|
|
57
|
-
import { default as default58 } from "./
|
|
58
|
-
import { default as default59 } from "./
|
|
59
|
-
import { default as default60 } from "./
|
|
60
|
-
import { default as default61 } from "./
|
|
61
|
-
import { default as default62 } from "./
|
|
62
|
-
import { default as default63 } from "./
|
|
63
|
-
import { default as default64 } from "./
|
|
64
|
-
import { default as default65 } from "./
|
|
65
|
-
import { default as default66 } from "./
|
|
66
|
-
import { default as default67 } from "./
|
|
67
|
-
import { default as default68 } from "./
|
|
68
|
-
import { default as default69 } from "./
|
|
69
|
-
import { default as default70 } from "./
|
|
70
|
-
import { default as default71 } from "./
|
|
71
|
-
import { default as default72 } from "./
|
|
72
|
-
import { default as default73 } from "./
|
|
73
|
-
import { default as default74 } from "./
|
|
74
|
-
import { default as default75 } from "./
|
|
75
|
-
import { default as default76 } from "./
|
|
76
|
-
import { default as default77 } from "./
|
|
77
|
-
import { default as default78 } from "./
|
|
78
|
-
import { default as default79 } from "./
|
|
79
|
-
import { default as default80 } from "./
|
|
80
|
-
import { default as default81 } from "./
|
|
81
|
-
import { default as default82 } from "./
|
|
82
|
-
import { default as default83 } from "./
|
|
83
|
-
import { default as default84 } from "./
|
|
84
|
-
import { default as default85 } from "./
|
|
85
|
-
import { default as default86 } from "./
|
|
86
|
-
import { default as default87 } from "./
|
|
87
|
-
import { default as default88 } from "./
|
|
88
|
-
import { default as default89 } from "./
|
|
89
|
-
import { default as default90 } from "./
|
|
90
|
-
import { default as default91 } from "./
|
|
91
|
-
import { default as default92 } from "./
|
|
92
|
-
import { default as default93 } from "./
|
|
13
|
+
import { default as default14 } from "./Space.js";
|
|
14
|
+
import { default as default15 } from "./Sticky.js";
|
|
15
|
+
import { default as default16 } from "./BackTop.js";
|
|
16
|
+
import { default as default17 } from "./Elevator.js";
|
|
17
|
+
import { default as default18 } from "./FixedNav.js";
|
|
18
|
+
import { default as default19 } from "./NavBar.js";
|
|
19
|
+
import { default as default20 } from "./SideNavBar.js";
|
|
20
|
+
import { default as default21 } from "./SideNavBarItem.js";
|
|
21
|
+
import { default as default22 } from "./SubSideNavBar.js";
|
|
22
|
+
import { default as default23 } from "./Tabbar.js";
|
|
23
|
+
import { default as default24 } from "./TabbarItem.js";
|
|
24
|
+
import { default as default25 } from "./TabPane.js";
|
|
25
|
+
import { default as default26 } from "./Tabs.js";
|
|
26
|
+
import { default as default27 } from "./Address.js";
|
|
27
|
+
import { default as default28 } from "./Calendar.js";
|
|
28
|
+
import { default as default29 } from "./CalendarItem.js";
|
|
29
|
+
import { default as default30 } from "./Cascader.js";
|
|
30
|
+
import { default as default31 } from "./Checkbox.js";
|
|
31
|
+
import { default as default32 } from "./CheckboxGroup.js";
|
|
32
|
+
import { default as default33 } from "./DatePicker.js";
|
|
33
|
+
import { default as default34 } from "./Form.js";
|
|
34
|
+
import { default as default35 } from "./FormItem.js";
|
|
35
|
+
import { default as default36 } from "./Input.js";
|
|
36
|
+
import { default as default37 } from "./InputNumber.js";
|
|
37
|
+
import { default as default38 } from "./Menu.js";
|
|
38
|
+
import { default as default39 } from "./MenuItem.js";
|
|
39
|
+
import { default as default40 } from "./NumberKeyboard.js";
|
|
40
|
+
import { default as default41 } from "./Picker.js";
|
|
41
|
+
import { default as default42 } from "./Radio.js";
|
|
42
|
+
import { default as default43 } from "./RadioGroup.js";
|
|
43
|
+
import { default as default44 } from "./Range.js";
|
|
44
|
+
import { default as default45 } from "./Rate.js";
|
|
45
|
+
import { default as default46 } from "./SearchBar.js";
|
|
46
|
+
import { default as default47 } from "./ShortPassword.js";
|
|
47
|
+
import { default as default48 } from "./Signature.js";
|
|
48
|
+
import { default as default49 } from "./Switch.js";
|
|
49
|
+
import { default as default50 } from "./TextArea.js";
|
|
50
|
+
import { default as default51 } from "./Uploader.js";
|
|
51
|
+
import { default as default52 } from "./ActionSheet.js";
|
|
52
|
+
import { default as default53 } from "./Badge.js";
|
|
53
|
+
import { default as default54 } from "./Dialog.js";
|
|
54
|
+
import { default as default55 } from "./Drag.js";
|
|
55
|
+
import { default as default56 } from "./Empty.js";
|
|
56
|
+
import { default as default57 } from "./InfiniteLoading.js";
|
|
57
|
+
import { default as default58 } from "./NoticeBar.js";
|
|
58
|
+
import { default as default59 } from "./Notify.js";
|
|
59
|
+
import { default as default60 } from "./Popover.js";
|
|
60
|
+
import { default as default61 } from "./Popup.js";
|
|
61
|
+
import { default as default62 } from "./PullToRefresh.js";
|
|
62
|
+
import { default as default63 } from "./Skeleton.js";
|
|
63
|
+
import { default as default64 } from "./Swipe.js";
|
|
64
|
+
import { default as default65 } from "./Toast.js";
|
|
65
|
+
import { default as default66 } from "./Animate.js";
|
|
66
|
+
import { default as default67 } from "./AnimatingNumbers.js";
|
|
67
|
+
import { default as default68 } from "./Audio.js";
|
|
68
|
+
import { default as default69 } from "./Avatar.js";
|
|
69
|
+
import { default as default70 } from "./AvatarGroup.js";
|
|
70
|
+
import { default as default71 } from "./CircleProgress.js";
|
|
71
|
+
import { default as default72 } from "./Collapse.js";
|
|
72
|
+
import { default as default73 } from "./CollapseItem.js";
|
|
73
|
+
import { default as default74 } from "./CountDown.js";
|
|
74
|
+
import { default as default75 } from "./Ellipsis.js";
|
|
75
|
+
import { default as default76 } from "./ImagePreview.js";
|
|
76
|
+
import { default as default77 } from "./Indicator.js";
|
|
77
|
+
import { default as default78 } from "./Pagination.js";
|
|
78
|
+
import { default as default79 } from "./Price.js";
|
|
79
|
+
import { default as default80 } from "./Progress.js";
|
|
80
|
+
import { default as default81 } from "./Step.js";
|
|
81
|
+
import { default as default82 } from "./Steps.js";
|
|
82
|
+
import { default as default83 } from "./Swiper.js";
|
|
83
|
+
import { default as default84 } from "./SwiperItem.js";
|
|
84
|
+
import { default as default85 } from "./Table.js";
|
|
85
|
+
import { default as default86 } from "./Tag.js";
|
|
86
|
+
import { default as default87 } from "./Video.js";
|
|
87
|
+
import { default as default88 } from "./VirtualList.js";
|
|
88
|
+
import { default as default89 } from "./Barrage.js";
|
|
89
|
+
import { default as default90 } from "./Card.js";
|
|
90
|
+
import { default as default91 } from "./TimeDetail.js";
|
|
91
|
+
import { default as default92 } from "./TimeSelect.js";
|
|
92
|
+
import { default as default93 } from "./TrendArrow.js";
|
|
93
|
+
import { default as default94 } from "./WaterMark.js";
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
95
|
+
default52 as ActionSheet,
|
|
96
|
+
default27 as Address,
|
|
97
|
+
default66 as Animate,
|
|
98
|
+
default67 as AnimatingNumbers,
|
|
99
|
+
default68 as Audio,
|
|
100
|
+
default69 as Avatar,
|
|
101
|
+
default70 as AvatarGroup,
|
|
102
|
+
default16 as BackTop,
|
|
103
|
+
default53 as Badge,
|
|
104
|
+
default89 as Barrage,
|
|
104
105
|
default2 as Button,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
default28 as Calendar,
|
|
107
|
+
default29 as CalendarItem,
|
|
108
|
+
default90 as Card,
|
|
109
|
+
default30 as Cascader,
|
|
109
110
|
default3 as Cell,
|
|
110
111
|
default4 as CellGroup,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
default31 as Checkbox,
|
|
113
|
+
default32 as CheckboxGroup,
|
|
114
|
+
default71 as CircleProgress,
|
|
114
115
|
default8 as Col,
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
default72 as Collapse,
|
|
117
|
+
default73 as CollapseItem,
|
|
117
118
|
default5 as ConfigProvider,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
default74 as CountDown,
|
|
120
|
+
default33 as DatePicker,
|
|
121
|
+
default54 as Dialog,
|
|
121
122
|
default9 as Divider,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
default55 as Drag,
|
|
124
|
+
default17 as Elevator,
|
|
125
|
+
default75 as Ellipsis,
|
|
126
|
+
default56 as Empty,
|
|
127
|
+
default18 as FixedNav,
|
|
128
|
+
default34 as Form,
|
|
129
|
+
default35 as FormItem,
|
|
129
130
|
default10 as Grid,
|
|
130
131
|
default11 as GridItem,
|
|
131
132
|
default6 as Image,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
default76 as ImagePreview,
|
|
134
|
+
default77 as Indicator,
|
|
135
|
+
default57 as InfiniteLoading,
|
|
136
|
+
default36 as Input,
|
|
137
|
+
default37 as InputNumber,
|
|
137
138
|
default12 as Layout,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
default38 as Menu,
|
|
140
|
+
default39 as MenuItem,
|
|
141
|
+
default19 as NavBar,
|
|
142
|
+
default58 as NoticeBar,
|
|
143
|
+
default59 as Notify,
|
|
144
|
+
default40 as NumberKeyboard,
|
|
144
145
|
default7 as Overlay,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
146
|
+
default78 as Pagination,
|
|
147
|
+
default41 as Picker,
|
|
148
|
+
default60 as Popover,
|
|
149
|
+
default61 as Popup,
|
|
150
|
+
default79 as Price,
|
|
151
|
+
default80 as Progress,
|
|
152
|
+
default62 as PullToRefresh,
|
|
153
|
+
default42 as Radio,
|
|
154
|
+
default43 as RadioGroup,
|
|
155
|
+
default44 as Range,
|
|
156
|
+
default45 as Rate,
|
|
156
157
|
default13 as Row,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
default81 as
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
default83 as
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
default23 as
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
default91 as
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
default87 as
|
|
185
|
-
|
|
158
|
+
default46 as SearchBar,
|
|
159
|
+
default47 as ShortPassword,
|
|
160
|
+
default20 as SideNavBar,
|
|
161
|
+
default21 as SideNavBarItem,
|
|
162
|
+
default48 as Signature,
|
|
163
|
+
default63 as Skeleton,
|
|
164
|
+
default14 as Space,
|
|
165
|
+
default81 as Step,
|
|
166
|
+
default82 as Steps,
|
|
167
|
+
default15 as Sticky,
|
|
168
|
+
default22 as SubSideNavBar,
|
|
169
|
+
default64 as Swipe,
|
|
170
|
+
default83 as Swiper,
|
|
171
|
+
default84 as SwiperItem,
|
|
172
|
+
default49 as Switch,
|
|
173
|
+
default25 as TabPane,
|
|
174
|
+
default23 as Tabbar,
|
|
175
|
+
default24 as TabbarItem,
|
|
176
|
+
default85 as Table,
|
|
177
|
+
default26 as Tabs,
|
|
178
|
+
default86 as Tag,
|
|
179
|
+
default50 as TextArea,
|
|
180
|
+
default91 as TimeDetail,
|
|
181
|
+
default92 as TimeSelect,
|
|
182
|
+
default65 as Toast,
|
|
183
|
+
default93 as TrendArrow,
|
|
184
|
+
default51 as Uploader,
|
|
185
|
+
default87 as Video,
|
|
186
|
+
default88 as VirtualList,
|
|
187
|
+
default94 as WaterMark
|
|
186
188
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React, { FunctionComponent
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import type { SyntheticEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export interface AudioProps extends BasicComponent {
|
|
4
5
|
src: string;
|
|
@@ -9,9 +10,9 @@ export interface AudioProps extends BasicComponent {
|
|
|
9
10
|
type: string;
|
|
10
11
|
onBack: (e: HTMLAudioElement) => void;
|
|
11
12
|
onForward: (e: HTMLAudioElement) => void;
|
|
12
|
-
onPause: (
|
|
13
|
-
onEnd: (e: HTMLAudioElement) => void;
|
|
13
|
+
onPause: (e: SyntheticEvent<HTMLAudioElement>) => void;
|
|
14
|
+
onEnd: (e: SyntheticEvent<HTMLAudioElement>) => void;
|
|
14
15
|
onMute: (e: HTMLAudioElement) => void;
|
|
15
|
-
onCanPlay: (
|
|
16
|
+
onCanPlay: (e: SyntheticEvent<HTMLAudioElement>) => void;
|
|
16
17
|
}
|
|
17
18
|
export declare const Audio: FunctionComponent<Partial<AudioProps> & React.HTMLAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
import AvatarGroup from '@/packages/avatargroup';
|
|
4
5
|
export interface AvatarProps extends BasicComponent {
|
|
@@ -10,7 +11,7 @@ export interface AvatarProps extends BasicComponent {
|
|
|
10
11
|
color: string;
|
|
11
12
|
src: string;
|
|
12
13
|
alt: string;
|
|
13
|
-
onClick: (e: MouseEvent) => void;
|
|
14
|
+
onClick: (e: MouseEvent<HTMLDivElement>) => void;
|
|
14
15
|
onError: () => void;
|
|
15
16
|
}
|
|
16
17
|
export type AvatarShape = 'round' | 'square';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
import AvatarGroup from '@/packages/avatargroup/index.taro';
|
|
4
5
|
export interface AvatarProps extends BasicComponent {
|
|
@@ -10,7 +11,7 @@ export interface AvatarProps extends BasicComponent {
|
|
|
10
11
|
fit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
11
12
|
src: string;
|
|
12
13
|
alt: string;
|
|
13
|
-
onClick: (e: MouseEvent) => void;
|
|
14
|
+
onClick: (e: MouseEvent<HTMLDivElement>) => void;
|
|
14
15
|
onError: () => void;
|
|
15
16
|
}
|
|
16
17
|
export type AvatarShape = 'round' | 'square';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export interface BackTopProps extends BasicComponent {
|
|
4
5
|
target: string;
|
|
5
6
|
threshold: number;
|
|
6
7
|
zIndex: number;
|
|
7
8
|
duration: number;
|
|
8
|
-
onClick?: (event: MouseEvent) => void;
|
|
9
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
9
10
|
}
|
|
10
11
|
export declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export interface BackTopProps extends BasicComponent {
|
|
4
5
|
threshold: number;
|
|
5
6
|
zIndex: number;
|
|
6
7
|
duration: number;
|
|
7
|
-
onClick?: (event: MouseEvent) => void;
|
|
8
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
8
9
|
}
|
|
9
10
|
export declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { MouseEvent } from 'react';
|
|
2
3
|
import { BasicComponent } from '@/utils/typings';
|
|
3
4
|
export type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
4
5
|
export type ButtonSize = 'large' | 'normal' | 'small';
|
|
@@ -16,6 +17,6 @@ export interface ButtonProps extends BasicComponent {
|
|
|
16
17
|
icon: React.ReactNode;
|
|
17
18
|
id: string;
|
|
18
19
|
nativeType: 'submit' | 'reset' | 'button';
|
|
19
|
-
onClick: (e: MouseEvent) => void;
|
|
20
|
+
onClick: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
20
21
|
}
|
|
21
22
|
export declare const Button: React.ForwardRefExoticComponent<Partial<ButtonProps> & React.RefAttributes<HTMLButtonElement>>;
|