@nutui/nutui-react-taro 1.4.4 → 1.4.5
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 +15 -0
- package/dist/esm/Address.js +5 -5
- package/dist/esm/Audio.js +5 -5
- package/dist/esm/AvatarContext-7153ad2b.js +3 -1
- package/dist/esm/AvatarGroup.js +4 -4
- package/dist/esm/Calendar.js +5 -5
- package/dist/esm/CalendarItem.js +4 -4
- package/dist/esm/Card.js +4 -3
- package/dist/esm/Cell.js +2 -2
- package/dist/esm/ConfigProvider.js +3 -3
- package/dist/esm/CountDown.js +4 -4
- package/dist/esm/DatePicker.js +5 -5
- package/dist/esm/Dialog.js +4 -4
- package/dist/esm/Ellipsis.js +4 -4
- package/dist/esm/Empty.js +4 -4
- package/dist/esm/FixedNav.js +4 -4
- package/dist/esm/Form.js +4 -4
- package/dist/esm/FormItem.js +3 -3
- package/dist/esm/Grid.js +4 -4
- package/dist/esm/GridItem.js +4 -4
- package/dist/esm/Image.js +4 -4
- package/dist/esm/Infiniteloading.js +4 -4
- package/dist/esm/Input.js +4 -4
- package/dist/esm/MenuItem.js +4 -4
- package/dist/esm/NoticeBar.js +2 -2
- package/dist/esm/NumberKeyboard.js +4 -4
- package/dist/esm/Pagination.js +4 -4
- package/dist/esm/Picker.js +4 -4
- package/dist/esm/PullToRefresh.js +4 -4
- package/dist/esm/Range.js +4 -4
- package/dist/esm/SearchBar.js +4 -4
- package/dist/esm/ShortPassword.js +4 -4
- package/dist/esm/SideNavBar.js +4 -4
- package/dist/esm/Signature.js +4 -4
- package/dist/esm/Sticky.js +4 -4
- package/dist/esm/Table.js +4 -4
- package/dist/esm/Tag.js +3 -2
- package/dist/esm/TextArea.js +4 -4
- package/dist/esm/TimeDetail.js +4 -4
- package/dist/esm/TimePannel.js +4 -4
- package/dist/esm/TimeSelect.js +6 -6
- package/dist/esm/Uploader.js +4 -4
- package/dist/esm/UserContext-68f62e66.js +3 -1
- package/dist/esm/UserContext-b4181162.js +3 -1
- package/dist/esm/UserContext-be8097d2.js +3 -1
- package/dist/esm/VirtualList.js +6 -4
- package/dist/esm/WaterMark.js +4 -4
- package/dist/esm/actionsheet.taro-a58d3d12.js +45 -83
- package/dist/esm/address.taro-79cc7c96.js +461 -0
- package/dist/esm/animate.taro-b0e83dd5.js +32 -46
- package/dist/esm/animatingnumbers.taro-6f40a2e9.js +93 -134
- package/dist/esm/audio.taro-4fadc583.js +161 -0
- package/dist/esm/avatar.taro-85ced995.js +93 -119
- package/dist/esm/avatargroup-1d900174.js +34 -0
- package/dist/esm/backtop.taro-99107c30.js +39 -62
- package/dist/esm/badge.taro-fe9171ec.js +40 -58
- package/dist/esm/barrage.taro-0e157b5e.js +61 -91
- package/dist/esm/bem-893ad28d.js +3 -6
- package/dist/esm/button.taro-4ce133b9.js +87 -98
- package/dist/esm/calendar.taro-4ed72058.js +38 -0
- package/dist/esm/calendaritem.taro-1ebe428d.js +571 -0
- package/dist/esm/card.taro-39055e82.js +32 -0
- package/dist/esm/cascader.taro-d8cb1c3e.js +397 -636
- package/dist/esm/cell.taro-9a04a92e.js +64 -0
- package/dist/esm/cellgroup.taro-e094471c.js +18 -27
- package/dist/esm/checkbox.taro-0bda9796.js +160 -232
- package/dist/esm/circleprogress.taro-47db537c.js +99 -120
- package/dist/esm/col.taro-b61c7cba.js +33 -50
- package/dist/esm/collapse.taro-af58206c.js +73 -86
- package/dist/esm/collapseitem-ce1849d2.js +75 -139
- package/dist/esm/configprovider-5eea4f5d.js +19 -0
- package/dist/esm/configprovider.taro-26882dd2.js +42 -0
- package/dist/esm/countdown.taro-9e40de9c.js +225 -0
- package/dist/esm/datepicker.taro-7220e495.js +270 -0
- package/dist/esm/dialog.taro-1c03960e.js +123 -0
- package/dist/esm/divider.taro-5236fe6a.js +27 -27
- package/dist/esm/drag.taro-82b6b27a.js +99 -138
- package/dist/esm/elevator.taro-d7d65470.js +185 -259
- package/dist/esm/ellipsis.taro-49b6db0c.js +232 -0
- package/dist/esm/empty.taro-7bd813f9.js +62 -0
- package/dist/esm/fixednav.taro-5ad15202.js +53 -0
- package/dist/esm/form.taro-71d32671.js +179 -0
- package/dist/esm/formitem.taro-3089489b.js +89 -0
- package/dist/esm/grid.taro-e6decfce.js +58 -0
- package/dist/esm/grid.taro.context-39636af9.js +4 -2
- package/dist/esm/griditem.taro-4cade72e.js +90 -0
- package/dist/esm/icon-8dc4de10.js +43 -51
- package/dist/esm/icon.taro-1d0d4fb7.js +43 -51
- package/dist/esm/image.taro-e6dc5867.js +64 -0
- package/dist/esm/imagepreview.taro-3400ea03.js +158 -205
- package/dist/esm/index.taro-a36f96fb.js +149 -210
- package/dist/esm/indicator.taro-183ea169.js +29 -43
- package/dist/esm/infiniteloading.taro-6c2a2e95.js +142 -0
- package/dist/esm/input.taro-fd566407.js +243 -0
- package/dist/esm/inputnumber.taro-dc39b853.js +129 -177
- package/dist/esm/layout.taro-358f014f.js +6 -9
- package/dist/esm/menu.taro-4abed328.js +89 -132
- package/dist/esm/menuitem.taro-6e8b27c3.js +130 -0
- package/dist/esm/navbar.taro-c931c078.js +69 -105
- package/dist/esm/noticebar.taro-69ea7673.js +450 -0
- package/dist/esm/notify.taro-308e5892.js +66 -97
- package/dist/esm/numberkeyboard.taro-194519e4.js +158 -0
- package/dist/esm/nutui-react.es.js +44 -44
- package/dist/esm/offsetContext-bfb02c25.js +3 -1
- package/dist/esm/overlay.taro-98367bc1.js +59 -74
- package/dist/esm/pagination.taro-bb490de9.js +124 -0
- package/dist/esm/picker.taro-2a8ded7c.js +420 -0
- package/dist/esm/popover.taro-46d813e8.js +132 -222
- package/dist/esm/popup.taro-cb777e09.js +125 -178
- package/dist/esm/price.taro-8801462e.js +75 -86
- package/dist/esm/progress.taro-623bc807.js +84 -118
- package/dist/esm/pulltorefresh.taro-cab7b51c.js +221 -0
- package/dist/esm/range.taro-5d6ff217.js +332 -0
- package/dist/esm/rate.taro-10197384.js +64 -111
- package/dist/esm/row.taro-37a895de.js +38 -42
- package/dist/esm/searchbar.taro-839dd622.js +148 -0
- package/dist/esm/shortpassword.taro-182d46f7.js +111 -0
- package/dist/esm/sidenavbar.taro-006cf38b.js +35 -0
- package/dist/esm/sidenavbaritem.taro-fee11d26.js +9 -22
- package/dist/esm/signature.taro-33632585.js +143 -0
- package/dist/esm/skeleton.taro-853ce460.js +51 -88
- package/dist/esm/step.taro-1c94e067.js +49 -78
- package/dist/esm/steps.taro-acf205a0.js +21 -30
- package/dist/esm/sticky.taro-d0553f48.js +13 -0
- package/dist/esm/subsidenavbar.taro-f46b4c73.js +58 -75
- package/dist/esm/swipe.taro-83bc248f.js +164 -254
- package/dist/esm/swiper.taro-852f6615.js +424 -505
- package/dist/esm/swiperitem-86a3578a.js +20 -28
- package/dist/esm/switch.taro-bae2dca0.js +43 -64
- package/dist/esm/tabbar.taro-86cece39.js +47 -57
- package/dist/esm/tabbaritem.taro-8dfb8055.js +51 -79
- package/dist/esm/table.taro-cb4dd2c3.js +92 -0
- package/dist/esm/tabpane.taro-91cd6cf4.js +17 -22
- package/dist/esm/tabs.taro-e71875fa.js +121 -165
- package/dist/esm/tag.taro-00fe554d.js +89 -0
- package/dist/esm/textarea.taro-42600f8c.js +74 -0
- package/dist/esm/timedetail.taro-c5f564fd.js +44 -0
- package/dist/esm/timepannel.taro-29f9dd86.js +22 -0
- package/dist/esm/timeselect.taro-3ecce65d.js +133 -0
- package/dist/esm/toast.taro-0804b6b4.js +99 -137
- package/dist/esm/trendarrow.taro-5a7153e4.js +63 -90
- package/dist/esm/types/src/packages/cell/cell.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +5 -4
- package/dist/esm/types/src/packages/noticebar/noticebar.taro.d.ts +5 -4
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +13 -2
- package/dist/esm/typings-1c5f2628.js +7 -6
- package/dist/esm/uploader.taro-f80d76d9.js +392 -0
- package/dist/esm/useClientRect-bf69d7b3.js +5 -25
- package/dist/esm/useTouch-a2ea68c6.js +63 -93
- package/dist/esm/video-8a3518c5.js +59 -83
- package/dist/esm/virtuallist.taro-e3345ced.js +215 -0
- package/dist/esm/watermark.taro-cd9db98a.js +114 -0
- package/dist/esm/zh-CN-dfc384d0.js +128 -133
- 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/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 +634 -5664
- package/dist/nutui.react.umd.js +634 -5664
- package/dist/packages/noticebar/noticebar.scss +17 -0
- package/dist/packages/radio/radio.scss +3 -1
- package/dist/packages/row/row.scss +2 -0
- package/dist/packages/searchbar/searchbar.scss +1 -1
- package/dist/packages/tag/tag.scss +13 -5
- package/dist/packages/virtuallist/virtuallist.scss +24 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/temp.scss +2340 -0
- package/dist/styles/theme-dark.scss +7 -0
- package/dist/styles/theme-default.scss +11 -0
- package/dist/styles/variables.scss +1945 -710
- package/dist/types/index.d.ts +16 -23
- package/package.json +9 -4
- package/dist/esm/address.taro-1e2aea24.js +0 -615
- package/dist/esm/audio.taro-fddcdfc0.js +0 -228
- package/dist/esm/avatargroup-f7f600ff.js +0 -42
- package/dist/esm/calendar.taro-72974415.js +0 -83
- package/dist/esm/calendaritem.taro-84e889eb.js +0 -580
- package/dist/esm/card.taro-a530dfb3.js +0 -61
- package/dist/esm/cell.taro-cf50c4f2.js +0 -109
- package/dist/esm/configprovider-c7d60e20.js +0 -18
- package/dist/esm/configprovider.taro-8bdb3a28.js +0 -50
- package/dist/esm/countdown.taro-d7dc8681.js +0 -246
- package/dist/esm/datepicker.taro-7199f521.js +0 -304
- package/dist/esm/dialog.taro-f54cfbf0.js +0 -187
- package/dist/esm/ellipsis.taro-c0de6ff4.js +0 -309
- package/dist/esm/empty.taro-dbc66496.js +0 -81
- package/dist/esm/fixednav.taro-9e759320.js +0 -97
- package/dist/esm/form.taro-880014b1.js +0 -181
- package/dist/esm/formitem.taro-3695f4a7.js +0 -136
- package/dist/esm/grid.taro-c2cc12d6.js +0 -81
- package/dist/esm/griditem.taro-892153cd.js +0 -122
- package/dist/esm/image.taro-c30973d5.js +0 -105
- package/dist/esm/infiniteloading.taro-b5ddf3cc.js +0 -188
- package/dist/esm/input.taro-104130c1.js +0 -361
- package/dist/esm/menuitem.taro-216e9f7d.js +0 -193
- package/dist/esm/noticebar.taro-94002898.js +0 -368
- package/dist/esm/numberkeyboard.taro-5e8f0ddf.js +0 -245
- package/dist/esm/pagination.taro-9925ffab.js +0 -169
- package/dist/esm/picker.taro-3b5cc054.js +0 -540
- package/dist/esm/pulltorefresh.taro-f26a20dd.js +0 -302
- package/dist/esm/range.taro-c41e9b90.js +0 -469
- package/dist/esm/searchbar.taro-01ed4ea4.js +0 -236
- package/dist/esm/shortpassword.taro-3a3bf412.js +0 -190
- package/dist/esm/sidenavbar.taro-06026f31.js +0 -66
- package/dist/esm/signature.taro-17648cac.js +0 -192
- package/dist/esm/sticky.taro-36013e97.js +0 -16
- package/dist/esm/table.taro-adda6622.js +0 -139
- package/dist/esm/tag.taro-bd900990.js +0 -104
- package/dist/esm/textarea.taro-83d5fe73.js +0 -102
- package/dist/esm/timedetail.taro-105f5380.js +0 -68
- package/dist/esm/timepannel.taro-c66c63dd.js +0 -30
- package/dist/esm/timeselect.taro-fc7ec6ee.js +0 -172
- package/dist/esm/uploader.taro-a1edf38f.js +0 -529
- package/dist/esm/virtuallist.taro-4add61c3.js +0 -315
- package/dist/esm/watermark.taro-323d1cf3.js +0 -132
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
-
import React__default, { useRef, useState, useEffect } from 'react';
|
|
8
|
-
import classNames from 'classnames';
|
|
9
|
-
import { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
10
|
-
import { c as cn } from './bem-893ad28d.js';
|
|
11
|
-
import { g as getRectByTaro } from './useClientRect-bf69d7b3.js';
|
|
12
|
-
import { C as ComponentDefaults } from './typings-1c5f2628.js';
|
|
13
|
-
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
14
|
-
// 滚动方向 across 横向 vertical 纵向
|
|
15
|
-
direction: 'across',
|
|
16
|
-
list: [],
|
|
17
|
-
standTime: 1000,
|
|
18
|
-
complexAm: false,
|
|
19
|
-
height: 40,
|
|
20
|
-
text: '',
|
|
21
|
-
closeMode: false,
|
|
22
|
-
wrapable: false,
|
|
23
|
-
leftIcon: '',
|
|
24
|
-
color: '',
|
|
25
|
-
background: '',
|
|
26
|
-
delay: 1,
|
|
27
|
-
scrollable: null,
|
|
28
|
-
speed: 50
|
|
29
|
-
});
|
|
30
|
-
var NoticeBar = function NoticeBar(props) {
|
|
31
|
-
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
32
|
-
children = _defaultProps$props.children,
|
|
33
|
-
className = _defaultProps$props.className,
|
|
34
|
-
style = _defaultProps$props.style,
|
|
35
|
-
direction = _defaultProps$props.direction,
|
|
36
|
-
list = _defaultProps$props.list,
|
|
37
|
-
standTime = _defaultProps$props.standTime,
|
|
38
|
-
complexAm = _defaultProps$props.complexAm,
|
|
39
|
-
height = _defaultProps$props.height,
|
|
40
|
-
text = _defaultProps$props.text,
|
|
41
|
-
closeMode = _defaultProps$props.closeMode,
|
|
42
|
-
wrapable = _defaultProps$props.wrapable,
|
|
43
|
-
leftIcon = _defaultProps$props.leftIcon,
|
|
44
|
-
color = _defaultProps$props.color,
|
|
45
|
-
background = _defaultProps$props.background,
|
|
46
|
-
delay = _defaultProps$props.delay,
|
|
47
|
-
scrollable = _defaultProps$props.scrollable,
|
|
48
|
-
speed = _defaultProps$props.speed,
|
|
49
|
-
rightIcon = _defaultProps$props.rightIcon,
|
|
50
|
-
close = _defaultProps$props.close,
|
|
51
|
-
click = _defaultProps$props.click,
|
|
52
|
-
onClose = _defaultProps$props.onClose,
|
|
53
|
-
onClick = _defaultProps$props.onClick,
|
|
54
|
-
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
55
|
-
iconFontClassName = _defaultProps$props.iconFontClassName;
|
|
56
|
-
var wrap = useRef(null);
|
|
57
|
-
var content = useRef(null);
|
|
58
|
-
var _useState = useState(true),
|
|
59
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
60
|
-
showNoticeBar = _useState2[0],
|
|
61
|
-
SetShowNoticeBar = _useState2[1];
|
|
62
|
-
var scrollList = useRef([]);
|
|
63
|
-
var _useState3 = useState(0),
|
|
64
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
65
|
-
wrapWidth = _useState4[0],
|
|
66
|
-
SetWrapWidth = _useState4[1];
|
|
67
|
-
var _useState5 = useState(true),
|
|
68
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
69
|
-
firstRound = _useState6[0],
|
|
70
|
-
SetFirstRound = _useState6[1];
|
|
71
|
-
var _useState7 = useState(0),
|
|
72
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
73
|
-
duration = _useState8[0],
|
|
74
|
-
SetDuration = _useState8[1];
|
|
75
|
-
var _useState9 = useState(0),
|
|
76
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
77
|
-
offsetWidth = _useState10[0],
|
|
78
|
-
SetOffsetW = _useState10[1];
|
|
79
|
-
var _useState11 = useState(''),
|
|
80
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
81
|
-
animationClass = _useState12[0],
|
|
82
|
-
SetAnimationClass = _useState12[1];
|
|
83
|
-
var _useState13 = useState(false),
|
|
84
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
85
|
-
animate = _useState14[0],
|
|
86
|
-
SetAnimate = _useState14[1];
|
|
87
|
-
var _useState15 = useState(0),
|
|
88
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
89
|
-
distance = _useState16[0],
|
|
90
|
-
SetDistance = _useState16[1];
|
|
91
|
-
var _useState17 = useState(0),
|
|
92
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
93
|
-
timer = _useState18[0],
|
|
94
|
-
SetTimer = _useState18[1];
|
|
95
|
-
var _useState19 = useState(null),
|
|
96
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
97
|
-
isCanScroll = _useState20[0],
|
|
98
|
-
SetIsCanScroll = _useState20[1];
|
|
99
|
-
useEffect(function () {
|
|
100
|
-
if (direction === 'vertical') {
|
|
101
|
-
if (children) {
|
|
102
|
-
var arr = [];
|
|
103
|
-
React__default.Children.map(children, function (child) {
|
|
104
|
-
arr.push(child.props.children);
|
|
105
|
-
});
|
|
106
|
-
scrollList.current = [].concat(arr);
|
|
107
|
-
} else {
|
|
108
|
-
scrollList.current = [].concat(list);
|
|
109
|
-
}
|
|
110
|
-
setTimeout(function () {
|
|
111
|
-
complexAm ? startRoll() : startRollEasy();
|
|
112
|
-
}, Number(standTime));
|
|
113
|
-
} else {
|
|
114
|
-
initScrollWrap();
|
|
115
|
-
}
|
|
116
|
-
return function () {
|
|
117
|
-
// 销毁事件
|
|
118
|
-
clearInterval(timer);
|
|
119
|
-
startRoll();
|
|
120
|
-
startRollEasy();
|
|
121
|
-
};
|
|
122
|
-
}, []);
|
|
123
|
-
var cloneChild = function cloneChild(listItem, listIndex) {
|
|
124
|
-
return React__default.Children.map(children, function (child, index) {
|
|
125
|
-
if (child && index === listIndex) {
|
|
126
|
-
return React__default.cloneElement(child, {
|
|
127
|
-
key: listIndex,
|
|
128
|
-
children: listItem
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
return null;
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
|
-
useEffect(function () {
|
|
135
|
-
initScrollWrap();
|
|
136
|
-
}, [text]);
|
|
137
|
-
useEffect(function () {
|
|
138
|
-
if (list && list.length) {
|
|
139
|
-
scrollList.current = [].concat(list);
|
|
140
|
-
}
|
|
141
|
-
}, [list]);
|
|
142
|
-
var initScrollWrap = function initScrollWrap(value) {
|
|
143
|
-
if (showNoticeBar === false) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
147
|
-
var warpRes, contentRes, wrapW, offsetW, canScroll;
|
|
148
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
149
|
-
while (1) {
|
|
150
|
-
switch (_context.prev = _context.next) {
|
|
151
|
-
case 0:
|
|
152
|
-
if (!(!wrap.current || !content.current)) {
|
|
153
|
-
_context.next = 2;
|
|
154
|
-
break;
|
|
155
|
-
}
|
|
156
|
-
return _context.abrupt("return");
|
|
157
|
-
case 2:
|
|
158
|
-
_context.next = 4;
|
|
159
|
-
return getRectByTaro(wrap.current);
|
|
160
|
-
case 4:
|
|
161
|
-
warpRes = _context.sent;
|
|
162
|
-
_context.next = 7;
|
|
163
|
-
return getRectByTaro(content.current);
|
|
164
|
-
case 7:
|
|
165
|
-
contentRes = _context.sent;
|
|
166
|
-
wrapW = warpRes.width;
|
|
167
|
-
offsetW = contentRes.width;
|
|
168
|
-
canScroll = scrollable == null ? offsetW > wrapW : scrollable;
|
|
169
|
-
SetIsCanScroll(canScroll);
|
|
170
|
-
if (canScroll) {
|
|
171
|
-
SetWrapWidth(wrapW);
|
|
172
|
-
SetOffsetW(offsetW);
|
|
173
|
-
SetDuration(offsetW / speed);
|
|
174
|
-
SetAnimationClass('play');
|
|
175
|
-
} else {
|
|
176
|
-
SetAnimationClass('');
|
|
177
|
-
}
|
|
178
|
-
case 13:
|
|
179
|
-
case "end":
|
|
180
|
-
return _context.stop();
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}, _callee);
|
|
184
|
-
})), 0);
|
|
185
|
-
};
|
|
186
|
-
var handleClick = function handleClick(event) {
|
|
187
|
-
click && click(event);
|
|
188
|
-
onClick && onClick(event);
|
|
189
|
-
};
|
|
190
|
-
var onClickIcon = function onClickIcon(event) {
|
|
191
|
-
event.stopPropagation();
|
|
192
|
-
SetShowNoticeBar(!closeMode);
|
|
193
|
-
close && close(event);
|
|
194
|
-
onClose && onClose(event);
|
|
195
|
-
};
|
|
196
|
-
var onAnimationEnd = function onAnimationEnd() {
|
|
197
|
-
SetFirstRound(false);
|
|
198
|
-
setTimeout(function () {
|
|
199
|
-
SetDuration((offsetWidth + wrapWidth) / speed);
|
|
200
|
-
SetAnimationClass('play-infinite');
|
|
201
|
-
}, 0);
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* 滚动方式一
|
|
205
|
-
*/
|
|
206
|
-
var startRollEasy = function startRollEasy() {
|
|
207
|
-
showhorseLamp();
|
|
208
|
-
var time = height / speed / 4 < 1 ? Number((height / speed / 4).toFixed(1)) * 1000 : ~~(height / speed / 4) * 1000;
|
|
209
|
-
var timerCurr = window.setInterval(showhorseLamp, time + Number(standTime));
|
|
210
|
-
SetTimer(timerCurr);
|
|
211
|
-
};
|
|
212
|
-
var showhorseLamp = function showhorseLamp() {
|
|
213
|
-
SetAnimate(true);
|
|
214
|
-
var time = height / speed / 4 < 1 ? Number((height / speed / 4).toFixed(1)) * 1000 : ~~(height / speed / 4) * 1000;
|
|
215
|
-
setTimeout(function () {
|
|
216
|
-
scrollList.current.push(scrollList.current[0]);
|
|
217
|
-
scrollList.current.shift();
|
|
218
|
-
SetAnimate(false);
|
|
219
|
-
}, time);
|
|
220
|
-
};
|
|
221
|
-
var startRoll = function startRoll() {
|
|
222
|
-
var timerCurr = window.setInterval(function () {
|
|
223
|
-
var chunk = 100;
|
|
224
|
-
for (var i = 0; i < chunk; i++) {
|
|
225
|
-
scroll(i, !(i < chunk - 1));
|
|
226
|
-
}
|
|
227
|
-
}, Number(standTime) + 100 * speed);
|
|
228
|
-
SetTimer(timerCurr);
|
|
229
|
-
};
|
|
230
|
-
var scroll = function scroll(n, last) {
|
|
231
|
-
SetAnimate(true);
|
|
232
|
-
setTimeout(function () {
|
|
233
|
-
var _long = distance;
|
|
234
|
-
_long -= height / 100;
|
|
235
|
-
SetDistance(_long);
|
|
236
|
-
if (last) {
|
|
237
|
-
scrollList.current.push(scrollList.current[0]);
|
|
238
|
-
scrollList.current.shift();
|
|
239
|
-
SetDistance(0);
|
|
240
|
-
SetAnimate(false);
|
|
241
|
-
}
|
|
242
|
-
}, n * speed);
|
|
243
|
-
};
|
|
244
|
-
/**
|
|
245
|
-
* 点击滚动单元
|
|
246
|
-
*/
|
|
247
|
-
var handleClickIcon = function handleClickIcon(event) {
|
|
248
|
-
event.stopPropagation();
|
|
249
|
-
SetShowNoticeBar(!closeMode);
|
|
250
|
-
close && close(event);
|
|
251
|
-
onClose && onClose(event);
|
|
252
|
-
};
|
|
253
|
-
var iconShow = function iconShow() {
|
|
254
|
-
if (leftIcon === 'close') {
|
|
255
|
-
return false;
|
|
256
|
-
}
|
|
257
|
-
return true;
|
|
258
|
-
};
|
|
259
|
-
var iconBg = function iconBg() {
|
|
260
|
-
var iconBg = '';
|
|
261
|
-
if (leftIcon) {
|
|
262
|
-
iconBg = leftIcon;
|
|
263
|
-
}
|
|
264
|
-
return iconBg;
|
|
265
|
-
};
|
|
266
|
-
var isEllipsis = function isEllipsis() {
|
|
267
|
-
if (isCanScroll == null) {
|
|
268
|
-
return wrapable;
|
|
269
|
-
}
|
|
270
|
-
return !isCanScroll && !wrapable;
|
|
271
|
-
};
|
|
272
|
-
var contentStyle = {
|
|
273
|
-
animationDelay: "".concat(firstRound ? delay : 0, "s"),
|
|
274
|
-
animationDuration: "".concat(duration, "s"),
|
|
275
|
-
transform: "translateX(".concat(firstRound ? 0 : "".concat(wrapWidth, "px"), ")")
|
|
276
|
-
};
|
|
277
|
-
var barStyle = {
|
|
278
|
-
color: color,
|
|
279
|
-
background: background,
|
|
280
|
-
height: direction === 'vertical' ? "".concat(height, "px") : ''
|
|
281
|
-
};
|
|
282
|
-
var duringTime = height / speed / 4 < 1 ? Number((height / speed / 4).toFixed(1)) : ~~(height / speed / 4);
|
|
283
|
-
var noDuring = height / speed < 1 ? (height / speed).toFixed(1) : ~~(height / speed);
|
|
284
|
-
var horseLampStyle = {
|
|
285
|
-
transform: complexAm ? "translateY(".concat(distance, "px)") : '',
|
|
286
|
-
transition: animate ? "all ".concat(duringTime === 0 ? noDuring : duringTime, "s") : '',
|
|
287
|
-
marginTop: animate ? "-".concat(height, "px") : ''
|
|
288
|
-
};
|
|
289
|
-
var b = cn('noticebar');
|
|
290
|
-
var noticebarClass = classNames({
|
|
291
|
-
'nut-noticebar-page': true,
|
|
292
|
-
withicon: closeMode,
|
|
293
|
-
close: closeMode,
|
|
294
|
-
wrapable: wrapable
|
|
295
|
-
});
|
|
296
|
-
return React__default.createElement("div", {
|
|
297
|
-
className: "".concat(b(), " ").concat(className || ''),
|
|
298
|
-
style: style
|
|
299
|
-
}, showNoticeBar && direction === 'across' ? React__default.createElement("div", {
|
|
300
|
-
className: noticebarClass,
|
|
301
|
-
style: barStyle,
|
|
302
|
-
onClick: handleClick
|
|
303
|
-
}, iconShow() ? React__default.createElement("div", {
|
|
304
|
-
className: "left-icon",
|
|
305
|
-
style: {
|
|
306
|
-
backgroundImage: "url(".concat(iconBg() || '', ")")
|
|
307
|
-
}
|
|
308
|
-
}, !iconBg() ? React__default.createElement(Icon, {
|
|
309
|
-
classPrefix: iconClassPrefix,
|
|
310
|
-
fontClassName: iconFontClassName,
|
|
311
|
-
name: "notice",
|
|
312
|
-
size: "16",
|
|
313
|
-
color: color
|
|
314
|
-
}) : null) : null, React__default.createElement("div", {
|
|
315
|
-
ref: wrap,
|
|
316
|
-
className: "wrap"
|
|
317
|
-
}, React__default.createElement("div", {
|
|
318
|
-
ref: content,
|
|
319
|
-
className: "content ".concat(animationClass, " ").concat(isEllipsis() ? 'nut-ellipsis' : ''),
|
|
320
|
-
style: contentStyle,
|
|
321
|
-
onAnimationEnd: onAnimationEnd
|
|
322
|
-
}, children, text)), closeMode || rightIcon ? React__default.createElement("div", {
|
|
323
|
-
className: "right-icon",
|
|
324
|
-
onClick: onClickIcon
|
|
325
|
-
}, React__default.createElement(Icon, {
|
|
326
|
-
classPrefix: iconClassPrefix,
|
|
327
|
-
fontClassName: iconFontClassName,
|
|
328
|
-
name: rightIcon || 'close',
|
|
329
|
-
color: color
|
|
330
|
-
})) : null) : null, showNoticeBar && scrollList.current.length > 0 && direction === 'vertical' ? React__default.createElement("div", {
|
|
331
|
-
className: "nut-noticebar-vertical",
|
|
332
|
-
style: barStyle,
|
|
333
|
-
onClick: handleClick
|
|
334
|
-
}, children ? React__default.createElement("div", {
|
|
335
|
-
className: "horseLamp_list",
|
|
336
|
-
style: horseLampStyle
|
|
337
|
-
}, scrollList.current.map(function (item, index) {
|
|
338
|
-
return cloneChild(item, index);
|
|
339
|
-
})) : React__default.createElement("ul", {
|
|
340
|
-
className: "horseLamp_list",
|
|
341
|
-
style: horseLampStyle
|
|
342
|
-
}, scrollList.current.map(function (item, index) {
|
|
343
|
-
return (
|
|
344
|
-
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
345
|
-
React__default.createElement("li", {
|
|
346
|
-
className: "horseLamp_list_item",
|
|
347
|
-
style: {
|
|
348
|
-
height: height
|
|
349
|
-
},
|
|
350
|
-
key: index
|
|
351
|
-
}, item)
|
|
352
|
-
);
|
|
353
|
-
})), React__default.createElement("div", {
|
|
354
|
-
className: "go",
|
|
355
|
-
onClick: function onClick(e) {
|
|
356
|
-
handleClickIcon(e);
|
|
357
|
-
}
|
|
358
|
-
}, rightIcon || (closeMode ? React__default.createElement(Icon, {
|
|
359
|
-
classPrefix: iconClassPrefix,
|
|
360
|
-
fontClassName: iconFontClassName,
|
|
361
|
-
name: rightIcon || 'close',
|
|
362
|
-
color: color,
|
|
363
|
-
size: "11px"
|
|
364
|
-
}) : null))) : null);
|
|
365
|
-
};
|
|
366
|
-
NoticeBar.defaultProps = defaultProps;
|
|
367
|
-
NoticeBar.displayName = 'NutNoticeBar';
|
|
368
|
-
export { NoticeBar as N };
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
|
-
import React__default, { useState, useEffect } from 'react';
|
|
7
|
-
import classNames from 'classnames';
|
|
8
|
-
import { c as cn } from './bem-893ad28d.js';
|
|
9
|
-
import { P as Popup } from './popup.taro-cb777e09.js';
|
|
10
|
-
import { u as useConfig } from './configprovider.taro-8bdb3a28.js';
|
|
11
|
-
var defaultProps = {
|
|
12
|
-
confirmText: '',
|
|
13
|
-
title: '',
|
|
14
|
-
visible: false,
|
|
15
|
-
type: 'default',
|
|
16
|
-
customKey: [],
|
|
17
|
-
className: '',
|
|
18
|
-
randomKeys: false,
|
|
19
|
-
popClass: '',
|
|
20
|
-
onClose: function onClose() {}
|
|
21
|
-
};
|
|
22
|
-
var NumberKeyboard = function NumberKeyboard(props) {
|
|
23
|
-
var _useConfig = useConfig(),
|
|
24
|
-
locale = _useConfig.locale;
|
|
25
|
-
var title = props.title,
|
|
26
|
-
confirmText = props.confirmText,
|
|
27
|
-
visible = props.visible,
|
|
28
|
-
type = props.type,
|
|
29
|
-
customKey = props.customKey,
|
|
30
|
-
randomKeys = props.randomKeys,
|
|
31
|
-
popClass = props.popClass,
|
|
32
|
-
style = props.style,
|
|
33
|
-
className = props.className,
|
|
34
|
-
onChange = props.onChange,
|
|
35
|
-
onDelete = props.onDelete,
|
|
36
|
-
onClose = props.onClose;
|
|
37
|
-
var b = cn('numberkeyboard');
|
|
38
|
-
var _useState = useState(visible),
|
|
39
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
40
|
-
show = _useState2[0],
|
|
41
|
-
setShow = _useState2[1];
|
|
42
|
-
var _useState3 = useState(undefined),
|
|
43
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
44
|
-
clickKeyIndex = _useState4[0],
|
|
45
|
-
setClickKeyIndex = _useState4[1];
|
|
46
|
-
var _useState5 = useState([]),
|
|
47
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
48
|
-
keysList = _useState6[0],
|
|
49
|
-
setKeysList = _useState6[1];
|
|
50
|
-
useEffect(function () {
|
|
51
|
-
setShow(visible);
|
|
52
|
-
}, [visible]);
|
|
53
|
-
var defaultKey = function defaultKey() {
|
|
54
|
-
var leftBottomKey = {
|
|
55
|
-
id: 'lock',
|
|
56
|
-
type: 'lock'
|
|
57
|
-
};
|
|
58
|
-
if (customKey) {
|
|
59
|
-
var customKeys = Array.isArray(customKey) ? customKey : [customKey];
|
|
60
|
-
if (customKeys.length > 0) {
|
|
61
|
-
var newCustomKey = customKeys[0];
|
|
62
|
-
leftBottomKey = {
|
|
63
|
-
id: newCustomKey,
|
|
64
|
-
type: 'custom'
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return [].concat(_toConsumableArray(getBasicKeys()), [leftBottomKey, {
|
|
69
|
-
id: 0,
|
|
70
|
-
type: 'number'
|
|
71
|
-
}, {
|
|
72
|
-
id: 'delete',
|
|
73
|
-
type: 'delete'
|
|
74
|
-
}]);
|
|
75
|
-
};
|
|
76
|
-
var getBasicKeys = function getBasicKeys() {
|
|
77
|
-
var keys = [];
|
|
78
|
-
for (var i = 1; i <= 9; i++) {
|
|
79
|
-
keys.push({
|
|
80
|
-
id: i,
|
|
81
|
-
type: 'number'
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
if (randomKeys) {
|
|
85
|
-
return keys.sort(function () {
|
|
86
|
-
return Math.random() > 0.5 ? 1 : -1;
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
return keys;
|
|
90
|
-
};
|
|
91
|
-
var genCustomKeys = function genCustomKeys() {
|
|
92
|
-
var keys = getBasicKeys();
|
|
93
|
-
if (!customKey) return [];
|
|
94
|
-
var customKeys = Array.isArray(customKey) ? customKey : [customKey];
|
|
95
|
-
if (customKeys.length > 2) {
|
|
96
|
-
customKeys = [customKeys[0], customKeys[1]];
|
|
97
|
-
}
|
|
98
|
-
if (customKeys.length === 2 && props.title && props.type !== 'rightColumn') {
|
|
99
|
-
customKeys = [customKeys[0]];
|
|
100
|
-
}
|
|
101
|
-
if (customKeys.length === 1) {
|
|
102
|
-
if (props.title && props.type !== 'rightColumn') {
|
|
103
|
-
keys.push({
|
|
104
|
-
id: customKeys[0],
|
|
105
|
-
type: 'custom'
|
|
106
|
-
}, {
|
|
107
|
-
id: 0,
|
|
108
|
-
type: 'number'
|
|
109
|
-
}, {
|
|
110
|
-
id: 'delete',
|
|
111
|
-
type: 'delete'
|
|
112
|
-
});
|
|
113
|
-
} else {
|
|
114
|
-
keys.push({
|
|
115
|
-
id: 0,
|
|
116
|
-
type: 'number'
|
|
117
|
-
}, {
|
|
118
|
-
id: customKeys[0],
|
|
119
|
-
type: 'custom'
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
} else if (customKeys.length === 2) {
|
|
123
|
-
keys.push({
|
|
124
|
-
id: customKeys[0],
|
|
125
|
-
type: 'custom'
|
|
126
|
-
}, {
|
|
127
|
-
id: 0,
|
|
128
|
-
type: 'number'
|
|
129
|
-
}, {
|
|
130
|
-
id: customKeys[1],
|
|
131
|
-
type: 'custom'
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
return keys;
|
|
135
|
-
};
|
|
136
|
-
useEffect(function () {
|
|
137
|
-
if (props.type === 'rightColumn' || props.title !== '') {
|
|
138
|
-
setKeysList(genCustomKeys());
|
|
139
|
-
} else {
|
|
140
|
-
setKeysList(defaultKey());
|
|
141
|
-
}
|
|
142
|
-
}, []);
|
|
143
|
-
var onTouchstart = function onTouchstart(item, event) {
|
|
144
|
-
event.stopPropagation();
|
|
145
|
-
setClickKeyIndex(item.id);
|
|
146
|
-
if (item.type === 'number' || item.type === 'custom') {
|
|
147
|
-
onChange && onChange(item.id);
|
|
148
|
-
}
|
|
149
|
-
if (item.type === 'lock') {
|
|
150
|
-
onClose && onClose();
|
|
151
|
-
}
|
|
152
|
-
if (item.type === 'delete') {
|
|
153
|
-
onDelete && onDelete();
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
var onTouchMove = function onTouchMove(event) {
|
|
157
|
-
event.stopPropagation();
|
|
158
|
-
};
|
|
159
|
-
var onTouchEnd = function onTouchEnd(event) {
|
|
160
|
-
event.preventDefault();
|
|
161
|
-
setClickKeyIndex(undefined);
|
|
162
|
-
};
|
|
163
|
-
return React__default.createElement("div", null, React__default.createElement(Popup, {
|
|
164
|
-
visible: show,
|
|
165
|
-
position: "bottom",
|
|
166
|
-
popClass: popClass,
|
|
167
|
-
onClickOverlay: onClose,
|
|
168
|
-
onClickCloseIcon: onClose,
|
|
169
|
-
overlayStyle: {
|
|
170
|
-
backgroundColor: 'rgba(0, 0, 0, 0)'
|
|
171
|
-
}
|
|
172
|
-
}, React__default.createElement("div", {
|
|
173
|
-
className: "".concat(b(), " ").concat(className),
|
|
174
|
-
style: _objectSpread({}, style)
|
|
175
|
-
}, title ? React__default.createElement("div", {
|
|
176
|
-
className: b('header')
|
|
177
|
-
}, React__default.createElement("h3", {
|
|
178
|
-
className: b('header__tit')
|
|
179
|
-
}, title), type === 'default' ? React__default.createElement("span", {
|
|
180
|
-
className: b('header__close'),
|
|
181
|
-
onClick: onClose
|
|
182
|
-
}, locale.done) : null) : null, React__default.createElement("div", {
|
|
183
|
-
className: b('body')
|
|
184
|
-
}, React__default.createElement("div", {
|
|
185
|
-
className: b('body__keys')
|
|
186
|
-
}, keysList === null || keysList === void 0 ? void 0 : keysList.map(function (item, index) {
|
|
187
|
-
return React__default.createElement("div", {
|
|
188
|
-
key: index,
|
|
189
|
-
className: classNames({
|
|
190
|
-
'key-board-wrapper': true,
|
|
191
|
-
'key-board-wrapper-large': item.id === 0 && type === 'rightColumn' && Array.isArray(customKey) && customKey.length === 1
|
|
192
|
-
})
|
|
193
|
-
}, React__default.createElement("div", {
|
|
194
|
-
className: classNames({
|
|
195
|
-
key: true,
|
|
196
|
-
active: item.id === clickKeyIndex,
|
|
197
|
-
lock: item.type === 'lock',
|
|
198
|
-
"delete": item.type === 'delete'
|
|
199
|
-
}),
|
|
200
|
-
onTouchStart: function onTouchStart(event) {
|
|
201
|
-
return onTouchstart(item, event);
|
|
202
|
-
},
|
|
203
|
-
onTouchMove: onTouchMove,
|
|
204
|
-
onTouchEnd: onTouchEnd
|
|
205
|
-
}, item.type === 'number' || item.type === 'custom' ? React__default.createElement("div", null, item.id) : null, item.type === 'lock' ? React__default.createElement("img", {
|
|
206
|
-
src: "https://img11.360buyimg.com/imagetools/jfs/t1/146371/38/8485/738/5f606425Eca239740/14f4b4f5f20d8a68.png",
|
|
207
|
-
alt: ""
|
|
208
|
-
}) : null, item.type === 'delete' ? React__default.createElement("img", {
|
|
209
|
-
src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png",
|
|
210
|
-
alt: ""
|
|
211
|
-
}) : null));
|
|
212
|
-
})), type === 'rightColumn' ? React__default.createElement("div", {
|
|
213
|
-
className: b('sidebar')
|
|
214
|
-
}, React__default.createElement("div", {
|
|
215
|
-
className: "key-board-wrapper"
|
|
216
|
-
}, React__default.createElement("div", {
|
|
217
|
-
className: classNames({
|
|
218
|
-
key: true,
|
|
219
|
-
active: clickKeyIndex === 'delete'
|
|
220
|
-
}),
|
|
221
|
-
onTouchStart: function onTouchStart(event) {
|
|
222
|
-
return onTouchstart({
|
|
223
|
-
id: 'delete',
|
|
224
|
-
type: 'delete'
|
|
225
|
-
}, event);
|
|
226
|
-
},
|
|
227
|
-
onTouchMove: onTouchMove,
|
|
228
|
-
onTouchEnd: onTouchEnd
|
|
229
|
-
}, React__default.createElement("img", {
|
|
230
|
-
src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png",
|
|
231
|
-
alt: ""
|
|
232
|
-
}))), React__default.createElement("div", {
|
|
233
|
-
className: "key-board-wrapper key-board-finish",
|
|
234
|
-
onClick: onClose
|
|
235
|
-
}, React__default.createElement("div", {
|
|
236
|
-
className: classNames({
|
|
237
|
-
key: true,
|
|
238
|
-
finish: true,
|
|
239
|
-
activeFinsh: clickKeyIndex === 'finish'
|
|
240
|
-
})
|
|
241
|
-
}, confirmText || locale.done))) : null))));
|
|
242
|
-
};
|
|
243
|
-
NumberKeyboard.defaultProps = defaultProps;
|
|
244
|
-
NumberKeyboard.displayName = 'NutNumberKeyboard';
|
|
245
|
-
export { NumberKeyboard as N };
|