@nutui/nutui-react-taro 1.3.9-beta.0 → 1.3.10-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 +36 -0
- package/dist/esm/Address.js +4 -2
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/Button.js +2 -2
- package/dist/esm/Card.js +4 -4
- package/dist/esm/Checkbox.js +2 -3
- package/dist/esm/CheckboxGroup.js +4 -2
- package/dist/esm/Dialog.js +3 -3
- package/dist/esm/Elevator.js +2 -2
- package/dist/esm/Input.js +2 -2
- package/dist/esm/Menu.js +2 -2
- package/dist/esm/MenuItem.js +2 -2
- package/dist/esm/NoticeBar.js +2 -2
- package/dist/esm/Price.js +2 -2
- package/dist/esm/Radio.js +1 -3
- package/dist/esm/RadioGroup.js +4 -2
- package/dist/esm/Signature.js +3 -3
- package/dist/esm/TabbarItem.js +2 -2
- package/dist/esm/Tag.js +2 -2
- package/dist/esm/Uploader.js +3 -3
- package/dist/esm/{address.taro-f16cef31.js → address.taro-8d642b4a.js} +11 -1
- package/dist/esm/{audio.taro-c2f9948a.js → audio.taro-b42a082b.js} +1 -1
- package/dist/esm/{button.taro-a9ebb937.js → button.taro-7e924b72.js} +3 -1
- package/dist/esm/{card.taro-1bc35ebe.js → card.taro-59f65b66.js} +2 -2
- package/dist/esm/checkbox.taro-d8656076.js +249 -0
- package/dist/esm/{dialog.taro-492e2b9a.js → dialog.taro-0c35b35f.js} +1 -1
- package/dist/esm/{elevator.taro-ead49158.js → elevator.taro-d7d65470.js} +1 -1
- package/dist/esm/index.taro-c092d216.js +227 -0
- package/dist/esm/{input.taro-39b99dbc.js → input.taro-cc46bbc3.js} +11 -4
- package/dist/esm/{menu.taro-f8ca86db.js → menu.taro-4abed328.js} +3 -2
- package/dist/esm/{menuitem.taro-7bf564c9.js → menuitem.taro-06a135a5.js} +1 -2
- package/dist/esm/{noticebar.taro-77b5a2c9.js → noticebar.taro-4915fed3.js} +12 -16
- package/dist/esm/nutui-react.es.js +17 -19
- package/dist/esm/{price.taro-97393d8f.js → price.taro-8801462e.js} +28 -22
- package/dist/esm/{signature.taro-0b3abea5.js → signature.taro-57f8de06.js} +1 -1
- package/dist/esm/{tabbaritem.taro-94cd62c2.js → tabbaritem.taro-fb90f659.js} +6 -5
- package/dist/esm/{tag.taro-95d7f5c2.js → tag.taro-84d40117.js} +6 -4
- package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +6 -1
- package/dist/esm/types/src/packages/checkbox/checkbox.taro.d.ts +6 -1
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +2 -0
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/checkboxgroup/type.d.ts +6 -0
- package/dist/esm/types/src/packages/input/input.d.ts +1 -0
- package/dist/esm/types/src/packages/input/input.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +91 -0
- package/dist/esm/types/src/packages/price/price.d.ts +2 -0
- package/dist/esm/types/src/packages/price/price.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +2 -0
- package/dist/esm/types/src/packages/radiogroup/radiogroup.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/radiogroup/type.d.ts +7 -0
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +1 -1
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.taro.d.ts +1 -1
- package/dist/esm/{uploader.taro-63a36a30.js → uploader.taro-a03bb003.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 +170 -78
- package/dist/nutui.react.umd.js +169 -77
- package/dist/packages/badge/badge.scss +10 -10
- package/dist/packages/button/button.scss +3 -3
- package/dist/packages/cell/cell.scss +1 -4
- package/dist/packages/cellgroup/cellgroup.scss +8 -0
- package/dist/packages/countdown/countdown.scss +1 -1
- package/dist/packages/infiniteloading/infiniteloading.scss +1 -1
- package/dist/packages/inputnumber/inputnumber.scss +3 -3
- package/dist/packages/noticebar/noticebar.scss +3 -0
- package/dist/packages/price/price.scss +27 -11
- package/dist/packages/radio/radio.scss +8 -7
- package/dist/packages/shortpassword/shortpassword.scss +4 -4
- package/dist/packages/skeleton/skeleton.scss +1 -1
- package/dist/packages/swiper/swiper.scss +4 -4
- package/dist/packages/switch/switch.scss +8 -8
- package/dist/packages/timepannel/timepannel.scss +3 -3
- package/dist/packages/timeselect/timeselect.scss +4 -4
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/variables.scss +573 -248
- package/dist/types/index.d.ts +19 -3
- package/package.json +1 -1
- package/dist/esm/checkbox.taro-104557c1.js +0 -121
- package/dist/esm/checkboxgroup.taro-3d380042.js +0 -110
- package/dist/esm/radio.taro-95d43860.js +0 -112
- package/dist/esm/radiogroup.taro-b5dad516.js +0 -95
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
# v1.3.10
|
|
2
|
+
`2022-11-09`
|
|
3
|
+
|
|
4
|
+
* :bug: fix: tabbarItem组件自定义名称统一为className字段 (#434) @cuicuiworld
|
|
5
|
+
* :bug: fix: checkbox 内部类型可选 (#430) @oasis-cloud
|
|
6
|
+
* :bug: fix: noticebar 关闭事件优化,小程序样式优化 (#424) @vickyYe
|
|
7
|
+
* :bug: fix: 取消mixin样式文件引入 (#428) @libin0824
|
|
8
|
+
* :bug: fix(button): add space between icon and text (#418) @Kwan
|
|
9
|
+
* :bug: fix: cell 组件 icon marign 设置错误 (#423) @oasis-cloud
|
|
10
|
+
* :bug: fix: cell组件删除冗余样式 (#401) @irisSong
|
|
11
|
+
* :bug: fix: 变量提取、暗黑模式适配:cellgroup、demo主样式 (#404) @xiaoyatong
|
|
12
|
+
* :sparkles: feat: tag组件添加自定义className和style属性 (#435) @cuicuiworld
|
|
13
|
+
* :sparkles: feat: Address 增加Elevator Taro 适配 (#400) @yangxiaolu1993
|
|
14
|
+
* :sparkles: feat: CheckboxGroup支持options设置子元素 (#425) @cuicuiworld
|
|
15
|
+
* :sparkles: feat: price组件新增自定义大中小尺寸、自定义符号展示在价格前或后、支持没有小数 (#429) @irisSong
|
|
16
|
+
* :sparkles: feat: input组件支持name属性 (#427) @simpleStyle
|
|
17
|
+
* :sparkles: feat: 增加issue-helper入口 (#421) @Ymm0008
|
|
18
|
+
* :sparkles: feat: 单选按钮组支持options设置子元素 (#374) @cuicuiworld
|
|
19
|
+
* 📖 docs: tabs 文档中的粘性布局文案修改 (#403) @oasis-cloud
|
|
20
|
+
* 📖 docs: radio和checkbox文档优化 (#431) @oasis-cloud
|
|
21
|
+
* 📖 docs: 修复部分演示组件的文案显示问题 (#419) @Kwan
|
|
22
|
+
|
|
23
|
+
# v1.3.9
|
|
24
|
+
`2022-11-02`
|
|
25
|
+
|
|
26
|
+
* :bug: fix: cellgroup组件自定义名称统一为className字段 (#399) @irisSong
|
|
27
|
+
* :bug: fix: GridItem缺少onClick事件;DatePicker修改onChange名 (#394) @yangxiaolu1993
|
|
28
|
+
* :bug: fix: 支持css粘性布局,引起的左右布局bug修复 (#393) @leiyu0932
|
|
29
|
+
* :bug: fix: button 自定义 style 重复生效 (#391) @oasis-cloud
|
|
30
|
+
* :sparkles: chore: 生成多语言用到的 key (#390) @oasis-cloud
|
|
31
|
+
* :bug: fix: 修复cellgroup组件描述判断错误问题 (#389) @irisSong
|
|
32
|
+
* :bug: fix: sass 变量增加 !default (#387) @oasis-cloud
|
|
33
|
+
* :sparkles: docs: icon 大小展示按照从小到大顺序 (#386) @oasis-cloud
|
|
34
|
+
* :bug: fix: elevator组件taro版本适配完成 (#372) @irisSong
|
|
35
|
+
* :sparkles: feat: backtop 组件适配 taro (#376) @vickyYe
|
|
36
|
+
|
|
1
37
|
# v1.3.8
|
|
2
38
|
`2022-10-26`
|
|
3
39
|
|
package/dist/esm/Address.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Address } from './address.taro-
|
|
2
|
-
export { A as default } from './address.taro-
|
|
1
|
+
import { A as Address } from './address.taro-8d642b4a.js';
|
|
2
|
+
export { A as default } from './address.taro-8d642b4a.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './icon.taro-1d0d4fb7.js';
|
|
5
5
|
import './bem-893ad28d.js';
|
|
@@ -13,5 +13,7 @@ import './typings-1c5f2628.js';
|
|
|
13
13
|
import './icon-8dc4de10.js';
|
|
14
14
|
import './configprovider-3e87d67a.js';
|
|
15
15
|
import './zh-CN-14165629.js';
|
|
16
|
+
import './elevator.taro-d7d65470.js';
|
|
16
17
|
import '@tarojs/taro';
|
|
18
|
+
import '@tarojs/components';
|
|
17
19
|
import './configprovider.taro-6c7b3056.js';
|
package/dist/esm/Audio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Audio } from './audio.taro-
|
|
2
|
-
export { A as default } from './audio.taro-
|
|
1
|
+
import { A as Audio } from './audio.taro-b42a082b.js';
|
|
2
|
+
export { A as default } from './audio.taro-b42a082b.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tarojs/taro';
|
|
5
5
|
import './icon.taro-1d0d4fb7.js';
|
|
@@ -13,5 +13,5 @@ import 'classnames';
|
|
|
13
13
|
import './icon-8dc4de10.js';
|
|
14
14
|
import './configprovider.taro-6c7b3056.js';
|
|
15
15
|
import './zh-CN-14165629.js';
|
|
16
|
-
import './button.taro-
|
|
16
|
+
import './button.taro-7e924b72.js';
|
|
17
17
|
import './typings-1c5f2628.js';
|
package/dist/esm/Button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as Button } from './button.taro-
|
|
2
|
-
export { B as default } from './button.taro-
|
|
1
|
+
import { B as Button } from './button.taro-7e924b72.js';
|
|
2
|
+
export { B as default } from './button.taro-7e924b72.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './icon.taro-1d0d4fb7.js';
|
|
5
5
|
import './bem-893ad28d.js';
|
package/dist/esm/Card.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as Card } from './card.taro-
|
|
2
|
-
export { C as default } from './card.taro-
|
|
1
|
+
import { C as Card } from './card.taro-59f65b66.js';
|
|
2
|
+
export { C as default } from './card.taro-59f65b66.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './price.taro-
|
|
4
|
+
import './price.taro-8801462e.js';
|
|
5
5
|
import './bem-893ad28d.js';
|
|
6
6
|
import '@bem-react/classname';
|
|
7
|
-
import './tag.taro-
|
|
7
|
+
import './tag.taro-84d40117.js';
|
|
8
8
|
import './icon.taro-1d0d4fb7.js';
|
|
9
9
|
import './typings-1c5f2628.js';
|
package/dist/esm/Checkbox.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { C as Checkbox } from './checkbox.taro-
|
|
2
|
-
export { C as default } from './checkbox.taro-
|
|
1
|
+
import { C as Checkbox } from './checkbox.taro-d8656076.js';
|
|
2
|
+
export { C as default } from './checkbox.taro-d8656076.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './icon.taro-1d0d4fb7.js';
|
|
5
5
|
import './bem-893ad28d.js';
|
|
6
6
|
import '@bem-react/classname';
|
|
7
|
-
import './checkboxgroup.taro-3d380042.js';
|
|
8
7
|
import './typings-1c5f2628.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as CheckboxGroup } from './checkbox.taro-d8656076.js';
|
|
2
|
+
export { a as default } from './checkbox.taro-d8656076.js';
|
|
3
3
|
import 'react';
|
|
4
|
+
import './icon.taro-1d0d4fb7.js';
|
|
4
5
|
import './bem-893ad28d.js';
|
|
5
6
|
import '@bem-react/classname';
|
|
7
|
+
import './typings-1c5f2628.js';
|
package/dist/esm/Dialog.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as Dialog } from './dialog.taro-
|
|
2
|
-
export { D as default } from './dialog.taro-
|
|
1
|
+
import { D as Dialog } from './dialog.taro-0c35b35f.js';
|
|
2
|
+
export { D as default } from './dialog.taro-0c35b35f.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import './button.taro-
|
|
5
|
+
import './button.taro-7e924b72.js';
|
|
6
6
|
import './icon.taro-1d0d4fb7.js';
|
|
7
7
|
import './bem-893ad28d.js';
|
|
8
8
|
import '@bem-react/classname';
|
package/dist/esm/Elevator.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Elevator } from './elevator.taro-
|
|
2
|
-
export { E as default } from './elevator.taro-
|
|
1
|
+
import { E as Elevator } from './elevator.taro-d7d65470.js';
|
|
2
|
+
export { E as default } from './elevator.taro-d7d65470.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tarojs/taro';
|
|
5
5
|
import '@tarojs/components';
|
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-cc46bbc3.js';
|
|
2
|
+
export { I as default } from './input.taro-cc46bbc3.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './icon.taro-1d0d4fb7.js';
|
|
5
5
|
import './bem-893ad28d.js';
|
package/dist/esm/Menu.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Menu } from './menu.taro-
|
|
2
|
-
export { M as default } from './menu.taro-
|
|
1
|
+
import { M as Menu } from './menu.taro-4abed328.js';
|
|
2
|
+
export { M as default } from './menu.taro-4abed328.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './icon.taro-1d0d4fb7.js';
|
package/dist/esm/MenuItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MenuItem } from './menuitem.taro-
|
|
2
|
-
export { M as default } from './menuitem.taro-
|
|
1
|
+
import { M as MenuItem } from './menuitem.taro-06a135a5.js';
|
|
2
|
+
export { M as default } from './menuitem.taro-06a135a5.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import 'react-transition-group';
|
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-4915fed3.js';
|
|
2
|
+
export { N as default } from './noticebar.taro-4915fed3.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './icon.taro-1d0d4fb7.js';
|
package/dist/esm/Price.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Price } from './price.taro-
|
|
2
|
-
export { P as default } from './price.taro-
|
|
1
|
+
import { P as Price } from './price.taro-8801462e.js';
|
|
2
|
+
export { P as default } from './price.taro-8801462e.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './bem-893ad28d.js';
|
|
5
5
|
import '@bem-react/classname';
|
package/dist/esm/Radio.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export { R as default } from './radio.taro-95d43860.js';
|
|
1
|
+
export { R as default } from './index.taro-c092d216.js';
|
|
3
2
|
import 'react';
|
|
4
3
|
import './icon.taro-1d0d4fb7.js';
|
|
5
4
|
import './bem-893ad28d.js';
|
|
6
5
|
import '@bem-react/classname';
|
|
7
|
-
import './radiogroup.taro-b5dad516.js';
|
|
8
6
|
import './typings-1c5f2628.js';
|
package/dist/esm/RadioGroup.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as RadioGroup } from './index.taro-c092d216.js';
|
|
2
|
+
export { a as default } from './index.taro-c092d216.js';
|
|
3
3
|
import 'react';
|
|
4
|
+
import './icon.taro-1d0d4fb7.js';
|
|
4
5
|
import './bem-893ad28d.js';
|
|
5
6
|
import '@bem-react/classname';
|
|
7
|
+
import './typings-1c5f2628.js';
|
package/dist/esm/Signature.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as Signature } from './signature.taro-
|
|
2
|
-
export { S as default } from './signature.taro-
|
|
1
|
+
import { S as Signature } from './signature.taro-57f8de06.js';
|
|
2
|
+
export { S as default } from './signature.taro-57f8de06.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@tarojs/taro';
|
|
5
|
-
import './button.taro-
|
|
5
|
+
import './button.taro-7e924b72.js';
|
|
6
6
|
import './icon.taro-1d0d4fb7.js';
|
|
7
7
|
import './bem-893ad28d.js';
|
|
8
8
|
import '@bem-react/classname';
|
package/dist/esm/TabbarItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TabbarItem } from './tabbaritem.taro-
|
|
2
|
-
export { T as default } from './tabbaritem.taro-
|
|
1
|
+
import { T as TabbarItem } from './tabbaritem.taro-fb90f659.js';
|
|
2
|
+
export { T as default } from './tabbaritem.taro-fb90f659.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react-router-dom';
|
|
5
5
|
import './bem-893ad28d.js';
|
package/dist/esm/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Tag } from './tag.taro-
|
|
2
|
-
export { T as default } from './tag.taro-
|
|
1
|
+
import { T as Tag } from './tag.taro-84d40117.js';
|
|
2
|
+
export { T as default } from './tag.taro-84d40117.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './icon.taro-1d0d4fb7.js';
|
|
5
5
|
import './bem-893ad28d.js';
|
package/dist/esm/Uploader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { U as Uploader } from './uploader.taro-
|
|
2
|
-
export { U as default } from './uploader.taro-
|
|
1
|
+
import { U as Uploader } from './uploader.taro-a03bb003.js';
|
|
2
|
+
export { U as default } from './uploader.taro-a03bb003.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import './icon.taro-1d0d4fb7.js';
|
|
6
6
|
import './bem-893ad28d.js';
|
|
7
7
|
import '@bem-react/classname';
|
|
8
|
-
import './button.taro-
|
|
8
|
+
import './button.taro-7e924b72.js';
|
|
9
9
|
import './typings-1c5f2628.js';
|
|
10
10
|
import './progress.taro-623bc807.js';
|
|
11
11
|
import './icon-8dc4de10.js';
|
|
@@ -13,6 +13,7 @@ import { P as Popup } from './popup.taro-33d0bbc8.js';
|
|
|
13
13
|
import { c as cn } from './bem-893ad28d.js';
|
|
14
14
|
import { I as Icon } from './icon-8dc4de10.js';
|
|
15
15
|
import { u as useConfig } from './configprovider-3e87d67a.js';
|
|
16
|
+
import { E as Elevator } from './elevator.taro-d7d65470.js';
|
|
16
17
|
import Taro from '@tarojs/taro';
|
|
17
18
|
import { u as useConfig$1 } from './configprovider.taro-6c7b3056.js';
|
|
18
19
|
import { C as ComponentDefaults } from './typings-1c5f2628.js';
|
|
@@ -305,6 +306,9 @@ var CustomRender = function CustomRender(props) {
|
|
|
305
306
|
lineAnimation(tagIndex);
|
|
306
307
|
}
|
|
307
308
|
};
|
|
309
|
+
var handleElevatorItem = function handleElevatorItem(key, item) {
|
|
310
|
+
nextAreaList(item);
|
|
311
|
+
};
|
|
308
312
|
useEffect(function () {
|
|
309
313
|
var _defaultProps$1$props2 = _objectSpread(_objectSpread({}, defaultProps$1), props),
|
|
310
314
|
province = _defaultProps$1$props2.province;
|
|
@@ -372,7 +376,13 @@ var CustomRender = function CustomRender(props) {
|
|
|
372
376
|
color: "#FA2C19",
|
|
373
377
|
size: "13px"
|
|
374
378
|
}), item.name));
|
|
375
|
-
})))
|
|
379
|
+
}))), privateType === 'custom2' && React__default.createElement("div", {
|
|
380
|
+
className: b('elevator-group')
|
|
381
|
+
}, React__default.createElement(Elevator, {
|
|
382
|
+
height: height,
|
|
383
|
+
indexList: regionList[tabName[tabIndex]],
|
|
384
|
+
onClickItem: handleElevatorItem
|
|
385
|
+
})));
|
|
376
386
|
};
|
|
377
387
|
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
378
388
|
modelValue: false,
|
|
@@ -8,7 +8,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
10
|
import { R as Range } from './range.taro-4232e6a7.js';
|
|
11
|
-
import { B as Button } from './button.taro-
|
|
11
|
+
import { B as Button } from './button.taro-7e924b72.js';
|
|
12
12
|
import { c as cn } from './bem-893ad28d.js';
|
|
13
13
|
import { u as useConfig } from './configprovider.taro-6c7b3056.js';
|
|
14
14
|
import { C as ComponentDefaults } from './typings-1c5f2628.js';
|
|
@@ -95,7 +95,9 @@ var Button = function Button(props) {
|
|
|
95
95
|
classPrefix: iconClassPrefix,
|
|
96
96
|
fontClassName: iconFontClassName,
|
|
97
97
|
name: icon
|
|
98
|
-
}) : '',
|
|
98
|
+
}) : '', React__default.createElement("div", {
|
|
99
|
+
className: "text"
|
|
100
|
+
}, children)));
|
|
99
101
|
};
|
|
100
102
|
Button.defaultProps = defaultProps;
|
|
101
103
|
Button.displayName = 'NutButton';
|
|
@@ -4,8 +4,8 @@ var _excluded = ["className", "style", "imgUrl", "title", "price", "vipPrice", "
|
|
|
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';
|
|
7
|
-
import { P as Price } from './price.taro-
|
|
8
|
-
import { T as Tag } from './tag.taro-
|
|
7
|
+
import { P as Price } from './price.taro-8801462e.js';
|
|
8
|
+
import { T as Tag } from './tag.taro-84d40117.js';
|
|
9
9
|
import { c as cn } from './bem-893ad28d.js';
|
|
10
10
|
var defaultProps = {};
|
|
11
11
|
var Card = function Card(props) {
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
+
var _excluded = ["className", "disabled", "onChange", "checkedValue", "max", "options"],
|
|
6
|
+
_excluded2 = ["label", "value", "disabled", "onChange"],
|
|
7
|
+
_excluded3 = ["iconName", "iconSize", "label", "className", "textPosition", "iconActiveName", "checked", "disabled", "onChange", "indeterminate", "iconClassPrefix", "iconFontClassName", "iconIndeterminateName", "getParentVals", "max"];
|
|
8
|
+
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; }
|
|
9
|
+
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; }
|
|
10
|
+
import React__default, { useState, useImperativeHandle, useEffect, useCallback } from 'react';
|
|
11
|
+
import { I as Icon } from './icon.taro-1d0d4fb7.js';
|
|
12
|
+
import { c as cn } from './bem-893ad28d.js';
|
|
13
|
+
import { C as ComponentDefaults } from './typings-1c5f2628.js';
|
|
14
|
+
var defaultProps$1 = {
|
|
15
|
+
disabled: false,
|
|
16
|
+
checkedValue: [],
|
|
17
|
+
max: undefined,
|
|
18
|
+
onChange: function onChange(value) {},
|
|
19
|
+
options: []
|
|
20
|
+
};
|
|
21
|
+
var CheckboxGroup = React__default.forwardRef(function (props, ref) {
|
|
22
|
+
var _defaultProps$1$props = _objectSpread(_objectSpread({}, defaultProps$1), props),
|
|
23
|
+
children = _defaultProps$1$props.children;
|
|
24
|
+
var b = cn('checkboxgroup');
|
|
25
|
+
var className = props.className,
|
|
26
|
+
disabled = props.disabled,
|
|
27
|
+
onChange = props.onChange,
|
|
28
|
+
checkedValue = props.checkedValue,
|
|
29
|
+
max = props.max,
|
|
30
|
+
options = props.options,
|
|
31
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
32
|
+
var _useState = useState(disabled),
|
|
33
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
34
|
+
innerDisabled = _useState2[0],
|
|
35
|
+
setInnerDisabled = _useState2[1];
|
|
36
|
+
var _useState3 = useState(checkedValue),
|
|
37
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
38
|
+
innerValue = _useState4[0],
|
|
39
|
+
setInnerValue = _useState4[1];
|
|
40
|
+
useImperativeHandle(ref, function () {
|
|
41
|
+
return {
|
|
42
|
+
toggleAll: function toggleAll(state) {
|
|
43
|
+
if (state === false) {
|
|
44
|
+
setInnerValue([]);
|
|
45
|
+
} else {
|
|
46
|
+
var childrenLabel = [];
|
|
47
|
+
React__default.Children.map(children, function (child) {
|
|
48
|
+
var childProps = child.props;
|
|
49
|
+
childrenLabel.push(childProps.label || child.children);
|
|
50
|
+
});
|
|
51
|
+
setInnerValue(childrenLabel);
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
toggleReverse: function toggleReverse() {
|
|
55
|
+
var childrenLabel = [];
|
|
56
|
+
React__default.Children.map(children, function (child) {
|
|
57
|
+
var childProps = child.props;
|
|
58
|
+
childrenLabel.push(childProps.label || child.children);
|
|
59
|
+
});
|
|
60
|
+
var reverse = childrenLabel.filter(function (c) {
|
|
61
|
+
return (innerValue === null || innerValue === void 0 ? void 0 : innerValue.findIndex(function (v) {
|
|
62
|
+
return v === c;
|
|
63
|
+
})) === -1;
|
|
64
|
+
});
|
|
65
|
+
setInnerValue(reverse);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
useEffect(function () {
|
|
70
|
+
setInnerDisabled(disabled);
|
|
71
|
+
setInnerValue(checkedValue);
|
|
72
|
+
}, [disabled, checkedValue]);
|
|
73
|
+
function handleChildChange(state, label) {
|
|
74
|
+
if (max !== undefined && innerValue && innerValue.length > max) return;
|
|
75
|
+
if (innerValue) {
|
|
76
|
+
var clippedValue = [];
|
|
77
|
+
if (state) {
|
|
78
|
+
clippedValue = [].concat(_toConsumableArray(innerValue), [label]);
|
|
79
|
+
} else {
|
|
80
|
+
innerValue === null || innerValue === void 0 ? void 0 : innerValue.splice(innerValue === null || innerValue === void 0 ? void 0 : innerValue.indexOf(label), 1);
|
|
81
|
+
clippedValue = _toConsumableArray(innerValue);
|
|
82
|
+
}
|
|
83
|
+
setInnerValue(clippedValue);
|
|
84
|
+
onChange && onChange(clippedValue);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function validateChildChecked(child) {
|
|
88
|
+
if (!innerValue) return false;
|
|
89
|
+
return (innerValue === null || innerValue === void 0 ? void 0 : innerValue.indexOf(child.props.label || child.children)) > -1;
|
|
90
|
+
}
|
|
91
|
+
function validateChecked(value) {
|
|
92
|
+
if (innerValue === null) return false;
|
|
93
|
+
return innerValue === value;
|
|
94
|
+
}
|
|
95
|
+
function getParentVals() {
|
|
96
|
+
return innerValue;
|
|
97
|
+
}
|
|
98
|
+
function cloneChildren() {
|
|
99
|
+
return React__default.Children.map(children, function (child) {
|
|
100
|
+
var childChecked = validateChildChecked(child);
|
|
101
|
+
if (child.type.displayName !== 'NutCheckBox') {
|
|
102
|
+
return React__default.cloneElement(child);
|
|
103
|
+
}
|
|
104
|
+
return React__default.cloneElement(child, {
|
|
105
|
+
disabled: innerDisabled,
|
|
106
|
+
checked: childChecked,
|
|
107
|
+
onChange: handleChildChange,
|
|
108
|
+
getParentVals: getParentVals,
|
|
109
|
+
max: max
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
var renderOptionsChildren = useCallback(function () {
|
|
114
|
+
return options === null || options === void 0 ? void 0 : options.map(function (_ref) {
|
|
115
|
+
var label = _ref.label,
|
|
116
|
+
value = _ref.value,
|
|
117
|
+
disabled = _ref.disabled,
|
|
118
|
+
onChange = _ref.onChange,
|
|
119
|
+
rest = _objectWithoutProperties(_ref, _excluded2);
|
|
120
|
+
var childChecked = validateChecked(value);
|
|
121
|
+
return React__default.createElement(Checkbox, _objectSpread(_objectSpread({
|
|
122
|
+
key: value === null || value === void 0 ? void 0 : value.toString(),
|
|
123
|
+
children: label,
|
|
124
|
+
label: value,
|
|
125
|
+
disabled: innerDisabled ? true : disabled,
|
|
126
|
+
onChange: handleChildChange
|
|
127
|
+
}, rest), {}, {
|
|
128
|
+
max: max,
|
|
129
|
+
getParentVals: getParentVals,
|
|
130
|
+
checked: childChecked
|
|
131
|
+
}));
|
|
132
|
+
});
|
|
133
|
+
}, [innerValue]);
|
|
134
|
+
return React__default.createElement("div", _objectSpread({
|
|
135
|
+
className: "".concat(b(), " ").concat(className || '')
|
|
136
|
+
}, rest), options !== null && options !== void 0 && options.length ? renderOptionsChildren() : cloneChildren());
|
|
137
|
+
});
|
|
138
|
+
CheckboxGroup.defaultProps = defaultProps$1;
|
|
139
|
+
CheckboxGroup.displayName = 'NutCheckboxGroup';
|
|
140
|
+
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
141
|
+
checked: false,
|
|
142
|
+
disabled: false,
|
|
143
|
+
textPosition: 'right',
|
|
144
|
+
iconSize: 18,
|
|
145
|
+
iconName: 'check-normal',
|
|
146
|
+
iconActiveName: 'checked',
|
|
147
|
+
iconClassPrefix: 'nut-icon',
|
|
148
|
+
iconFontClassName: 'nutui-iconfont',
|
|
149
|
+
iconIndeterminateName: 'check-disabled',
|
|
150
|
+
onChange: function onChange(state, label) {}
|
|
151
|
+
});
|
|
152
|
+
var Checkbox = function Checkbox(props) {
|
|
153
|
+
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props),
|
|
154
|
+
children = _defaultProps$props.children;
|
|
155
|
+
var b = cn('checkbox');
|
|
156
|
+
var iconName = props.iconName,
|
|
157
|
+
iconSize = props.iconSize,
|
|
158
|
+
label = props.label,
|
|
159
|
+
className = props.className,
|
|
160
|
+
textPosition = props.textPosition,
|
|
161
|
+
iconActiveName = props.iconActiveName,
|
|
162
|
+
checked = props.checked,
|
|
163
|
+
disabled = props.disabled,
|
|
164
|
+
onChange = props.onChange,
|
|
165
|
+
indeterminate = props.indeterminate,
|
|
166
|
+
iconClassPrefix = props.iconClassPrefix,
|
|
167
|
+
iconFontClassName = props.iconFontClassName,
|
|
168
|
+
iconIndeterminateName = props.iconIndeterminateName,
|
|
169
|
+
getParentVals = props.getParentVals,
|
|
170
|
+
max = props.max,
|
|
171
|
+
rest = _objectWithoutProperties(props, _excluded3);
|
|
172
|
+
var _useState5 = useState(checked),
|
|
173
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
174
|
+
innerChecked = _useState6[0],
|
|
175
|
+
setInnerChecked = _useState6[1];
|
|
176
|
+
var _useState7 = useState(disabled),
|
|
177
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
178
|
+
innerDisabled = _useState8[0],
|
|
179
|
+
setDisabled = _useState8[1];
|
|
180
|
+
var _useState9 = useState(indeterminate),
|
|
181
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
182
|
+
_indeterminate = _useState10[0],
|
|
183
|
+
setIndeterminate = _useState10[1];
|
|
184
|
+
useEffect(function () {
|
|
185
|
+
setInnerChecked(checked);
|
|
186
|
+
setDisabled(disabled);
|
|
187
|
+
}, [disabled, checked]);
|
|
188
|
+
useEffect(function () {
|
|
189
|
+
setIndeterminate(indeterminate);
|
|
190
|
+
}, [indeterminate]);
|
|
191
|
+
var getIconName = function getIconName() {
|
|
192
|
+
if (!innerChecked) {
|
|
193
|
+
return iconName;
|
|
194
|
+
}
|
|
195
|
+
if (_indeterminate) {
|
|
196
|
+
return iconIndeterminateName;
|
|
197
|
+
}
|
|
198
|
+
return iconActiveName;
|
|
199
|
+
};
|
|
200
|
+
var renderIcon = function renderIcon() {
|
|
201
|
+
return React__default.createElement(Icon, {
|
|
202
|
+
classPrefix: iconClassPrefix,
|
|
203
|
+
fontClassName: iconFontClassName,
|
|
204
|
+
name: getIconName(),
|
|
205
|
+
size: iconSize,
|
|
206
|
+
className: color()
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
var color = function color() {
|
|
210
|
+
if (innerDisabled) {
|
|
211
|
+
return 'nut-checkbox__icon--disable';
|
|
212
|
+
}
|
|
213
|
+
if (innerChecked) {
|
|
214
|
+
if (_indeterminate) {
|
|
215
|
+
return 'nut-checkbox__icon--indeterminate';
|
|
216
|
+
}
|
|
217
|
+
return 'nut-checkbox__icon';
|
|
218
|
+
}
|
|
219
|
+
return 'nut-checkbox__icon--unchecked';
|
|
220
|
+
// return !innerDisabled ? (!innerChecked ? '#d6d6d6' : '#fa2c19') : '#f5f5f5'
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
var renderLabel = function renderLabel() {
|
|
224
|
+
return React__default.createElement("span", {
|
|
225
|
+
className: "".concat(b('label', {
|
|
226
|
+
disabled: innerDisabled
|
|
227
|
+
}), " ")
|
|
228
|
+
}, children || label);
|
|
229
|
+
};
|
|
230
|
+
var handleClick = function handleClick() {
|
|
231
|
+
if (!disabled) {
|
|
232
|
+
var latest = !innerChecked;
|
|
233
|
+
if (max !== undefined && latest && getParentVals().length >= max) return;
|
|
234
|
+
onChange && onChange(latest, label || children);
|
|
235
|
+
setInnerChecked(latest);
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
return React__default.createElement("div", _objectSpread(_objectSpread({
|
|
239
|
+
className: "".concat(b({
|
|
240
|
+
reverse: textPosition === 'left'
|
|
241
|
+
}), " ").concat(className || '')
|
|
242
|
+
}, rest), {}, {
|
|
243
|
+
onClick: handleClick
|
|
244
|
+
}), renderIcon(), renderLabel());
|
|
245
|
+
};
|
|
246
|
+
Checkbox.defaultProps = defaultProps;
|
|
247
|
+
Checkbox.displayName = 'NutCheckBox';
|
|
248
|
+
Checkbox.Group = CheckboxGroup;
|
|
249
|
+
export { Checkbox as C, CheckboxGroup as a };
|
|
@@ -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-7e924b72.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) {
|
|
@@ -96,7 +96,7 @@ var Elevator = function Elevator(props) {
|
|
|
96
96
|
query.selectAll(".".concat(className, " .elevator__item__").concat(i)).boundingClientRect();
|
|
97
97
|
// eslint-disable-next-line no-loop-func
|
|
98
98
|
query.exec(function (res) {
|
|
99
|
-
height += res[0][0].height;
|
|
99
|
+
if (res[0][0]) height += res[0][0].height;
|
|
100
100
|
// console.log(res, res[0][0].height, height, 'res')
|
|
101
101
|
state.current.listHeight.push(height);
|
|
102
102
|
});
|