@nutui/nutui-react-taro 2.6.14 → 2.6.15
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 +914 -909
- package/README.md +21 -28
- package/dist/esm/Audio.js +1 -1
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/CalendarItem.js +1 -1
- package/dist/esm/Checkbox.js +1 -1
- package/dist/esm/CheckboxGroup.js +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/InfiniteLoading.js +1 -1
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/PullToRefresh.js +1 -1
- package/dist/esm/Radio.js +1 -1
- package/dist/esm/RadioGroup.js +1 -1
- package/dist/esm/Sticky.js +1 -1
- package/dist/esm/Swipe.js +1 -1
- package/dist/esm/Swiper.js +1 -2
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/Table.js +1 -1
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/Uploader.js +1 -1
- package/dist/esm/WaterMark.js +1 -1
- package/dist/esm/{audio.taro-DzSc40G9.js → audio.taro-CD-vP_u0.js} +7 -8
- package/dist/esm/{calendar.taro-Bf5owfGd.js → calendar.taro-BXrHr8bg.js} +1 -1
- package/dist/esm/{calendaritem.taro-PLHReAvU.js → calendaritem.taro-CRultyrO.js} +3 -1
- package/dist/esm/{checkbox.taro-Dc054oRo.js → checkbox.taro-CgqJyhrh.js} +4 -5
- package/dist/esm/{datepicker.taro-DTyJrlhD.js → datepicker.taro-BxaZ3Fjv.js} +3 -4
- package/dist/esm/{imagepreview.taro-DtgQJEQ_.js → imagepreview.taro-CF-CCJ1Q.js} +1 -1
- package/dist/esm/{infiniteloading.taro-DmDQKk_d.js → infiniteloading.taro-TbcBB0Qr.js} +1 -1
- package/dist/esm/{menu.taro-CrPdDbYM.js → menu.taro-BeuoJcj7.js} +2 -2
- package/dist/esm/nutui-react.es.js +16 -16
- package/dist/esm/{pulltorefresh.taro-CZReoWwU.js → pulltorefresh.taro-BScP6uPx.js} +0 -1
- package/dist/esm/{radio.taro-BNSceequ.js → radio.taro-CzOHqD3O.js} +0 -2
- package/dist/esm/{sticky.taro-DZzgkigZ.js → sticky.taro-Zbz7wQH8.js} +29 -31
- package/dist/esm/{swipe.taro-yUhne9XU.js → swipe.taro-Bsk2fnEl.js} +0 -1
- package/dist/esm/{swiperitem.taro-DeiNSrJV.js → swiperitem.taro-BleF1EOs.js} +0 -5
- package/dist/esm/{table.taro-D2M3D2Vj.js → table.taro-B6WCKTkO.js} +6 -5
- package/dist/esm/{uploader.taro-CiamsRGo.js → uploader.taro-DfO2HWvy.js} +13 -11
- package/dist/esm/{watermark.taro-BR12yZQt.js → watermark.taro-CZ6R5FlJ.js} +3 -3
- 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/tr-TR.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 +236 -247
- package/dist/nutui.react.umd.js +236 -247
- package/dist/packages/uploader/uploader.scss +3 -1
- package/dist/style.css +1 -1
- package/dist/types/packages/swiperitem/swiperitem.d.ts +0 -1
- package/dist/types/packages/watermark/watermark.d.ts +2 -0
- package/dist/types/packages/watermark/watermark.taro.d.ts +10 -0
- package/dist/types/utils/get-scroll-parent.d.ts +1 -1
- package/dist/types/utils/use-client-rect.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
<p align="center">
|
|
3
2
|
<img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;">
|
|
4
3
|
</p>
|
|
@@ -36,27 +35,26 @@
|
|
|
36
35
|
|
|
37
36
|
---
|
|
38
37
|
|
|
39
|
-
> Nut[nʌt]: the one Squirrel Scrat pursues resolutely for a lifetime and will never let go even if it causes a catastrophe from the animated film
|
|
38
|
+
> Nut[nʌt]: the one Squirrel Scrat pursues resolutely for a lifetime and will never let go even if it causes a catastrophe from the animated film **_Ice Age_**.
|
|
40
39
|
|
|
41
40
|
[简体中文](./README_ZH.md) | English
|
|
42
41
|
|
|
43
42
|
## Features
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
44
|
+
- 🚀 70+ High Quality Components
|
|
45
|
+
- 📖 Based on JD APP 11.0 Visual Specifications
|
|
46
|
+
- 🍭 Support Tree Shaking
|
|
47
|
+
- 📖 Extensive Documentation and Demos
|
|
48
|
+
- 💪 Written in TypeScript
|
|
49
|
+
- 💪 Support SSR (Experimental)
|
|
50
|
+
- 🍭 Support Custom Themes
|
|
51
|
+
- 🍭 90%+ Unit Test Coverage
|
|
52
|
+
- 📖 Provide Sketch Design Resources
|
|
56
53
|
|
|
57
54
|
## Running locally
|
|
58
55
|
|
|
59
56
|
### running with H5
|
|
57
|
+
|
|
60
58
|
```sh
|
|
61
59
|
# Clone repository
|
|
62
60
|
git clone https://github.com/jdf2e/nutui-react.git
|
|
@@ -72,7 +70,9 @@ pnpm run dev
|
|
|
72
70
|
|
|
73
71
|
# visit in browser: http:http://localhost:3000 (you don't have to open it manually if you've run it in the browser again)
|
|
74
72
|
```
|
|
73
|
+
|
|
75
74
|
### running with mini-program
|
|
75
|
+
|
|
76
76
|
```sh
|
|
77
77
|
# Clone repository
|
|
78
78
|
git clone https://github.com/jdf2e/nutui-react.git
|
|
@@ -96,12 +96,11 @@ pnpm run dev:taro:jd
|
|
|
96
96
|
|
|
97
97
|
> If you are using AMD environment or build tools such as Webpack, Vite, etc., we recommend using the `es` version. If it is a non-module environment (such as direct reference through the `<script>` tag), it is recommended to use the `umd` compressed version.
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
* umd **nutui.umd.js**
|
|
99
|
+
- es **nutui.es.js**
|
|
102
100
|
|
|
101
|
+
- umd **nutui.umd.js**
|
|
103
102
|
|
|
104
|
-
##
|
|
103
|
+
## Links
|
|
105
104
|
|
|
106
105
|
<ul>
|
|
107
106
|
<li>
|
|
@@ -126,33 +125,30 @@ pnpm run dev:taro:jd
|
|
|
126
125
|
</li>
|
|
127
126
|
</ul>
|
|
128
127
|
|
|
129
|
-
|
|
130
128
|
## Communication
|
|
131
129
|
|
|
132
130
|
| Version | WeChat Group | JD Dongdong Group |
|
|
133
|
-
| --- | ---
|
|
131
|
+
| --- | --- | --- |
|
|
134
132
|
| [NutUI React](https://github.com/jdf2e/nutui-react/issues) | <img src="https://storage.360buyimg.com/imgtools/17c67beff6-4acf07c0-609c-11ed-a6ef-69df15b605e4.png" width="100" /> Reply 「NutUI-React」 after following | 1025679314 |
|
|
135
133
|
| [NutUI x Taro](https://github.com/jdf2e/nutui/issues) | <img src="https://camo.githubusercontent.com/db4276b4ee4b443158195e943e9e678cb4d2afb7580f70d4d817ef0a90413aec/687474703a2f2f73746f726167652e333630627579696d672e636f6d2f7461726f2d6a642d636f6d2f7374617469632f636f6e746163745f7461726f5f6e757475695f71722e706e67" width="100" />Reply 「NutUI-React」 after following | 1022545110 |
|
|
136
134
|
|
|
137
|
-
|
|
138
135
|
## Join Us
|
|
139
136
|
|
|
140
137
|
#### NutUI Community
|
|
141
138
|
|
|
142
|
-
[
|
|
139
|
+
[_Welcome To NutUI-React Community_](https://github.com/jdf2e/nutui-react/discussions/348)
|
|
143
140
|
|
|
144
141
|
#### Contribute to NutUI
|
|
145
142
|
|
|
146
143
|
There are some choices of contributing to NutUI as follows, solving issues, fixing bugs, adding new components, i18n, UI customization, platform and cross-end adaptation, etc.
|
|
147
144
|
|
|
148
|
-
You are very welcome to contribute code to NutUI. Before your pull requests, please read [
|
|
149
|
-
|
|
145
|
+
You are very welcome to contribute code to NutUI. Before your pull requests, please read [_NutUI Developer Contributing Guide_](https://github.com/jdf2e/nutui-react/discussions/348)。
|
|
150
146
|
|
|
151
147
|
## Issue & Discussion
|
|
152
148
|
|
|
153
149
|
[Report issues to NutUI](https://nutui.jd.com/nutui-issue-helper/?repo=jdf2e/nutui-react&lang=zh-cn)
|
|
154
150
|
|
|
155
|
-
> It is highly recommended to read [*How To Ask Questions The Smart Way*](https://github.com/ryanhanwu/, [
|
|
151
|
+
> It is highly recommended to read [*How To Ask Questions The Smart Way*](https://github.com/ryanhanwu/, [_How To Ask Questions Of GitHub Community_](https://github.com/seajs/seajs/issues/545) and [_How to Report Bugs Effectively_](https://www.chiark.greenend.org.uk/~sgtatham/bugs.html), then you can get understanding and help more easily.
|
|
156
152
|
|
|
157
153
|
[NutUI Discussion](https://github.com/jdf2e/nutui-react/discussions)
|
|
158
154
|
|
|
@@ -162,13 +158,11 @@ If you have any ideas, questions or suggestions, you can share your opinions her
|
|
|
162
158
|
|
|
163
159
|
Thanks to all the following [developers](https://github.com/jdf2e/nutui-react/graphs/contributors)。 who have contributed code to NutUI.
|
|
164
160
|
|
|
165
|
-
|
|
166
161
|
<a href="https://github.com/jdf2e/nutui-react/graphs/contributors">
|
|
167
162
|
<img src="https://contrib.rocks/image?repo=jdf2e/nutui-react" alt="contributors"/>
|
|
168
163
|
</a>
|
|
169
164
|
|
|
170
|
-
|
|
171
|
-
## Stargazers
|
|
165
|
+
## Stargazers
|
|
172
166
|
|
|
173
167
|
[](https://github.com/jdf2e/nutui-react/stargazers)
|
|
174
168
|
|
|
@@ -184,7 +178,6 @@ Thanks to all the following [developers](https://github.com/jdf2e/nutui-react/gr
|
|
|
184
178
|
|
|
185
179
|
NutUI follows [Angular Style Commit Message Conventions](https://gist.github.com/stephenparish/9941e89d80e2bc58a153). The up-to-date release notes are available on [Release](https://github.com/jdf2e/nutui-react/releases)
|
|
186
180
|
|
|
187
|
-
|
|
188
181
|
## Open Source License
|
|
189
182
|
|
|
190
183
|
This project is based on **MIT** protocol
|
package/dist/esm/Audio.js
CHANGED
package/dist/esm/Calendar.js
CHANGED
package/dist/esm/CalendarItem.js
CHANGED
package/dist/esm/Checkbox.js
CHANGED
package/dist/esm/DatePicker.js
CHANGED
package/dist/esm/ImagePreview.js
CHANGED
package/dist/esm/Menu.js
CHANGED
package/dist/esm/Radio.js
CHANGED
package/dist/esm/RadioGroup.js
CHANGED
package/dist/esm/Sticky.js
CHANGED
package/dist/esm/Swipe.js
CHANGED
package/dist/esm/Swiper.js
CHANGED
|
@@ -4,7 +4,7 @@ import { View, Swiper as Swiper$1, SwiperItem } from "@tarojs/components";
|
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { I as Indicator } from "./indicator.taro-k8bxJf86.js";
|
|
6
6
|
import { p as pxCheck } from "./px-check-D1Xbd9pj.js";
|
|
7
|
-
import { S as SwiperItem$1 } from "./swiperitem.taro-
|
|
7
|
+
import { S as SwiperItem$1 } from "./swiperitem.taro-BleF1EOs.js";
|
|
8
8
|
const defaultProps = {
|
|
9
9
|
direction: "horizontal",
|
|
10
10
|
indicator: false,
|
|
@@ -93,7 +93,6 @@ const Swiper = forwardRef((props, ref) => {
|
|
|
93
93
|
renderIndicator()
|
|
94
94
|
);
|
|
95
95
|
});
|
|
96
|
-
Swiper.defaultProps = defaultProps;
|
|
97
96
|
Swiper.displayName = "NutSwiper";
|
|
98
97
|
const InnerSwiper = Swiper;
|
|
99
98
|
InnerSwiper.Item = SwiperItem$1;
|
package/dist/esm/SwiperItem.js
CHANGED
package/dist/esm/Table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-progress{display:flex;align-items:center;position:relative;width:100%}.nut-progress-outer{flex:auto;border-radius:var(--nutui-progress-border-radius, 12px);height:var(--nutui-progress-height, 10px);background:var(--nutui-progress-background, var(--nutui-gray-3, #f6f6f6))}.nut-progress-outer .nut-progress-active:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--nutui-progress-border-radius, 12px);animation:progressActive 2s ease-in-out infinite}.nut-progress-inner{height:100%;display:flex;flex-direction:column;justify-content:center;transition:all .4s;border-radius:var(--nutui-progress-border-radius, 12px);background:var(--nutui-progress-color, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #f53d4d) 0%, var(--nutui-color-primary-stop-2, #fa2c19) 100%))}.nut-progress-text{display:flex;align-items:center;position:absolute;top:var(--nutui-progress-text-position-top, -4px);bottom:var(--nutui-progress-text-position-bottom, -4px);transition:all .4s;transform:translate(-50%)}.nut-progress-text-inner{display:flex;align-items:center;height:100%;width:100%;color:var(--nutui-progress-text-color, var(--nutui-color-primary-text, #ffffff));padding:var(--nutui-progress-text-padding, 0 5px);border-radius:var(--nutui-progress-text-border-radius, 5px);font-size:var(--nutui-progress-text-font-size, 9px);line-height:1;background:var(--nutui-progress-text-background, var(--nutui-progress-color, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #f53d4d) 0%, var(--nutui-color-primary-stop-2, #fa2c19) 100%)))}@keyframes progressActive{0%{background:#ffffff1a;width:0}20%{background:#ffffff80;width:0}to{background:#fff0;width:100%}}[dir=rtl] .nut-progress-text,.nut-rtl .nut-progress-text{transform:translate(50%)}.nut-uploader{position:relative;display:flex;flex-wrap:wrap}.nut-uploader-slot{position:relative}.nut-uploader-upload{position:relative;display:flex;align-items:center;justify-content:center;background:var(--nutui-uploader-background, var(--nutui-gray-3, #f6f6f6));width:var(--nutui-uploader-image-width, 100px);height:var(--nutui-uploader-image-height, 100px);border:var(--nutui-uploader-image-border, 0px);border-radius:var(--nutui-uploader-image-border-radius, 4px)}.nut-uploader-icon{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--nutui-uploader-image-color, var(--nutui-gray-5, #8c8c8c))}.nut-uploader-icon i,.nut-uploader-icon .nut-icon{color:var(--nutui-uploader-image-color, var(--nutui-gray-5, #8c8c8c));margin-bottom:var(--nutui-uploader-image-icon-margin-bottom, 6px)}.nut-uploader-icon-tip{font-size:var(--nutui-uploader-image-icon-tip-font-size, 12px)}.nut-uploader-input{position:absolute!important;top:0;left:0;width:100%!important;height:100%!important;overflow:hidden;cursor:pointer;opacity:0}.nut-uploader-input:disabled{cursor:not-allowed}.nut-uploader-upload-disabled{background:var(--nutui-uploader-background-disabled, var(--nutui-gray-3, #f6f6f6));color:var(--nutui-uploader-image-disabled, var(--nutui-color-text-disabled, #bfbfbf))}.nut-uploader-upload-disabled .nut-uploader-icon i,.nut-uploader-upload-disabled .nut-uploader-icon .nut-icon{color:var(--nutui-uploader-image-disabled, var(--nutui-color-text-disabled, #bfbfbf));margin-bottom:var(--nutui-uploader-image-icon-margin-bottom, 6px)}.nut-uploader-preview{position:relative;margin-right:var(--nutui-uploader-preview-margin-right, 10px);margin-bottom:var(--nutui-uploader-preview-margin-bottom, 10px);border-radius:var(--nutui-uploader-image-border-radius, 4px);box-shadow:0 2px 10px #0000001a}.nut-uploader-preview-progress{position:absolute;left:0;top:0;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;background:var(--nutui-uploader-preview-progress-background, var(--nutui-black-10, rgba(0, 0, 0, .7)));border-radius:var(--nutui-uploader-image-border-radius, 4px)}.nut-uploader-preview-progress i{margin-bottom:var(--nutui-uploader-image-icon-margin-bottom, 6px)}.nut-uploader-preview-progress-msg{color:var(--nutui-gray-5, #8c8c8c);font-size:12px}.nut-uploader-preview.list{width:100%;margin-right:0;margin-bottom:0;margin-top:10px;box-shadow:0 2px 10px #00000003}.nut-uploader-preview-list{width:100%;height:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:0 10px;background-color:var(--nutui-gray-2, #f8f8f8)}.nut-uploader-preview-list .nut-uploader-preview-img-file-name{display:flex;align-items:center;-webkit-line-clamp:1;padding:2px;height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nut-uploader-preview-list .nut-progress{position:absolute;left:0;right:0;bottom:0}.nut-uploader-preview-list .nut-progress .nut-progress-outer{height:2px!important}.nut-uploader-preview .close{position:absolute;right:var(--nutui-uploader-preview-close-right, 0px);top:var(--nutui-uploader-preview-close-top, 0px);transform:translate(50%,-50%);z-index:1}.nut-uploader-preview-img{position:relative;width:var(--nutui-uploader-image-width, 100px);height:var(--nutui-uploader-image-height, 100px);border-radius:var(--nutui-uploader-image-border-radius, 4px);overflow:hidden}.nut-uploader-preview-img i{color:var(--nutui-gray-7, #1a1a1a)}.nut-uploader-preview-img .tips{position:absolute;bottom:0;left:0;font-size:12px;color:#fff;text-align:center;box-sizing:border-box;height:var(--nutui-uploader-preview-tips-height, 24px);line-height:var(--nutui-uploader-preview-tips-height, 24px);border-radius:var(--nutui-uploader-image-border-radius, 4px);border-top-left-radius:0;border-top-right-radius:0;padding:var(--nutui-uploader-preview-tips-padding, 0 5px);background:var(--nutui-uploader-preview-tips-background, var(--nutui-black-7));width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nut-uploader-preview-img-c{
|
|
1
|
+
.nut-progress{display:flex;align-items:center;position:relative;width:100%}.nut-progress-outer{flex:auto;border-radius:var(--nutui-progress-border-radius, 12px);height:var(--nutui-progress-height, 10px);background:var(--nutui-progress-background, var(--nutui-gray-3, #f6f6f6))}.nut-progress-outer .nut-progress-active:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--nutui-progress-border-radius, 12px);animation:progressActive 2s ease-in-out infinite}.nut-progress-inner{height:100%;display:flex;flex-direction:column;justify-content:center;transition:all .4s;border-radius:var(--nutui-progress-border-radius, 12px);background:var(--nutui-progress-color, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #f53d4d) 0%, var(--nutui-color-primary-stop-2, #fa2c19) 100%))}.nut-progress-text{display:flex;align-items:center;position:absolute;top:var(--nutui-progress-text-position-top, -4px);bottom:var(--nutui-progress-text-position-bottom, -4px);transition:all .4s;transform:translate(-50%)}.nut-progress-text-inner{display:flex;align-items:center;height:100%;width:100%;color:var(--nutui-progress-text-color, var(--nutui-color-primary-text, #ffffff));padding:var(--nutui-progress-text-padding, 0 5px);border-radius:var(--nutui-progress-text-border-radius, 5px);font-size:var(--nutui-progress-text-font-size, 9px);line-height:1;background:var(--nutui-progress-text-background, var(--nutui-progress-color, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #f53d4d) 0%, var(--nutui-color-primary-stop-2, #fa2c19) 100%)))}@keyframes progressActive{0%{background:#ffffff1a;width:0}20%{background:#ffffff80;width:0}to{background:#fff0;width:100%}}[dir=rtl] .nut-progress-text,.nut-rtl .nut-progress-text{transform:translate(50%)}.nut-uploader{position:relative;display:flex;flex-wrap:wrap}.nut-uploader-slot{position:relative}.nut-uploader-upload{position:relative;display:flex;align-items:center;justify-content:center;background:var(--nutui-uploader-background, var(--nutui-gray-3, #f6f6f6));width:var(--nutui-uploader-image-width, 100px);height:var(--nutui-uploader-image-height, 100px);border:var(--nutui-uploader-image-border, 0px);border-radius:var(--nutui-uploader-image-border-radius, 4px)}.nut-uploader-icon{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--nutui-uploader-image-color, var(--nutui-gray-5, #8c8c8c))}.nut-uploader-icon i,.nut-uploader-icon .nut-icon{color:var(--nutui-uploader-image-color, var(--nutui-gray-5, #8c8c8c));margin-bottom:var(--nutui-uploader-image-icon-margin-bottom, 6px)}.nut-uploader-icon-tip{font-size:var(--nutui-uploader-image-icon-tip-font-size, 12px)}.nut-uploader-input{position:absolute!important;top:0;left:0;width:100%!important;height:100%!important;overflow:hidden;cursor:pointer;opacity:0}.nut-uploader-input:disabled{cursor:not-allowed}.nut-uploader-upload-disabled{background:var(--nutui-uploader-background-disabled, var(--nutui-gray-3, #f6f6f6));color:var(--nutui-uploader-image-disabled, var(--nutui-color-text-disabled, #bfbfbf))}.nut-uploader-upload-disabled .nut-uploader-icon i,.nut-uploader-upload-disabled .nut-uploader-icon .nut-icon{color:var(--nutui-uploader-image-disabled, var(--nutui-color-text-disabled, #bfbfbf));margin-bottom:var(--nutui-uploader-image-icon-margin-bottom, 6px)}.nut-uploader-preview{position:relative;margin-right:var(--nutui-uploader-preview-margin-right, 10px);margin-bottom:var(--nutui-uploader-preview-margin-bottom, 10px);border-radius:var(--nutui-uploader-image-border-radius, 4px);box-shadow:0 2px 10px #0000001a}.nut-uploader-preview-progress{position:absolute;left:0;top:0;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;background:var(--nutui-uploader-preview-progress-background, var(--nutui-black-10, rgba(0, 0, 0, .7)));border-radius:var(--nutui-uploader-image-border-radius, 4px)}.nut-uploader-preview-progress i{margin-bottom:var(--nutui-uploader-image-icon-margin-bottom, 6px)}.nut-uploader-preview-progress-msg{color:var(--nutui-gray-5, #8c8c8c);font-size:12px}.nut-uploader-preview.list{width:100%;margin-right:0;margin-bottom:0;margin-top:10px;box-shadow:0 2px 10px #00000003}.nut-uploader-preview-list{width:100%;height:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:0 10px;background-color:var(--nutui-gray-2, #f8f8f8)}.nut-uploader-preview-list .nut-uploader-preview-img-file-name{display:flex;align-items:center;-webkit-line-clamp:1;padding:2px;height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nut-uploader-preview-list .nut-progress{position:absolute;left:0;right:0;bottom:0}.nut-uploader-preview-list .nut-progress .nut-progress-outer{height:2px!important}.nut-uploader-preview .close{position:absolute;right:var(--nutui-uploader-preview-close-right, 0px);top:var(--nutui-uploader-preview-close-top, 0px);transform:translate(50%,-50%);z-index:1}.nut-uploader-preview-img{position:relative;width:var(--nutui-uploader-image-width, 100px);height:var(--nutui-uploader-image-height, 100px);border-radius:var(--nutui-uploader-image-border-radius, 4px);overflow:hidden}.nut-uploader-preview-img i{color:var(--nutui-gray-7, #1a1a1a)}.nut-uploader-preview-img .tips{position:absolute;bottom:0;left:0;font-size:12px;color:#fff;text-align:center;box-sizing:border-box;height:var(--nutui-uploader-preview-tips-height, 24px);line-height:var(--nutui-uploader-preview-tips-height, 24px);border-radius:var(--nutui-uploader-image-border-radius, 4px);border-top-left-radius:0;border-top-right-radius:0;padding:var(--nutui-uploader-preview-tips-padding, 0 5px);background:var(--nutui-uploader-preview-tips-background, var(--nutui-black-7));width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nut-uploader-preview-img-c{display:flex;justify-content:center;align-items:center;height:100%;position:initial;border-radius:var(--nutui-uploader-image-border-radius, 4px)}.nut-uploader-preview-img-file{height:100%;width:100%;display:flex;align-items:center;justify-content:center;transition:all .3s}.nut-uploader-preview-img-file-name{display:flex;width:90%;font-size:12px;color:var(--nutui-gray-6, #595959);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all}.nut-uploader-preview-img-file-name.error{color:red!important}.nut-uploader-preview-img-file-name.success{color:#1890ff!important}.nut-uploader-preview-img-file-name .nut-icon-Link{flex-shrink:0}[dir=rtl] .nut-uploader-input,.nut-rtl .nut-uploader-input{left:auto;right:0}[dir=rtl] .nut-uploader-preview,.nut-rtl .nut-uploader-preview{margin-right:0;margin-left:var(--nutui-uploader-preview-margin-right, 10px)}[dir=rtl] .nut-uploader-preview-progress,.nut-rtl .nut-uploader-preview-progress{left:auto;right:0}[dir=rtl] .nut-uploader-preview.list,.nut-rtl .nut-uploader-preview.list{margin-right:0;margin-left:0}[dir=rtl] .nut-uploader-preview .close,.nut-rtl .nut-uploader-preview .close{right:auto;left:var(--nutui-uploader-preview-close-right, 0px);transform:translate(-50%,-50%)}[dir=rtl] .nut-uploader-preview-img .tips,.nut-rtl .nut-uploader-preview-img .tips{left:auto;right:0}
|
package/dist/esm/Uploader.js
CHANGED
package/dist/esm/WaterMark.js
CHANGED
|
@@ -33,19 +33,19 @@ const Audio = (props) => {
|
|
|
33
33
|
audioCtx.autoplay = autoplay || false;
|
|
34
34
|
audioCtx.loop = loop || false;
|
|
35
35
|
audioCtx.onPause(() => {
|
|
36
|
-
|
|
36
|
+
onPause === null || onPause === void 0 ? void 0 : onPause(audioCtx);
|
|
37
37
|
});
|
|
38
38
|
audioCtx.onEnded(() => {
|
|
39
|
-
if (
|
|
39
|
+
if (loop) {
|
|
40
40
|
console.warn(locale.audio.tips || "onPlayEnd事件在loop=false时才会触发");
|
|
41
41
|
} else {
|
|
42
|
-
|
|
42
|
+
onPlayEnd === null || onPlayEnd === void 0 ? void 0 : onPlayEnd(audioCtx);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
audioCtx.onPlay(() => {
|
|
46
46
|
const { duration } = audioCtx;
|
|
47
47
|
setTotalSeconds(Math.floor(duration));
|
|
48
|
-
|
|
48
|
+
onPlay === null || onPlay === void 0 ? void 0 : onPlay(audioCtx);
|
|
49
49
|
});
|
|
50
50
|
audioCtx.onCanplay(() => {
|
|
51
51
|
const intervalID = setInterval(function() {
|
|
@@ -55,7 +55,7 @@ const Audio = (props) => {
|
|
|
55
55
|
}
|
|
56
56
|
}, 500);
|
|
57
57
|
setIsCanPlay(true);
|
|
58
|
-
|
|
58
|
+
onCanPlay === null || onCanPlay === void 0 ? void 0 : onCanPlay(audioCtx);
|
|
59
59
|
});
|
|
60
60
|
audioCtx.onTimeUpdate(() => {
|
|
61
61
|
const time = parseInt(`${audioCtx.currentTime}`);
|
|
@@ -87,14 +87,14 @@ const Audio = (props) => {
|
|
|
87
87
|
statusRef.current.currentTime = Math.max(currentTime - 1, 0);
|
|
88
88
|
setCurrentDuration(formatSeconds(statusRef.current.currentTime.toString()));
|
|
89
89
|
audioCtx.seek(statusRef.current.currentTime);
|
|
90
|
-
|
|
90
|
+
onFastBack === null || onFastBack === void 0 ? void 0 : onFastBack(audioCtx);
|
|
91
91
|
};
|
|
92
92
|
const handleForward = () => {
|
|
93
93
|
const currentTime = Math.floor(audioCtx.currentTime);
|
|
94
94
|
statusRef.current.currentTime = Math.min(currentTime + 1, audioCtx.duration);
|
|
95
95
|
setCurrentDuration(formatSeconds(statusRef.current.currentTime.toString()));
|
|
96
96
|
audioCtx.seek(statusRef.current.currentTime);
|
|
97
|
-
|
|
97
|
+
onForward === null || onForward === void 0 ? void 0 : onForward(audioCtx);
|
|
98
98
|
};
|
|
99
99
|
const handleStatusChange = () => {
|
|
100
100
|
setPlaying(!playing);
|
|
@@ -160,7 +160,6 @@ const Audio = (props) => {
|
|
|
160
160
|
};
|
|
161
161
|
return React__default.createElement("div", Object.assign({ className: `${classPrefix} ${className}`, style }, rest), renderAudio());
|
|
162
162
|
};
|
|
163
|
-
Audio.defaultProps = defaultProps;
|
|
164
163
|
Audio.displayName = "NutAudio";
|
|
165
164
|
export {
|
|
166
165
|
Audio as A
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useRef } from "react";
|
|
2
2
|
import { P as Popup } from "./popup.taro-CR3JyuJV.js";
|
|
3
|
-
import { C as CalendarItem } from "./calendaritem.taro-
|
|
3
|
+
import { C as CalendarItem } from "./calendaritem.taro-CRultyrO.js";
|
|
4
4
|
import { U as Utils } from "./date-CYwRNlGq.js";
|
|
5
5
|
import { u as useConfig } from "./configprovider.taro-DA4GDDFu.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
@@ -313,8 +313,10 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
313
313
|
};
|
|
314
314
|
useEffect(() => {
|
|
315
315
|
setCurrentDate(resetDefaultValue() || []);
|
|
316
|
-
popup && resetRender();
|
|
317
316
|
}, [defaultValue]);
|
|
317
|
+
useEffect(() => {
|
|
318
|
+
popup && resetRender();
|
|
319
|
+
}, [currentDate]);
|
|
318
320
|
const scrollToDate = (date) => {
|
|
319
321
|
if (Utils.compareDate(date, propStartDate)) {
|
|
320
322
|
date = propStartDate;
|
|
@@ -20,7 +20,7 @@ const defaultProps$1 = {
|
|
|
20
20
|
};
|
|
21
21
|
const classPrefix$1 = "nut-checkboxgroup";
|
|
22
22
|
const CheckboxGroup = React__default.forwardRef((props, ref) => {
|
|
23
|
-
const _a = Object.assign(Object.assign({}, defaultProps$1), props), { children, className, disabled, list,
|
|
23
|
+
const _a = Object.assign(Object.assign({}, defaultProps$1), props), { children, className, disabled, list, value, defaultValue, max, min, labelPosition, direction, options, onChange, onLimit } = _a, rest = __rest(_a, ["children", "className", "disabled", "list", "value", "defaultValue", "max", "min", "labelPosition", "direction", "options", "onChange", "onLimit"]);
|
|
24
24
|
useImperativeHandle(ref, () => ({
|
|
25
25
|
toggle(state) {
|
|
26
26
|
if (state === false) {
|
|
@@ -45,8 +45,8 @@ const CheckboxGroup = React__default.forwardRef((props, ref) => {
|
|
|
45
45
|
}
|
|
46
46
|
}));
|
|
47
47
|
const [_value, setValue] = usePropsValue({
|
|
48
|
-
value
|
|
49
|
-
defaultValue
|
|
48
|
+
value,
|
|
49
|
+
defaultValue,
|
|
50
50
|
finalValue: [],
|
|
51
51
|
onChange
|
|
52
52
|
});
|
|
@@ -83,12 +83,11 @@ const CheckboxGroup = React__default.forwardRef((props, ref) => {
|
|
|
83
83
|
}
|
|
84
84
|
} },
|
|
85
85
|
React__default.createElement("div", Object.assign({ className: classNames(classPrefix$1, {
|
|
86
|
-
[`nut-checkboxgroup-${
|
|
86
|
+
[`nut-checkboxgroup-${direction}`]: direction,
|
|
87
87
|
[`nut-checkboxgroup-list`]: list
|
|
88
88
|
}, className) }, rest), (options === null || options === void 0 ? void 0 : options.length) ? renderOptions() : children)
|
|
89
89
|
);
|
|
90
90
|
});
|
|
91
|
-
CheckboxGroup.defaultProps = defaultProps$1;
|
|
92
91
|
CheckboxGroup.displayName = "NutCheckboxGroup";
|
|
93
92
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { disabled: false, shape: "round", labelPosition: "right", icon: null, activeIcon: null, indeterminateIcon: null, onChange: (value) => {
|
|
94
93
|
} });
|
|
@@ -132,7 +132,7 @@ const DatePicker = (props) => {
|
|
|
132
132
|
if (!isEqual) {
|
|
133
133
|
setSelectedDate(formatValue(newDate));
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(selectedOptions, [
|
|
136
136
|
String(newDate.getFullYear()),
|
|
137
137
|
String(newDate.getMonth() + 1),
|
|
138
138
|
String(newDate.getDate())
|
|
@@ -203,8 +203,8 @@ const DatePicker = (props) => {
|
|
|
203
203
|
}
|
|
204
204
|
pickerValue[columnIndex] = (_a2 = arr[index]) === null || _a2 === void 0 ? void 0 : _a2.value;
|
|
205
205
|
setPickerValue([...pickerValue]);
|
|
206
|
-
if (
|
|
207
|
-
return
|
|
206
|
+
if (filter === null || filter === void 0 ? void 0 : filter(type2, arr)) {
|
|
207
|
+
return filter === null || filter === void 0 ? void 0 : filter(type2, arr);
|
|
208
208
|
}
|
|
209
209
|
return arr;
|
|
210
210
|
};
|
|
@@ -243,7 +243,6 @@ const DatePicker = (props) => {
|
|
|
243
243
|
}, [selectedDate, startDate, endDate]);
|
|
244
244
|
return React__default.createElement(View, Object.assign({ className: `nut-datepicker ${className}`, style, catchMove: true }, rest), pickerOptions.length && React__default.createElement(Picker, Object.assign({}, pickerProps, { title, visible, options: pickerOptions, onClose, onCancel, value: pickerValue, onConfirm: (options, value) => onConfirm && onConfirm(options, value), onChange: (options, value, index) => handlePickerChange(options, value, index), threeDimensional })));
|
|
245
245
|
};
|
|
246
|
-
DatePicker.defaultProps = defaultProps;
|
|
247
246
|
DatePicker.displayName = "NutDatePicker";
|
|
248
247
|
export {
|
|
249
248
|
DatePicker as D
|
|
@@ -5,7 +5,7 @@ import classNames from "classnames";
|
|
|
5
5
|
import { Close } from "@nutui/icons-react-taro";
|
|
6
6
|
import { P as Popup } from "./popup.taro-CR3JyuJV.js";
|
|
7
7
|
import InnerSwiper from "./Swiper.js";
|
|
8
|
-
import { S as SwiperItem } from "./swiperitem.taro-
|
|
8
|
+
import { S as SwiperItem } from "./swiperitem.taro-BleF1EOs.js";
|
|
9
9
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
10
10
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
11
11
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { images: [], videos: [], visible: false, autoPlay: false, defaultValue: 1, closeOnContentClick: false, pagination: true, indicator: false, indicatorColor: "#fff", closeIcon: false, closeIconPosition: "top-right", showMenuByLongpress: false, onChange: (value) => {
|
|
@@ -99,7 +99,7 @@ const InfiniteLoading = (props) => {
|
|
|
99
99
|
});
|
|
100
100
|
return React__default.createElement(
|
|
101
101
|
ScrollView,
|
|
102
|
-
Object.assign({ className: classes, scrollY: true, id: "scroller", type: "list", style: { height: "100%" }, onScroll: scrollAction, onScrollToLower: lower, onTouchStart: touchStart, onTouchMove: touchMove, onTouchEnd: touchEnd }
|
|
102
|
+
Object.assign({}, rest, { className: classes, scrollY: true, id: "scroller", type: "list", style: { height: "100%" }, onScroll: scrollAction, onScrollToLower: lower, onTouchStart: touchStart, onTouchMove: touchMove, onTouchEnd: touchEnd }),
|
|
103
103
|
React__default.createElement(
|
|
104
104
|
"div",
|
|
105
105
|
{ className: "nut-infinite-top", ref: refreshTop, style: getStyle() },
|
|
@@ -81,10 +81,10 @@ const Menu = (props) => {
|
|
|
81
81
|
};
|
|
82
82
|
return React__default.createElement(
|
|
83
83
|
"div",
|
|
84
|
-
{ className: classNames("nut-menu-title
|
|
84
|
+
{ className: classNames("nut-menu-title", `nut-menu-title-${index}`, {
|
|
85
85
|
active: showMenuItem[index],
|
|
86
86
|
disabled
|
|
87
|
-
}
|
|
87
|
+
}), style: { color: showMenuItem[index] ? activeColor : "" }, key: index, onClick: () => {
|
|
88
88
|
if ((!options || !options.length) && !child.props.children)
|
|
89
89
|
return;
|
|
90
90
|
!disabled && toggleMenuItem(index);
|
|
@@ -11,7 +11,7 @@ import { G as G2 } from "./griditem.taro-CcWyYchl.js";
|
|
|
11
11
|
import { L } from "./layout.taro-C-aUcOOE.js";
|
|
12
12
|
import { R } from "./row.taro-ItEq1Bi5.js";
|
|
13
13
|
import { S } from "./space.taro-B1KsEPZL.js";
|
|
14
|
-
import { S as S2 } from "./sticky.taro-
|
|
14
|
+
import { S as S2 } from "./sticky.taro-Zbz7wQH8.js";
|
|
15
15
|
import { S as S3 } from "./safearea.taro-BJpvFsMf.js";
|
|
16
16
|
import { B as B2 } from "./backtop.taro-jWlJ1ZWG.js";
|
|
17
17
|
import { E } from "./elevator.taro-Bsc8PcT0.js";
|
|
@@ -25,21 +25,21 @@ import { T as T2 } from "./tabbaritem.taro-BZNabTBp.js";
|
|
|
25
25
|
import { T as T3 } from "./tabpane.taro-BAe86j3t.js";
|
|
26
26
|
import { T as T4 } from "./tabs.taro-B2D3AtVV.js";
|
|
27
27
|
import { A } from "./address.taro-BYzOGUEN.js";
|
|
28
|
-
import { C as C5 } from "./calendar.taro-
|
|
29
|
-
import { C as C6 } from "./calendaritem.taro-
|
|
28
|
+
import { C as C5 } from "./calendar.taro-BXrHr8bg.js";
|
|
29
|
+
import { C as C6 } from "./calendaritem.taro-CRultyrO.js";
|
|
30
30
|
import { C as C7 } from "./calendarcard.taro-CbvCWF1k.js";
|
|
31
31
|
import { C as C8 } from "./cascader.taro-jxe42b68.js";
|
|
32
|
-
import { C as C9, a as a2 } from "./checkbox.taro-
|
|
33
|
-
import { D as D2 } from "./datepicker.taro-
|
|
32
|
+
import { C as C9, a as a2 } from "./checkbox.taro-CgqJyhrh.js";
|
|
33
|
+
import { D as D2 } from "./datepicker.taro-BxaZ3Fjv.js";
|
|
34
34
|
import { default as default2 } from "./Form.js";
|
|
35
35
|
import { F as F2 } from "./formitem.taro-Dmt5-wxG.js";
|
|
36
36
|
import { I as I2 } from "./input.taro-B_B1lJq2.js";
|
|
37
37
|
import { I as I3 } from "./inputnumber.taro-WN5Drnyz.js";
|
|
38
|
-
import { M } from "./menu.taro-
|
|
38
|
+
import { M } from "./menu.taro-BeuoJcj7.js";
|
|
39
39
|
import { M as M2 } from "./menuitem.taro-DMV3j4DK.js";
|
|
40
40
|
import { N as N2 } from "./numberkeyboard.taro-BA0iCeGP.js";
|
|
41
41
|
import { P } from "./picker.taro-CafNRRO5.js";
|
|
42
|
-
import { R as R2, a as a3 } from "./radio.taro-
|
|
42
|
+
import { R as R2, a as a3 } from "./radio.taro-CzOHqD3O.js";
|
|
43
43
|
import { R as R3 } from "./range.taro-D_qsx_j6.js";
|
|
44
44
|
import { R as R4 } from "./rate.taro-CPGkjYYu.js";
|
|
45
45
|
import { S as S7 } from "./searchbar.taro-C8cg7NeJ.js";
|
|
@@ -47,25 +47,25 @@ import { S as S8 } from "./shortpassword.taro-DpdtRsQ-.js";
|
|
|
47
47
|
import { S as S9 } from "./signature.taro-zgwaJkIE.js";
|
|
48
48
|
import { S as S10 } from "./switch.taro-CdBmDo18.js";
|
|
49
49
|
import { T as T5 } from "./textarea.taro-DuceTjAx.js";
|
|
50
|
-
import { U } from "./uploader.taro-
|
|
50
|
+
import { U } from "./uploader.taro-DfO2HWvy.js";
|
|
51
51
|
import { A as A2 } from "./actionsheet.taro-CJjNsNrH.js";
|
|
52
52
|
import { B as B3 } from "./badge.taro-BGaxpEYi.js";
|
|
53
53
|
import { B as B4 } from "./dialog.taro-BW9D2Gsr.js";
|
|
54
54
|
import { D as D3 } from "./drag.taro-B_TO4Nnu.js";
|
|
55
55
|
import { E as E2 } from "./empty.taro-CnwDznke.js";
|
|
56
|
-
import { I as I4 } from "./infiniteloading.taro-
|
|
56
|
+
import { I as I4 } from "./infiniteloading.taro-TbcBB0Qr.js";
|
|
57
57
|
import { L as L2 } from "./loading.taro-n_qoNgCW.js";
|
|
58
58
|
import { N as N3 } from "./noticebar.taro-CGUTg60Q.js";
|
|
59
59
|
import { N as N4 } from "./notify.taro-jP7y9zMU.js";
|
|
60
60
|
import { P as P2 } from "./popover.taro-B_FJgU0z.js";
|
|
61
61
|
import { P as P3 } from "./popup.taro-CR3JyuJV.js";
|
|
62
|
-
import { P as P4 } from "./pulltorefresh.taro-
|
|
62
|
+
import { P as P4 } from "./pulltorefresh.taro-BScP6uPx.js";
|
|
63
63
|
import { S as S11 } from "./skeleton.taro-bD6fHZop.js";
|
|
64
|
-
import { S as S12 } from "./swipe.taro-
|
|
64
|
+
import { S as S12 } from "./swipe.taro-Bsk2fnEl.js";
|
|
65
65
|
import { T as T6 } from "./toast.taro-CYk6UERn.js";
|
|
66
66
|
import { A as A3 } from "./animate.taro-CQVEyDKL.js";
|
|
67
67
|
import { default as default3 } from "./AnimatingNumbers.js";
|
|
68
|
-
import { A as A4 } from "./audio.taro-
|
|
68
|
+
import { A as A4 } from "./audio.taro-CD-vP_u0.js";
|
|
69
69
|
import { A as A5 } from "./avatar.taro-DSL3ErmC.js";
|
|
70
70
|
import { A as A6 } from "./avatargroup.taro-ScakjsY1.js";
|
|
71
71
|
import { C as C10 } from "./circleprogress.taro-BTRyQG5T.js";
|
|
@@ -73,7 +73,7 @@ import { C as C11 } from "./collapse.taro-wqL6MWZr.js";
|
|
|
73
73
|
import { C as C12 } from "./collapseitem.taro-DjUx5Nx8.js";
|
|
74
74
|
import { C as C13 } from "./countdown.taro-mKXeisK0.js";
|
|
75
75
|
import { E as E3 } from "./ellipsis.taro-cMTr1Wcw.js";
|
|
76
|
-
import { I as I5 } from "./imagepreview.taro-
|
|
76
|
+
import { I as I5 } from "./imagepreview.taro-CF-CCJ1Q.js";
|
|
77
77
|
import { I as I6 } from "./indicator.taro-k8bxJf86.js";
|
|
78
78
|
import { P as P5 } from "./pagination.taro-DdLO3OTc.js";
|
|
79
79
|
import { P as P6 } from "./price.taro-DUW-OR83.js";
|
|
@@ -81,8 +81,8 @@ import { P as P7 } from "./progress.taro-De9-206U.js";
|
|
|
81
81
|
import { S as S13 } from "./step.taro-Cc1dc5Qb.js";
|
|
82
82
|
import { S as S14 } from "./steps.taro-CUEhZGfy.js";
|
|
83
83
|
import { default as default4 } from "./Swiper.js";
|
|
84
|
-
import { S as S15 } from "./swiperitem.taro-
|
|
85
|
-
import { T as T7 } from "./table.taro-
|
|
84
|
+
import { S as S15 } from "./swiperitem.taro-BleF1EOs.js";
|
|
85
|
+
import { T as T7 } from "./table.taro-B6WCKTkO.js";
|
|
86
86
|
import { T as T8 } from "./tag.taro-CFt28RLm.js";
|
|
87
87
|
import { T as T9 } from "./tour.taro-SPMrhDA9.js";
|
|
88
88
|
import { V } from "./video.taro-CecLv4sr.js";
|
|
@@ -92,7 +92,7 @@ import { C as C14 } from "./card.taro-DxcIi5qH.js";
|
|
|
92
92
|
import { T as T10 } from "./timedetail.taro-ya5JNy2L.js";
|
|
93
93
|
import { T as T11 } from "./timeselect.taro-DncKbp3l.js";
|
|
94
94
|
import { T as T12 } from "./trendarrow.taro-DKx5cGIh.js";
|
|
95
|
-
import { W } from "./watermark.taro-
|
|
95
|
+
import { W } from "./watermark.taro-CZ6R5FlJ.js";
|
|
96
96
|
import { A as A7 } from "./avatarcropper.taro-CAVcFvKC.js";
|
|
97
97
|
export {
|
|
98
98
|
A2 as ActionSheet,
|
|
@@ -140,7 +140,6 @@ const PullToRefresh = (p) => {
|
|
|
140
140
|
React__default.createElement("div", { className: `${classPrefix}-content` }, props.children)
|
|
141
141
|
);
|
|
142
142
|
};
|
|
143
|
-
PullToRefresh.defaultProps = defaultProps;
|
|
144
143
|
PullToRefresh.displayName = "NutPullToRefresh";
|
|
145
144
|
export {
|
|
146
145
|
PullToRefresh as P
|
|
@@ -46,7 +46,6 @@ const RadioGroup = React__default.forwardRef((props, ref) => {
|
|
|
46
46
|
}, className) }, rest), (options === null || options === void 0 ? void 0 : options.length) ? renderOptionsChildren() : children)
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
|
-
RadioGroup.defaultProps = defaultProps$1;
|
|
50
49
|
RadioGroup.displayName = "NutRadioGroup";
|
|
51
50
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { disabled: false, shape: "round", value: "", labelPosition: "right", icon: null, activeIcon: null, onChange: (checked) => {
|
|
52
51
|
} });
|
|
@@ -128,7 +127,6 @@ const Radio = (props) => {
|
|
|
128
127
|
[`${classPrefix2}-reverse`]: labelPosition === "left"
|
|
129
128
|
}, className), style, onClick: handleClick }, rest), renderRadioItem());
|
|
130
129
|
};
|
|
131
|
-
Radio.defaultProps = defaultProps;
|
|
132
130
|
Radio.displayName = "NutRadio";
|
|
133
131
|
Radio.Group = RadioGroup;
|
|
134
132
|
export {
|