@nutui/nutui-react-taro 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/Icon/style/index.js +1 -2
- package/dist/esm/ImagePreview.js +3 -3
- package/dist/esm/Input.js +2 -2
- package/dist/esm/Range.js +2 -2
- package/dist/esm/Swiper.js +2 -2
- package/dist/esm/{audio.taro-c94fc58b.js → audio.taro-20890c93.js} +1 -1
- package/dist/esm/{imagepreview.taro-69d47ab0.js → imagepreview.taro-68e776f5.js} +1 -1
- package/dist/esm/{input.taro-eef88020.js → input.taro-65db24c3.js} +3 -3
- package/dist/esm/nutui-react.es.js +5 -5
- package/dist/esm/{range.taro-3e610b5c.js → range.taro-4cbe2469.js} +1 -4
- package/dist/esm/{swiper.taro-f314d67a.js → swiper.taro-852f6615.js} +8 -4
- package/dist/esm/types/src/packages/actionsheet/actionsheet.d.ts +1 -1
- package/dist/esm/types/src/packages/actionsheet/actionsheet.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/type.d.ts +2 -2
- package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.d.ts +1 -1
- package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +1 -1
- package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/badge/badge.d.ts +1 -1
- package/dist/esm/types/src/packages/badge/badge.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/button/button.d.ts +3 -3
- package/dist/esm/types/src/packages/button/button.taro.d.ts +4 -4
- package/dist/esm/types/src/packages/calendar/calendar.d.ts +1 -1
- package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +2 -2
- package/dist/esm/types/src/packages/calendaritem/calendaritem.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/cascader/types.d.ts +1 -1
- package/dist/esm/types/src/packages/col/col.d.ts +1 -1
- package/dist/esm/types/src/packages/col/col.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/Mask.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +2 -2
- package/dist/esm/types/src/packages/dialog/dialog.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/dialog.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/divider/divider.d.ts +2 -2
- package/dist/esm/types/src/packages/divider/divider.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/ellipsis/ellipsis.d.ts +1 -1
- package/dist/esm/types/src/packages/ellipsis/ellipsis.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +2 -2
- package/dist/esm/types/src/packages/fixednav/fixednav.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/form/types.d.ts +2 -2
- package/dist/esm/types/src/packages/formitem/formitem.d.ts +2 -2
- package/dist/esm/types/src/packages/formitem/formitem.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/formitem/types.d.ts +2 -2
- package/dist/esm/types/src/packages/grid/grid.d.ts +1 -1
- package/dist/esm/types/src/packages/grid/grid.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/griditem/griditem.d.ts +1 -1
- package/dist/esm/types/src/packages/griditem/griditem.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/image/image.d.ts +2 -2
- package/dist/esm/types/src/packages/image/image.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/input/input.d.ts +5 -5
- package/dist/esm/types/src/packages/input/input.taro.d.ts +5 -5
- package/dist/esm/types/src/packages/popover/popover.d.ts +2 -2
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/popup/popup.d.ts +1 -1
- package/dist/esm/types/src/packages/popup/popup.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/progress/progress.d.ts +2 -2
- package/dist/esm/types/src/packages/progress/progress.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.d.ts +1 -1
- package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/radio/radio.d.ts +2 -2
- package/dist/esm/types/src/packages/radio/radio.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +2 -2
- package/dist/esm/types/src/packages/radiogroup/radiogroup.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/range/range.d.ts +1 -2
- package/dist/esm/types/src/packages/range/range.taro.d.ts +1 -2
- package/dist/esm/types/src/packages/row/row.d.ts +1 -1
- package/dist/esm/types/src/packages/row/row.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.d.ts +1 -1
- package/dist/esm/types/src/packages/sidenavbar/sidenavbar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/sidenavbar/type.d.ts +3 -3
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.d.ts +1 -1
- package/dist/esm/types/src/packages/sidenavbaritem/sidenavbaritem.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/skeleton/skeleton.d.ts +1 -1
- package/dist/esm/types/src/packages/skeleton/skeleton.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.d.ts +1 -1
- package/dist/esm/types/src/packages/subsidenavbar/subsidenavbar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/swipe/swipe.d.ts +2 -2
- package/dist/esm/types/src/packages/swipe/swipe.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/swiper/swiper.d.ts +2 -1
- package/dist/esm/types/src/packages/swiper/swiper.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/table/table.d.ts +1 -1
- package/dist/esm/types/src/packages/table/table.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
- package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/tag/tag.d.ts +1 -1
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/uploader/uploader.d.ts +2 -2
- package/dist/esm/types/src/packages/uploader/uploader.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/virtuallist/type.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +1 -1
- package/dist/esm/types/src/utils/get-scroll-parent.d.ts +1 -1
- package/dist/esm/types/src/utils/render.d.ts +1 -1
- package/dist/esm/types/src/utils/useTouch.d.ts +1 -1
- package/dist/esm/types/src/utils/useWatch.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/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 +89 -77
- package/dist/nutui.react.umd.js +89 -77
- package/dist/packages/input/input.scss +15 -0
- package/dist/packages/searchbar/searchbar.scss +6 -13
- package/dist/packages/swiper/swiper.scss +0 -3
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +1 -0
- package/dist/styles/variables.scss +8 -4
- package/dist/types/index.d.ts +55 -55
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v1.4.1
|
|
2
|
+
`2022-12-28`
|
|
3
|
+
|
|
4
|
+
* :sparkles: feat: Swiper 组件增加指示器的默认背景色配置 (#552) @xiaoyatong
|
|
5
|
+
* :sparkles: feat: docs 不展示demo问题修复 @oasis-cloud
|
|
6
|
+
* :bug: fix: input taro显示右侧按钮时focus失效问题修复;textare limitshow属性名字更正 (#557) @vickyYe
|
|
7
|
+
* :bug: fix: iconfont 在 dev 模式下加载多次 (#555) @oasis-cloud
|
|
8
|
+
* :bug: fix: Address 组件适配Taro (#554) @xiaoyatong
|
|
9
|
+
* :bug: fix: Searchbar 组件修复图标样式。 (#553) @xiaoyatong
|
|
10
|
+
* :bug: fix: react-router-dom 安装到 devDependencies 中 @oasis-cloud
|
|
11
|
+
* :bug: fix: Range 组件手动设置为0时,页面无法渲染的问题。 (#551) @xiaoyatong
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
# v1.4.0
|
|
2
15
|
`2022-12-21`
|
|
3
16
|
|
package/dist/esm/Audio.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as Audio } from './audio.taro-
|
|
2
|
-
export { A as default } from './audio.taro-
|
|
1
|
+
import { A as Audio } from './audio.taro-20890c93.js';
|
|
2
|
+
export { A as default } from './audio.taro-20890c93.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tarojs/taro';
|
|
5
5
|
import './icon.taro-1d0d4fb7.js';
|
|
6
6
|
import './bem-893ad28d.js';
|
|
7
7
|
import '@bem-react/classname';
|
|
8
|
-
import './range.taro-
|
|
8
|
+
import './range.taro-4cbe2469.js';
|
|
9
9
|
import './useTouch-a2ea68c6.js';
|
|
10
10
|
import './useClientRect-bf69d7b3.js';
|
|
11
11
|
import './toast.taro-86862dff.js';
|
package/dist/esm/ImagePreview.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as ImagePreview } from './imagepreview.taro-
|
|
2
|
-
export { I as default } from './imagepreview.taro-
|
|
1
|
+
import { I as ImagePreview } from './imagepreview.taro-68e776f5.js';
|
|
2
|
+
export { I as default } from './imagepreview.taro-68e776f5.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './popup.taro-33d0bbc8.js';
|
|
5
5
|
import 'react-dom';
|
|
@@ -10,7 +10,7 @@ import './bem-893ad28d.js';
|
|
|
10
10
|
import '@bem-react/classname';
|
|
11
11
|
import './icon.taro-1d0d4fb7.js';
|
|
12
12
|
import './typings-1c5f2628.js';
|
|
13
|
-
import './swiper.taro-
|
|
13
|
+
import './swiper.taro-852f6615.js';
|
|
14
14
|
import '@tarojs/taro';
|
|
15
15
|
import './UserContext-b4181162.js';
|
|
16
16
|
import './swiperitem-86a3578a.js';
|
package/dist/esm/Input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as Input } from './input.taro-
|
|
2
|
-
export { I as default } from './input.taro-
|
|
1
|
+
import { I as Input } from './input.taro-65db24c3.js';
|
|
2
|
+
export { I as default } from './input.taro-65db24c3.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './icon.taro-1d0d4fb7.js';
|
|
5
5
|
import './bem-893ad28d.js';
|
package/dist/esm/Range.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as Range } from './range.taro-
|
|
2
|
-
export { R as default } from './range.taro-
|
|
1
|
+
import { R as Range } from './range.taro-4cbe2469.js';
|
|
2
|
+
export { R as default } from './range.taro-4cbe2469.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './useTouch-a2ea68c6.js';
|
|
5
5
|
import './useClientRect-bf69d7b3.js';
|
package/dist/esm/Swiper.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Swiper } from './swiper.taro-
|
|
2
|
-
export { S as default } from './swiper.taro-
|
|
1
|
+
import { S as Swiper } from './swiper.taro-852f6615.js';
|
|
2
|
+
export { S as default } from './swiper.taro-852f6615.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@tarojs/taro';
|
|
@@ -7,7 +7,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
import React__default, { useState, useRef } from 'react';
|
|
8
8
|
import Taro from '@tarojs/taro';
|
|
9
9
|
import { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
10
|
-
import { R as Range } from './range.taro-
|
|
10
|
+
import { R as Range } from './range.taro-4cbe2469.js';
|
|
11
11
|
import { B as Button } from './button.taro-4ce133b9.js';
|
|
12
12
|
import { c as cn } from './bem-893ad28d.js';
|
|
13
13
|
import { u as useConfig } from './configprovider.taro-8bdb3a28.js';
|
|
@@ -4,7 +4,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
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; }
|
|
5
5
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
6
6
|
import { P as Popup } from './popup.taro-33d0bbc8.js';
|
|
7
|
-
import { S as Swiper } from './swiper.taro-
|
|
7
|
+
import { S as Swiper } from './swiper.taro-852f6615.js';
|
|
8
8
|
import { S as SwiperItem } from './swiperitem-86a3578a.js';
|
|
9
9
|
var defaultProps = {
|
|
10
10
|
images: [],
|
|
@@ -165,7 +165,7 @@ var Input = forwardRef(function (props, ref) {
|
|
|
165
165
|
});
|
|
166
166
|
var inputClass = useCallback(function () {
|
|
167
167
|
var prefixCls = 'nut-input';
|
|
168
|
-
return [prefixCls, "".concat(center ? 'center' : ''), "".concat(disabled ? "".concat(prefixCls, "-disabled") : ''), "".concat(required ? "".concat(prefixCls, "-required") : ''), "".concat(error ? "".concat(prefixCls, "-error") : ''), "".concat(border ? "".concat(prefixCls, "-border") : '')].filter(Boolean).join(' ');
|
|
168
|
+
return [prefixCls, "".concat(center ? 'center' : ''), "".concat(disabled ? "".concat(prefixCls, "-disabled") : ''), "".concat(required ? "".concat(prefixCls, "-required") : ''), "".concat(error ? "".concat(prefixCls, "-error") : ''), "".concat(border ? "".concat(prefixCls, "-border") : ''), "".concat(slotButton || rightIcon ? "".concat(prefixCls, "-right-mark") : '')].filter(Boolean).join(' ');
|
|
169
169
|
}, [disabled, required, error, border]);
|
|
170
170
|
var updateValue = function updateValue(value) {
|
|
171
171
|
var _inputRef$current;
|
|
@@ -349,7 +349,7 @@ var Input = forwardRef(function (props, ref) {
|
|
|
349
349
|
onClick: function onClick(e) {
|
|
350
350
|
handleClear(e);
|
|
351
351
|
}
|
|
352
|
-
}) : null, rightIcon && rightIcon.length > 0 ? React__default.createElement("div", {
|
|
352
|
+
}) : null), rightIcon && rightIcon.length > 0 ? React__default.createElement("div", {
|
|
353
353
|
className: "nut-input-right-icon",
|
|
354
354
|
onClick: function onClick(e) {
|
|
355
355
|
handleClickRightIcon(e);
|
|
@@ -361,7 +361,7 @@ var Input = forwardRef(function (props, ref) {
|
|
|
361
361
|
size: rightIconSize
|
|
362
362
|
})) : null, slotButton ? React__default.createElement("div", {
|
|
363
363
|
className: "nut-input-button"
|
|
364
|
-
}, slotButton) : null
|
|
364
|
+
}, slotButton) : null, showWordLimit && maxlength ? React__default.createElement("div", {
|
|
365
365
|
className: "nut-input-word-limit"
|
|
366
366
|
}, React__default.createElement("span", {
|
|
367
367
|
className: "nut-input-word-num"
|
|
@@ -27,12 +27,12 @@ export { S as SubSideNavBar } from './subsidenavbar.taro-4c80ad38.js';
|
|
|
27
27
|
export { S as SideNavBarItem } from './sidenavbaritem.taro-fee11d26.js';
|
|
28
28
|
export { M as Menu } from './menu.taro-4abed328.js';
|
|
29
29
|
export { M as MenuItem } from './menuitem.taro-2f8e69a4.js';
|
|
30
|
-
export { R as Range } from './range.taro-
|
|
30
|
+
export { R as Range } from './range.taro-4cbe2469.js';
|
|
31
31
|
export { C as Calendar } from './calendar.taro-93b14945.js';
|
|
32
32
|
export { C as Checkbox, a as CheckboxGroup } from './checkbox.taro-0bda9796.js';
|
|
33
33
|
export { D as DatePicker } from './datepicker.taro-00a72ca3.js';
|
|
34
34
|
export { I as InputNumber } from './inputnumber.taro-0a01f6e1.js';
|
|
35
|
-
export { I as Input } from './input.taro-
|
|
35
|
+
export { I as Input } from './input.taro-65db24c3.js';
|
|
36
36
|
export { R as Radio, a as RadioGroup } from './index.taro-a36f96fb.js';
|
|
37
37
|
export { R as Rate } from './rate.taro-10197384.js';
|
|
38
38
|
export { C as CalendarItem } from './calendaritem.taro-85a8c4fc.js';
|
|
@@ -59,7 +59,7 @@ export { C as CircleProgress } from './circleprogress.taro-3c89a157.js';
|
|
|
59
59
|
export { N as NoticeBar } from './noticebar.taro-43c18dc9.js';
|
|
60
60
|
export { S as Steps } from './steps.taro-acf205a0.js';
|
|
61
61
|
export { S as Step } from './step.taro-1c94e067.js';
|
|
62
|
-
export { S as Swiper } from './swiper.taro-
|
|
62
|
+
export { S as Swiper } from './swiper.taro-852f6615.js';
|
|
63
63
|
export { S as SwiperItem } from './swiperitem-86a3578a.js';
|
|
64
64
|
export { A as Avatar } from './avatar.taro-85ced995.js';
|
|
65
65
|
export { A as AvatarGroup } from './avatargroup-f7f600ff.js';
|
|
@@ -77,8 +77,8 @@ export { V as VirtualList } from './virtuallist.taro-4add61c3.js';
|
|
|
77
77
|
export { T as Table } from './table.taro-adda6622.js';
|
|
78
78
|
export { V as Video } from './video-8a3518c5.js';
|
|
79
79
|
export { P as Progress } from './progress.taro-623bc807.js';
|
|
80
|
-
export { A as Audio } from './audio.taro-
|
|
81
|
-
export { I as ImagePreview } from './imagepreview.taro-
|
|
80
|
+
export { A as Audio } from './audio.taro-20890c93.js';
|
|
81
|
+
export { I as ImagePreview } from './imagepreview.taro-68e776f5.js';
|
|
82
82
|
export { T as TrendArrow } from './trendarrow.taro-5a7153e4.js';
|
|
83
83
|
export { W as WaterMark } from './watermark.taro-d1f38563.js';
|
|
84
84
|
export { A as Animate } from './animate.taro-b0e83dd5.js';
|
|
@@ -38,7 +38,6 @@ var Range = function Range(props) {
|
|
|
38
38
|
button = _defaultProps$props.button,
|
|
39
39
|
vertical = _defaultProps$props.vertical,
|
|
40
40
|
marks = _defaultProps$props.marks,
|
|
41
|
-
change = _defaultProps$props.change,
|
|
42
41
|
dragStart = _defaultProps$props.dragStart,
|
|
43
42
|
dragEnd = _defaultProps$props.dragEnd,
|
|
44
43
|
onChange = _defaultProps$props.onChange,
|
|
@@ -85,10 +84,9 @@ var Range = function Range(props) {
|
|
|
85
84
|
SetShow(true);
|
|
86
85
|
};
|
|
87
86
|
useEffect(function () {
|
|
88
|
-
if (modelValue) {
|
|
87
|
+
if (typeof modelValue === 'number') {
|
|
89
88
|
if (!range && (modelValue < min || modelValue > max)) {
|
|
90
89
|
SetInitValue(0);
|
|
91
|
-
// Toast.text(`${modelValue} ${locale.range.rangeText}`)
|
|
92
90
|
toastShow("".concat(modelValue, " ").concat(locale.range.rangeText));
|
|
93
91
|
return;
|
|
94
92
|
}
|
|
@@ -239,7 +237,6 @@ var Range = function Range(props) {
|
|
|
239
237
|
SetInitValue(value);
|
|
240
238
|
}
|
|
241
239
|
if ((marks || end) && !isSameValue(value, startValue)) {
|
|
242
|
-
change && change(value);
|
|
243
240
|
onChange && onChange(value);
|
|
244
241
|
}
|
|
245
242
|
};
|
|
@@ -20,6 +20,7 @@ var defaultProps = {
|
|
|
20
20
|
autoPlay: 0,
|
|
21
21
|
direction: 'horizontal',
|
|
22
22
|
paginationColor: '#fff',
|
|
23
|
+
paginationBgColor: '#ddd',
|
|
23
24
|
paginationVisible: false,
|
|
24
25
|
loop: true,
|
|
25
26
|
touchable: true,
|
|
@@ -487,7 +488,7 @@ var Swiper = React__default.forwardRef(function (props, ref) {
|
|
|
487
488
|
});
|
|
488
489
|
return React__default.createElement(DataContext.Provider, {
|
|
489
490
|
value: parent
|
|
490
|
-
}, React__default.createElement("
|
|
491
|
+
}, React__default.createElement("div", _objectSpread(_objectSpread({
|
|
491
492
|
className: "".concat(classes, " ").concat(className),
|
|
492
493
|
ref: container
|
|
493
494
|
}, rest), {}, {
|
|
@@ -509,12 +510,15 @@ var Swiper = React__default.forwardRef(function (props, ref) {
|
|
|
509
510
|
})), propSwiper.paginationVisible && !('pageContent' in propSwiper) ? React__default.createElement("div", {
|
|
510
511
|
className: classNames((_classNames2 = {}, _defineProperty(_classNames2, "".concat(b('pagination')), true), _defineProperty(_classNames2, "".concat(b('pagination-vertical')), isVertical), _classNames2))
|
|
511
512
|
}, React__default.Children.map(childs, function (item, index) {
|
|
512
|
-
var _classNames3;
|
|
513
513
|
return React__default.createElement("i", {
|
|
514
514
|
style: (active + childCount) % childCount === index ? {
|
|
515
515
|
backgroundColor: propSwiper.paginationColor
|
|
516
|
-
} :
|
|
517
|
-
|
|
516
|
+
} : {
|
|
517
|
+
backgroundColor: propSwiper.paginationBgColor
|
|
518
|
+
},
|
|
519
|
+
className: classNames({
|
|
520
|
+
active: (active + childCount) % childCount === index
|
|
521
|
+
}),
|
|
518
522
|
key: index
|
|
519
523
|
});
|
|
520
524
|
})) : React__default.createElement("div", null, pageContent)));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type AnimateType = 'shake' | 'ripple' | 'breath' | 'float' | 'slide-right' | 'slide-left' | 'slide-top' | 'slide-bottom' | 'jump' | 'twinkle' | 'flicker';
|
|
2
|
+
export type AnimateAction = 'initial' | 'click';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
export interface AnimatingNumbersProps {
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
type AnimatingNumbersStates = {};
|
|
5
5
|
export declare class AnimatingNumbers extends Component<AnimatingNumbersProps, AnimatingNumbersStates> {
|
|
6
6
|
static defaultProps: AnimatingNumbersProps;
|
|
7
7
|
static displayName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
export interface AnimatingNumbersProps {
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
type AnimatingNumbersStates = {};
|
|
5
5
|
export declare class AnimatingNumbers extends Component<AnimatingNumbersProps, AnimatingNumbersStates> {
|
|
6
6
|
static defaultProps: AnimatingNumbersProps;
|
|
7
7
|
static displayName: string;
|
|
@@ -16,5 +16,5 @@ export interface AvatarProps extends BasicComponent {
|
|
|
16
16
|
onActiveAvatar: (e: MouseEvent) => void;
|
|
17
17
|
onError: (e: any) => void;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type AvatarShape = 'round' | 'square';
|
|
20
20
|
export declare const Avatar: FunctionComponent<Partial<AvatarProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -15,5 +15,5 @@ export interface AvatarProps extends BasicComponent {
|
|
|
15
15
|
onActiveAvatar: (e: MouseEvent) => void;
|
|
16
16
|
onError: (e: any) => void;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
18
|
+
export type AvatarShape = 'round' | 'square';
|
|
19
19
|
export declare const Avatar: FunctionComponent<Partial<AvatarProps> & React.HTMLAttributes<HTMLDivElement>>;
|
|
@@ -11,5 +11,5 @@ export interface BadgeProps extends BasicComponent {
|
|
|
11
11
|
icons: any;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type BadgeType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
15
15
|
export declare const Badge: FunctionComponent<Partial<BadgeProps>>;
|
|
@@ -11,5 +11,5 @@ export interface BadgeProps extends BasicComponent {
|
|
|
11
11
|
icons: any;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type BadgeType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
15
15
|
export declare const Badge: FunctionComponent<Partial<BadgeProps>>;
|
|
@@ -15,7 +15,7 @@ export interface ButtonProps extends BasicComponent {
|
|
|
15
15
|
children: any;
|
|
16
16
|
onClick: (e: MouseEvent) => void;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
18
|
+
export type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
19
|
+
export type ButtonSize = 'large' | 'normal' | 'small';
|
|
20
|
+
export type ButtonShape = 'square' | 'round';
|
|
21
21
|
export declare const Button: FunctionComponent<Partial<ButtonProps>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { ButtonProps as MiniProgramButtonProps } from '@tarojs/components';
|
|
3
3
|
import { BasicComponent } from '@/utils/typings';
|
|
4
|
-
|
|
4
|
+
type OmitMiniProgramButtonProps = Omit<MiniProgramButtonProps, 'size' | 'type' | 'onClick'>;
|
|
5
5
|
export interface ButtonProps extends BasicComponent, OmitMiniProgramButtonProps {
|
|
6
6
|
className: string;
|
|
7
7
|
color: string;
|
|
@@ -17,8 +17,8 @@ export interface ButtonProps extends BasicComponent, OmitMiniProgramButtonProps
|
|
|
17
17
|
children: any;
|
|
18
18
|
onClick: (e: MouseEvent) => void;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
20
|
+
export type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
21
|
+
export type ButtonSize = 'large' | 'normal' | 'small';
|
|
22
|
+
export type ButtonShape = 'square' | 'round';
|
|
23
23
|
export declare const Button: FunctionComponent<Partial<ButtonProps>>;
|
|
24
24
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type CalendarRef = {
|
|
3
3
|
scrollToDate: (date: string) => void;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type InputDate = string | string[];
|
|
6
6
|
interface Day {
|
|
7
7
|
day: string | number;
|
|
8
8
|
type: string;
|
|
@@ -19,7 +19,7 @@ export interface CascaderConfig {
|
|
|
19
19
|
text?: string;
|
|
20
20
|
children?: string;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type CascaderValue = CascaderOption['value'][];
|
|
23
23
|
export interface convertConfig {
|
|
24
24
|
topId?: string | number | null;
|
|
25
25
|
idKey?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode, ForwardRefExoticComponent, PropsWithChildren } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type DialogConfigType = {
|
|
3
3
|
prefixCls?: string;
|
|
4
4
|
simple?: boolean;
|
|
5
5
|
};
|
|
@@ -28,7 +28,7 @@ export interface BasicDialogProps {
|
|
|
28
28
|
onClickSelf?: () => void;
|
|
29
29
|
onConfirm?: (e?: MouseEvent) => Promise<() => void> | void;
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type DialogReturnProps = {
|
|
32
32
|
update: (newConfig: ConfirmProps) => void;
|
|
33
33
|
close: () => void;
|
|
34
34
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ContentPositionType = 'left' | 'center' | 'right';
|
|
3
|
+
export type DirectionType = 'horizontal' | 'vertical';
|
|
4
4
|
export interface DividerProps {
|
|
5
5
|
contentPosition: ContentPositionType;
|
|
6
6
|
dashed: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ContentPositionType = 'left' | 'center' | 'right';
|
|
3
|
+
export type DirectionType = 'horizontal' | 'vertical';
|
|
4
4
|
export interface DividerProps {
|
|
5
5
|
contentPosition: ContentPositionType;
|
|
6
6
|
dashed: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent, MouseEvent } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type Direction = 'right' | 'left';
|
|
4
|
+
type Position = {
|
|
5
5
|
top?: string;
|
|
6
6
|
bottom?: string;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type Direction = 'right' | 'left';
|
|
4
|
+
type Position = {
|
|
5
5
|
top?: string;
|
|
6
6
|
bottom?: string;
|
|
7
7
|
};
|
|
@@ -49,8 +49,8 @@ export interface BaseFormField {
|
|
|
49
49
|
*/
|
|
50
50
|
disabled: boolean;
|
|
51
51
|
}
|
|
52
|
-
export
|
|
53
|
-
export
|
|
52
|
+
export type StoreValue = string | number;
|
|
53
|
+
export type NamePath = string | number;
|
|
54
54
|
export interface Callbacks<Values = any> {
|
|
55
55
|
onValuesChange?: (values: Values) => void;
|
|
56
56
|
onFinish?: (values: Values) => void;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { BaseFormField } from './types';
|
|
3
3
|
import { FormItemContext } from './formitemcontext';
|
|
4
4
|
import { BasicComponent } from '@/utils/typings';
|
|
5
|
-
|
|
5
|
+
type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
|
|
6
6
|
export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
7
7
|
labelWidth: string | number;
|
|
8
8
|
errorMessageAlign: TextAlign;
|
|
@@ -10,7 +10,7 @@ export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
|
10
10
|
showErrorMessage: boolean;
|
|
11
11
|
}
|
|
12
12
|
declare const defaultProps: FormItemProps;
|
|
13
|
-
export
|
|
13
|
+
export type FieldProps = typeof defaultProps & Partial<BaseFormField>;
|
|
14
14
|
export declare class FormItem extends React.Component<FieldProps> {
|
|
15
15
|
static defaultProps: FormItemProps;
|
|
16
16
|
static contextType: any;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { BaseFormField } from './types';
|
|
3
3
|
import { FormItemContext } from './formitemcontext';
|
|
4
4
|
import { BasicComponent } from '@/utils/typings';
|
|
5
|
-
|
|
5
|
+
type TextAlign = 'start' | 'end' | 'left' | 'right' | 'center' | 'justify' | 'match-parent';
|
|
6
6
|
export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
7
7
|
labelWidth: string | number;
|
|
8
8
|
errorMessageAlign: TextAlign;
|
|
@@ -10,7 +10,7 @@ export interface FormItemProps extends BasicComponent, BaseFormField {
|
|
|
10
10
|
showErrorMessage: boolean;
|
|
11
11
|
}
|
|
12
12
|
declare const defaultProps: FormItemProps;
|
|
13
|
-
export
|
|
13
|
+
export type FieldProps = typeof defaultProps & Partial<BaseFormField>;
|
|
14
14
|
export declare class FormItem extends React.Component<FieldProps> {
|
|
15
15
|
static defaultProps: FormItemProps;
|
|
16
16
|
static contextType: any;
|
|
@@ -49,8 +49,8 @@ export interface BaseFormField {
|
|
|
49
49
|
*/
|
|
50
50
|
disabled: boolean;
|
|
51
51
|
}
|
|
52
|
-
export
|
|
53
|
-
export
|
|
52
|
+
export type StoreValue = string | number;
|
|
53
|
+
export type NamePath = string | number;
|
|
54
54
|
export interface Callbacks<Values = any> {
|
|
55
55
|
onValuesChange?: (values: Values) => void;
|
|
56
56
|
onFinish?: (values: Values) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties, FunctionComponent } from 'react';
|
|
2
2
|
import { GridItemProps } from '../griditem/griditem';
|
|
3
|
-
export
|
|
3
|
+
export type GridDirection = 'horizontal' | 'vertical';
|
|
4
4
|
export interface GridProps {
|
|
5
5
|
columnNum: string | number;
|
|
6
6
|
border: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { CSSProperties, FunctionComponent } from 'react';
|
|
2
2
|
import { GridItemProps } from '../griditem/griditem.taro';
|
|
3
|
-
export
|
|
3
|
+
export type GridDirection = 'horizontal' | 'vertical';
|
|
4
4
|
export interface GridProps {
|
|
5
5
|
columnNum: string | number;
|
|
6
6
|
border: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
|
|
3
|
+
type GridDirection = 'horizontal' | 'vertical';
|
|
4
4
|
export interface GridItemProps extends BasicComponent {
|
|
5
5
|
text: string | ReactNode;
|
|
6
6
|
icon: string | ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
2
2
|
import { BasicComponent } from '@/utils/typings';
|
|
3
|
-
|
|
3
|
+
type GridDirection = 'horizontal' | 'vertical';
|
|
4
4
|
export interface GridItemProps extends BasicComponent {
|
|
5
5
|
text: string | ReactNode;
|
|
6
6
|
icon: string | ReactNode;
|
|
@@ -18,6 +18,6 @@ export interface ImageProps {
|
|
|
18
18
|
onLoad?: () => void;
|
|
19
19
|
onError?: () => void;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | string;
|
|
22
|
+
export type ImagePosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | string;
|
|
23
23
|
export declare const Image: FunctionComponent<Partial<ImageProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onLoad' | 'onError'>>;
|
|
@@ -18,6 +18,6 @@ export interface ImageProps {
|
|
|
18
18
|
onLoad?: () => void;
|
|
19
19
|
onError?: () => void;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down' | string;
|
|
22
|
+
export type ImagePosition = 'center' | 'top' | 'right' | 'bottom' | 'left' | string;
|
|
23
23
|
export declare const Image: FunctionComponent<Partial<ImageProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick' | 'onLoad' | 'onError'>>;
|