@nutui/nutui-react-taro 2.6.6 → 2.6.7
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 +15 -6
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +1 -1
- package/dist/esm/Signature.js +1 -1
- package/dist/esm/{actionsheet.taro-CI2b9f_3.js → actionsheet.taro-Cla34tFO.js} +2 -1
- package/dist/esm/nutui-react.es.js +2 -2
- package/dist/esm/{signature.taro-DTZCZMDZ.js → signature.taro-Dq6JO2XJ.js} +8 -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/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 +13 -18
- package/dist/nutui.react.umd.js +13 -18
- package/dist/packages/actionsheet/actionsheet.scss +7 -1
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +0 -1
- package/dist/styles/variables.scss +0 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/signature/signature.d.ts +1 -1
- package/dist/types/packages/signature/signature.taro.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
|
+
# v2.6.7
|
|
2
|
+
`2024-05-28`
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
* :sparkles: feat: 签名组件增加当没有签名或已清空的情况下的参数暴露 (#2288) @xiaoyatong
|
|
6
|
+
* :bug: fix: ActionSheet 增加安全区处理 (#2286) @xiaoyatong
|
|
7
|
+
* :bug: fix(actionsheet): 去掉无意义的 padding,popup 已不再暴露 (#2285) @xiaoyatong
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
# v2.6.6
|
|
2
11
|
`2024-05-24`
|
|
3
12
|
|
|
4
13
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* 📖 docs(uploader): update (#2265) @
|
|
8
|
-
* :bug: fix(input): placeholder 无法设置空字符串 (#2282) @oasis
|
|
9
|
-
* :bug: fix(imagepreview): 阻止冒泡,防止点击图片关闭 (#2281) @Alex
|
|
10
|
-
* :bug: fix(FormItem): 修复initialValue属性初始化未被正确加入到Formstore中导致的问题 (#2247) @Alex
|
|
14
|
+
* 🏡 chore(tag): css样式变量修复 (#2279) @Alex-huxiyang
|
|
15
|
+
* 🏡 chore(deps): update dependency eslint-plugin-markdown to v5 (#2218) @renovate[bot]
|
|
16
|
+
* 📖 docs(uploader): update (#2265) @eiinu
|
|
17
|
+
* :bug: fix(input): placeholder 无法设置空字符串 (#2282) @oasis-cloud
|
|
18
|
+
* :bug: fix(imagepreview): 阻止冒泡,防止点击图片关闭 (#2281) @Alex-huxiyang
|
|
19
|
+
* :bug: fix(FormItem): 修复initialValue属性初始化未被正确加入到Formstore中导致的问题 (#2247) @Alex-huxiyang
|
|
11
20
|
|
|
12
21
|
|
|
13
22
|
# v2.6.5
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));z-index:var(--nutui-overlay-zIndex, 1000)}.nut-overlay .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-7, #1a1a1a))}[dir=rtl] .nut-overlay,.nut-rtl .nut-overlay{left:auto;right:0}.nut-overflow-hidden,.nut-overflow-hidden .taro_page{overflow:hidden!important}@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-overlay-slide-enter-active,.nut-overlay-slide-appear-active{animation-fill-mode:both;animation-name:nut-fade-in;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-overlay-slide-exit-active{animation-fill-mode:both;animation-name:nut-fade-out;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-popup{position:fixed;min-height:26%;max-height:100%;overflow-y:auto;background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-gray-7, #1a1a1a);-webkit-overflow-scrolling:touch;font-size:var(--nutui-font-size-3, 14px)}.nut-popup-title{display:flex;align-items:center;justify-content:center;border-bottom:var(--nutui-popup-title-border-bottom, 0);padding:var(--nutui-popup-title-padding, 16px);position:relative}.nut-popup-title-left{position:absolute;left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-title{font-weight:var(--nutui-font-weight-bold, 500);font-size:var(--nutui-popup-title-font-size, var(--nutui-font-size-5, 18px))}.nut-popup-title-description{color:var(--nutui-gray-5, #8c8c8c);font-size:var(--nutui-popup-description-font-size, var(--nutui-font-size-1, 10px));font-weight:var(--nutui-font-weight, 400)}.nut-popup-title-right{position:absolute!important;z-index:1;cursor:pointer;width:var(--nutui-popup-icon-size, var(--nutui-font-size-5, 18px));height:var(--nutui-popup-icon-size, var(--nutui-font-size-5, 18px));display:flex;justify-content:center;align-items:center;top:var(--nutui-popup-title-padding, 16px);right:var(--nutui-popup-title-padding, 16px);color:var(--nutui-gray-5, #8c8c8c)}.nut-popup-title-right:active{opacity:.7}.nut-popup-title-right-top-left{top:var(--nutui-popup-title-padding, 16px);left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-right-bottom-left{bottom:var(--nutui-popup-title-padding, 16px);left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-right-bottom-right{right:var(--nutui-popup-title-padding, 16px);bottom:var(--nutui-popup-title-padding, 16px)}.nut-popup-center{top:50%;left:50%;min-height:10%;transform:translate(-50%,-50%)}.nut-popup-center.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px)}.nut-popup-bottom,.nut-popup-top{max-height:83%}.nut-popup-bottom{bottom:0;left:0;width:100%}.nut-popup-bottom.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px) 0 0}.nut-popup-right{top:0;right:0}.nut-popup-right.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px) 0 0 var(--nutui-popup-border-radius, 24px)}.nut-popup-left{top:0;left:0}.nut-popup-left.nut-popup-round{border-radius:0 var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px) 0}.nut-popup-top{top:0;left:0;width:100%}.nut-popup-top.nut-popup-round{border-radius:0 0 var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px)}@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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-default-exit-active{animation-fill-mode:both;animation-name:popup-scale-fade-out;animation-duration:var(--nutui-popup-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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-center-exit-active{animation-fill-mode:both;animation-name:popup-fade-out;animation-duration:var(--nutui-popup-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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-top-exit-active{animation-fill-mode:both;animation-name:popup-slide-top-exit;animation-duration:var(--nutui-popup-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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-right-exit{animation-fill-mode:both;animation-name:popup-slide-right-exit;animation-duration:var(--nutui-popup-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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-bottom-exit{animation-fill-mode:both;animation-name:slide-bottom-exit;animation-duration:var(--nutui-popup-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:var(--nutui-popup-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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-default-exit-done.nut-popup,.nut-popup-slide-center-exit-done.nut-popup,.nut-popup-slide-left-exit-done.nut-popup,.nut-popup-slide-right-exit-done.nut-popup,.nut-popup-slide-top-exit-done.nut-popup,.nut-popup-slide-bottom-exit-done.nut-popup{display:none}.nut-popup .nut-overflow-hidden{overflow:hidden!important}[dir=rtl] .nut-popup-title-left,.nut-rtl .nut-popup-title-left{left:auto;right:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right,.nut-rtl .nut-popup-title-right{right:auto;left:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right-top-left,.nut-rtl .nut-popup-title-right-top-left,[dir=rtl] .nut-popup-title-right-bottom-left,.nut-rtl .nut-popup-title-right-bottom-left{left:auto;right:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right-bottom-right,.nut-rtl .nut-popup-title-right-bottom-right{right:auto;left:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title .nut-icon-ArrowLeft,.nut-rtl .nut-popup-title .nut-icon-ArrowLeft{transform:rotate(180deg)}[dir=rtl] .nut-popup-center,.nut-rtl .nut-popup-center{left:auto;right:50%;transform:translate(50%,-50%)}[dir=rtl] .nut-popup-bottom,.nut-rtl .nut-popup-bottom,[dir=rtl] .nut-popup-top,.nut-rtl .nut-popup-top{left:auto;right:0}.nut-actionsheet{display:block;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);text-align:center}.nut-actionsheet.nut-popup{min-height:10%;background-color:var(--nutui-actionsheet-background-color, var(--nutui-gray-1, #ffffff))
|
|
1
|
+
.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));z-index:var(--nutui-overlay-zIndex, 1000)}.nut-overlay .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-7, #1a1a1a))}[dir=rtl] .nut-overlay,.nut-rtl .nut-overlay{left:auto;right:0}.nut-overflow-hidden,.nut-overflow-hidden .taro_page{overflow:hidden!important}@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-overlay-slide-enter-active,.nut-overlay-slide-appear-active{animation-fill-mode:both;animation-name:nut-fade-in;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-overlay-slide-exit-active{animation-fill-mode:both;animation-name:nut-fade-out;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-popup{position:fixed;min-height:26%;max-height:100%;overflow-y:auto;background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-gray-7, #1a1a1a);-webkit-overflow-scrolling:touch;font-size:var(--nutui-font-size-3, 14px)}.nut-popup-title{display:flex;align-items:center;justify-content:center;border-bottom:var(--nutui-popup-title-border-bottom, 0);padding:var(--nutui-popup-title-padding, 16px);position:relative}.nut-popup-title-left{position:absolute;left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-title{font-weight:var(--nutui-font-weight-bold, 500);font-size:var(--nutui-popup-title-font-size, var(--nutui-font-size-5, 18px))}.nut-popup-title-description{color:var(--nutui-gray-5, #8c8c8c);font-size:var(--nutui-popup-description-font-size, var(--nutui-font-size-1, 10px));font-weight:var(--nutui-font-weight, 400)}.nut-popup-title-right{position:absolute!important;z-index:1;cursor:pointer;width:var(--nutui-popup-icon-size, var(--nutui-font-size-5, 18px));height:var(--nutui-popup-icon-size, var(--nutui-font-size-5, 18px));display:flex;justify-content:center;align-items:center;top:var(--nutui-popup-title-padding, 16px);right:var(--nutui-popup-title-padding, 16px);color:var(--nutui-gray-5, #8c8c8c)}.nut-popup-title-right:active{opacity:.7}.nut-popup-title-right-top-left{top:var(--nutui-popup-title-padding, 16px);left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-right-bottom-left{bottom:var(--nutui-popup-title-padding, 16px);left:var(--nutui-popup-title-padding, 16px)}.nut-popup-title-right-bottom-right{right:var(--nutui-popup-title-padding, 16px);bottom:var(--nutui-popup-title-padding, 16px)}.nut-popup-center{top:50%;left:50%;min-height:10%;transform:translate(-50%,-50%)}.nut-popup-center.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px)}.nut-popup-bottom,.nut-popup-top{max-height:83%}.nut-popup-bottom{bottom:0;left:0;width:100%}.nut-popup-bottom.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px) 0 0}.nut-popup-right{top:0;right:0}.nut-popup-right.nut-popup-round{border-radius:var(--nutui-popup-border-radius, 24px) 0 0 var(--nutui-popup-border-radius, 24px)}.nut-popup-left{top:0;left:0}.nut-popup-left.nut-popup-round{border-radius:0 var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px) 0}.nut-popup-top{top:0;left:0;width:100%}.nut-popup-top.nut-popup-round{border-radius:0 0 var(--nutui-popup-border-radius, 24px) var(--nutui-popup-border-radius, 24px)}@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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-default-exit-active{animation-fill-mode:both;animation-name:popup-scale-fade-out;animation-duration:var(--nutui-popup-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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-center-exit-active{animation-fill-mode:both;animation-name:popup-fade-out;animation-duration:var(--nutui-popup-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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-top-exit-active{animation-fill-mode:both;animation-name:popup-slide-top-exit;animation-duration:var(--nutui-popup-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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-right-exit{animation-fill-mode:both;animation-name:popup-slide-right-exit;animation-duration:var(--nutui-popup-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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-bottom-exit{animation-fill-mode:both;animation-name:slide-bottom-exit;animation-duration:var(--nutui-popup-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:var(--nutui-popup-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:var(--nutui-popup-animation-duration, .3s)}.nut-popup-slide-default-exit-done.nut-popup,.nut-popup-slide-center-exit-done.nut-popup,.nut-popup-slide-left-exit-done.nut-popup,.nut-popup-slide-right-exit-done.nut-popup,.nut-popup-slide-top-exit-done.nut-popup,.nut-popup-slide-bottom-exit-done.nut-popup{display:none}.nut-popup .nut-overflow-hidden{overflow:hidden!important}[dir=rtl] .nut-popup-title-left,.nut-rtl .nut-popup-title-left{left:auto;right:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right,.nut-rtl .nut-popup-title-right{right:auto;left:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right-top-left,.nut-rtl .nut-popup-title-right-top-left,[dir=rtl] .nut-popup-title-right-bottom-left,.nut-rtl .nut-popup-title-right-bottom-left{left:auto;right:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title-right-bottom-right,.nut-rtl .nut-popup-title-right-bottom-right{right:auto;left:var(--nutui-popup-title-padding, 16px)}[dir=rtl] .nut-popup-title .nut-icon-ArrowLeft,.nut-rtl .nut-popup-title .nut-icon-ArrowLeft{transform:rotate(180deg)}[dir=rtl] .nut-popup-center,.nut-rtl .nut-popup-center{left:auto;right:50%;transform:translate(50%,-50%)}[dir=rtl] .nut-popup-bottom,.nut-rtl .nut-popup-bottom,[dir=rtl] .nut-popup-top,.nut-rtl .nut-popup-top{left:auto;right:0}.nut-actionsheet{display:block;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);text-align:center}.nut-actionsheet.nut-popup{min-height:10%;background-color:var(--nutui-actionsheet-background-color, var(--nutui-gray-1, #ffffff))}.nut-actionsheet .nut-popup-title{border-bottom:1px solid var(--nutui-actionsheet-border-color, var(--nutui-black-3, rgba(0, 0, 0, .06)))}.nut-actionsheet-list{display:block;list-style:none;padding:0;margin:0;border-radius:var(--nutui-actionsheet-border-radius, 0)}.nut-actionsheet-cancel,.nut-actionsheet-item{display:block;padding:10px;text-align:var(--nutui-actionsheet-item-text-align, center);line-height:var(--nutui-actionsheet-item-line-height, 24px);font-size:var(--nutui-font-size-3, 14px);color:var(--nutui-actionsheet-item-color, var(--nutui-gray-7, #1a1a1a));background-color:var(--nutui-gray-1, #ffffff);cursor:pointer}.nut-actionsheet-cancel-description,.nut-actionsheet-item-description{display:block;font-size:var(--nutui-font-size-2, 12px);color:var(--nutui-gray-6, #595959)}.nut-actionsheet-cancel.danger,.nut-actionsheet-item.danger{color:var(--nutui-actionsheet-item-danger, var(--nutui-color-danger, #fa2c19))}.nut-actionsheet-cancel.disabled,.nut-actionsheet-item.disabled{color:var(--nutui-color-text-disabled, #bfbfbf)!important;cursor:not-allowed}.nut-actionsheet-cancel{margin-top:5px;border-top:1px solid var(--nutui-actionsheet-border-color, var(--nutui-black-3, rgba(0, 0, 0, .06)));border-radius:var(--nutui-actionsheet-border-radius, 0)}.nut-actionsheet-safe-area{display:block;width:100%;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}
|
package/dist/esm/ActionSheet.js
CHANGED
package/dist/esm/Signature.js
CHANGED
|
@@ -33,7 +33,8 @@ const ActionSheet = (props) => {
|
|
|
33
33
|
);
|
|
34
34
|
})) : children,
|
|
35
35
|
cancelText && React__default.createElement("div", { className: `${classPrefix}-cancel`, onClick: () => cancelActionSheet() }, cancelText)
|
|
36
|
-
)
|
|
36
|
+
),
|
|
37
|
+
React__default.createElement("div", { className: `${classPrefix}-safe-area` })
|
|
37
38
|
);
|
|
38
39
|
};
|
|
39
40
|
ActionSheet.displayName = "NutActionSheet";
|
|
@@ -44,11 +44,11 @@ import { R as R3 } from "./range.taro-BeVCaZ4r.js";
|
|
|
44
44
|
import { R as R4 } from "./rate.taro-lOoACxLq.js";
|
|
45
45
|
import { S as S7 } from "./searchbar.taro-B31m8apz.js";
|
|
46
46
|
import { S as S8 } from "./shortpassword.taro-BVp4BrTs.js";
|
|
47
|
-
import { S as S9 } from "./signature.taro-
|
|
47
|
+
import { S as S9 } from "./signature.taro-Dq6JO2XJ.js";
|
|
48
48
|
import { S as S10 } from "./switch.taro-Mq1wBEGz.js";
|
|
49
49
|
import { T as T5 } from "./textarea.taro-DLS0EQeJ.js";
|
|
50
50
|
import { U } from "./uploader.taro-BE4c5x9T.js";
|
|
51
|
-
import { A as A2 } from "./actionsheet.taro-
|
|
51
|
+
import { A as A2 } from "./actionsheet.taro-Cla34tFO.js";
|
|
52
52
|
import { B as B3 } from "./badge.taro-DK_UFQ5Y.js";
|
|
53
53
|
import { B as B4 } from "./dialog.taro-Du4bNKvD.js";
|
|
54
54
|
import { D as D3 } from "./drag.taro-D6xGnWqk.js";
|
|
@@ -12,7 +12,9 @@ const InternalSignature = (props, ref) => {
|
|
|
12
12
|
const [canvasWidth, setCanvasWidth] = useState(0);
|
|
13
13
|
const ctx = useRef(null);
|
|
14
14
|
const [disalbeScroll] = useState("true");
|
|
15
|
+
const isSignedRef = useRef(false);
|
|
15
16
|
const startEventHandler = (event) => {
|
|
17
|
+
isSignedRef.current = true;
|
|
16
18
|
if (ctx.current) {
|
|
17
19
|
ctx.current.beginPath();
|
|
18
20
|
ctx.current.lineWidth = lineWidth;
|
|
@@ -39,6 +41,7 @@ const InternalSignature = (props, ref) => {
|
|
|
39
41
|
const endEventHandler = (event) => {
|
|
40
42
|
};
|
|
41
43
|
const handleClearBtn = () => {
|
|
44
|
+
isSignedRef.current = false;
|
|
42
45
|
if (ctx.current) {
|
|
43
46
|
ctx.current.clearRect(0, 0, canvasWidth, canvasHeight);
|
|
44
47
|
ctx.current.closePath();
|
|
@@ -46,6 +49,10 @@ const InternalSignature = (props, ref) => {
|
|
|
46
49
|
onClear && onClear();
|
|
47
50
|
};
|
|
48
51
|
const onSave = () => {
|
|
52
|
+
if (!isSignedRef.current) {
|
|
53
|
+
onConfirm && onConfirm("", isSignedRef.current);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
49
56
|
createSelectorQuery().select(`#${canvasId}`).fields({
|
|
50
57
|
node: true,
|
|
51
58
|
size: true
|
|
@@ -55,7 +62,7 @@ const InternalSignature = (props, ref) => {
|
|
|
55
62
|
fileType: type,
|
|
56
63
|
canvasId: `${canvasId}`,
|
|
57
64
|
success: (res2) => {
|
|
58
|
-
onConfirm && onConfirm(res2.tempFilePath);
|
|
65
|
+
onConfirm && onConfirm(res2.tempFilePath, isSignedRef.current);
|
|
59
66
|
},
|
|
60
67
|
fail: (res2) => {
|
|
61
68
|
console.warn("保存失败");
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v2.6.
|
|
2
|
+
* @nutui/nutui-react-taro v2.6.7 Tue May 28 2024 17:29:55 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3421,19 +3421,6 @@ function getScrollParent(el, root2 = defaultRoot) {
|
|
|
3421
3421
|
}
|
|
3422
3422
|
return root2;
|
|
3423
3423
|
}
|
|
3424
|
-
let passiveSupported = false;
|
|
3425
|
-
if (canUseDom) {
|
|
3426
|
-
try {
|
|
3427
|
-
const opts = Object.defineProperty({}, "passive", {
|
|
3428
|
-
get() {
|
|
3429
|
-
passiveSupported = true;
|
|
3430
|
-
}
|
|
3431
|
-
});
|
|
3432
|
-
window.addEventListener("test-passive-supported", null, opts);
|
|
3433
|
-
} catch (e2) {
|
|
3434
|
-
console.log(e2);
|
|
3435
|
-
}
|
|
3436
|
-
}
|
|
3437
3424
|
let totalLockCount = 0;
|
|
3438
3425
|
const BODY_LOCK_CLASS = "nut-overflow-hidden";
|
|
3439
3426
|
function getScrollableElement(el) {
|
|
@@ -3482,7 +3469,7 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
3482
3469
|
document.addEventListener(
|
|
3483
3470
|
"touchmove",
|
|
3484
3471
|
onTouchMove,
|
|
3485
|
-
|
|
3472
|
+
false
|
|
3486
3473
|
);
|
|
3487
3474
|
if (!totalLockCount) {
|
|
3488
3475
|
document.body.classList.add(BODY_LOCK_CLASS);
|
|
@@ -8040,7 +8027,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
8040
8027
|
moving: moving.current
|
|
8041
8028
|
}));
|
|
8042
8029
|
useEffect(() => {
|
|
8043
|
-
const eventOptions =
|
|
8030
|
+
const eventOptions = false;
|
|
8044
8031
|
const element = pickerPanelRef.current;
|
|
8045
8032
|
element.addEventListener("touchstart", touchStart, eventOptions);
|
|
8046
8033
|
element.addEventListener("touchmove", touchMove, eventOptions);
|
|
@@ -12200,7 +12187,9 @@ const InternalSignature = (props, ref) => {
|
|
|
12200
12187
|
const [canvasWidth, setCanvasWidth] = useState(0);
|
|
12201
12188
|
const ctx = useRef(null);
|
|
12202
12189
|
const [disalbeScroll] = useState("true");
|
|
12190
|
+
const isSignedRef = useRef(false);
|
|
12203
12191
|
const startEventHandler = (event) => {
|
|
12192
|
+
isSignedRef.current = true;
|
|
12204
12193
|
if (ctx.current) {
|
|
12205
12194
|
ctx.current.beginPath();
|
|
12206
12195
|
ctx.current.lineWidth = lineWidth;
|
|
@@ -12227,6 +12216,7 @@ const InternalSignature = (props, ref) => {
|
|
|
12227
12216
|
const endEventHandler = (event) => {
|
|
12228
12217
|
};
|
|
12229
12218
|
const handleClearBtn = () => {
|
|
12219
|
+
isSignedRef.current = false;
|
|
12230
12220
|
if (ctx.current) {
|
|
12231
12221
|
ctx.current.clearRect(0, 0, canvasWidth, canvasHeight);
|
|
12232
12222
|
ctx.current.closePath();
|
|
@@ -12234,6 +12224,10 @@ const InternalSignature = (props, ref) => {
|
|
|
12234
12224
|
onClear && onClear();
|
|
12235
12225
|
};
|
|
12236
12226
|
const onSave = () => {
|
|
12227
|
+
if (!isSignedRef.current) {
|
|
12228
|
+
onConfirm && onConfirm("", isSignedRef.current);
|
|
12229
|
+
return;
|
|
12230
|
+
}
|
|
12237
12231
|
createSelectorQuery().select(`#${canvasId}`).fields({
|
|
12238
12232
|
node: true,
|
|
12239
12233
|
size: true
|
|
@@ -12243,7 +12237,7 @@ const InternalSignature = (props, ref) => {
|
|
|
12243
12237
|
fileType: type4,
|
|
12244
12238
|
canvasId: `${canvasId}`,
|
|
12245
12239
|
success: (res2) => {
|
|
12246
|
-
onConfirm && onConfirm(res2.tempFilePath);
|
|
12240
|
+
onConfirm && onConfirm(res2.tempFilePath, isSignedRef.current);
|
|
12247
12241
|
},
|
|
12248
12242
|
fail: (res2) => {
|
|
12249
12243
|
console.warn("保存失败");
|
|
@@ -13302,7 +13296,8 @@ const ActionSheet = (props) => {
|
|
|
13302
13296
|
onClick: () => cancelActionSheet()
|
|
13303
13297
|
},
|
|
13304
13298
|
cancelText
|
|
13305
|
-
))
|
|
13299
|
+
)),
|
|
13300
|
+
/* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-safe-area` })
|
|
13306
13301
|
);
|
|
13307
13302
|
};
|
|
13308
13303
|
ActionSheet.displayName = "NutActionSheet";
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, Taro, components, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react-taro v2.6.
|
|
5
|
+
* @nutui/nutui-react-taro v2.6.7 Tue May 28 2024 17:29:55 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -3437,19 +3437,6 @@
|
|
|
3437
3437
|
}
|
|
3438
3438
|
return root2;
|
|
3439
3439
|
}
|
|
3440
|
-
let passiveSupported = false;
|
|
3441
|
-
if (canUseDom) {
|
|
3442
|
-
try {
|
|
3443
|
-
const opts = Object.defineProperty({}, "passive", {
|
|
3444
|
-
get() {
|
|
3445
|
-
passiveSupported = true;
|
|
3446
|
-
}
|
|
3447
|
-
});
|
|
3448
|
-
window.addEventListener("test-passive-supported", null, opts);
|
|
3449
|
-
} catch (e2) {
|
|
3450
|
-
console.log(e2);
|
|
3451
|
-
}
|
|
3452
|
-
}
|
|
3453
3440
|
let totalLockCount = 0;
|
|
3454
3441
|
const BODY_LOCK_CLASS = "nut-overflow-hidden";
|
|
3455
3442
|
function getScrollableElement(el) {
|
|
@@ -3498,7 +3485,7 @@
|
|
|
3498
3485
|
document.addEventListener(
|
|
3499
3486
|
"touchmove",
|
|
3500
3487
|
onTouchMove,
|
|
3501
|
-
|
|
3488
|
+
false
|
|
3502
3489
|
);
|
|
3503
3490
|
if (!totalLockCount) {
|
|
3504
3491
|
document.body.classList.add(BODY_LOCK_CLASS);
|
|
@@ -8056,7 +8043,7 @@
|
|
|
8056
8043
|
moving: moving.current
|
|
8057
8044
|
}));
|
|
8058
8045
|
React.useEffect(() => {
|
|
8059
|
-
const eventOptions =
|
|
8046
|
+
const eventOptions = false;
|
|
8060
8047
|
const element = pickerPanelRef.current;
|
|
8061
8048
|
element.addEventListener("touchstart", touchStart, eventOptions);
|
|
8062
8049
|
element.addEventListener("touchmove", touchMove, eventOptions);
|
|
@@ -12216,7 +12203,9 @@
|
|
|
12216
12203
|
const [canvasWidth, setCanvasWidth] = React.useState(0);
|
|
12217
12204
|
const ctx = React.useRef(null);
|
|
12218
12205
|
const [disalbeScroll] = React.useState("true");
|
|
12206
|
+
const isSignedRef = React.useRef(false);
|
|
12219
12207
|
const startEventHandler = (event) => {
|
|
12208
|
+
isSignedRef.current = true;
|
|
12220
12209
|
if (ctx.current) {
|
|
12221
12210
|
ctx.current.beginPath();
|
|
12222
12211
|
ctx.current.lineWidth = lineWidth;
|
|
@@ -12243,6 +12232,7 @@
|
|
|
12243
12232
|
const endEventHandler = (event) => {
|
|
12244
12233
|
};
|
|
12245
12234
|
const handleClearBtn = () => {
|
|
12235
|
+
isSignedRef.current = false;
|
|
12246
12236
|
if (ctx.current) {
|
|
12247
12237
|
ctx.current.clearRect(0, 0, canvasWidth, canvasHeight);
|
|
12248
12238
|
ctx.current.closePath();
|
|
@@ -12250,6 +12240,10 @@
|
|
|
12250
12240
|
onClear && onClear();
|
|
12251
12241
|
};
|
|
12252
12242
|
const onSave = () => {
|
|
12243
|
+
if (!isSignedRef.current) {
|
|
12244
|
+
onConfirm && onConfirm("", isSignedRef.current);
|
|
12245
|
+
return;
|
|
12246
|
+
}
|
|
12253
12247
|
Taro.createSelectorQuery().select(`#${canvasId}`).fields({
|
|
12254
12248
|
node: true,
|
|
12255
12249
|
size: true
|
|
@@ -12259,7 +12253,7 @@
|
|
|
12259
12253
|
fileType: type2,
|
|
12260
12254
|
canvasId: `${canvasId}`,
|
|
12261
12255
|
success: (res2) => {
|
|
12262
|
-
onConfirm && onConfirm(res2.tempFilePath);
|
|
12256
|
+
onConfirm && onConfirm(res2.tempFilePath, isSignedRef.current);
|
|
12263
12257
|
},
|
|
12264
12258
|
fail: (res2) => {
|
|
12265
12259
|
console.warn("保存失败");
|
|
@@ -13318,7 +13312,8 @@
|
|
|
13318
13312
|
onClick: () => cancelActionSheet()
|
|
13319
13313
|
},
|
|
13320
13314
|
cancelText
|
|
13321
|
-
))
|
|
13315
|
+
)),
|
|
13316
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-safe-area` })
|
|
13322
13317
|
);
|
|
13323
13318
|
};
|
|
13324
13319
|
ActionSheet.displayName = "NutActionSheet";
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
&.nut-popup {
|
|
9
9
|
min-height: 10%;
|
|
10
10
|
background-color: $actionsheet-background-color;
|
|
11
|
-
padding: $actionsheet-padding;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
.nut-popup-title {
|
|
@@ -55,4 +54,11 @@
|
|
|
55
54
|
border-top: 1px solid $actionsheet-border-color;
|
|
56
55
|
border-radius: $actionsheet-border-radius;
|
|
57
56
|
}
|
|
57
|
+
|
|
58
|
+
&-safe-area {
|
|
59
|
+
display: block;
|
|
60
|
+
width: 100%;
|
|
61
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
62
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
63
|
+
}
|
|
58
64
|
}
|