@nutui/nutui-react-taro 1.3.7 → 1.3.9-beta.0
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 +26 -0
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/Avatar.js +2 -2
- package/dist/esm/BackTop.js +3 -2
- package/dist/esm/Card/style/index.js +2 -2
- package/dist/esm/Cascader.js +4 -4
- package/dist/esm/Cell.js +2 -2
- package/dist/esm/CellGroup.js +2 -2
- package/dist/esm/Collapse.js +2 -2
- package/dist/esm/DatePicker.js +2 -2
- package/dist/esm/Elevator.js +3 -2
- package/dist/esm/GridItem.js +2 -2
- package/dist/esm/Input.js +2 -2
- package/dist/esm/InputNumber.js +2 -2
- package/dist/esm/NoticeBar.js +2 -2
- package/dist/esm/Range.js +2 -2
- package/dist/esm/SideNavBar.js +2 -2
- package/dist/esm/SideNavBarItem.js +2 -2
- package/dist/esm/Signature.js +2 -2
- package/dist/esm/Skeleton.js +3 -3
- package/dist/esm/Step.js +2 -2
- package/dist/esm/Steps.js +2 -2
- package/dist/esm/SubSideNavBar.js +2 -2
- package/dist/esm/Switch.js +2 -2
- package/dist/esm/TabPane.js +2 -2
- package/dist/esm/Tabbar.js +2 -2
- package/dist/esm/Tabs.js +2 -2
- package/dist/esm/TimeSelect.js +2 -2
- package/dist/esm/Uploader.js +2 -2
- package/dist/esm/Video.js +2 -2
- package/dist/esm/VirtualList.js +2 -2
- package/dist/esm/{audio.taro-57d4f0da.js → audio.taro-c2f9948a.js} +1 -1
- package/dist/esm/{avatar.taro-ec620cdd.js → avatar.taro-deabe88a.js} +4 -4
- package/dist/esm/backtop.taro-99107c30.js +71 -0
- package/dist/esm/calendaritem.taro-fe5dd4bd.js +18 -9
- package/dist/esm/{cascader.taro-77100fb4.js → cascader.taro-8c9891b4.js} +2 -2
- package/dist/esm/{cell.taro-a4c3bb7b.js → cell.taro-6daf51a0.js} +5 -2
- package/dist/esm/{cellgroup.taro-8c87bf08.js → cellgroup.taro-e094471c.js} +5 -5
- package/dist/esm/{collapse.taro-72e58ba2.js → collapse.taro-13cde270.js} +6 -3
- package/dist/esm/{datepicker.taro-49a4cf0c.js → datepicker.taro-9f8afe51.js} +3 -2
- package/dist/esm/{elevator.taro-443253ec.js → elevator.taro-ead49158.js} +14 -12
- package/dist/esm/{griditem.taro-866cd288.js → griditem.taro-ca62dbb5.js} +9 -3
- package/dist/esm/{input.taro-2453d7c4.js → input.taro-39b99dbc.js} +39 -23
- package/dist/esm/{inputnumber.taro-0cf7c1b7.js → inputnumber.taro-0a01f6e1.js} +15 -1
- package/dist/esm/{noticebar.taro-332691f9.js → noticebar.taro-77b5a2c9.js} +6 -0
- package/dist/esm/nutui-react.es.js +30 -30
- package/dist/esm/{range.taro-fc7c0b6a.js → range.taro-4232e6a7.js} +7 -1
- package/dist/esm/{sidenavbar.taro-87f056cd.js → sidenavbar.taro-4297f552.js} +3 -3
- package/dist/esm/{sidenavbaritem.taro-77e077f4.js → sidenavbaritem.taro-fee11d26.js} +3 -3
- package/dist/esm/{signature.taro-59b3b3ab.js → signature.taro-0b3abea5.js} +14 -8
- package/dist/esm/{skeleton.taro-b9ff84b9.js → skeleton.taro-acca102c.js} +1 -1
- package/dist/esm/{step.taro-f1057500.js → step.taro-1c94e067.js} +3 -5
- package/dist/esm/{steps.taro-943f4fbb.js → steps.taro-acf205a0.js} +2 -1
- package/dist/esm/{subsidenavbar.taro-2c1fcf16.js → subsidenavbar.taro-4c80ad38.js} +3 -3
- package/dist/esm/{switch.taro-be5eb823.js → switch.taro-bae2dca0.js} +2 -2
- package/dist/esm/{tabbar.taro-da72fa2c.js → tabbar.taro-86cece39.js} +5 -2
- package/dist/esm/{tabpane.taro-95aa185b.js → tabpane.taro-91cd6cf4.js} +3 -2
- package/dist/esm/{tabs.taro-86186dff.js → tabs.taro-e71875fa.js} +8 -4
- package/dist/esm/{timeselect.taro-73796bfc.js → timeselect.taro-8c4439a8.js} +20 -5
- package/dist/esm/types/src/packages/avatar/avatar.d.ts +1 -0
- package/dist/esm/types/src/packages/avatar/avatar.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/cell/cell.d.ts +1 -0
- package/dist/esm/types/src/packages/cell/cell.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/cellgroup/cellgroup.d.ts +1 -1
- package/dist/esm/types/src/packages/cellgroup/cellgroup.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/collapse/collapse.d.ts +3 -1
- package/dist/esm/types/src/packages/collapse/collapse.taro.d.ts +3 -1
- package/dist/esm/types/src/packages/datepicker/datepicker.d.ts +2 -2
- package/dist/esm/types/src/packages/datepicker/datepicker.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/input/input.d.ts +10 -2
- package/dist/esm/types/src/packages/input/input.taro.d.ts +10 -2
- package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +6 -0
- package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +6 -0
- package/dist/esm/types/src/packages/noticebar/noticebar.d.ts +3 -1
- package/dist/esm/types/src/packages/noticebar/noticebar.taro.d.ts +3 -1
- package/dist/esm/types/src/packages/range/range.d.ts +4 -1
- package/dist/esm/types/src/packages/range/range.taro.d.ts +4 -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/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/signature/signature.d.ts +2 -0
- package/dist/esm/types/src/packages/signature/signature.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/steps/steps.d.ts +1 -0
- package/dist/esm/types/src/packages/steps/steps.taro.d.ts +1 -0
- 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/switch/switch.d.ts +1 -1
- package/dist/esm/types/src/packages/switch/switch.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/tabbar/tabbar.d.ts +1 -0
- package/dist/esm/types/src/packages/tabbar/tabbar.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/tabpane/tabpane.d.ts +6 -2
- package/dist/esm/types/src/packages/tabpane/tabpane.taro.d.ts +6 -1
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -0
- package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/timeselect/timeselect.d.ts +5 -1
- package/dist/esm/types/src/packages/timeselect/timeselect.taro.d.ts +5 -1
- package/dist/esm/types/src/packages/video/video.d.ts +3 -0
- package/dist/esm/types/src/packages/virtuallist/type.d.ts +3 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +2 -2
- package/dist/esm/{uploader.taro-6184abe7.js → uploader.taro-63a36a30.js} +1 -1
- package/dist/esm/{video-c1090c92.js → video-8a3518c5.js} +7 -1
- package/dist/esm/{virtuallist.taro-6858f690.js → virtuallist.taro-e3035825.js} +11 -6
- 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 +196 -156
- package/dist/nutui.react.umd.js +195 -155
- package/dist/packages/actionsheet/actionsheet.scss +17 -0
- package/dist/packages/address/address.scss +42 -0
- package/dist/packages/badge/badge.scss +8 -0
- package/dist/packages/calendar/calendar.scss +27 -0
- package/dist/packages/card/card.scss +8 -0
- package/dist/packages/cascader/cascader.scss +16 -0
- package/dist/packages/cell/cell.scss +7 -0
- package/dist/packages/checkbox/checkbox.scss +11 -0
- package/dist/packages/circleprogress/circleprogress.scss +6 -0
- package/dist/packages/collapseitem/collapseitem.scss +21 -0
- package/dist/packages/divider/divider.scss +2 -1
- package/dist/packages/elevator/elevator.scss +17 -1
- package/dist/packages/empty/empty.scss +6 -0
- package/dist/packages/infiniteloading/infiniteloading.scss +18 -0
- package/dist/packages/inputnumber/inputnumber.scss +22 -0
- package/dist/packages/navbar/navbar.scss +9 -0
- package/dist/packages/noticebar/noticebar.scss +4 -1
- package/dist/packages/numberkeyboard/numberkeyboard.scss +10 -0
- package/dist/packages/pagination/pagination.scss +21 -1
- package/dist/packages/picker/picker.scss +39 -0
- package/dist/packages/popup/popup.scss +11 -0
- package/dist/packages/radio/radio.scss +18 -0
- package/dist/packages/shortpassword/shortpassword.scss +62 -0
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +9 -0
- package/dist/packages/subsidenavbar/subsidenavbar.scss +12 -0
- package/dist/packages/tabbar/tabbar.scss +5 -0
- package/dist/packages/tabbaritem/tabbaritem.scss +7 -0
- package/dist/packages/table/table.scss +38 -0
- package/dist/packages/tabpane/tabpane.scss +5 -0
- package/dist/packages/tabs/tabs.scss +31 -2
- package/dist/packages/timedetail/timedetail.scss +16 -0
- package/dist/packages/timepannel/timepannel.scss +10 -0
- package/dist/packages/timeselect/timeselect.scss +18 -0
- package/dist/packages/uploader/uploader.scss +9 -1
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/variables.scss +110 -101
- package/dist/types/index.d.ts +59 -15
- package/package.json +10 -1
- package/dist/esm/backtop.taro-aa8b2bc5.js +0 -136
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# v1.3.8
|
|
2
|
+
`2022-10-26`
|
|
3
|
+
|
|
4
|
+
* :sparkles: feat: tabs 组件支持 css 粘性布局 (#346) @leiyu0932
|
|
5
|
+
* :sparkles: feat: tabpane 组件增加 className 属性 (#343) @oasis-cloud
|
|
6
|
+
* :sparkles: feat: sidenavbar 事件名修改为 onClick (#359) @oasis-cloud
|
|
7
|
+
* :sparkles: feat: collapse 组件增加 className 和 style 支持 (#360) @oasis-cloud
|
|
8
|
+
* :sparkles: feat: tabbar 组件增加 onSwitch 事件 (#361) @oasis-cloud
|
|
9
|
+
* :sparkles: feat: timeselect 组件增加 onSelect onPannelChange onTimeChange 事件 (#362) @oasis-cloud
|
|
10
|
+
* :sparkles: feat: virtuallist 组件增加 onScroll 事件 (#363) @oasis-cloud
|
|
11
|
+
* :sparkles: feat: input、noticebar、range组件 event 事件修改, divider组件demo优化 (#365) @vickyYE
|
|
12
|
+
* :sparkles: feat: avartar、steps、video、inputnumber 组件事件优化 (#371) @junjun666
|
|
13
|
+
* :bug: fix: 修改 signature 组件taro demo文案 (#344) @irisSong
|
|
14
|
+
* :bug: fix: switch 组件-事件命名修改 (#352) @libin0824
|
|
15
|
+
* :bug: fix: radio 组件中的 render 数组改成 fragment (#353) @oasis-cloud
|
|
16
|
+
* :bug: fix: taro/components 组件的使用,taro:h5 启动报错 (#357) @oasis-cloud
|
|
17
|
+
* :bug: fix: uploader 使用 isDeletable 无法隐藏 删除按钮 (#366) @junjun666
|
|
18
|
+
* :bug: fix: cell 和 signature 修改 Event (#367) @irisSong
|
|
19
|
+
* :bug: fix: 修改 collapse 组件的事件名称 (#369) @zhenyulei
|
|
20
|
+
* 📖 docs: button 组件文档中事件 click 改为 onClick (#356) @oasis-cloud
|
|
21
|
+
* 📖 docs: icon 组件文档中事件 click 改为 onClick (#358) @oasis-cloud
|
|
22
|
+
* 📖 docs: input 数据变化控制例子补充 (#364) @vickyYE
|
|
23
|
+
* 📖 docs: layout 文档修改 (#368) @Ymm0008
|
|
24
|
+
* 📖 docs: tabs 文档优化 (#370) @oasis-cloud
|
|
25
|
+
|
|
26
|
+
|
|
1
27
|
# v1.3.7
|
|
2
28
|
`2022-10-19`
|
|
3
29
|
* :sparkles: feat: 优化 menu 组件的弹出动画效果 (#341) @oasis-cloud
|
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-c2f9948a.js';
|
|
2
|
+
export { A as default } from './audio.taro-c2f9948a.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-4232e6a7.js';
|
|
9
9
|
import './useTouch-a2ea68c6.js';
|
|
10
10
|
import './useClientRect-bf69d7b3.js';
|
|
11
11
|
import './toast.taro-86862dff.js';
|
package/dist/esm/Avatar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Avatar } from './avatar.taro-
|
|
2
|
-
export { A as default } from './avatar.taro-
|
|
1
|
+
import { A as Avatar } from './avatar.taro-deabe88a.js';
|
|
2
|
+
export { A as default } from './avatar.taro-deabe88a.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './AvatarContext-7153ad2b.js';
|
package/dist/esm/BackTop.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { B as BackTop } from './backtop.taro-
|
|
2
|
-
export { B as default } from './backtop.taro-
|
|
1
|
+
import { B as BackTop } from './backtop.taro-99107c30.js';
|
|
2
|
+
export { B as default } from './backtop.taro-99107c30.js';
|
|
3
3
|
import 'react';
|
|
4
|
+
import '@tarojs/taro';
|
|
4
5
|
import './icon.taro-1d0d4fb7.js';
|
|
5
6
|
import './bem-893ad28d.js';
|
|
6
7
|
import '@bem-react/classname';
|
package/dist/esm/Cascader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Cascader } from './cascader.taro-
|
|
2
|
-
export { C as default } from './cascader.taro-
|
|
1
|
+
import { C as Cascader } from './cascader.taro-8c9891b4.js';
|
|
2
|
+
export { C as default } from './cascader.taro-8c9891b4.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './popup.taro-33d0bbc8.js';
|
|
@@ -10,5 +10,5 @@ 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 './tabs.taro-
|
|
14
|
-
import './tabpane.taro-
|
|
13
|
+
import './tabs.taro-e71875fa.js';
|
|
14
|
+
import './tabpane.taro-91cd6cf4.js';
|
package/dist/esm/Cell.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Cell } from './cell.taro-
|
|
2
|
-
export { C as default } from './cell.taro-
|
|
1
|
+
import { C as Cell } from './cell.taro-6daf51a0.js';
|
|
2
|
+
export { C as default } from './cell.taro-6daf51a0.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react-router-dom';
|
|
5
5
|
import '@tarojs/taro';
|
package/dist/esm/CellGroup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CellGroup } from './cellgroup.taro-
|
|
2
|
-
export { C as default } from './cellgroup.taro-
|
|
1
|
+
import { C as CellGroup } from './cellgroup.taro-e094471c.js';
|
|
2
|
+
export { C as default } from './cellgroup.taro-e094471c.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './bem-893ad28d.js';
|
|
5
5
|
import '@bem-react/classname';
|
package/dist/esm/Collapse.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Collapse } from './collapse.taro-
|
|
2
|
-
export { C as default } from './collapse.taro-
|
|
1
|
+
import { C as Collapse } from './collapse.taro-13cde270.js';
|
|
2
|
+
export { C as default } from './collapse.taro-13cde270.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './bem-893ad28d.js';
|
|
5
5
|
import '@bem-react/classname';
|
package/dist/esm/DatePicker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DatePicker } from './datepicker.taro-
|
|
2
|
-
export { D as default } from './datepicker.taro-
|
|
1
|
+
import { D as DatePicker } from './datepicker.taro-9f8afe51.js';
|
|
2
|
+
export { D as default } from './datepicker.taro-9f8afe51.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './picker.taro-f003b725.js';
|
|
5
5
|
import './popup.taro-33d0bbc8.js';
|
package/dist/esm/Elevator.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { E as Elevator } from './elevator.taro-
|
|
2
|
-
export { E as default } from './elevator.taro-
|
|
1
|
+
import { E as Elevator } from './elevator.taro-ead49158.js';
|
|
2
|
+
export { E as default } from './elevator.taro-ead49158.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tarojs/taro';
|
|
5
|
+
import '@tarojs/components';
|
|
5
6
|
import './bem-893ad28d.js';
|
|
6
7
|
import '@bem-react/classname';
|
package/dist/esm/GridItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as GridItem } from './griditem.taro-
|
|
2
|
-
export { G as default } from './griditem.taro-
|
|
1
|
+
import { G as GridItem } from './griditem.taro-ca62dbb5.js';
|
|
2
|
+
export { G as default } from './griditem.taro-ca62dbb5.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './configprovider.taro-6c7b3056.js';
|
|
5
5
|
import './zh-CN-14165629.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-39b99dbc.js';
|
|
2
|
+
export { I as default } from './input.taro-39b99dbc.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './icon.taro-1d0d4fb7.js';
|
|
5
5
|
import './bem-893ad28d.js';
|
package/dist/esm/InputNumber.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as InputNumber } from './inputnumber.taro-
|
|
2
|
-
export { I as default } from './inputnumber.taro-
|
|
1
|
+
import { I as InputNumber } from './inputnumber.taro-0a01f6e1.js';
|
|
2
|
+
export { I as default } from './inputnumber.taro-0a01f6e1.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './icon.taro-1d0d4fb7.js';
|
package/dist/esm/NoticeBar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NoticeBar } from './noticebar.taro-
|
|
2
|
-
export { N as default } from './noticebar.taro-
|
|
1
|
+
import { N as NoticeBar } from './noticebar.taro-77b5a2c9.js';
|
|
2
|
+
export { N as default } from './noticebar.taro-77b5a2c9.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './icon.taro-1d0d4fb7.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-4232e6a7.js';
|
|
2
|
+
export { R as default } from './range.taro-4232e6a7.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './useTouch-a2ea68c6.js';
|
|
5
5
|
import './useClientRect-bf69d7b3.js';
|
package/dist/esm/SideNavBar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SideNavBar } from './sidenavbar.taro-
|
|
2
|
-
export { S as default } from './sidenavbar.taro-
|
|
1
|
+
import { S as SideNavBar } from './sidenavbar.taro-4297f552.js';
|
|
2
|
+
export { S as default } from './sidenavbar.taro-4297f552.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './configprovider.taro-6c7b3056.js';
|
|
5
5
|
import './zh-CN-14165629.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as SideNavBarItem } from './sidenavbaritem.taro-
|
|
2
|
-
export { S as default } from './sidenavbaritem.taro-
|
|
1
|
+
import { S as SideNavBarItem } from './sidenavbaritem.taro-fee11d26.js';
|
|
2
|
+
export { S as default } from './sidenavbaritem.taro-fee11d26.js';
|
|
3
3
|
import 'react';
|
package/dist/esm/Signature.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Signature } from './signature.taro-
|
|
2
|
-
export { S as default } from './signature.taro-
|
|
1
|
+
import { S as Signature } from './signature.taro-0b3abea5.js';
|
|
2
|
+
export { S as default } from './signature.taro-0b3abea5.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tarojs/taro';
|
|
5
5
|
import './button.taro-a9ebb937.js';
|
package/dist/esm/Skeleton.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as Skeleton } from './skeleton.taro-
|
|
2
|
-
export { S as default } from './skeleton.taro-
|
|
1
|
+
import { S as Skeleton } from './skeleton.taro-acca102c.js';
|
|
2
|
+
export { S as default } from './skeleton.taro-acca102c.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import './avatar.taro-
|
|
5
|
+
import './avatar.taro-deabe88a.js';
|
|
6
6
|
import './AvatarContext-7153ad2b.js';
|
|
7
7
|
import './bem-893ad28d.js';
|
|
8
8
|
import '@bem-react/classname';
|
package/dist/esm/Step.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Step } from './step.taro-
|
|
2
|
-
export { S as default } from './step.taro-
|
|
1
|
+
import { S as Step } from './step.taro-1c94e067.js';
|
|
2
|
+
export { S as default } from './step.taro-1c94e067.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './UserContext-68f62e66.js';
|
package/dist/esm/Steps.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Steps } from './steps.taro-
|
|
2
|
-
export { S as default } from './steps.taro-
|
|
1
|
+
import { S as Steps } from './steps.taro-acf205a0.js';
|
|
2
|
+
export { S as default } from './steps.taro-acf205a0.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './UserContext-68f62e66.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SubSideNavBar } from './subsidenavbar.taro-
|
|
2
|
-
export { S as default } from './subsidenavbar.taro-
|
|
1
|
+
import { S as SubSideNavBar } from './subsidenavbar.taro-4c80ad38.js';
|
|
2
|
+
export { S as default } from './subsidenavbar.taro-4c80ad38.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './offsetContext-0e3d04b3.js';
|
package/dist/esm/Switch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Switch } from './switch.taro-
|
|
2
|
-
export { S as default } from './switch.taro-
|
|
1
|
+
import { S as Switch } from './switch.taro-bae2dca0.js';
|
|
2
|
+
export { S as default } from './switch.taro-bae2dca0.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './bem-893ad28d.js';
|
|
5
5
|
import '@bem-react/classname';
|
package/dist/esm/TabPane.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TabPane } from './tabpane.taro-
|
|
2
|
-
export { T as default } from './tabpane.taro-
|
|
1
|
+
import { T as TabPane } from './tabpane.taro-91cd6cf4.js';
|
|
2
|
+
export { T as default } from './tabpane.taro-91cd6cf4.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './bem-893ad28d.js';
|
package/dist/esm/Tabbar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Tabbar } from './tabbar.taro-
|
|
2
|
-
export { T as default } from './tabbar.taro-
|
|
1
|
+
import { T as Tabbar } from './tabbar.taro-86cece39.js';
|
|
2
|
+
export { T as default } from './tabbar.taro-86cece39.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './bem-893ad28d.js';
|
|
5
5
|
import '@bem-react/classname';
|
package/dist/esm/Tabs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Tabs } from './tabs.taro-
|
|
2
|
-
export { T as default } from './tabs.taro-
|
|
1
|
+
import { T as Tabs } from './tabs.taro-e71875fa.js';
|
|
2
|
+
export { T as default } from './tabs.taro-e71875fa.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './bem-893ad28d.js';
|
package/dist/esm/TimeSelect.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TimeSelect } from './timeselect.taro-
|
|
2
|
-
export { T as default } from './timeselect.taro-
|
|
1
|
+
import { T as TimeSelect } from './timeselect.taro-8c4439a8.js';
|
|
2
|
+
export { T as default } from './timeselect.taro-8c4439a8.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './popup.taro-33d0bbc8.js';
|
|
5
5
|
import 'react-dom';
|
package/dist/esm/Uploader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as Uploader } from './uploader.taro-
|
|
2
|
-
export { U as default } from './uploader.taro-
|
|
1
|
+
import { U as Uploader } from './uploader.taro-63a36a30.js';
|
|
2
|
+
export { U as default } from './uploader.taro-63a36a30.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './icon.taro-1d0d4fb7.js';
|
package/dist/esm/Video.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as Video } from './video-
|
|
2
|
-
export { V as default } from './video-
|
|
1
|
+
import { V as Video } from './video-8a3518c5.js';
|
|
2
|
+
export { V as default } from './video-8a3518c5.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './bem-893ad28d.js';
|
package/dist/esm/VirtualList.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VirtualList } from './virtuallist.taro-
|
|
2
|
-
export { V as default } from './virtuallist.taro-
|
|
1
|
+
import { V as VirtualList } from './virtuallist.taro-e3035825.js';
|
|
2
|
+
export { V as default } from './virtuallist.taro-e3035825.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './configprovider.taro-6c7b3056.js';
|
|
5
5
|
import './zh-CN-14165629.js';
|
|
@@ -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-4232e6a7.js';
|
|
11
11
|
import { B as Button } from './button.taro-a9ebb937.js';
|
|
12
12
|
import { c as cn } from './bem-893ad28d.js';
|
|
13
13
|
import { u as useConfig } from './configprovider.taro-6c7b3056.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var _excluded = ["children", "prefixCls", "size", "shape", "bgColor", "color", "url", "alt", "icon", "className", "style", "activeAvatar", "onError", "iconClassPrefix", "iconFontClassName"];
|
|
4
|
+
var _excluded = ["children", "prefixCls", "size", "shape", "bgColor", "color", "url", "alt", "icon", "className", "style", "activeAvatar", "onActiveAvatar", "onError", "iconClassPrefix", "iconFontClassName"];
|
|
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
7
|
import React__default, { useState, useRef, useContext, useEffect } from 'react';
|
|
@@ -34,6 +34,7 @@ var Avatar = function Avatar(props) {
|
|
|
34
34
|
className = _defaultProps$props.className,
|
|
35
35
|
style = _defaultProps$props.style,
|
|
36
36
|
activeAvatar = _defaultProps$props.activeAvatar,
|
|
37
|
+
onActiveAvatar = _defaultProps$props.onActiveAvatar,
|
|
37
38
|
onError = _defaultProps$props.onError,
|
|
38
39
|
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
39
40
|
iconFontClassName = _defaultProps$props.iconFontClassName,
|
|
@@ -97,9 +98,8 @@ var Avatar = function Avatar(props) {
|
|
|
97
98
|
}
|
|
98
99
|
};
|
|
99
100
|
var clickAvatar = function clickAvatar(e) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
101
|
+
activeAvatar && activeAvatar(e);
|
|
102
|
+
onActiveAvatar && onActiveAvatar(e);
|
|
103
103
|
};
|
|
104
104
|
console.log('!parent?.propAvatarGroup?.maxCount', !(parent !== null && parent !== void 0 && (_parent$propAvatarGro9 = parent.propAvatarGroup) !== null && _parent$propAvatarGro9 !== void 0 && _parent$propAvatarGro9.maxCount), showMax);
|
|
105
105
|
return React__default.createElement(React__default.Fragment, null, (showMax || !(parent !== null && parent !== void 0 && (_parent$propAvatarGro10 = parent.propAvatarGroup) !== null && _parent$propAvatarGro10 !== void 0 && _parent$propAvatarGro10.maxCount) || avatarIndex <= (parent === null || parent === void 0 ? void 0 : (_parent$propAvatarGro11 = parent.propAvatarGroup) === null || _parent$propAvatarGro11 === void 0 ? void 0 : _parent$propAvatarGro11.maxCount)) && React__default.createElement("div", _objectSpread(_objectSpread({
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
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; }
|
|
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
|
+
import React__default, { useState } from 'react';
|
|
6
|
+
import Taro, { usePageScroll } from '@tarojs/taro';
|
|
7
|
+
import { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
8
|
+
import { C as ComponentDefaults } from './typings-1c5f2628.js';
|
|
9
|
+
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
10
|
+
bottom: 20,
|
|
11
|
+
right: 10,
|
|
12
|
+
elId: 'body',
|
|
13
|
+
distance: 200,
|
|
14
|
+
zIndex: 10,
|
|
15
|
+
isAnimation: true,
|
|
16
|
+
duration: 1000
|
|
17
|
+
});
|
|
18
|
+
var BackTop = function BackTop(props) {
|
|
19
|
+
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
20
|
+
children = _defaultProps$props.children,
|
|
21
|
+
bottom = _defaultProps$props.bottom,
|
|
22
|
+
right = _defaultProps$props.right,
|
|
23
|
+
elId = _defaultProps$props.elId,
|
|
24
|
+
distance = _defaultProps$props.distance,
|
|
25
|
+
zIndex = _defaultProps$props.zIndex,
|
|
26
|
+
isAnimation = _defaultProps$props.isAnimation,
|
|
27
|
+
className = _defaultProps$props.className,
|
|
28
|
+
duration = _defaultProps$props.duration,
|
|
29
|
+
style = _defaultProps$props.style,
|
|
30
|
+
onClick = _defaultProps$props.onClick,
|
|
31
|
+
iconClassPrefix = _defaultProps$props.iconClassPrefix,
|
|
32
|
+
iconFontClassName = _defaultProps$props.iconFontClassName;
|
|
33
|
+
var _useState = useState(false),
|
|
34
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
35
|
+
backTop = _useState2[0],
|
|
36
|
+
SetBackTop = _useState2[1];
|
|
37
|
+
// 监听用户滑动页面事件
|
|
38
|
+
usePageScroll(function (res) {
|
|
39
|
+
var scrollTop = res.scrollTop;
|
|
40
|
+
scrollTop >= distance ? SetBackTop(true) : SetBackTop(false);
|
|
41
|
+
});
|
|
42
|
+
// 返回顶部点击事件
|
|
43
|
+
var goTop = function goTop(e) {
|
|
44
|
+
onClick && onClick(e);
|
|
45
|
+
Taro.pageScrollTo({
|
|
46
|
+
scrollTop: 0,
|
|
47
|
+
duration: isAnimation && duration > 0 ? duration : 0
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var backTopClass = {
|
|
51
|
+
right: "".concat(right, "px"),
|
|
52
|
+
bottom: "".concat(bottom, "px"),
|
|
53
|
+
zIndex: zIndex
|
|
54
|
+
};
|
|
55
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
56
|
+
className: "nut-backtop ".concat(backTop ? 'show' : '', " ").concat(className || ''),
|
|
57
|
+
style: _objectSpread(_objectSpread({}, backTopClass), style),
|
|
58
|
+
onClick: function onClick(e) {
|
|
59
|
+
goTop(e);
|
|
60
|
+
}
|
|
61
|
+
}, children || React__default.createElement(Icon, {
|
|
62
|
+
classPrefix: iconClassPrefix,
|
|
63
|
+
fontClassName: iconFontClassName,
|
|
64
|
+
size: "19px",
|
|
65
|
+
className: "nut-backtop-main",
|
|
66
|
+
name: "top"
|
|
67
|
+
})));
|
|
68
|
+
};
|
|
69
|
+
BackTop.defaultProps = defaultProps;
|
|
70
|
+
BackTop.displayName = 'NutBackTop';
|
|
71
|
+
export { BackTop as B };
|
|
@@ -14,13 +14,15 @@ var Utils = {
|
|
|
14
14
|
/**
|
|
15
15
|
* 是否为闫年
|
|
16
16
|
* @return {Boolse} true|false
|
|
17
|
-
*/
|
|
17
|
+
*/
|
|
18
|
+
isLeapYear: function isLeapYear(y) {
|
|
18
19
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
19
20
|
},
|
|
20
21
|
/**
|
|
21
22
|
* 返回星期数
|
|
22
23
|
* @return {String}
|
|
23
|
-
*/
|
|
24
|
+
*/
|
|
25
|
+
getWhatDay: function getWhatDay(year, month, day) {
|
|
24
26
|
var date = new Date("".concat(year, "/").concat(month, "/").concat(day));
|
|
25
27
|
var index = date.getDay();
|
|
26
28
|
var dayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
|
|
@@ -29,7 +31,8 @@ var Utils = {
|
|
|
29
31
|
/**
|
|
30
32
|
* 返回星期数
|
|
31
33
|
* @return {Number}
|
|
32
|
-
*/
|
|
34
|
+
*/
|
|
35
|
+
getMonthPreDay: function getMonthPreDay(year, month) {
|
|
33
36
|
var date = new Date("".concat(year, "/").concat(month, "/01"));
|
|
34
37
|
var day = date.getDay();
|
|
35
38
|
if (day == 0) {
|
|
@@ -40,7 +43,8 @@ var Utils = {
|
|
|
40
43
|
/**
|
|
41
44
|
* 返回月份天数
|
|
42
45
|
* @return {Number}
|
|
43
|
-
*/
|
|
46
|
+
*/
|
|
47
|
+
getMonthDays: function getMonthDays(year, month) {
|
|
44
48
|
if (/^0/.test(month)) {
|
|
45
49
|
month = month.split('')[1];
|
|
46
50
|
}
|
|
@@ -49,14 +53,16 @@ var Utils = {
|
|
|
49
53
|
/**
|
|
50
54
|
* 补齐数字位数
|
|
51
55
|
* @return {string}
|
|
52
|
-
*/
|
|
56
|
+
*/
|
|
57
|
+
getNumTwoBit: function getNumTwoBit(n) {
|
|
53
58
|
n = Number(n);
|
|
54
59
|
return (n > 9 ? '' : '0') + n;
|
|
55
60
|
},
|
|
56
61
|
/**
|
|
57
62
|
* 日期对象转成字符串
|
|
58
63
|
* @return {string}
|
|
59
|
-
*/
|
|
64
|
+
*/
|
|
65
|
+
date2Str: function date2Str(date, split) {
|
|
60
66
|
split = split || '-';
|
|
61
67
|
var y = date.getFullYear();
|
|
62
68
|
var m = this.getNumTwoBit(date.getMonth() + 1);
|
|
@@ -67,7 +73,8 @@ var Utils = {
|
|
|
67
73
|
* 返回日期格式字符串
|
|
68
74
|
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
69
75
|
* @return {string} '2014-12-31'
|
|
70
|
-
*/
|
|
76
|
+
*/
|
|
77
|
+
getDay: function getDay(i) {
|
|
71
78
|
i = i || 0;
|
|
72
79
|
var date = new Date();
|
|
73
80
|
var diff = i * (1000 * 60 * 60 * 24);
|
|
@@ -77,7 +84,8 @@ var Utils = {
|
|
|
77
84
|
/**
|
|
78
85
|
* 时间比较
|
|
79
86
|
* @return {Boolean}
|
|
80
|
-
*/
|
|
87
|
+
*/
|
|
88
|
+
compareDate: function compareDate(date1, date2) {
|
|
81
89
|
var startTime = new Date(date1.replace('-', '/').replace('-', '/'));
|
|
82
90
|
var endTime = new Date(date2.replace('-', '/').replace('-', '/'));
|
|
83
91
|
if (startTime >= endTime) {
|
|
@@ -88,7 +96,8 @@ var Utils = {
|
|
|
88
96
|
/**
|
|
89
97
|
* 时间是否相等
|
|
90
98
|
* @return {Boolean}
|
|
91
|
-
*/
|
|
99
|
+
*/
|
|
100
|
+
isEqual: function isEqual(date1, date2) {
|
|
92
101
|
var startTime = new Date(date1).getTime();
|
|
93
102
|
var endTime = new Date(date2).getTime();
|
|
94
103
|
if (startTime == endTime) {
|
|
@@ -13,8 +13,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
13
13
|
import React__default, { useEffect, useState } from 'react';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
15
|
import { P as Popup } from './popup.taro-33d0bbc8.js';
|
|
16
|
-
import { T as Tabs } from './tabs.taro-
|
|
17
|
-
import { T as TabPane } from './tabpane.taro-
|
|
16
|
+
import { T as Tabs } from './tabs.taro-e71875fa.js';
|
|
17
|
+
import { T as TabPane } from './tabpane.taro-91cd6cf4.js';
|
|
18
18
|
import { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
19
19
|
import { c as cn } from './bem-893ad28d.js';
|
|
20
20
|
var defaultProps$1 = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
var _excluded = ["children", "click", "title", "subTitle", "desc", "descTextAlign", "isLink", "icon", "roundRadius", "url", "to", "replace", "center", "size", "className", "iconSlot", "linkSlot", "iconClassPrefix", "iconFontClassName"];
|
|
3
|
+
var _excluded = ["children", "click", "onClick", "title", "subTitle", "desc", "descTextAlign", "isLink", "icon", "roundRadius", "url", "to", "replace", "center", "size", "className", "iconSlot", "linkSlot", "iconClassPrefix", "iconFontClassName"];
|
|
4
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
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';
|
|
@@ -25,12 +25,14 @@ var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
|
25
25
|
className: '',
|
|
26
26
|
iconSlot: null,
|
|
27
27
|
linkSlot: null,
|
|
28
|
-
click: function click(event) {}
|
|
28
|
+
click: function click(event) {},
|
|
29
|
+
onClick: function onClick(event) {}
|
|
29
30
|
});
|
|
30
31
|
var Cell = function Cell(props) {
|
|
31
32
|
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
32
33
|
children = _defaultProps$props.children,
|
|
33
34
|
click = _defaultProps$props.click,
|
|
35
|
+
onClick = _defaultProps$props.onClick,
|
|
34
36
|
title = _defaultProps$props.title,
|
|
35
37
|
subTitle = _defaultProps$props.subTitle,
|
|
36
38
|
desc = _defaultProps$props.desc,
|
|
@@ -53,6 +55,7 @@ var Cell = function Cell(props) {
|
|
|
53
55
|
var history = useHistory();
|
|
54
56
|
var handleClick = function handleClick(event) {
|
|
55
57
|
click(event);
|
|
58
|
+
onClick(event);
|
|
56
59
|
if (to && history) {
|
|
57
60
|
history[replace ? 'replace' : 'push'](to);
|
|
58
61
|
} else if (url) {
|
|
@@ -6,24 +6,24 @@ import { c as cn } from './bem-893ad28d.js';
|
|
|
6
6
|
var defaultProps = {
|
|
7
7
|
title: '',
|
|
8
8
|
desc: '',
|
|
9
|
+
className: '',
|
|
9
10
|
titleSlot: null,
|
|
10
|
-
descSlot: null
|
|
11
|
-
classPrefix: 'nutui-cell-group'
|
|
11
|
+
descSlot: null
|
|
12
12
|
};
|
|
13
13
|
var CellGroup = function CellGroup(props) {
|
|
14
14
|
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
15
15
|
children = _defaultProps$props.children,
|
|
16
|
-
|
|
16
|
+
className = _defaultProps$props.className,
|
|
17
17
|
title = _defaultProps$props.title,
|
|
18
18
|
desc = _defaultProps$props.desc,
|
|
19
19
|
titleSlot = _defaultProps$props.titleSlot,
|
|
20
20
|
descSlot = _defaultProps$props.descSlot;
|
|
21
21
|
var b = cn('cell-group');
|
|
22
22
|
return React__default.createElement("div", {
|
|
23
|
-
className: b(null, [
|
|
23
|
+
className: b(null, [className])
|
|
24
24
|
}, titleSlot || React__default.createElement(React__default.Fragment, null, title ? React__default.createElement("div", {
|
|
25
25
|
className: b('title')
|
|
26
|
-
}, title) : null), descSlot || React__default.createElement(React__default.Fragment, null,
|
|
26
|
+
}, title) : null), descSlot || React__default.createElement(React__default.Fragment, null, desc ? React__default.createElement("div", {
|
|
27
27
|
className: b('desc')
|
|
28
28
|
}, desc) : null), React__default.createElement("div", {
|
|
29
29
|
className: b('wrap')
|