@nutui/nutui-react-taro 1.3.10 → 1.3.11
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 +24 -0
- package/README.md +54 -46
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/Avatar.js +3 -2
- package/dist/esm/Badge.js +2 -2
- package/dist/esm/Button.js +2 -2
- package/dist/esm/Calendar.js +3 -3
- package/dist/esm/CalendarItem.js +2 -2
- package/dist/esm/Card.js +3 -3
- package/dist/esm/Checkbox.js +2 -2
- package/dist/esm/CheckboxGroup.js +2 -2
- package/dist/esm/Col.js +2 -2
- package/dist/esm/Dialog.js +3 -3
- package/dist/esm/ImagePreview.js +3 -3
- package/dist/esm/Infiniteloading.js +2 -2
- package/dist/esm/Input.js +2 -2
- package/dist/esm/MenuItem.js +2 -2
- package/dist/esm/Radio.js +1 -1
- package/dist/esm/RadioGroup.js +2 -2
- package/dist/esm/Rate.js +2 -2
- package/dist/esm/Row.js +2 -2
- package/dist/esm/Signature.js +3 -3
- package/dist/esm/Skeleton.js +4 -3
- package/dist/esm/SwiperItem.js +2 -2
- package/dist/esm/TabbarItem.js +3 -3
- package/dist/esm/Tag.js +2 -2
- package/dist/esm/Uploader.js +3 -3
- package/dist/esm/{audio.taro-b42a082b.js → audio.taro-b4f71d1b.js} +1 -1
- package/dist/esm/{avatar.taro-deabe88a.js → avatar.taro-85ced995.js} +9 -7
- package/dist/esm/{badge.taro-38684262.js → badge.taro-9f72d846.js} +4 -1
- package/dist/esm/{button.taro-7e924b72.js → button.taro-4ce133b9.js} +26 -21
- package/dist/esm/{calendar.taro-533b3219.js → calendar.taro-a1f1a7f8.js} +1 -1
- package/dist/esm/{calendaritem.taro-fe5dd4bd.js → calendaritem.taro-3a12e7f2.js} +1 -1
- package/dist/esm/{card.taro-59f65b66.js → card.taro-a530dfb3.js} +1 -1
- package/dist/esm/{checkbox.taro-d8656076.js → checkbox.taro-0bda9796.js} +1 -1
- package/dist/esm/{col.taro-2a437387.js → col.taro-b61c7cba.js} +5 -2
- package/dist/esm/{dialog.taro-0c35b35f.js → dialog.taro-17e19e5e.js} +1 -1
- package/dist/esm/{imagepreview.taro-1199e977.js → imagepreview.taro-69d47ab0.js} +1 -1
- package/dist/esm/{index.taro-c092d216.js → index.taro-a36f96fb.js} +1 -1
- package/dist/esm/{infiniteloading.taro-b95e62bf.js → infiniteloading.taro-9701755f.js} +3 -1
- package/dist/esm/{input.taro-cc46bbc3.js → input.taro-14380bc6.js} +1 -3
- package/dist/esm/{menuitem.taro-06a135a5.js → menuitem.taro-bb55f482.js} +8 -3
- package/dist/esm/nutui-react.es.js +23 -23
- package/dist/esm/{rate.taro-69c85081.js → rate.taro-10197384.js} +4 -1
- package/dist/esm/{row.taro-cec13a7e.js → row.taro-37a895de.js} +5 -1
- package/dist/esm/{signature.taro-57f8de06.js → signature.taro-6589435b.js} +1 -1
- package/dist/esm/{skeleton.taro-acca102c.js → skeleton.taro-853ce460.js} +1 -1
- package/dist/esm/{swiperitem-d00e7513.js → swiperitem-86a3578a.js} +6 -4
- package/dist/esm/{tabbaritem.taro-fb90f659.js → tabbaritem.taro-8dfb8055.js} +5 -4
- package/dist/esm/{tag.taro-84d40117.js → tag.taro-bd900990.js} +1 -1
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +1 -0
- package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/button/button.taro.d.ts +4 -1
- package/dist/esm/types/src/packages/menuitem/menuitem.d.ts +2 -2
- package/dist/esm/types/src/packages/menuitem/menuitem.taro.d.ts +2 -2
- package/dist/esm/{uploader.taro-a03bb003.js → uploader.taro-2e16bff6.js} +1 -1
- 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/nutui.react.es.js +77 -46
- package/dist/nutui.react.umd.js +76 -45
- package/dist/packages/avatar/avatar.scss +1 -1
- package/dist/packages/button/button.scss +6 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/types/index.d.ts +5 -3
- package/package.json +9 -3
|
@@ -561,7 +561,7 @@ var CalendarItem = function CalendarItem(props) {
|
|
|
561
561
|
}, React__default.createElement("div", {
|
|
562
562
|
className: "calendar-day"
|
|
563
563
|
}, day.type === 'curr' ? day.day : ''), isCurrDay(month, day.day) ? React__default.createElement("div", {
|
|
564
|
-
className: "calendar-curr-
|
|
564
|
+
className: "calendar-curr-tip-curr"
|
|
565
565
|
}, locale.calendaritem.today) : '', isStartTip(day, month) ? React__default.createElement("div", {
|
|
566
566
|
className: "calendar-day-tip"
|
|
567
567
|
}, locale.calendaritem.start) : '', isEndTip(day, month) ? React__default.createElement("div", {
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
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
6
|
import React__default from 'react';
|
|
7
7
|
import { P as Price } from './price.taro-8801462e.js';
|
|
8
|
-
import { T as Tag } from './tag.taro-
|
|
8
|
+
import { T as Tag } from './tag.taro-bd900990.js';
|
|
9
9
|
import { c as cn } from './bem-893ad28d.js';
|
|
10
10
|
var defaultProps = {};
|
|
11
11
|
var Card = function Card(props) {
|
|
@@ -130,7 +130,7 @@ var CheckboxGroup = React__default.forwardRef(function (props, ref) {
|
|
|
130
130
|
checked: childChecked
|
|
131
131
|
}));
|
|
132
132
|
});
|
|
133
|
-
}, [innerValue]);
|
|
133
|
+
}, [innerValue, options]);
|
|
134
134
|
return React__default.createElement("div", _objectSpread({
|
|
135
135
|
className: "".concat(b(), " ").concat(className || '')
|
|
136
136
|
}, rest), options !== null && options !== void 0 && options.length ? renderOptionsChildren() : cloneChildren());
|
|
@@ -11,6 +11,9 @@ var defaultProps = {
|
|
|
11
11
|
};
|
|
12
12
|
var Col = function Col(props) {
|
|
13
13
|
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
14
|
+
className = _defaultProps$props.className,
|
|
15
|
+
_defaultProps$props$s = _defaultProps$props.style,
|
|
16
|
+
style = _defaultProps$props$s === void 0 ? {} : _defaultProps$props$s,
|
|
14
17
|
span = _defaultProps$props.span,
|
|
15
18
|
offset = _defaultProps$props.offset,
|
|
16
19
|
children = _defaultProps$props.children,
|
|
@@ -42,8 +45,8 @@ var Col = function Col(props) {
|
|
|
42
45
|
setColStyle(getStyle);
|
|
43
46
|
}, [span, offset, gutter]);
|
|
44
47
|
return React__default.createElement("div", {
|
|
45
|
-
className: "".concat(colName),
|
|
46
|
-
style: _objectSpread({}, colStyle),
|
|
48
|
+
className: "".concat(colName, " ").concat(className),
|
|
49
|
+
style: _objectSpread(_objectSpread({}, style), colStyle),
|
|
47
50
|
onClick: function onClick(e) {
|
|
48
51
|
_onClick && _onClick(e, 'col');
|
|
49
52
|
}
|
|
@@ -6,7 +6,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import React__default, { forwardRef } from 'react';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
|
-
import { B as Button } from './button.taro-
|
|
9
|
+
import { B as Button } from './button.taro-4ce133b9.js';
|
|
10
10
|
import { CSSTransition } from 'react-transition-group';
|
|
11
11
|
import { u as useConfig } from './configprovider.taro-6c7b3056.js';
|
|
12
12
|
var Content = function Content(props) {
|
|
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
5
5
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
6
6
|
import { P as Popup } from './popup.taro-33d0bbc8.js';
|
|
7
7
|
import { S as Swiper } from './swiper.taro-f314d67a.js';
|
|
8
|
-
import { S as SwiperItem } from './swiperitem-
|
|
8
|
+
import { S as SwiperItem } from './swiperitem-86a3578a.js';
|
|
9
9
|
var defaultProps = {
|
|
10
10
|
images: [],
|
|
11
11
|
videos: [],
|
|
@@ -108,7 +108,7 @@ var RadioGroup = React__default.forwardRef(function (props, ref) {
|
|
|
108
108
|
checked: childChecked
|
|
109
109
|
}));
|
|
110
110
|
});
|
|
111
|
-
}, [val2State]);
|
|
111
|
+
}, [val2State, options]);
|
|
112
112
|
return React__default.createElement(RadioContext.Provider, {
|
|
113
113
|
value: {
|
|
114
114
|
onChange: function onChange(val) {
|
|
@@ -145,7 +145,9 @@ var Infiniteloading = function Infiniteloading(props) {
|
|
|
145
145
|
className: classes,
|
|
146
146
|
scrollY: true,
|
|
147
147
|
id: "scroller",
|
|
148
|
-
|
|
148
|
+
style: {
|
|
149
|
+
height: '100%'
|
|
150
|
+
},
|
|
149
151
|
onScroll: scrollAction,
|
|
150
152
|
onScrollToLower: lower,
|
|
151
153
|
onTouchStart: touchStart,
|
|
@@ -152,9 +152,7 @@ var Input = forwardRef(function (props, ref) {
|
|
|
152
152
|
});
|
|
153
153
|
useEffect(function () {
|
|
154
154
|
setClasses(inputClass);
|
|
155
|
-
|
|
156
|
-
SetInputValue(defaultValue);
|
|
157
|
-
}
|
|
155
|
+
SetInputValue(defaultValue);
|
|
158
156
|
}, [defaultValue]);
|
|
159
157
|
useEffect(function () {
|
|
160
158
|
if (inputValue) {
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
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
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, { useState, useEffect } from 'react';
|
|
7
|
+
import React__default, { forwardRef, useState, useEffect, useImperativeHandle } from 'react';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
9
|
import { CSSTransition } from 'react-transition-group';
|
|
10
10
|
import { u as useConfig } from './configprovider.taro-6c7b3056.js';
|
|
@@ -25,7 +25,7 @@ var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
|
25
25
|
return undefined;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
var MenuItem = function
|
|
28
|
+
var MenuItem = forwardRef(function (props, ref) {
|
|
29
29
|
useConfig();
|
|
30
30
|
var mergedProps = _objectSpread(_objectSpread({}, defaultProps), props);
|
|
31
31
|
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
@@ -60,6 +60,11 @@ var MenuItem = function MenuItem(props) {
|
|
|
60
60
|
useEffect(function () {
|
|
61
61
|
getParentOffset();
|
|
62
62
|
}, [_showPopup]);
|
|
63
|
+
useImperativeHandle(ref, function () {
|
|
64
|
+
return {
|
|
65
|
+
toggle: parent.toggleItemShow
|
|
66
|
+
};
|
|
67
|
+
});
|
|
63
68
|
var getIconCName = function getIconCName(optionVal, value) {
|
|
64
69
|
var _classNames;
|
|
65
70
|
return classNames((_classNames = {}, _defineProperty(_classNames, activeTitleClass, optionVal === value), _defineProperty(_classNames, inactiveTitleClass, optionVal !== value), _classNames));
|
|
@@ -182,7 +187,7 @@ var MenuItem = function MenuItem(props) {
|
|
|
182
187
|
}
|
|
183
188
|
}, item.text));
|
|
184
189
|
}), children))));
|
|
185
|
-
};
|
|
190
|
+
});
|
|
186
191
|
MenuItem.defaultProps = defaultProps;
|
|
187
192
|
MenuItem.displayName = 'NutMenuItem';
|
|
188
193
|
export { MenuItem as M };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button } from './button.taro-
|
|
1
|
+
export { B as Button } from './button.taro-4ce133b9.js';
|
|
2
2
|
export { C as Cell } from './cell.taro-6daf51a0.js';
|
|
3
3
|
export { C as CellGroup } from './cellgroup.taro-e094471c.js';
|
|
4
4
|
export { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
@@ -6,8 +6,8 @@ export { O as Overlay } from './overlay.taro-be45fed5.js';
|
|
|
6
6
|
export { P as Popup } from './popup.taro-33d0bbc8.js';
|
|
7
7
|
export { C as ConfigProvider } from './configprovider.taro-6c7b3056.js';
|
|
8
8
|
export { L as Layout } from './layout.taro-358f014f.js';
|
|
9
|
-
export { C as Col } from './col.taro-
|
|
10
|
-
export { R as Row } from './row.taro-
|
|
9
|
+
export { C as Col } from './col.taro-b61c7cba.js';
|
|
10
|
+
export { R as Row } from './row.taro-37a895de.js';
|
|
11
11
|
export { D as Divider } from './divider.taro-5236fe6a.js';
|
|
12
12
|
export { G as Grid } from './grid.taro-5d75c0ad.js';
|
|
13
13
|
export { G as GridItem } from './griditem.taro-ca62dbb5.js';
|
|
@@ -15,7 +15,7 @@ export { S as Sticky } from './sticky.taro-30d4e453.js';
|
|
|
15
15
|
export { N as NavBar } from './navbar.taro-c931c078.js';
|
|
16
16
|
export { F as FixedNav } from './fixednav.taro-582322a1.js';
|
|
17
17
|
export { T as Tabbar } from './tabbar.taro-86cece39.js';
|
|
18
|
-
export { T as TabbarItem } from './tabbaritem.taro-
|
|
18
|
+
export { T as TabbarItem } from './tabbaritem.taro-8dfb8055.js';
|
|
19
19
|
export { E as Elevator } from './elevator.taro-d7d65470.js';
|
|
20
20
|
export { P as Pagination } from './pagination.taro-62bbd23f.js';
|
|
21
21
|
export { T as Tabs } from './tabs.taro-e71875fa.js';
|
|
@@ -25,28 +25,28 @@ export { S as SideNavBar } from './sidenavbar.taro-4297f552.js';
|
|
|
25
25
|
export { S as SubSideNavBar } from './subsidenavbar.taro-4c80ad38.js';
|
|
26
26
|
export { S as SideNavBarItem } from './sidenavbaritem.taro-fee11d26.js';
|
|
27
27
|
export { M as Menu } from './menu.taro-4abed328.js';
|
|
28
|
-
export { M as MenuItem } from './menuitem.taro-
|
|
28
|
+
export { M as MenuItem } from './menuitem.taro-bb55f482.js';
|
|
29
29
|
export { R as Range } from './range.taro-4232e6a7.js';
|
|
30
|
-
export { C as Calendar } from './calendar.taro-
|
|
31
|
-
export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-
|
|
30
|
+
export { C as Calendar } from './calendar.taro-a1f1a7f8.js';
|
|
31
|
+
export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-0bda9796.js';
|
|
32
32
|
export { D as DatePicker } from './datepicker.taro-9f8afe51.js';
|
|
33
33
|
export { I as InputNumber } from './inputnumber.taro-0a01f6e1.js';
|
|
34
|
-
export { I as Input } from './input.taro-
|
|
35
|
-
export { R as Radio, a as RadioGroup } from './index.taro-
|
|
36
|
-
export { R as Rate } from './rate.taro-
|
|
37
|
-
export { C as CalendarItem } from './calendaritem.taro-
|
|
34
|
+
export { I as Input } from './input.taro-14380bc6.js';
|
|
35
|
+
export { R as Radio, a as RadioGroup } from './index.taro-a36f96fb.js';
|
|
36
|
+
export { R as Rate } from './rate.taro-10197384.js';
|
|
37
|
+
export { C as CalendarItem } from './calendaritem.taro-3a12e7f2.js';
|
|
38
38
|
export { P as Picker } from './picker.taro-f003b725.js';
|
|
39
39
|
export { S as ShortPassword } from './shortpassword.taro-2e96ca22.js';
|
|
40
40
|
export { T as TextArea } from './textarea.taro-388d1f90.js';
|
|
41
|
-
export { U as Uploader } from './uploader.taro-
|
|
41
|
+
export { U as Uploader } from './uploader.taro-2e16bff6.js';
|
|
42
42
|
export { C as Cascader } from './cascader.taro-8c9891b4.js';
|
|
43
43
|
export { S as SearchBar } from './searchbar.taro-0d3c0081.js';
|
|
44
44
|
export { N as NumberKeyboard } from './numberkeyboard.taro-53c350b8.js';
|
|
45
45
|
export { A as ActionSheet } from './actionsheet.taro-360d8d34.js';
|
|
46
46
|
export { B as BackTop } from './backtop.taro-99107c30.js';
|
|
47
47
|
export { D as Drag } from './drag.taro-0717c783.js';
|
|
48
|
-
export { D as Dialog } from './dialog.taro-
|
|
49
|
-
export { I as Infiniteloading } from './infiniteloading.taro-
|
|
48
|
+
export { D as Dialog } from './dialog.taro-17e19e5e.js';
|
|
49
|
+
export { I as Infiniteloading } from './infiniteloading.taro-9701755f.js';
|
|
50
50
|
export { N as Notify } from './notify.taro-d9c48fae.js';
|
|
51
51
|
export { S as Switch } from './switch.taro-bae2dca0.js';
|
|
52
52
|
export { T as Toast } from './toast.taro-86862dff.js';
|
|
@@ -57,14 +57,14 @@ export { N as NoticeBar } from './noticebar.taro-4915fed3.js';
|
|
|
57
57
|
export { S as Steps } from './steps.taro-acf205a0.js';
|
|
58
58
|
export { S as Step } from './step.taro-1c94e067.js';
|
|
59
59
|
export { S as Swiper } from './swiper.taro-f314d67a.js';
|
|
60
|
-
export { S as SwiperItem } from './swiperitem-
|
|
61
|
-
export { A as Avatar } from './avatar.taro-
|
|
60
|
+
export { S as SwiperItem } from './swiperitem-86a3578a.js';
|
|
61
|
+
export { A as Avatar } from './avatar.taro-85ced995.js';
|
|
62
62
|
export { A as AvatarGroup } from './avatargroup-5b2584d9.js';
|
|
63
63
|
export { P as Price } from './price.taro-8801462e.js';
|
|
64
|
-
export { B as Badge } from './badge.taro-
|
|
65
|
-
export { T as Tag } from './tag.taro-
|
|
64
|
+
export { B as Badge } from './badge.taro-9f72d846.js';
|
|
65
|
+
export { T as Tag } from './tag.taro-bd900990.js';
|
|
66
66
|
export { P as Popover } from './popover.taro-7e5dff8c.js';
|
|
67
|
-
export { S as Skeleton } from './skeleton.taro-
|
|
67
|
+
export { S as Skeleton } from './skeleton.taro-853ce460.js';
|
|
68
68
|
export { C as CountDown } from './countdown.taro-f2d9ffed.js';
|
|
69
69
|
export { C as Collapse } from './collapse.taro-13cde270.js';
|
|
70
70
|
export { C as CollapseItem } from './collapseitem-75843a5e.js';
|
|
@@ -74,12 +74,12 @@ export { V as VirtualList } from './virtuallist.taro-e3035825.js';
|
|
|
74
74
|
export { T as Table } from './table.taro-7ac89a6c.js';
|
|
75
75
|
export { V as Video } from './video-8a3518c5.js';
|
|
76
76
|
export { P as Progress } from './progress.taro-623bc807.js';
|
|
77
|
-
export { A as Audio } from './audio.taro-
|
|
78
|
-
export { I as ImagePreview } from './imagepreview.taro-
|
|
77
|
+
export { A as Audio } from './audio.taro-b4f71d1b.js';
|
|
78
|
+
export { I as ImagePreview } from './imagepreview.taro-69d47ab0.js';
|
|
79
79
|
export { A as Address } from './address.taro-8d642b4a.js';
|
|
80
80
|
export { B as Barrage } from './barrage.taro-d86c367a.js';
|
|
81
|
-
export { S as Signature } from './signature.taro-
|
|
82
|
-
export { C as Card } from './card.taro-
|
|
81
|
+
export { S as Signature } from './signature.taro-6589435b.js';
|
|
82
|
+
export { C as Card } from './card.taro-a530dfb3.js';
|
|
83
83
|
export { T as TimePannel } from './timepannel.taro-9904f6e6.js';
|
|
84
84
|
export { T as TimeDetail } from './timedetail.taro-519808cf.js';
|
|
85
85
|
export { T as TimeSelect } from './timeselect.taro-8c4439a8.js';
|
|
@@ -22,6 +22,8 @@ var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
|
22
22
|
});
|
|
23
23
|
var Rate = function Rate(props) {
|
|
24
24
|
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
25
|
+
className = _defaultProps$props.className,
|
|
26
|
+
style = _defaultProps$props.style,
|
|
25
27
|
count = _defaultProps$props.count,
|
|
26
28
|
modelValue = _defaultProps$props.modelValue,
|
|
27
29
|
minimizeValue = _defaultProps$props.minimizeValue,
|
|
@@ -80,7 +82,8 @@ var Rate = function Rate(props) {
|
|
|
80
82
|
onChange && onChange(value);
|
|
81
83
|
};
|
|
82
84
|
return React__default.createElement("div", {
|
|
83
|
-
className: b()
|
|
85
|
+
className: "".concat(b(), " ").concat(className),
|
|
86
|
+
style: style
|
|
84
87
|
}, countArray.map(function (n) {
|
|
85
88
|
return React__default.createElement("div", {
|
|
86
89
|
className: bi(),
|
|
@@ -12,6 +12,9 @@ var defaultProps = {
|
|
|
12
12
|
};
|
|
13
13
|
var Row = function Row(props) {
|
|
14
14
|
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
15
|
+
className = _defaultProps$props.className,
|
|
16
|
+
_defaultProps$props$s = _defaultProps$props.style,
|
|
17
|
+
style = _defaultProps$props$s === void 0 ? {} : _defaultProps$props$s,
|
|
15
18
|
children = _defaultProps$props.children,
|
|
16
19
|
type = _defaultProps$props.type,
|
|
17
20
|
justify = _defaultProps$props.justify,
|
|
@@ -34,7 +37,8 @@ var Row = function Row(props) {
|
|
|
34
37
|
return React__default.createElement(DataContext.Provider, {
|
|
35
38
|
value: parentRow
|
|
36
39
|
}, React__default.createElement('div', {
|
|
37
|
-
className: getClasses(),
|
|
40
|
+
className: "".concat(getClasses(), " ").concat(className),
|
|
41
|
+
style: style,
|
|
38
42
|
onClick: function onClick(e) {
|
|
39
43
|
_onClick && _onClick(e, 'row');
|
|
40
44
|
}
|
|
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
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
7
|
import React__default, { useRef, useState } from 'react';
|
|
8
8
|
import Taro, { useReady } from '@tarojs/taro';
|
|
9
|
-
import { B as Button } from './button.taro-
|
|
9
|
+
import { B as Button } from './button.taro-4ce133b9.js';
|
|
10
10
|
import { c as cn } from './bem-893ad28d.js';
|
|
11
11
|
import { u as useConfig } from './configprovider.taro-6c7b3056.js';
|
|
12
12
|
var defaultProps = {
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
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
6
|
import React__default from 'react';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
|
-
import { A as Avatar } from './avatar.taro-
|
|
8
|
+
import { A as Avatar } from './avatar.taro-85ced995.js';
|
|
9
9
|
import { c as cn } from './bem-893ad28d.js';
|
|
10
10
|
var defaultProps = {
|
|
11
11
|
width: '100px',
|
|
@@ -10,13 +10,15 @@ var defaultProps = {
|
|
|
10
10
|
};
|
|
11
11
|
var SwiperItem = React__default.forwardRef(function (props, ref) {
|
|
12
12
|
var _props = _objectSpread(_objectSpread({}, defaultProps), props);
|
|
13
|
-
var
|
|
13
|
+
var className = _props.className,
|
|
14
|
+
style = _props.style,
|
|
15
|
+
children = _props.children,
|
|
14
16
|
direction = _props.direction,
|
|
15
17
|
size = _props.size;
|
|
16
18
|
var parent = useContext(DataContext);
|
|
17
19
|
var b = cn('swiper-item');
|
|
18
|
-
var classes = classNames(b(''));
|
|
19
|
-
var
|
|
20
|
+
var classes = classNames(b(''), className);
|
|
21
|
+
var getStyle = function getStyle() {
|
|
20
22
|
var style = {};
|
|
21
23
|
var _direction = (parent === null || parent === void 0 ? void 0 : parent.propSwiper.direction) || direction;
|
|
22
24
|
var _size = (parent === null || parent === void 0 ? void 0 : parent.size) || size;
|
|
@@ -27,7 +29,7 @@ var SwiperItem = React__default.forwardRef(function (props, ref) {
|
|
|
27
29
|
};
|
|
28
30
|
return React__default.createElement("div", {
|
|
29
31
|
className: classes,
|
|
30
|
-
style: style()
|
|
32
|
+
style: _objectSpread(_objectSpread({}, style), getStyle())
|
|
31
33
|
}, children);
|
|
32
34
|
});
|
|
33
35
|
SwiperItem.defaultProps = defaultProps;
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
4
|
import React__default, { useEffect } from 'react';
|
|
5
|
-
import
|
|
5
|
+
import Taro from '@tarojs/taro';
|
|
6
6
|
import { c as cn } from './bem-893ad28d.js';
|
|
7
7
|
import { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
8
8
|
import { C as ComponentDefaults } from './typings-1c5f2628.js';
|
|
@@ -41,16 +41,17 @@ var TabbarItem = function TabbarItem(props) {
|
|
|
41
41
|
iconFontClassName = _defaultProps$props.iconFontClassName;
|
|
42
42
|
var b = cn('tabbar-item');
|
|
43
43
|
var bIcon = cn('tabbar-item__icon-box');
|
|
44
|
-
var history = useHistory();
|
|
45
44
|
useEffect(function () {
|
|
46
45
|
if (active && href) {
|
|
47
46
|
window.location.href = href;
|
|
48
47
|
return;
|
|
49
48
|
}
|
|
50
49
|
if (active && to) {
|
|
51
|
-
|
|
50
|
+
Taro.navigateTo({
|
|
51
|
+
url: to
|
|
52
|
+
});
|
|
52
53
|
}
|
|
53
|
-
}, [active,
|
|
54
|
+
}, [active, href, to]);
|
|
54
55
|
return React__default.createElement("div", {
|
|
55
56
|
className: "".concat(b({
|
|
56
57
|
active: active
|
|
@@ -69,7 +69,7 @@ var Tag = function Tag(props) {
|
|
|
69
69
|
}
|
|
70
70
|
return style;
|
|
71
71
|
};
|
|
72
|
-
return React__default.createElement(
|
|
72
|
+
return React__default.createElement(React__default.Fragment, null, closeable ? isTagShow && React__default.createElement("div", {
|
|
73
73
|
className: "".concat(btnName, " ").concat(className),
|
|
74
74
|
style: _objectSpread(_objectSpread({}, style), getStyle()),
|
|
75
75
|
onClick: function onClick(e) {
|
|
@@ -3,13 +3,13 @@ import { IComponent } from '@/utils/typings';
|
|
|
3
3
|
export interface AvatarProps extends IComponent {
|
|
4
4
|
size: string;
|
|
5
5
|
icon: string;
|
|
6
|
+
iconSize?: string | number;
|
|
6
7
|
shape: AvatarShape;
|
|
7
8
|
bgColor: string;
|
|
8
9
|
color: string;
|
|
9
10
|
prefixCls: string;
|
|
10
11
|
url: string;
|
|
11
12
|
className: string;
|
|
12
|
-
alt: string;
|
|
13
13
|
style: React.CSSProperties;
|
|
14
14
|
activeAvatar: (e: MouseEvent) => void;
|
|
15
15
|
onActiveAvatar: (e: MouseEvent) => void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { ButtonProps as MiniProgramButtonProps } from '@tarojs/components';
|
|
2
3
|
import { IComponent } from '@/utils/typings';
|
|
3
|
-
|
|
4
|
+
declare type OmitMiniProgramButtonProps = Omit<MiniProgramButtonProps, 'size' | 'type' | 'onClick'>;
|
|
5
|
+
export interface ButtonProps extends IComponent, OmitMiniProgramButtonProps {
|
|
4
6
|
className: string;
|
|
5
7
|
color: string;
|
|
6
8
|
shape: ButtonShape;
|
|
@@ -19,3 +21,4 @@ export declare type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'w
|
|
|
19
21
|
export declare type ButtonSize = 'large' | 'normal' | 'small';
|
|
20
22
|
export declare type ButtonShape = 'square' | 'round';
|
|
21
23
|
export declare const Button: FunctionComponent<Partial<ButtonProps>>;
|
|
24
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IComponent } from '@/utils/typings';
|
|
3
3
|
export interface OptionItem {
|
|
4
4
|
text: string;
|
|
@@ -21,4 +21,4 @@ export interface MenuItemProps extends IComponent {
|
|
|
21
21
|
onChange: (event: any) => void;
|
|
22
22
|
children: React.ReactNode;
|
|
23
23
|
}
|
|
24
|
-
export declare const MenuItem:
|
|
24
|
+
export declare const MenuItem: React.ForwardRefExoticComponent<Partial<MenuItemProps> & React.RefAttributes<unknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IComponent } from '@/utils/typings';
|
|
3
3
|
export interface OptionItem {
|
|
4
4
|
text: string;
|
|
@@ -21,4 +21,4 @@ export interface MenuItemProps extends IComponent {
|
|
|
21
21
|
onChange: (event: any) => void;
|
|
22
22
|
children: React.ReactNode;
|
|
23
23
|
}
|
|
24
|
-
export declare const MenuItem:
|
|
24
|
+
export declare const MenuItem: React.ForwardRefExoticComponent<Partial<MenuItemProps> & React.RefAttributes<unknown>>;
|
|
@@ -10,7 +10,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
import React__default, { useState, useEffect, useImperativeHandle } from 'react';
|
|
11
11
|
import classNames from 'classnames';
|
|
12
12
|
import { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
13
|
-
import { B as Button } from './button.taro-
|
|
13
|
+
import { B as Button } from './button.taro-4ce133b9.js';
|
|
14
14
|
import { P as Progress } from './progress.taro-623bc807.js';
|
|
15
15
|
import Taro from '@tarojs/taro';
|
|
16
16
|
import { c as cn } from './bem-893ad28d.js';
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED