@nutui/nutui-react-taro 2.0.0-alpha.14 → 2.0.0-alpha.16
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 +28 -0
- package/dist/esm/Address.js +2 -2
- package/dist/esm/Audio.js +2 -2
- package/dist/esm/Avatar.js +3 -3
- package/dist/esm/Calendar.js +3 -3
- package/dist/esm/CalendarItem.js +2 -2
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Card.js +2 -4
- package/dist/esm/ConfigProvider.js +2 -2
- package/dist/esm/CountDown.js +2 -2
- package/dist/esm/DatePicker.js +3 -3
- package/dist/esm/Dialog/style/index.js +1 -0
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Dialog.js +2 -2
- package/dist/esm/Empty.js +2 -2
- package/dist/esm/FixedNav.js +2 -2
- package/dist/esm/Grid.js +3 -3
- package/dist/esm/GridItem.js +2 -2
- package/dist/esm/Image.js +2 -2
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/InfiniteLoading/style/style.css +1 -0
- package/dist/esm/InfiniteLoading.js +10 -0
- package/dist/esm/Input.js +2 -2
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/MenuItem.js +1 -1
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/NumberKeyboard.js +2 -2
- package/dist/esm/Pagination.js +2 -2
- package/dist/esm/Picker.js +2 -2
- package/dist/esm/PullToRefresh.js +2 -2
- package/dist/esm/SearchBar.js +2 -2
- package/dist/esm/ShortPassword.js +2 -2
- package/dist/esm/Signature/style/index.js +1 -1
- package/dist/esm/Signature/style/style.css +1 -1
- package/dist/esm/Signature.js +1 -7
- package/dist/esm/Skeleton.js +4 -4
- package/dist/esm/Table.js +2 -2
- package/dist/esm/Tag/style/style.css +1 -1
- package/dist/esm/Tag.js +1 -1
- package/dist/esm/TextArea.js +2 -2
- package/dist/esm/TimeDetail/style/style.css +1 -1
- package/dist/esm/TimeDetail.js +3 -4
- package/dist/esm/TimeSelect/style/index.js +0 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/TimeSelect.js +4 -7
- package/dist/esm/Uploader.js +2 -2
- package/dist/esm/WaterMark.js +2 -2
- package/dist/esm/{address.taro-1a8ab3f1.js → address.taro-cc879a1d.js} +1 -1
- package/dist/esm/{audio.taro-73011657.js → audio.taro-64b15071.js} +1 -1
- package/dist/esm/{avatar.taro-01536aff.js → avatar.taro-8a26cd6c.js} +1 -1
- package/dist/esm/{calendar.taro-10a6cb11.js → calendar.taro-02195ddb.js} +2 -2
- package/dist/esm/{calendaritem.taro-3e5f114e.js → calendaritem.taro-4230e5c4.js} +1 -1
- package/dist/esm/card.taro-92fe9733.js +64 -0
- package/dist/esm/{configprovider.taro-25758d9f.js → configprovider.taro-372b1525.js} +1 -1
- package/dist/esm/{countdown.taro-c399cc08.js → countdown.taro-8f19d21b.js} +1 -1
- package/dist/esm/{datepicker.taro-6304d59d.js → datepicker.taro-b480d072.js} +44 -46
- package/dist/esm/{dialog.taro-290eb9a6.js → dialog.taro-e5c2cb03.js} +1 -1
- package/dist/esm/{empty.taro-ca792f57.js → empty.taro-8345ac72.js} +1 -1
- package/dist/esm/{fixednav.taro-b9ecf0d5.js → fixednav.taro-6c69ad79.js} +1 -1
- package/dist/esm/{grid.taro-fbbd8618.js → grid.taro-9b63aca5.js} +1 -1
- package/dist/esm/{griditem.taro-b0c37077.js → griditem.taro-48971911.js} +1 -1
- package/dist/esm/{image.taro-767aa000.js → image.taro-fde6e649.js} +1 -1
- package/dist/esm/{imagepreview.taro-daa5a84f.js → imagepreview.taro-cfe0a4cc.js} +3 -2
- package/dist/esm/{infiniteloading.taro-f8f23ac6.js → infiniteloading.taro-53eeb1ec.js} +17 -33
- package/dist/esm/{input.taro-27d686c9.js → input.taro-69c08268.js} +1 -1
- package/dist/esm/{menuitem.taro-6aa35a00.js → menuitem.taro-7f8c12cf.js} +11 -8
- package/dist/esm/{noticebar.taro-8d496dd6.js → noticebar.taro-dc895cc5.js} +1 -1
- package/dist/esm/{numberkeyboard.taro-ad8afaf9.js → numberkeyboard.taro-18879f04.js} +1 -1
- package/dist/esm/nutui-react.es.js +39 -41
- package/dist/esm/{pagination.taro-63607c3b.js → pagination.taro-592bca05.js} +1 -1
- package/dist/esm/{picker.taro-8ba4624c.js → picker.taro-3781a455.js} +2 -2
- package/dist/esm/{pulltorefresh.taro-5b36a881.js → pulltorefresh.taro-3719fdfb.js} +1 -1
- package/dist/esm/{searchbar.taro-09468fff.js → searchbar.taro-39351331.js} +1 -1
- package/dist/esm/{shortpassword.taro-eabbde1b.js → shortpassword.taro-cff61e4e.js} +1 -1
- package/dist/esm/{signature.taro-6e75a1ac.js → signature.taro-4f68516a.js} +19 -20
- package/dist/esm/{skeleton.taro-0552c2ec.js → skeleton.taro-ce714b06.js} +1 -1
- package/dist/esm/{table.taro-15a55c5d.js → table.taro-a20f15f2.js} +1 -1
- package/dist/esm/tag.taro-614758eb.js +76 -0
- package/dist/esm/{textarea.taro-c110565e.js → textarea.taro-593cd471.js} +1 -1
- package/dist/esm/timedetail.taro-d7aa4c1b.js +48 -0
- package/dist/esm/timeselect.taro-9e37e648.js +114 -0
- package/dist/esm/types/src/locales/base.d.ts +1 -1
- package/dist/esm/types/src/packages/card/card.d.ts +8 -9
- package/dist/esm/types/src/packages/card/card.taro.d.ts +8 -9
- package/dist/esm/types/src/packages/card/index.d.ts +1 -0
- package/dist/esm/types/src/packages/card/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/datepicker/datepicker.d.ts +11 -17
- package/dist/esm/types/src/packages/datepicker/datepicker.taro.d.ts +11 -17
- package/dist/esm/types/src/packages/datepicker/index.d.ts +1 -0
- package/dist/esm/types/src/packages/datepicker/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/imagepreview/imagepreview.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/infiniteloading/demo.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/infiniteloading/index.d.ts +3 -2
- package/dist/esm/types/src/packages/infiniteloading/index.taro.d.ts +3 -2
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +9 -14
- package/dist/esm/types/src/packages/infiniteloading/infiniteloading.taro.d.ts +8 -12
- package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -3
- package/dist/esm/types/src/packages/nutui.react.d.ts +2 -4
- package/dist/esm/types/src/packages/nutui.react.scss.d.ts +0 -1
- package/dist/esm/types/src/packages/nutui.react.taro.d.ts +2 -4
- package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +0 -1
- package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -3
- package/dist/esm/types/src/packages/signature/index.d.ts +1 -0
- package/dist/esm/types/src/packages/signature/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/signature/signature.d.ts +10 -8
- package/dist/esm/types/src/packages/signature/signature.taro.d.ts +7 -12
- package/dist/esm/types/src/packages/tag/index.d.ts +1 -0
- package/dist/esm/types/src/packages/tag/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/tag/tag.d.ts +4 -6
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +4 -6
- package/dist/esm/types/src/packages/timedetail/index.d.ts +1 -2
- package/dist/esm/types/src/packages/timedetail/timedetail.d.ts +9 -11
- package/dist/esm/types/src/packages/timedetail/timedetail.taro.d.ts +9 -11
- package/dist/esm/types/src/packages/timeselect/demo.taro.d.ts +0 -4
- package/dist/esm/types/src/packages/timeselect/index.d.ts +1 -0
- package/dist/esm/types/src/packages/timeselect/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/timeselect/timeselect.d.ts +25 -20
- package/dist/esm/types/src/packages/timeselect/timeselect.taro.d.ts +25 -20
- package/dist/esm/types/src/packages/toast/Notification.d.ts +4 -1
- package/dist/esm/{uploader.taro-fbd05e20.js → uploader.taro-5ad88f83.js} +1 -1
- package/dist/esm/{watermark.taro-e2245bb1.js → watermark.taro-b6b1ae18.js} +1 -1
- package/dist/locales/base.d.ts +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +2 -2
- package/dist/locales/id-ID.js +2 -2
- package/dist/locales/tr-TR.js +2 -2
- package/dist/locales/zh-CN.js +2 -2
- package/dist/locales/zh-TW.js +2 -2
- package/dist/locales/zh-UG.js +2 -2
- package/dist/nutui.react.es.js +693 -730
- package/dist/nutui.react.umd.js +692 -729
- package/dist/packages/card/card.scss +8 -14
- package/dist/packages/infiniteloading/infiniteloading.scss +2 -25
- package/dist/packages/menuitem/menuitem.scss +1 -1
- package/dist/packages/noticebar/noticebar.scss +0 -3
- package/dist/packages/signature/signature.scss +1 -18
- package/dist/packages/tag/tag.scss +10 -17
- package/dist/packages/timedetail/timedetail.scss +12 -37
- package/dist/packages/timeselect/timeselect.scss +15 -44
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/themes/default.scss +0 -1
- package/dist/styles/variables-jmapp.scss +50 -97
- package/dist/styles/variables.scss +51 -98
- package/dist/types/index.d.ts +2 -3
- package/dist/types/locales/base.d.ts +1 -1
- package/dist/types/packages/card/card.taro.d.ts +57 -14
- package/dist/types/packages/card/index.taro.d.ts +1 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/datepicker/datepicker.taro.d.ts +11 -17
- package/dist/types/packages/datepicker/index.taro.d.ts +1 -0
- package/dist/types/packages/imagepreview/imagepreview.taro.d.ts +5 -0
- package/dist/types/packages/infiniteloading/index.taro.d.ts +3 -2
- package/dist/types/packages/infiniteloading/infiniteloading.taro.d.ts +52 -16
- package/dist/types/packages/picker/index.d.ts +4 -0
- package/dist/types/packages/picker/picker.d.ts +18 -0
- package/dist/types/packages/picker/pickerpanel.d.ts +15 -0
- package/dist/types/packages/popup/index.d.ts +3 -0
- package/dist/types/packages/popup/popup.d.ts +22 -0
- package/dist/types/packages/signature/index.taro.d.ts +1 -0
- package/dist/types/packages/signature/signature.taro.d.ts +32 -17
- package/dist/types/packages/tag/index.taro.d.ts +1 -0
- package/dist/types/packages/tag/tag.taro.d.ts +52 -14
- package/dist/types/packages/timedetail/timedetail.taro.d.ts +9 -11
- package/dist/types/packages/timeselect/index.taro.d.ts +1 -0
- package/dist/types/packages/timeselect/timeselect.taro.d.ts +62 -21
- package/dist/types/packages/toast/toast.taro.d.ts +60 -12
- package/package.json +1 -1
- package/dist/esm/Infiniteloading/style/style.css +0 -1
- package/dist/esm/Infiniteloading.js +0 -12
- package/dist/esm/TimePannel/style/css.js +0 -1
- package/dist/esm/TimePannel/style/index.js +0 -2
- package/dist/esm/TimePannel/style/style.css +0 -1
- package/dist/esm/TimePannel.js +0 -8
- package/dist/esm/card.taro-2080f4d2.js +0 -51
- package/dist/esm/tag.taro-1b4134a5.js +0 -92
- package/dist/esm/timedetail.taro-8d2acbbf.js +0 -41
- package/dist/esm/timepannel.taro-ee4c5dfa.js +0 -22
- package/dist/esm/timeselect.taro-069deedd.js +0 -133
- package/dist/esm/types/src/packages/timedetail/demo.d.ts +0 -3
- package/dist/esm/types/src/packages/timedetail/demo.taro.d.ts +0 -3
- package/dist/esm/types/src/packages/timepannel/demo.d.ts +0 -3
- package/dist/esm/types/src/packages/timepannel/demo.taro.d.ts +0 -3
- package/dist/esm/types/src/packages/timepannel/index.d.ts +0 -2
- package/dist/esm/types/src/packages/timepannel/index.taro.d.ts +0 -2
- package/dist/esm/types/src/packages/timepannel/timepannel.d.ts +0 -8
- package/dist/esm/types/src/packages/timepannel/timepannel.taro.d.ts +0 -8
- package/dist/packages/timepannel/timepannel.scss +0 -17
- package/dist/types/packages/timepannel/index.taro.d.ts +0 -2
- package/dist/types/packages/timepannel/timepannel.taro.d.ts +0 -8
- /package/dist/esm/{Infiniteloading → InfiniteLoading}/style/css.js +0 -0
- /package/dist/esm/{Infiniteloading → InfiniteLoading}/style/index.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-gray-7, rgba(0, 0, 0, .7)))}.nut-overlay-fade-enter-active{animation:nut-fade-in}.nut-overlay-fade-enter-active .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-6, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-1, #1a1a1a))}.nut-overlay-fade-leave-active{animation:nut-fade-out}.nut-overlay-first-render,.nut-overlay-hidden-render{display:none}@keyframes nut-fade-in{0%{opacity:0}1%{opacity:0}to{opacity:1}}@keyframes nut-fade-out{0%{opacity:1}1%{opacity:1}to{opacity:0}}.nut-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:var(--nutui-gray-6, #ffffff);color:var(--nutui-gray-1, #1a1a1a);-webkit-overflow-scrolling:touch}.nut-popup__close-icon{position:absolute!important;z-index:1;color:var(--nutui-popup-close-icon-color, #969799);cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.nut-popup__close-icon:active{opacity:.7}.nut-popup__close-icon--top-left{top:var(--nutui-popup-close-icon-margin, 16px);left:var(--nutui-popup-close-icon-margin, 16px)}.nut-popup__close-icon--top-right{top:var(--nutui-popup-close-icon-margin, 16px);right:var(--nutui-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-left{bottom:var(--nutui-popup-close-icon-margin, 16px);left:var(--nutui-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-right{right:var(--nutui-popup-close-icon-margin, 16px);bottom:var(--nutui-popup-close-icon-margin, 16px)}.nut-popup-center{top:50%;left:50%;transform:translate(-50%,-50%)}.nut-popup-center.round{border-radius:var(--nutui-popup-border-radius, 20px)}.nut-popup-bottom{bottom:0;left:0;width:100%}.nut-popup-bottom.round{border-radius:var(--nutui-popup-border-radius, 20px) var(--nutui-popup-border-radius, 20px) 0 0}.nut-popup-right{top:0;right:0}.nut-popup-right.round{border-radius:var(--nutui-popup-border-radius, 20px) 0 0 var(--nutui-popup-border-radius, 20px)}.nut-popup-left{top:0;left:0}.nut-popup-left.round{border-radius:0 var(--nutui-popup-border-radius, 20px) var(--nutui-popup-border-radius, 20px) 0}.nut-popup-top{top:0;left:0;width:100%}.nut-popup-top.round{border-radius:0 0 var(--nutui-popup-border-radius, 20px) var(--nutui-popup-border-radius, 20px)}@keyframes popup-scale-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes popup-scale-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}.nut-popup-slide-default-enter-active{animation-fill-mode:both;animation-name:popup-scale-fade-in;animation-duration:.3s}.nut-popup-slide-default-exit-active{animation-fill-mode:both;animation-name:popup-scale-fade-out;animation-duration:.3s}@keyframes popup-fade-in{0%{opacity:0}to{opacity:1}}@keyframes popup-fade-out{0%{opacity:1}to{opacity:0}}.nut-popup-slide-center-enter-active{animation-fill-mode:both;animation-name:popup-fade-in;animation-duration:.3s}.nut-popup-slide-center-exit-active{animation-fill-mode:both;animation-name:popup-fade-out;animation-duration:.3s}@keyframes popup-slide-top-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes popup-slide-top-exit{to{transform:translate3d(0,-100%,0)}}.nut-popup-slide-top-enter-active,.nut-popup-slide-top-appear-active{transform:translateZ(0);animation-fill-mode:both;animation-name:popup-slide-top-enter;animation-duration:.3s}.nut-popup-slide-top-exit-active{animation-fill-mode:both;animation-name:popup-slide-top-exit;animation-duration:.3s}@keyframes popup-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes popup-slide-right-exit{to{transform:translate3d(100%,0,0)}}.nut-popup-slide-right-enter-active,.nut-popup-slide-right-appear-active{transform:translateZ(0);animation-fill-mode:both;animation-name:popup-slide-right-enter;animation-duration:.3s}.nut-popup-slide-right-exit{animation-fill-mode:both;animation-name:popup-slide-right-exit;animation-duration:.3s}@keyframes popup-slide-bottom-enter{0%{transform:translate3d(0,100%,0)}}@keyframes slide-bottom-exit{to{transform:translate3d(0,100%,0)}}.nut-popup-slide-bottom-enter-active,.nut-popup-slide-bottom-appear-active{transform:translate(0);animation-fill-mode:both;animation-name:popup-slide-bottom-enter;animation-duration:.3s}.nut-popup-slide-bottom-exit{animation-fill-mode:both;animation-name:slide-bottom-exit;animation-duration:.3s}@keyframes popup-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes popup-slide-left-exit{to{transform:translate3d(-100%,0,0)}}.nut-popup-slide-left-enter-active,.nut-popup-slide-left-appear-active{transform:translate(0);animation-fill-mode:both;animation-name:popup-slide-left-enter;animation-duration:.3s}.nut-popup-slide-left-exit-active,.nut-popup-slide-left-exit-done{animation-fill-mode:both;animation-name:popup-slide-left-exit;animation-duration:.3s}.nut-overflow-hidden{overflow:hidden!important}.nut-
|
|
1
|
+
.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-gray-7, rgba(0, 0, 0, .7)))}.nut-overlay-fade-enter-active{animation:nut-fade-in}.nut-overlay-fade-enter-active .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-6, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-1, #1a1a1a))}.nut-overlay-fade-leave-active{animation:nut-fade-out}.nut-overlay-first-render,.nut-overlay-hidden-render{display:none}@keyframes nut-fade-in{0%{opacity:0}1%{opacity:0}to{opacity:1}}@keyframes nut-fade-out{0%{opacity:1}1%{opacity:1}to{opacity:0}}.nut-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:var(--nutui-gray-6, #ffffff);color:var(--nutui-gray-1, #1a1a1a);-webkit-overflow-scrolling:touch}.nut-popup__close-icon{position:absolute!important;z-index:1;color:var(--nutui-popup-close-icon-color, #969799);cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.nut-popup__close-icon:active{opacity:.7}.nut-popup__close-icon--top-left{top:var(--nutui-popup-close-icon-margin, 16px);left:var(--nutui-popup-close-icon-margin, 16px)}.nut-popup__close-icon--top-right{top:var(--nutui-popup-close-icon-margin, 16px);right:var(--nutui-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-left{bottom:var(--nutui-popup-close-icon-margin, 16px);left:var(--nutui-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-right{right:var(--nutui-popup-close-icon-margin, 16px);bottom:var(--nutui-popup-close-icon-margin, 16px)}.nut-popup-center{top:50%;left:50%;transform:translate(-50%,-50%)}.nut-popup-center.round{border-radius:var(--nutui-popup-border-radius, 20px)}.nut-popup-bottom{bottom:0;left:0;width:100%}.nut-popup-bottom.round{border-radius:var(--nutui-popup-border-radius, 20px) var(--nutui-popup-border-radius, 20px) 0 0}.nut-popup-right{top:0;right:0}.nut-popup-right.round{border-radius:var(--nutui-popup-border-radius, 20px) 0 0 var(--nutui-popup-border-radius, 20px)}.nut-popup-left{top:0;left:0}.nut-popup-left.round{border-radius:0 var(--nutui-popup-border-radius, 20px) var(--nutui-popup-border-radius, 20px) 0}.nut-popup-top{top:0;left:0;width:100%}.nut-popup-top.round{border-radius:0 0 var(--nutui-popup-border-radius, 20px) var(--nutui-popup-border-radius, 20px)}@keyframes popup-scale-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes popup-scale-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}.nut-popup-slide-default-enter-active{animation-fill-mode:both;animation-name:popup-scale-fade-in;animation-duration:.3s}.nut-popup-slide-default-exit-active{animation-fill-mode:both;animation-name:popup-scale-fade-out;animation-duration:.3s}@keyframes popup-fade-in{0%{opacity:0}to{opacity:1}}@keyframes popup-fade-out{0%{opacity:1}to{opacity:0}}.nut-popup-slide-center-enter-active{animation-fill-mode:both;animation-name:popup-fade-in;animation-duration:.3s}.nut-popup-slide-center-exit-active{animation-fill-mode:both;animation-name:popup-fade-out;animation-duration:.3s}@keyframes popup-slide-top-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes popup-slide-top-exit{to{transform:translate3d(0,-100%,0)}}.nut-popup-slide-top-enter-active,.nut-popup-slide-top-appear-active{transform:translateZ(0);animation-fill-mode:both;animation-name:popup-slide-top-enter;animation-duration:.3s}.nut-popup-slide-top-exit-active{animation-fill-mode:both;animation-name:popup-slide-top-exit;animation-duration:.3s}@keyframes popup-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes popup-slide-right-exit{to{transform:translate3d(100%,0,0)}}.nut-popup-slide-right-enter-active,.nut-popup-slide-right-appear-active{transform:translateZ(0);animation-fill-mode:both;animation-name:popup-slide-right-enter;animation-duration:.3s}.nut-popup-slide-right-exit{animation-fill-mode:both;animation-name:popup-slide-right-exit;animation-duration:.3s}@keyframes popup-slide-bottom-enter{0%{transform:translate3d(0,100%,0)}}@keyframes slide-bottom-exit{to{transform:translate3d(0,100%,0)}}.nut-popup-slide-bottom-enter-active,.nut-popup-slide-bottom-appear-active{transform:translate(0);animation-fill-mode:both;animation-name:popup-slide-bottom-enter;animation-duration:.3s}.nut-popup-slide-bottom-exit{animation-fill-mode:both;animation-name:slide-bottom-exit;animation-duration:.3s}@keyframes popup-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes popup-slide-left-exit{to{transform:translate3d(-100%,0,0)}}.nut-popup-slide-left-enter-active,.nut-popup-slide-left-appear-active{transform:translate(0);animation-fill-mode:both;animation-name:popup-slide-left-enter;animation-duration:.3s}.nut-popup-slide-left-exit-active,.nut-popup-slide-left-exit-done{animation-fill-mode:both;animation-name:popup-slide-left-exit;animation-duration:.3s}.nut-overflow-hidden{overflow:hidden!important}.nut-timedetail{display:flex;align-content:flex-start;flex-wrap:wrap;padding:0 0 50px 13px}.nut-timedetail__item{width:var(--nutui-timeselect-time-width, 100px);height:var(--nutui-timeselect-time-height, 50px);line-height:var(--nutui-timeselect-time-line-height, 50px);text-align:center;margin:var(--nutui-timeselect-time-margin, 0 10px 10px 0);background:var(--nutui-timeselect-time-background, var(--nutui-gray-4, #f4f4f4));color:var(--nutui-timeselect-time-color, var(--nutui-gray-1, #1a1a1a));border-radius:5px;font-size:var(--nutui-timeselect-font-size, 14px);border:1px solid transparent;font-weight:700}.nut-timedetail__item.active{background-color:var(--nutui-timeselect-time-active-background, var(--nutui-gray-5, #f8f8f8));border:1px solid var(--nutui-timeselect-time-active-color, var(--nutui-brand-color, #fa2c19));color:var(--nutui-timeselect-time-active-color, var(--nutui-brand-color, #fa2c19))}.nut-timeselect{background-color:var(--nutui-gray-6, #ffffff);display:flex;flex-direction:column;height:100%}.nut-timeselect__title{height:var(--nutui-timeselect-title-height, 50px);line-height:var(--nutui-timeselect-title-line-height, 50px);margin-bottom:10px;font-size:var(--nutui-timeselect-title-font-size, var(--nutui-font-size-2, 14px));background:var(--nutui-timeselect-title-background, var(--nutui-gray-6, #ffffff));color:var(--nutui-gray-1, #1a1a1a);text-align:center}.nut-timeselect__content{display:flex;flex:1}.nut-timeselect__content-left{width:var(--nutui-timeselect-date-width, 140px);min-width:var(--nutui-timeselect-date-width, 140px);height:100%;overflow:auto;background:var(--nutui-gray-5, #f8f8f8)}.nut-timepannel{height:var(--nutui-timeselect-date-height, 40px);line-height:var(--nutui-timeselect-date-line-height, 40px);text-align:center;color:var(--nutui-timeselect-date-color, var(--nutui-gray-2, #757575));font-size:var(--nutui-timeselect-date-font-size, var(--nutui-font-size-2, 14px))}.nut-timepannel.active{background:var(--nutui-gray-6, #ffffff);color:var(--nutui-timeselect-date-active-color, var(--nutui-gray-1, #1a1a1a));font-weight:700}
|
package/dist/esm/TimeSelect.js
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { T as TimeSelect } from "./timeselect.taro-
|
|
1
|
+
import { T as TimeSelect } from "./timeselect.taro-9e37e648.js";
|
|
2
2
|
import "react";
|
|
3
|
+
import "classnames";
|
|
3
4
|
import "./popup.taro-e756f3fc.js";
|
|
4
5
|
import "react-dom";
|
|
5
6
|
import "react-transition-group";
|
|
6
|
-
import "classnames";
|
|
7
7
|
import "@nutui/icons-react-taro";
|
|
8
8
|
import "@tarojs/components";
|
|
9
9
|
import "./overlay.taro-75012bd3.js";
|
|
10
10
|
import "./typings-11d83a22.js";
|
|
11
|
-
import "./
|
|
12
|
-
import "./
|
|
13
|
-
import "@bem-react/classname";
|
|
14
|
-
import "./configprovider.taro-25758d9f.js";
|
|
15
|
-
import "./timedetail.taro-8d2acbbf.js";
|
|
11
|
+
import "./timedetail.taro-d7aa4c1b.js";
|
|
12
|
+
import "./configprovider.taro-372b1525.js";
|
|
16
13
|
export {
|
|
17
14
|
TimeSelect as default
|
|
18
15
|
};
|
package/dist/esm/Uploader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as Uploader } from "./uploader.taro-
|
|
1
|
+
import { U as Uploader } from "./uploader.taro-5ad88f83.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "classnames";
|
|
4
4
|
import "@tarojs/taro";
|
|
@@ -7,7 +7,7 @@ import "@tarojs/components";
|
|
|
7
7
|
import "./button.taro-01eae688.js";
|
|
8
8
|
import "./typings-11d83a22.js";
|
|
9
9
|
import "./progress.taro-437b9f6a.js";
|
|
10
|
-
import "./configprovider.taro-
|
|
10
|
+
import "./configprovider.taro-372b1525.js";
|
|
11
11
|
import "./index-0a89a47b.js";
|
|
12
12
|
export {
|
|
13
13
|
Uploader as default
|
package/dist/esm/WaterMark.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { W as WaterMark } from "./watermark.taro-
|
|
1
|
+
import { W as WaterMark } from "./watermark.taro-b6b1ae18.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@tarojs/taro";
|
|
4
4
|
import "classnames";
|
|
5
|
-
import "./configprovider.taro-
|
|
5
|
+
import "./configprovider.taro-372b1525.js";
|
|
6
6
|
import "./typings-11d83a22.js";
|
|
7
7
|
export {
|
|
8
8
|
WaterMark as default
|
|
@@ -5,7 +5,7 @@ import { c as cn } from "./bem-cdccae08.js";
|
|
|
5
5
|
import { useConfig } from "./ConfigProvider.js";
|
|
6
6
|
import { createSelectorQuery } from "@tarojs/taro";
|
|
7
7
|
import { E as Elevator } from "./elevator.taro-df8fde9d.js";
|
|
8
|
-
import { u as useConfig$1 } from "./configprovider.taro-
|
|
8
|
+
import { u as useConfig$1 } from "./configprovider.taro-372b1525.js";
|
|
9
9
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
10
10
|
const defaultProps$2 = {
|
|
11
11
|
type: "custom",
|
|
@@ -4,7 +4,7 @@ import { Service } from "@nutui/icons-react-taro";
|
|
|
4
4
|
import { R as Range } from "./range.taro-a1d1ad25.js";
|
|
5
5
|
import { B as Button } from "./button.taro-01eae688.js";
|
|
6
6
|
import { c as cn } from "./bem-cdccae08.js";
|
|
7
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
9
9
|
const b = cn("audio");
|
|
10
10
|
const warn = console.warn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useRef, useContext, useEffect } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { I as Image } from "./image.taro-
|
|
3
|
+
import { I as Image } from "./image.taro-fde6e649.js";
|
|
4
4
|
import { A as AvatarContext } from "./context-d0fccf11.js";
|
|
5
5
|
import { My } from "@nutui/icons-react-taro";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef } from "react";
|
|
2
2
|
import { P as Popup } from "./popup.taro-e756f3fc.js";
|
|
3
|
-
import { U as Utils, C as CalendarItem } from "./calendaritem.taro-
|
|
4
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
3
|
+
import { U as Utils, C as CalendarItem } from "./calendaritem.taro-4230e5c4.js";
|
|
4
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
5
5
|
const defaultProps = {
|
|
6
6
|
type: "one",
|
|
7
7
|
isAutoBackFill: false,
|
|
@@ -3,7 +3,7 @@ import classNames from "classnames";
|
|
|
3
3
|
import { ScrollView } from "@tarojs/components";
|
|
4
4
|
import { nextTick } from "@tarojs/taro";
|
|
5
5
|
import { c as cn } from "./bem-cdccae08.js";
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
7
7
|
const Utils = {
|
|
8
8
|
/**
|
|
9
9
|
* 是否为闫年
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
import { P as Price } from "./price.taro-479f1b82.js";
|
|
4
|
+
import { T as Tag } from "./tag.taro-614758eb.js";
|
|
5
|
+
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
6
|
+
const defaultProps = {
|
|
7
|
+
...ComponentDefaults,
|
|
8
|
+
src: "",
|
|
9
|
+
title: "",
|
|
10
|
+
price: "",
|
|
11
|
+
vipPrice: "",
|
|
12
|
+
shopDescription: "",
|
|
13
|
+
delivery: "",
|
|
14
|
+
shopName: "",
|
|
15
|
+
description: "",
|
|
16
|
+
tag: "",
|
|
17
|
+
priceTag: "",
|
|
18
|
+
extra: ""
|
|
19
|
+
};
|
|
20
|
+
const Card = (props) => {
|
|
21
|
+
const { className, style, src, title, price, vipPrice, shopDescription, delivery, shopName, tag, priceTag, description, extra, ...rest } = {
|
|
22
|
+
...defaultProps,
|
|
23
|
+
...props
|
|
24
|
+
};
|
|
25
|
+
const classPrefix = "nut-card";
|
|
26
|
+
return React.createElement(
|
|
27
|
+
"div",
|
|
28
|
+
{ className: classNames(classPrefix, className), style, ...rest },
|
|
29
|
+
React.createElement(
|
|
30
|
+
"div",
|
|
31
|
+
{ className: `${classPrefix}__left` },
|
|
32
|
+
React.createElement("img", { src, alt: "" })
|
|
33
|
+
),
|
|
34
|
+
React.createElement(
|
|
35
|
+
"div",
|
|
36
|
+
{ className: `${classPrefix}__right` },
|
|
37
|
+
React.createElement("div", { className: `${classPrefix}__right-title` }, title),
|
|
38
|
+
description,
|
|
39
|
+
React.createElement(
|
|
40
|
+
"div",
|
|
41
|
+
{ className: `${classPrefix}right-price` },
|
|
42
|
+
React.createElement(Price, { size: "normal", price }),
|
|
43
|
+
priceTag || React.createElement(Price, { size: "normal", className: `${classPrefix}right-price-origin`, price: vipPrice })
|
|
44
|
+
),
|
|
45
|
+
React.createElement("div", { className: `${classPrefix}right-other` }, tag || React.createElement(
|
|
46
|
+
React.Fragment,
|
|
47
|
+
null,
|
|
48
|
+
React.createElement(Tag, { type: "danger" }, shopDescription),
|
|
49
|
+
React.createElement(Tag, { plain: true }, delivery)
|
|
50
|
+
)),
|
|
51
|
+
React.createElement(
|
|
52
|
+
"div",
|
|
53
|
+
{ className: `${classPrefix}right-shop` },
|
|
54
|
+
React.createElement("div", { className: `${classPrefix}right-shop-name` }, shopName),
|
|
55
|
+
extra
|
|
56
|
+
)
|
|
57
|
+
)
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
Card.defaultProps = defaultProps;
|
|
61
|
+
Card.displayName = "NutCard";
|
|
62
|
+
export {
|
|
63
|
+
Card as C
|
|
64
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
2
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
2
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
3
3
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
4
4
|
const defaultProps = {
|
|
5
5
|
...ComponentDefaults,
|
|
@@ -1,33 +1,27 @@
|
|
|
1
|
-
import React, { useState,
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { View } from "@tarojs/components";
|
|
3
|
-
import { P as Picker } from "./picker.taro-
|
|
4
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
3
|
+
import { P as Picker } from "./picker.taro-3781a455.js";
|
|
4
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
5
|
+
import { u as usePropsValue } from "./use-props-value-7ac1b1b5.js";
|
|
6
|
+
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
5
7
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
6
8
|
const defaultProps = {
|
|
7
|
-
|
|
9
|
+
...ComponentDefaults,
|
|
8
10
|
visible: false,
|
|
9
11
|
title: "",
|
|
10
12
|
type: "date",
|
|
11
|
-
|
|
13
|
+
showChinese: false,
|
|
12
14
|
threeDimensional: true,
|
|
13
15
|
minuteStep: 1,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
startDate: new Date(currentYear - 10, 0, 1),
|
|
17
|
+
endDate: new Date(currentYear + 10, 11, 31)
|
|
16
18
|
};
|
|
17
19
|
const DatePicker = (props) => {
|
|
18
|
-
const {
|
|
20
|
+
const { startDate, endDate, type, showChinese, minuteStep, visible, title, defaultValue, formatter, onClose, onConfirm, filter, onChange, threeDimensional, className, style, ...rest } = {
|
|
19
21
|
...defaultProps,
|
|
20
22
|
...props
|
|
21
23
|
};
|
|
22
24
|
const { locale } = useConfig();
|
|
23
|
-
const [show, setShow] = useState(false);
|
|
24
|
-
const [currentDate, setCurrentDate] = useState(modelValue);
|
|
25
|
-
const [defaultValue, setDefaultValue] = useState([]);
|
|
26
|
-
const [options, setListData] = useState([]);
|
|
27
|
-
const pickerRef = useRef(null);
|
|
28
|
-
const isDate = (val) => {
|
|
29
|
-
return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
|
|
30
|
-
};
|
|
31
25
|
const datepickerLang = locale.datepicker;
|
|
32
26
|
const zhCNType = {
|
|
33
27
|
day: datepickerLang.day,
|
|
@@ -37,20 +31,32 @@ const DatePicker = (props) => {
|
|
|
37
31
|
minute: datepickerLang.min,
|
|
38
32
|
seconds: datepickerLang.seconds
|
|
39
33
|
};
|
|
34
|
+
const [defaultValueOfPicker, setDefaultValueOfPicker] = useState([]);
|
|
35
|
+
const [options, setOptions] = useState([]);
|
|
36
|
+
const isDate = (val) => {
|
|
37
|
+
return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
|
|
38
|
+
};
|
|
40
39
|
const formatValue = (value) => {
|
|
41
40
|
let cvalue = value;
|
|
42
41
|
if (!cvalue || cvalue && !isDate(cvalue)) {
|
|
43
|
-
cvalue =
|
|
42
|
+
cvalue = startDate;
|
|
44
43
|
}
|
|
45
|
-
let timestmp = Math.max(cvalue.getTime(),
|
|
46
|
-
timestmp = Math.min(timestmp,
|
|
44
|
+
let timestmp = Math.max(cvalue.getTime(), startDate.getTime());
|
|
45
|
+
timestmp = Math.min(timestmp, endDate.getTime());
|
|
47
46
|
return new Date(timestmp);
|
|
48
47
|
};
|
|
48
|
+
const [currentDate, setCurrentDate] = usePropsValue({
|
|
49
|
+
value: props.value && formatValue(props.value),
|
|
50
|
+
defaultValue: formatValue(props.defaultValue || null),
|
|
51
|
+
finalValue: null,
|
|
52
|
+
onChange: (val) => {
|
|
53
|
+
}
|
|
54
|
+
});
|
|
49
55
|
function getMonthEndDay(year, month) {
|
|
50
56
|
return new Date(year, month, 0).getDate();
|
|
51
57
|
}
|
|
52
58
|
const getBoundary = (type2, value) => {
|
|
53
|
-
const boundary = type2 === "min" ?
|
|
59
|
+
const boundary = type2 === "min" ? startDate : endDate;
|
|
54
60
|
const year = boundary.getFullYear();
|
|
55
61
|
let month = 1;
|
|
56
62
|
let date = 1;
|
|
@@ -84,12 +90,12 @@ const DatePicker = (props) => {
|
|
|
84
90
|
[`${type2}Seconds`]: seconds
|
|
85
91
|
};
|
|
86
92
|
};
|
|
87
|
-
const ranges = (
|
|
88
|
-
const curDate =
|
|
93
|
+
const ranges = () => {
|
|
94
|
+
const curDate = currentDate;
|
|
89
95
|
if (!curDate)
|
|
90
96
|
return [];
|
|
91
|
-
const { maxYear, maxDate
|
|
92
|
-
const { minYear, minDate
|
|
97
|
+
const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", curDate);
|
|
98
|
+
const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", curDate);
|
|
93
99
|
let result = [
|
|
94
100
|
{
|
|
95
101
|
type: "year",
|
|
@@ -101,7 +107,7 @@ const DatePicker = (props) => {
|
|
|
101
107
|
},
|
|
102
108
|
{
|
|
103
109
|
type: "day",
|
|
104
|
-
range: [
|
|
110
|
+
range: [minDate, maxDate]
|
|
105
111
|
},
|
|
106
112
|
{
|
|
107
113
|
type: "hour",
|
|
@@ -141,17 +147,17 @@ const DatePicker = (props) => {
|
|
|
141
147
|
}
|
|
142
148
|
return result;
|
|
143
149
|
};
|
|
144
|
-
const updateChooseValueCustmer = (
|
|
150
|
+
const updateChooseValueCustmer = (selectedOptions, selectedValue, index) => {
|
|
145
151
|
if (["date", "datetime", "datehour", "month-day", "year-month"].includes(type.toLocaleLowerCase())) {
|
|
146
152
|
const formatDate = [];
|
|
147
153
|
selectedValue.forEach((item) => {
|
|
148
154
|
formatDate.push(item);
|
|
149
155
|
});
|
|
150
156
|
if (type.toLocaleLowerCase() === "month-day" && formatDate.length < 3) {
|
|
151
|
-
formatDate.unshift(new Date(
|
|
157
|
+
formatDate.unshift(new Date(defaultValue || startDate || endDate).getFullYear());
|
|
152
158
|
}
|
|
153
159
|
if (type.toLocaleLowerCase() === "year-month" && formatDate.length < 3) {
|
|
154
|
-
formatDate.push(new Date(
|
|
160
|
+
formatDate.push(new Date(defaultValue || startDate || endDate).getDate());
|
|
155
161
|
}
|
|
156
162
|
const year = Number(formatDate[0]);
|
|
157
163
|
const month = Number(formatDate[1]) - 1;
|
|
@@ -167,7 +173,7 @@ const DatePicker = (props) => {
|
|
|
167
173
|
const isEqual = (currentDate == null ? void 0 : currentDate.getTime()) === (date == null ? void 0 : date.getTime());
|
|
168
174
|
date && isDate(date) && !isEqual && setCurrentDate(formatValue(date));
|
|
169
175
|
}
|
|
170
|
-
props.onChange && props.onChange(
|
|
176
|
+
props.onChange && props.onChange(selectedOptions, selectedValue, index);
|
|
171
177
|
};
|
|
172
178
|
const padZero = (num, targetLength = 2) => {
|
|
173
179
|
let str = `${num}`;
|
|
@@ -185,12 +191,13 @@ const DatePicker = (props) => {
|
|
|
185
191
|
});
|
|
186
192
|
} else {
|
|
187
193
|
const padMin = padZero(value, 2);
|
|
188
|
-
const fatter =
|
|
194
|
+
const fatter = showChinese ? zhCNType[type2] : "";
|
|
189
195
|
fOption = { text: padMin + fatter, value: padMin };
|
|
190
196
|
}
|
|
191
197
|
return fOption;
|
|
192
198
|
};
|
|
193
199
|
const generateValue = (min, max, val, type2, columnIndex) => {
|
|
200
|
+
var _a;
|
|
194
201
|
let cmin = min;
|
|
195
202
|
const arr = [];
|
|
196
203
|
let index = 0;
|
|
@@ -205,8 +212,8 @@ const DatePicker = (props) => {
|
|
|
205
212
|
index++;
|
|
206
213
|
}
|
|
207
214
|
}
|
|
208
|
-
|
|
209
|
-
|
|
215
|
+
defaultValueOfPicker[columnIndex] = (_a = arr[index]) == null ? void 0 : _a.value;
|
|
216
|
+
setDefaultValueOfPicker([...defaultValueOfPicker]);
|
|
210
217
|
if (props.filter && props.filter(type2, arr)) {
|
|
211
218
|
return props.filter(type2, arr);
|
|
212
219
|
}
|
|
@@ -231,27 +238,18 @@ const DatePicker = (props) => {
|
|
|
231
238
|
}
|
|
232
239
|
return d;
|
|
233
240
|
};
|
|
234
|
-
const columns = (
|
|
235
|
-
const val = ranges(
|
|
241
|
+
const columns = () => {
|
|
242
|
+
const val = ranges().map((res, columnIndex) => {
|
|
236
243
|
return generateValue(res.range[0], res.range[1], getDateIndex(res.type), res.type, columnIndex);
|
|
237
244
|
});
|
|
238
245
|
return val || [];
|
|
239
246
|
};
|
|
240
|
-
useEffect(() => {
|
|
241
|
-
setCurrentDate(formatValue(modelValue));
|
|
242
|
-
}, []);
|
|
243
|
-
useEffect(() => {
|
|
244
|
-
setCurrentDate(formatValue(modelValue));
|
|
245
|
-
}, [modelValue]);
|
|
246
|
-
useEffect(() => {
|
|
247
|
-
setShow(visible);
|
|
248
|
-
}, [visible]);
|
|
249
247
|
useEffect(() => {
|
|
250
248
|
if (currentDate) {
|
|
251
|
-
|
|
249
|
+
setOptions(columns());
|
|
252
250
|
}
|
|
253
|
-
}, [
|
|
254
|
-
return React.createElement(View, { className: `nut-datepicker ${className
|
|
251
|
+
}, []);
|
|
252
|
+
return React.createElement(View, { className: `nut-datepicker ${className}`, style, catchMove: true, ...rest }, options.length && React.createElement(Picker, { title, visible, options, onClose, defaultValue: defaultValueOfPicker, onConfirm: (options2, value) => onConfirm && onConfirm(options2, value), onChange: (options2, value, index) => updateChooseValueCustmer(options2, value, index), threeDimensional }));
|
|
255
253
|
};
|
|
256
254
|
DatePicker.defaultProps = defaultProps;
|
|
257
255
|
DatePicker.displayName = "NutDatePicker";
|
|
@@ -5,7 +5,7 @@ import { B as Button } from "./button.taro-01eae688.js";
|
|
|
5
5
|
import { CSSTransition } from "react-transition-group";
|
|
6
6
|
import { d as defaultOverlayProps, O as Overlay } from "./overlay.taro-75012bd3.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
8
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
8
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
9
9
|
const Content = (props) => {
|
|
10
10
|
const { visible, title, footer, footerDirection, onClick, children } = props;
|
|
11
11
|
const classPrefix = "nut-dialog";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
|
2
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
2
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
3
3
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
4
4
|
const defaultStatus = {
|
|
5
5
|
empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { Left } from "@nutui/icons-react-taro";
|
|
4
4
|
import { O as Overlay } from "./overlay.taro-75012bd3.js";
|
|
5
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
5
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
7
7
|
const defaultProps = {
|
|
8
8
|
...ComponentDefaults,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { a as GridContext, G as GridItem, p as pxCheck } from "./griditem.taro-
|
|
3
|
+
import { a as GridContext, G as GridItem, p as pxCheck } from "./griditem.taro-48971911.js";
|
|
4
4
|
const defaultProps = {
|
|
5
5
|
columns: 4,
|
|
6
6
|
gap: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useContext } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
3
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
4
4
|
const gridContext = {
|
|
5
5
|
onClick: (item, index) => {
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { Image as Image$1, ImageError } from "@nutui/icons-react-taro";
|
|
3
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
3
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
4
4
|
const defaultProps = {
|
|
5
5
|
fit: "fill",
|
|
6
6
|
position: "center",
|
|
@@ -16,13 +16,14 @@ const defaultProps = {
|
|
|
16
16
|
closeOnContentClick: false,
|
|
17
17
|
indicator: false,
|
|
18
18
|
indicatorColor: "#fff",
|
|
19
|
+
showMenuByLongpress: false,
|
|
19
20
|
onChange: (value) => {
|
|
20
21
|
},
|
|
21
22
|
onClose: () => {
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
25
|
const ImagePreview = (props) => {
|
|
25
|
-
const { images, videos, visible, defaultValue, indicatorColor, indicator, autoPlay, closeOnContentClick, onClose } = props;
|
|
26
|
+
const { images, videos, visible, defaultValue, indicatorColor, indicator, autoPlay, closeOnContentClick, showMenuByLongpress, onClose } = props;
|
|
26
27
|
const classPrefix = "nut-imagepreview";
|
|
27
28
|
const ref = useRef(null);
|
|
28
29
|
const [innerNo, setInnerNo] = usePropsValue({
|
|
@@ -161,7 +162,7 @@ const ImagePreview = (props) => {
|
|
|
161
162
|
React.createElement(Video, { src: item.source.src, controls: item.options.controls, autoplay: false, loop: false, muted: item.options.muted })
|
|
162
163
|
);
|
|
163
164
|
}) : []).concat(images && images.length > 0 ? images.map((item, index) => {
|
|
164
|
-
return React.createElement(SwiperItem, { key: index }, Taro.getEnv() === "WEB" ? React.createElement("img", { src: item.src, alt: "" }) : React.createElement(Image, { src: item.src, mode: "aspectFit", style: { width: "100%", height: "100%" } }));
|
|
165
|
+
return React.createElement(SwiperItem, { key: index }, Taro.getEnv() === "WEB" ? React.createElement("img", { src: item.src, alt: "" }) : React.createElement(Image, { src: item.src, mode: "aspectFit", showMenuByLongpress: true, style: { width: "100%", height: "100%" } }));
|
|
165
166
|
}) : []))
|
|
166
167
|
),
|
|
167
168
|
React.createElement(
|
|
@@ -2,24 +2,19 @@ import React, { useState, useRef, useEffect } from "react";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { ScrollView } from "@tarojs/components";
|
|
4
4
|
import { createSelectorQuery } from "@tarojs/taro";
|
|
5
|
-
import {
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-25758d9f.js";
|
|
5
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
7
6
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
8
7
|
const defaultProps = {
|
|
9
8
|
...ComponentDefaults,
|
|
10
9
|
hasMore: true,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
pullIcon: "https://img10.360buyimg.com/imagetools/jfs/t1/169863/6/4565/6306/60125948E7e92774e/40b3a0cf42852bcb.png",
|
|
15
|
-
pullText: "松开刷新",
|
|
16
|
-
loadIcon: "https://img10.360buyimg.com/imagetools/jfs/t1/169863/6/4565/6306/60125948E7e92774e/40b3a0cf42852bcb.png",
|
|
17
|
-
loadingText: "加载中···",
|
|
18
|
-
loadMoreText: "哎呀,这里是底部了啦"
|
|
10
|
+
threshold: 40,
|
|
11
|
+
target: "",
|
|
12
|
+
pullRefresh: false
|
|
19
13
|
};
|
|
20
|
-
const
|
|
14
|
+
const classPrefix = `nut-infiniteloading`;
|
|
15
|
+
const InfiniteLoading = (props) => {
|
|
21
16
|
const { locale } = useConfig();
|
|
22
|
-
const { children, hasMore,
|
|
17
|
+
const { children, hasMore, threshold, target, pullRefresh, pullingText, loadingText, loadMoreText, className, onRefresh, onLoadMore, onScroll } = {
|
|
23
18
|
...defaultProps,
|
|
24
19
|
...props
|
|
25
20
|
};
|
|
@@ -33,10 +28,9 @@ const Infiniteloading = (props) => {
|
|
|
33
28
|
const y = useRef(0);
|
|
34
29
|
const refreshMaxH = useRef(0);
|
|
35
30
|
const distance = useRef(0);
|
|
36
|
-
const
|
|
37
|
-
const classes = classNames(className, b());
|
|
31
|
+
const classes = classNames(className, classPrefix);
|
|
38
32
|
useEffect(() => {
|
|
39
|
-
refreshMaxH.current =
|
|
33
|
+
refreshMaxH.current = threshold;
|
|
40
34
|
setTimeout(() => {
|
|
41
35
|
getScrollHeight();
|
|
42
36
|
}, 200);
|
|
@@ -54,7 +48,7 @@ const Infiniteloading = (props) => {
|
|
|
54
48
|
};
|
|
55
49
|
};
|
|
56
50
|
const getParentElement = (el) => {
|
|
57
|
-
return createSelectorQuery().select(
|
|
51
|
+
return createSelectorQuery().select(target ? `#${target} #${el}` : `#${el}`);
|
|
58
52
|
};
|
|
59
53
|
const infiniteDone = () => {
|
|
60
54
|
setIsInfiniting(false);
|
|
@@ -76,7 +70,7 @@ const Infiniteloading = (props) => {
|
|
|
76
70
|
direction.current = "up";
|
|
77
71
|
}
|
|
78
72
|
scrollTop.current = e.detail.scrollTop;
|
|
79
|
-
|
|
73
|
+
onScroll && onScroll(e.detail.scrollTop);
|
|
80
74
|
};
|
|
81
75
|
const lower = () => {
|
|
82
76
|
if (direction.current == "up" || !hasMore || isInfiniting) {
|
|
@@ -86,7 +80,7 @@ const Infiniteloading = (props) => {
|
|
|
86
80
|
onLoadMore && onLoadMore(infiniteDone);
|
|
87
81
|
};
|
|
88
82
|
const touchStart = (event) => {
|
|
89
|
-
if (scrollTop.current == 0 && !isTouching.current &&
|
|
83
|
+
if (scrollTop.current == 0 && !isTouching.current && pullRefresh) {
|
|
90
84
|
y.current = event.touches[0].pageY;
|
|
91
85
|
isTouching.current = true;
|
|
92
86
|
}
|
|
@@ -120,24 +114,14 @@ const Infiniteloading = (props) => {
|
|
|
120
114
|
React.createElement(
|
|
121
115
|
"div",
|
|
122
116
|
{ className: "nut-infinite-top", ref: refreshTop, style: getStyle() },
|
|
123
|
-
React.createElement(
|
|
124
|
-
"div",
|
|
125
|
-
{ className: "top-box" },
|
|
126
|
-
pullIcon && React.createElement(React.Fragment, null, pullIcon),
|
|
127
|
-
React.createElement("span", { className: "top-text" }, pullText || locale.infiniteloading.pullRefreshText)
|
|
128
|
-
)
|
|
117
|
+
React.createElement("div", { className: "top-box" }, pullingText || locale.infiniteloading.pullRefreshText)
|
|
129
118
|
),
|
|
130
119
|
React.createElement("div", { className: "nut-infinite-container" }, children),
|
|
131
|
-
React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? React.createElement(
|
|
132
|
-
"div",
|
|
133
|
-
{ className: "bottom-box" },
|
|
134
|
-
loadIcon && React.createElement(React.Fragment, null, loadIcon),
|
|
135
|
-
React.createElement("div", { className: "bottom-text" }, loadingText || locale.infiniteloading.loadText)
|
|
136
|
-
) : !hasMore && React.createElement("div", { className: "tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
|
|
120
|
+
React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? React.createElement("div", { className: "bottom-box" }, loadingText || locale.infiniteloading.loadText) : !hasMore && React.createElement("div", { className: "tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
|
|
137
121
|
);
|
|
138
122
|
};
|
|
139
|
-
|
|
140
|
-
|
|
123
|
+
InfiniteLoading.defaultProps = defaultProps;
|
|
124
|
+
InfiniteLoading.displayName = "NutInfiniteLoading";
|
|
141
125
|
export {
|
|
142
|
-
|
|
126
|
+
InfiniteLoading as I
|
|
143
127
|
};
|
|
@@ -2,7 +2,7 @@ import React, { forwardRef, useRef, useState, useImperativeHandle, useCallback }
|
|
|
2
2
|
import { View, Input as Input$1 } from "@tarojs/components";
|
|
3
3
|
import { MaskClose } from "@nutui/icons-react-taro";
|
|
4
4
|
import { getEnv, ENV_TYPE } from "@tarojs/taro";
|
|
5
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
5
|
+
import { u as useConfig } from "./configprovider.taro-372b1525.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
7
7
|
import { u as usePropsValue } from "./use-props-value-7ac1b1b5.js";
|
|
8
8
|
function trimExtraChar(value, char, regExp) {
|