@nutui/nutui-react 2.6.7 → 2.6.9
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 +23 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/Card.js +5 -5
- package/dist/esm/Drag/style/style.css +1 -1
- package/dist/esm/Drag.js +3 -2
- package/dist/esm/Form.js +1 -1
- package/dist/esm/InputNumber.js +4 -4
- package/dist/esm/Picker.js +1 -1
- package/dist/esm/SearchBar.js +1 -0
- package/dist/esm/cascader2.js +2 -2
- 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 +25 -15
- package/dist/nutui.react.umd.js +25 -15
- package/dist/packages/actionsheet/actionsheet.scss +0 -3
- package/dist/packages/drag/drag.scss +7 -3
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/button/button.taro.d.ts +1 -0
- package/dist/types/packages/searchbar/searchbar.d.ts +1 -1
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# v2.6.9
|
|
2
|
+
`2024-06-14`
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
* :sparkles: feat(form): footer 容器增加 className (#2345) @oasis-cloud
|
|
6
|
+
* :bug: fix: 解决Drag组件拖拽后会在原地留一个遮挡元素问题+解决weapp/taro-h5多个demo拖拽位置不正确问题 (#2330) @irisSong
|
|
7
|
+
* :bug: fix(searchbar): 修复 clear 时未触发 change 的问题 (#2262) @eiinu
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# v2.6.8
|
|
11
|
+
`2024-05-31`
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
* :sparkles: feat(button): 新增 button 原始类型属性 (#2195) @Jiankian
|
|
15
|
+
* :sparkles: feat(card): add card hide price and shop usage (#2292) @wick
|
|
16
|
+
* :bug: fix(cascader): onPathChange is not a function (#2308) @oasis-cloud
|
|
17
|
+
* :bug: fix: safearea for ac (#2293) @xiaoyatong
|
|
18
|
+
* :bug: fix(InputNumber): 扩大点击区域 (#2302) @xiaoyatong
|
|
19
|
+
* :bug: fix(picker): 函数调用之前检查 locale 是否已经定义 (#2259) @Alex-huxiyang
|
|
20
|
+
* 🏡 chore(demo): 更新组件引用方式 (#2304) @oasis-cloud
|
|
21
|
+
* 🏡 chore: fix typos (#2300) @Snoppy
|
|
22
|
+
|
|
23
|
+
|
|
1
24
|
# v2.6.7
|
|
2
25
|
`2024-05-28`
|
|
3
26
|
|
|
@@ -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{
|
|
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{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/Card.js
CHANGED
|
@@ -24,19 +24,19 @@ const Card = (props) => {
|
|
|
24
24
|
React__default.createElement(
|
|
25
25
|
"div",
|
|
26
26
|
{ className: `${classPrefix}-right-price` },
|
|
27
|
-
React__default.createElement(Price__default, { size: "normal", price }),
|
|
28
|
-
priceTag || React__default.createElement(Price__default, { size: "normal", className: `${classPrefix}-right-price-origin`, price: vipPrice })
|
|
27
|
+
price && React__default.createElement(Price__default, { size: "normal", price }),
|
|
28
|
+
priceTag || vipPrice && React__default.createElement(Price__default, { size: "normal", className: `${classPrefix}-right-price-origin`, price: vipPrice })
|
|
29
29
|
),
|
|
30
30
|
React__default.createElement("div", { className: `${classPrefix}-right-other` }, tag || React__default.createElement(
|
|
31
31
|
React__default.Fragment,
|
|
32
32
|
null,
|
|
33
|
-
React__default.createElement(Tag__default, { type: "danger" }, shopDescription),
|
|
34
|
-
React__default.createElement(Tag__default, { plain: true }, delivery)
|
|
33
|
+
shopDescription && React__default.createElement(Tag__default, { type: "danger" }, shopDescription),
|
|
34
|
+
delivery && React__default.createElement(Tag__default, { plain: true }, delivery)
|
|
35
35
|
)),
|
|
36
36
|
React__default.createElement(
|
|
37
37
|
"div",
|
|
38
38
|
{ className: `${classPrefix}-right-shop` },
|
|
39
|
-
React__default.createElement("div", { className: `${classPrefix}-right-shop-name` }, shopName),
|
|
39
|
+
shopName && React__default.createElement("div", { className: `${classPrefix}-right-shop-name` }, shopName),
|
|
40
40
|
extra
|
|
41
41
|
)
|
|
42
42
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-drag{position:fixed;
|
|
1
|
+
.nut-drag{position:fixed;z-index:9997!important;width:0;height:0;touch-action:none;-webkit-user-select:none;user-select:none;font-size:0}.nut-drag-inner{display:inline-flex;width:fit-content;height:fit-content}
|
package/dist/esm/Drag.js
CHANGED
|
@@ -22,7 +22,8 @@ const Drag = (props) => {
|
|
|
22
22
|
const getInfo = () => {
|
|
23
23
|
const el = myDrag.current;
|
|
24
24
|
if (el) {
|
|
25
|
-
const {
|
|
25
|
+
const { offsetTop, offsetLeft } = el;
|
|
26
|
+
const { offsetWidth, offsetHeight } = el.querySelector(`.${classPrefix}-inner`);
|
|
26
27
|
const { clientWidth, clientHeight } = document.documentElement;
|
|
27
28
|
const { top, left, bottom, right } = boundary;
|
|
28
29
|
setBoundaryState({
|
|
@@ -60,7 +61,7 @@ const Drag = (props) => {
|
|
|
60
61
|
return React__default.createElement(
|
|
61
62
|
"div",
|
|
62
63
|
Object.assign({ style, className: `${classPrefix} ${className}` }, reset, { ref: myDrag }),
|
|
63
|
-
React__default.createElement(animated.div, Object.assign({ style: currstyle }, bind()), children)
|
|
64
|
+
React__default.createElement(animated.div, Object.assign({ style: currstyle }, bind(), { className: `${classPrefix}-inner` }), children)
|
|
64
65
|
);
|
|
65
66
|
};
|
|
66
67
|
Drag.displayName = "NutDrag";
|
package/dist/esm/Form.js
CHANGED
|
@@ -48,7 +48,7 @@ const Form = React__default.forwardRef((props, ref) => {
|
|
|
48
48
|
Cell__default.Group,
|
|
49
49
|
{ divider },
|
|
50
50
|
React__default.createElement(Context.Provider, { value: formInstance }, children),
|
|
51
|
-
footer ? React__default.createElement(Cell__default,
|
|
51
|
+
footer ? React__default.createElement(Cell__default, { className: `${classPrefix}-footer` }, footer) : null
|
|
52
52
|
)
|
|
53
53
|
);
|
|
54
54
|
});
|
package/dist/esm/InputNumber.js
CHANGED
|
@@ -132,10 +132,10 @@ const InputNumber = (props) => {
|
|
|
132
132
|
Object.assign({ className: classes, style }, restProps),
|
|
133
133
|
React__default.createElement(
|
|
134
134
|
"div",
|
|
135
|
-
{ className: "nut-input-minus" },
|
|
135
|
+
{ className: "nut-input-minus", onClick: handleReduce },
|
|
136
136
|
React__default.createElement(Minus, { className: classNames("nut-inputnumber-icon icon-minus", {
|
|
137
137
|
[`${classPrefix}-icon-disabled`]: shadowValue === min || disabled
|
|
138
|
-
})
|
|
138
|
+
}) })
|
|
139
139
|
),
|
|
140
140
|
React__default.createElement(
|
|
141
141
|
React__default.Fragment,
|
|
@@ -144,10 +144,10 @@ const InputNumber = (props) => {
|
|
|
144
144
|
),
|
|
145
145
|
React__default.createElement(
|
|
146
146
|
"div",
|
|
147
|
-
{ className: "nut-input-add" },
|
|
147
|
+
{ className: "nut-input-add", onClick: handlePlus },
|
|
148
148
|
React__default.createElement(Plus, { className: classNames("nut-inputnumber-icon icon-plus", {
|
|
149
149
|
[`${classPrefix}-icon-disabled`]: shadowValue === max || disabled
|
|
150
|
-
})
|
|
150
|
+
}) })
|
|
151
151
|
)
|
|
152
152
|
);
|
|
153
153
|
};
|
package/dist/esm/Picker.js
CHANGED
|
@@ -385,7 +385,7 @@ const InternalPicker = (props, ref) => {
|
|
|
385
385
|
e.stopPropagation();
|
|
386
386
|
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
387
387
|
setInnerVisible(false);
|
|
388
|
-
} }, locale.cancel),
|
|
388
|
+
} }, locale === null || locale === void 0 ? void 0 : locale.cancel),
|
|
389
389
|
React__default.createElement("div", { className: `${classPrefix}-title` }, title || ""),
|
|
390
390
|
React__default.createElement("span", { className: `${classPrefix}-confirm-btn`, onClick: (e) => {
|
|
391
391
|
e.stopPropagation();
|
package/dist/esm/SearchBar.js
CHANGED
package/dist/esm/cascader2.js
CHANGED
|
@@ -293,7 +293,7 @@ const InternalCascader = (props, ref) => {
|
|
|
293
293
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
294
294
|
const optionParams = pathNodes.map((item) => item.value);
|
|
295
295
|
onChange(optionParams, pathNodes);
|
|
296
|
-
onPathChange(optionParams, pathNodes);
|
|
296
|
+
onPathChange === null || onPathChange === void 0 ? void 0 : onPathChange(optionParams, pathNodes);
|
|
297
297
|
setInnerValue(optionParams);
|
|
298
298
|
}
|
|
299
299
|
setOptionsData(state.panes);
|
|
@@ -315,7 +315,7 @@ const InternalCascader = (props, ref) => {
|
|
|
315
315
|
if (!type) {
|
|
316
316
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
317
317
|
const optionParams = pathNodes.map((item) => item === null || item === void 0 ? void 0 : item.value);
|
|
318
|
-
onPathChange(optionParams, pathNodes);
|
|
318
|
+
onPathChange === null || onPathChange === void 0 ? void 0 : onPathChange(optionParams, pathNodes);
|
|
319
319
|
}
|
|
320
320
|
return;
|
|
321
321
|
}
|
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 v2.6.
|
|
2
|
+
* @nutui/nutui-react v2.6.9 Fri Jun 14 2024 17:08:57 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -11902,7 +11902,7 @@ const InternalCascader = (props, ref) => {
|
|
|
11902
11902
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
11903
11903
|
const optionParams = pathNodes.map((item) => item.value);
|
|
11904
11904
|
onChange(optionParams, pathNodes);
|
|
11905
|
-
onPathChange(optionParams, pathNodes);
|
|
11905
|
+
onPathChange == null ? void 0 : onPathChange(optionParams, pathNodes);
|
|
11906
11906
|
setInnerValue(optionParams);
|
|
11907
11907
|
}
|
|
11908
11908
|
setOptionsData(state.panes);
|
|
@@ -11924,7 +11924,7 @@ const InternalCascader = (props, ref) => {
|
|
|
11924
11924
|
if (!type4) {
|
|
11925
11925
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
11926
11926
|
const optionParams = pathNodes.map((item) => item == null ? void 0 : item.value);
|
|
11927
|
-
onPathChange(optionParams, pathNodes);
|
|
11927
|
+
onPathChange == null ? void 0 : onPathChange(optionParams, pathNodes);
|
|
11928
11928
|
}
|
|
11929
11929
|
return;
|
|
11930
11930
|
}
|
|
@@ -14428,7 +14428,7 @@ const InternalPicker = (props, ref) => {
|
|
|
14428
14428
|
setInnerVisible(false);
|
|
14429
14429
|
}
|
|
14430
14430
|
},
|
|
14431
|
-
locale.cancel
|
|
14431
|
+
locale == null ? void 0 : locale.cancel
|
|
14432
14432
|
), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-title` }, title || ""), /* @__PURE__ */ React__default.createElement(
|
|
14433
14433
|
"span",
|
|
14434
14434
|
{
|
|
@@ -16115,7 +16115,7 @@ const Form = React__default.forwardRef(
|
|
|
16115
16115
|
resetFields();
|
|
16116
16116
|
}
|
|
16117
16117
|
},
|
|
16118
|
-
/* @__PURE__ */ React__default.createElement(Cell.Group, { divider }, /* @__PURE__ */ React__default.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React__default.createElement(Cell,
|
|
16118
|
+
/* @__PURE__ */ React__default.createElement(Cell.Group, { divider }, /* @__PURE__ */ React__default.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React__default.createElement(Cell, { className: `${classPrefix2}-footer` }, footer) : null)
|
|
16119
16119
|
);
|
|
16120
16120
|
}
|
|
16121
16121
|
);
|
|
@@ -16675,13 +16675,12 @@ const InputNumber = (props) => {
|
|
|
16675
16675
|
onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
|
|
16676
16676
|
}
|
|
16677
16677
|
};
|
|
16678
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React__default.createElement(
|
|
16678
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-minus", onClick: handleReduce }, /* @__PURE__ */ React__default.createElement(
|
|
16679
16679
|
e$6,
|
|
16680
16680
|
{
|
|
16681
16681
|
className: classNames("nut-inputnumber-icon icon-minus", {
|
|
16682
16682
|
[`${classPrefix$g}-icon-disabled`]: shadowValue === min || disabled
|
|
16683
|
-
})
|
|
16684
|
-
onClick: handleReduce
|
|
16683
|
+
})
|
|
16685
16684
|
}
|
|
16686
16685
|
)), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
16687
16686
|
"input",
|
|
@@ -16695,13 +16694,12 @@ const InputNumber = (props) => {
|
|
|
16695
16694
|
onBlur: handleBlur,
|
|
16696
16695
|
onFocus: handleFocus
|
|
16697
16696
|
}
|
|
16698
|
-
)), /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React__default.createElement(
|
|
16697
|
+
)), /* @__PURE__ */ React__default.createElement("div", { className: "nut-input-add", onClick: handlePlus }, /* @__PURE__ */ React__default.createElement(
|
|
16699
16698
|
e$2,
|
|
16700
16699
|
{
|
|
16701
16700
|
className: classNames("nut-inputnumber-icon icon-plus", {
|
|
16702
16701
|
[`${classPrefix$g}-icon-disabled`]: shadowValue === max || disabled
|
|
16703
|
-
})
|
|
16704
|
-
onClick: handlePlus
|
|
16702
|
+
})
|
|
16705
16703
|
}
|
|
16706
16704
|
)));
|
|
16707
16705
|
};
|
|
@@ -18116,6 +18114,7 @@ const SearchBar = (props) => {
|
|
|
18116
18114
|
return;
|
|
18117
18115
|
}
|
|
18118
18116
|
setValue("");
|
|
18117
|
+
onChange && (onChange == null ? void 0 : onChange(""));
|
|
18119
18118
|
onClear && onClear(event);
|
|
18120
18119
|
forceFocus();
|
|
18121
18120
|
};
|
|
@@ -19646,7 +19645,10 @@ const Drag = (props) => {
|
|
|
19646
19645
|
const getInfo = () => {
|
|
19647
19646
|
const el = myDrag.current;
|
|
19648
19647
|
if (el) {
|
|
19649
|
-
const {
|
|
19648
|
+
const { offsetTop, offsetLeft } = el;
|
|
19649
|
+
const { offsetWidth, offsetHeight } = el.querySelector(
|
|
19650
|
+
`.${classPrefix2}-inner`
|
|
19651
|
+
);
|
|
19650
19652
|
const { clientWidth, clientHeight } = document.documentElement;
|
|
19651
19653
|
const { top, left, bottom, right } = boundary;
|
|
19652
19654
|
setBoundaryState({
|
|
@@ -19692,7 +19694,15 @@ const Drag = (props) => {
|
|
|
19692
19694
|
...reset,
|
|
19693
19695
|
ref: myDrag
|
|
19694
19696
|
},
|
|
19695
|
-
/* @__PURE__ */ React__default.createElement(
|
|
19697
|
+
/* @__PURE__ */ React__default.createElement(
|
|
19698
|
+
animated.div,
|
|
19699
|
+
{
|
|
19700
|
+
style: currstyle,
|
|
19701
|
+
...bind(),
|
|
19702
|
+
className: `${classPrefix2}-inner`
|
|
19703
|
+
},
|
|
19704
|
+
children
|
|
19705
|
+
)
|
|
19696
19706
|
);
|
|
19697
19707
|
};
|
|
19698
19708
|
Drag.displayName = "NutDrag";
|
|
@@ -24643,14 +24653,14 @@ const Card = (props) => {
|
|
|
24643
24653
|
...props
|
|
24644
24654
|
};
|
|
24645
24655
|
const classPrefix2 = "nut-card";
|
|
24646
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style, ...rest }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-left` }, /* @__PURE__ */ React__default.createElement("img", { src, alt: "" })), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-title` }, title), description, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-price` }, /* @__PURE__ */ React__default.createElement(Price, { size: "normal", price }), priceTag || /* @__PURE__ */ React__default.createElement(
|
|
24656
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: classNames(classPrefix2, className), style, ...rest }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-left` }, /* @__PURE__ */ React__default.createElement("img", { src, alt: "" })), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-title` }, title), description, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-price` }, price && /* @__PURE__ */ React__default.createElement(Price, { size: "normal", price }), priceTag || vipPrice && /* @__PURE__ */ React__default.createElement(
|
|
24647
24657
|
Price,
|
|
24648
24658
|
{
|
|
24649
24659
|
size: "normal",
|
|
24650
24660
|
className: `${classPrefix2}-right-price-origin`,
|
|
24651
24661
|
price: vipPrice
|
|
24652
24662
|
}
|
|
24653
|
-
)), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Tag, { type: "danger" }, shopDescription), /* @__PURE__ */ React__default.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop` }, /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
|
|
24663
|
+
)), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, shopDescription && /* @__PURE__ */ React__default.createElement(Tag, { type: "danger" }, shopDescription), delivery && /* @__PURE__ */ React__default.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop` }, shopName && /* @__PURE__ */ React__default.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
|
|
24654
24664
|
};
|
|
24655
24665
|
Card.displayName = "NutCard";
|
|
24656
24666
|
const defaultProps$4 = {
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.ReactDOM));
|
|
3
3
|
})(this, function(exports2, React, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react v2.6.
|
|
5
|
+
* @nutui/nutui-react v2.6.9 Fri Jun 14 2024 17:08:57 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -11920,7 +11920,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11920
11920
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
11921
11921
|
const optionParams = pathNodes.map((item) => item.value);
|
|
11922
11922
|
onChange(optionParams, pathNodes);
|
|
11923
|
-
onPathChange(optionParams, pathNodes);
|
|
11923
|
+
onPathChange == null ? void 0 : onPathChange(optionParams, pathNodes);
|
|
11924
11924
|
setInnerValue(optionParams);
|
|
11925
11925
|
}
|
|
11926
11926
|
setOptionsData(state.panes);
|
|
@@ -11942,7 +11942,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11942
11942
|
if (!type2) {
|
|
11943
11943
|
const pathNodes = state.panes.map((item) => item.selectedNode);
|
|
11944
11944
|
const optionParams = pathNodes.map((item) => item == null ? void 0 : item.value);
|
|
11945
|
-
onPathChange(optionParams, pathNodes);
|
|
11945
|
+
onPathChange == null ? void 0 : onPathChange(optionParams, pathNodes);
|
|
11946
11946
|
}
|
|
11947
11947
|
return;
|
|
11948
11948
|
}
|
|
@@ -14446,7 +14446,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14446
14446
|
setInnerVisible(false);
|
|
14447
14447
|
}
|
|
14448
14448
|
},
|
|
14449
|
-
locale.cancel
|
|
14449
|
+
locale == null ? void 0 : locale.cancel
|
|
14450
14450
|
), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title` }, title || ""), /* @__PURE__ */ React.createElement(
|
|
14451
14451
|
"span",
|
|
14452
14452
|
{
|
|
@@ -16133,7 +16133,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16133
16133
|
resetFields();
|
|
16134
16134
|
}
|
|
16135
16135
|
},
|
|
16136
|
-
/* @__PURE__ */ React.createElement(Cell.Group, { divider }, /* @__PURE__ */ React.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React.createElement(Cell,
|
|
16136
|
+
/* @__PURE__ */ React.createElement(Cell.Group, { divider }, /* @__PURE__ */ React.createElement(Context.Provider, { value: formInstance }, children), footer ? /* @__PURE__ */ React.createElement(Cell, { className: `${classPrefix2}-footer` }, footer) : null)
|
|
16137
16137
|
);
|
|
16138
16138
|
}
|
|
16139
16139
|
);
|
|
@@ -16693,13 +16693,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16693
16693
|
onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
|
|
16694
16694
|
}
|
|
16695
16695
|
};
|
|
16696
|
-
return /* @__PURE__ */ React.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React.createElement(
|
|
16696
|
+
return /* @__PURE__ */ React.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus", onClick: handleReduce }, /* @__PURE__ */ React.createElement(
|
|
16697
16697
|
e$6,
|
|
16698
16698
|
{
|
|
16699
16699
|
className: classNames("nut-inputnumber-icon icon-minus", {
|
|
16700
16700
|
[`${classPrefix$g}-icon-disabled`]: shadowValue === min || disabled
|
|
16701
|
-
})
|
|
16702
|
-
onClick: handleReduce
|
|
16701
|
+
})
|
|
16703
16702
|
}
|
|
16704
16703
|
)), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
16705
16704
|
"input",
|
|
@@ -16713,13 +16712,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16713
16712
|
onBlur: handleBlur,
|
|
16714
16713
|
onFocus: handleFocus
|
|
16715
16714
|
}
|
|
16716
|
-
)), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(
|
|
16715
|
+
)), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add", onClick: handlePlus }, /* @__PURE__ */ React.createElement(
|
|
16717
16716
|
e$2,
|
|
16718
16717
|
{
|
|
16719
16718
|
className: classNames("nut-inputnumber-icon icon-plus", {
|
|
16720
16719
|
[`${classPrefix$g}-icon-disabled`]: shadowValue === max || disabled
|
|
16721
|
-
})
|
|
16722
|
-
onClick: handlePlus
|
|
16720
|
+
})
|
|
16723
16721
|
}
|
|
16724
16722
|
)));
|
|
16725
16723
|
};
|
|
@@ -18134,6 +18132,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18134
18132
|
return;
|
|
18135
18133
|
}
|
|
18136
18134
|
setValue("");
|
|
18135
|
+
onChange && (onChange == null ? void 0 : onChange(""));
|
|
18137
18136
|
onClear && onClear(event);
|
|
18138
18137
|
forceFocus();
|
|
18139
18138
|
};
|
|
@@ -19664,7 +19663,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19664
19663
|
const getInfo = () => {
|
|
19665
19664
|
const el = myDrag.current;
|
|
19666
19665
|
if (el) {
|
|
19667
|
-
const {
|
|
19666
|
+
const { offsetTop, offsetLeft } = el;
|
|
19667
|
+
const { offsetWidth, offsetHeight } = el.querySelector(
|
|
19668
|
+
`.${classPrefix2}-inner`
|
|
19669
|
+
);
|
|
19668
19670
|
const { clientWidth, clientHeight } = document.documentElement;
|
|
19669
19671
|
const { top, left, bottom, right } = boundary;
|
|
19670
19672
|
setBoundaryState({
|
|
@@ -19710,7 +19712,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19710
19712
|
...reset,
|
|
19711
19713
|
ref: myDrag
|
|
19712
19714
|
},
|
|
19713
|
-
/* @__PURE__ */ React.createElement(
|
|
19715
|
+
/* @__PURE__ */ React.createElement(
|
|
19716
|
+
animated.div,
|
|
19717
|
+
{
|
|
19718
|
+
style: currstyle,
|
|
19719
|
+
...bind(),
|
|
19720
|
+
className: `${classPrefix2}-inner`
|
|
19721
|
+
},
|
|
19722
|
+
children
|
|
19723
|
+
)
|
|
19714
19724
|
);
|
|
19715
19725
|
};
|
|
19716
19726
|
Drag.displayName = "NutDrag";
|
|
@@ -24661,14 +24671,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
24661
24671
|
...props
|
|
24662
24672
|
};
|
|
24663
24673
|
const classPrefix2 = "nut-card";
|
|
24664
|
-
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, /* @__PURE__ */ React.createElement("img", { src, alt: "" })), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-title` }, title), description, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-price` }, /* @__PURE__ */ React.createElement(Price, { size: "normal", price }), priceTag || /* @__PURE__ */ React.createElement(
|
|
24674
|
+
return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style, ...rest }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, /* @__PURE__ */ React.createElement("img", { src, alt: "" })), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-title` }, title), description, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-price` }, price && /* @__PURE__ */ React.createElement(Price, { size: "normal", price }), priceTag || vipPrice && /* @__PURE__ */ React.createElement(
|
|
24665
24675
|
Price,
|
|
24666
24676
|
{
|
|
24667
24677
|
size: "normal",
|
|
24668
24678
|
className: `${classPrefix2}-right-price-origin`,
|
|
24669
24679
|
price: vipPrice
|
|
24670
24680
|
}
|
|
24671
|
-
)), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Tag, { type: "danger" }, shopDescription), /* @__PURE__ */ React.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
|
|
24681
|
+
)), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-other` }, tag || /* @__PURE__ */ React.createElement(React.Fragment, null, shopDescription && /* @__PURE__ */ React.createElement(Tag, { type: "danger" }, shopDescription), delivery && /* @__PURE__ */ React.createElement(Tag, { plain: true }, delivery))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop` }, shopName && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-right-shop-name` }, shopName), extra)));
|
|
24672
24682
|
};
|
|
24673
24683
|
Card.displayName = "NutCard";
|
|
24674
24684
|
const defaultProps$4 = {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
.nut-drag {
|
|
2
2
|
position: fixed;
|
|
3
|
-
display: inline-flex;
|
|
4
3
|
z-index: 9997 !important;
|
|
5
|
-
width:
|
|
6
|
-
height:
|
|
4
|
+
width: 0;
|
|
5
|
+
height: 0;
|
|
7
6
|
touch-action: none;
|
|
8
7
|
user-select: none;
|
|
9
8
|
font-size: 0;
|
|
9
|
+
&-inner {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
width: fit-content;
|
|
12
|
+
height: fit-content;
|
|
13
|
+
}
|
|
10
14
|
}
|