@nutui/nutui-react 2.1.0-beta.1 → 2.1.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -20
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/ActionSheet.js +6 -7
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Address.js +4 -4
- package/dist/esm/AnimatingNumbers/style/style.css +1 -1
- package/dist/esm/AnimatingNumbers.js +5 -5
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/Audio.js +5 -5
- package/dist/esm/Avatar/style/style.css +1 -1
- package/dist/esm/Avatar.js +4 -4
- package/dist/esm/AvatarCropper/style/style.css +1 -1
- package/dist/esm/BackTop/style/style.css +1 -1
- package/dist/esm/Badge/style/style.css +1 -1
- package/dist/esm/Barrage/style/style.css +1 -1
- package/dist/esm/Button/style/style.css +1 -1
- package/dist/esm/Button.js +5 -84
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/CalendarCard/style/style.css +1 -1
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Card.js +3 -3
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Cell/style/style.css +1 -1
- package/dist/esm/Cell.js +5 -5
- package/dist/esm/CellGroup/style/style.css +1 -1
- package/dist/esm/CellGroup.js +3 -3
- package/dist/esm/Checkbox/style/style.css +1 -1
- package/dist/esm/CheckboxGroup/style/style.css +1 -1
- package/dist/esm/CheckboxGroup.js +1 -1
- package/dist/esm/CircleProgress/style/style.css +1 -1
- package/dist/esm/CircleProgress.js +2 -2
- package/dist/esm/Col/style/style.css +1 -1
- package/dist/esm/Collapse/style/style.css +1 -1
- package/dist/esm/CollapseItem/style/style.css +1 -1
- package/dist/esm/CountDown/style/style.css +1 -1
- package/dist/esm/CountDown.js +1 -1
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/Dialog.js +9 -12
- package/dist/esm/Divider/style/style.css +1 -1
- package/dist/esm/Divider.js +1 -1
- package/dist/esm/Elevator/style/style.css +1 -1
- package/dist/esm/Elevator.js +12 -12
- package/dist/esm/Ellipsis/style/style.css +1 -1
- package/dist/esm/Empty/style/style.css +1 -1
- package/dist/esm/Empty.js +31 -10
- package/dist/esm/FixedNav/style/style.css +1 -1
- package/dist/esm/FixedNav.js +6 -6
- package/dist/esm/Form/style/style.css +1 -1
- package/dist/esm/FormItem/style/style.css +1 -1
- package/dist/esm/Grid/style/style.css +1 -1
- package/dist/esm/Grid.js +1 -1
- package/dist/esm/GridItem/style/style.css +1 -1
- package/dist/esm/Image/style/style.css +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/Indicator/style/style.css +1 -1
- package/dist/esm/InfiniteLoading/style/style.css +1 -1
- package/dist/esm/InfiniteLoading.js +57 -4
- package/dist/esm/Input/style/style.css +1 -1
- package/dist/esm/InputNumber/style/style.css +1 -1
- package/dist/esm/InputNumber.js +5 -5
- package/dist/esm/Loading/style/style.css +1 -1
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/Menu.js +7 -14
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/NavBar/style/style.css +1 -1
- package/dist/esm/NavBar.js +10 -9
- package/dist/esm/NoticeBar/style/style.css +1 -1
- package/dist/esm/NoticeBar.js +4 -4
- package/dist/esm/Notify/style/style.css +1 -1
- package/dist/esm/Notify.js +1 -1
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/NumberKeyboard.js +14 -14
- package/dist/esm/Overlay/style/style.css +1 -1
- package/dist/esm/Pagination/style/style.css +1 -1
- package/dist/esm/Pagination.js +14 -8
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +5 -5
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popover.js +13 -6
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/Price/style/style.css +1 -1
- package/dist/esm/Price.js +5 -5
- package/dist/esm/Progress/style/style.css +1 -1
- package/dist/esm/Progress.js +1 -1
- package/dist/esm/PullToRefresh/style/style.css +1 -1
- package/dist/esm/PullToRefresh.js +37 -2
- package/dist/esm/Radio/style/style.css +1 -1
- package/dist/esm/RadioGroup/style/style.css +1 -1
- package/dist/esm/RadioGroup.js +1 -1
- package/dist/esm/Range/style/style.css +1 -1
- package/dist/esm/Rate/style/style.css +1 -1
- package/dist/esm/Rate.js +5 -5
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +20 -20
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/ShortPassword.js +13 -13
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/SideNavBar.js +4 -4
- package/dist/esm/SideNavBarItem/style/style.css +1 -1
- package/dist/esm/SideNavBarItem.js +1 -1
- package/dist/esm/Signature/style/style.css +1 -1
- package/dist/esm/Signature.js +3 -3
- package/dist/esm/Skeleton/style/style.css +1 -1
- package/dist/esm/Skeleton.js +7 -7
- package/dist/esm/Step/style/style.css +1 -1
- package/dist/esm/Steps/style/style.css +1 -1
- package/dist/esm/Sticky/style/style.css +1 -1
- package/dist/esm/Sticky.js +1 -1
- package/dist/esm/SubSideNavBar/style/style.css +1 -1
- package/dist/esm/SubSideNavBar.js +6 -6
- package/dist/esm/Swipe/style/style.css +1 -1
- package/dist/esm/Swipe.js +2 -2
- package/dist/esm/Swiper/style/style.css +1 -1
- package/dist/esm/Swiper.js +3 -3
- package/dist/esm/Switch/style/style.css +1 -1
- package/dist/esm/Switch.js +3 -3
- package/dist/esm/TabPane/style/style.css +1 -1
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/Tabbar.js +3 -3
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Table.js +11 -11
- package/dist/esm/Tabs/style/style.css +1 -1
- package/dist/esm/Tag/style/style.css +1 -1
- package/dist/esm/Tag.js +3 -3
- package/dist/esm/TextArea/style/style.css +1 -1
- package/dist/esm/TextArea.js +3 -3
- package/dist/esm/TimeDetail/style/style.css +1 -1
- package/dist/esm/TimeDetail.js +1 -1
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/TimeSelect.js +3 -4
- package/dist/esm/Toast/style/style.css +1 -1
- package/dist/esm/Toast.js +3 -3
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/TrendArrow/style/style.css +1 -1
- package/dist/esm/TrendArrow.js +4 -4
- package/dist/esm/Uploader/style/style.css +1 -1
- package/dist/esm/Uploader.js +20 -20
- package/dist/esm/VirtualList/style/style.css +1 -1
- package/dist/esm/badge2.js +20 -7
- package/dist/esm/button2.js +88 -0
- package/dist/esm/cascader2.js +6 -6
- package/dist/esm/checkbox2.js +47 -10
- package/dist/esm/collapseitem2.js +7 -7
- package/dist/esm/configprovider2.js +1 -1
- package/dist/esm/context5.js +1 -1
- package/dist/esm/formitem2.js +4 -4
- package/dist/esm/griditem2.js +2 -2
- package/dist/esm/indicator2.js +3 -3
- package/dist/esm/menuitem2.js +7 -7
- package/dist/esm/overlay2.js +1 -1
- package/dist/esm/popup2.js +21 -20
- package/dist/esm/radio2.js +10 -5
- package/dist/esm/tabbaritem2.js +1 -1
- package/dist/esm/tabs2.js +8 -8
- package/dist/esm/types/src/packages/button/button.d.ts +3 -2
- package/dist/esm/types/src/packages/button/button.taro.d.ts +3 -2
- package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +2 -0
- package/dist/esm/types/src/packages/checkbox/checkbox.taro.d.ts +2 -0
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/dialog/config.d.ts +1 -0
- package/dist/esm/types/src/packages/dialog/content.d.ts +1 -0
- package/dist/esm/types/src/packages/dialog/content.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/empty/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/empty/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/empty/empty.d.ts +5 -1
- package/dist/esm/types/src/packages/empty/empty.taro.d.ts +5 -1
- package/dist/esm/types/src/packages/empty/index.d.ts +1 -0
- package/dist/esm/types/src/packages/empty/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/empty/types.d.ts +3 -0
- package/dist/esm/types/src/packages/indicator/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/indicator/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/inputnumber/demo.d.ts +0 -1
- package/dist/esm/types/src/packages/inputnumber/demo.taro.d.ts +0 -1
- package/dist/esm/types/src/packages/navbar/navbar.d.ts +1 -0
- package/dist/esm/types/src/packages/navbar/navbar.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/pagination/pagination.d.ts +1 -1
- package/dist/esm/types/src/packages/pagination/pagination.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/popover/popover.d.ts +4 -0
- package/dist/esm/types/src/packages/popover/popover.taro.d.ts +4 -0
- package/dist/esm/types/src/packages/popup/popup.d.ts +1 -0
- package/dist/esm/types/src/packages/popup/popup.taro.d.ts +3 -2
- package/dist/esm/types/src/packages/searchbar/searchbar.d.ts +1 -0
- package/dist/esm/types/src/packages/searchbar/searchbar.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/swipe/swipe.d.ts +0 -6
- package/dist/esm/types/src/packages/tabs/tabs.d.ts +1 -1
- package/dist/esm/types/src/packages/tabs/tabs.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/utils.d.ts +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +2 -2
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +3041 -1636
- package/dist/nutui.react.umd.js +3051 -1646
- package/dist/packages/actionsheet/actionsheet.scss +15 -15
- package/dist/packages/address/address.scss +6 -6
- package/dist/packages/animatingnumbers/countup.scss +19 -6
- package/dist/packages/audio/audio.scss +17 -9
- package/dist/packages/avatar/avatar.scss +1 -1
- package/dist/packages/avatarcropper/avatarcropper.scss +4 -0
- package/dist/packages/backtop/backtop.scss +6 -3
- package/dist/packages/badge/badge.scss +25 -6
- package/dist/packages/barrage/barrage.scss +16 -6
- package/dist/packages/button/button.scss +163 -93
- package/dist/packages/calendar/calendar.scss +17 -16
- package/dist/packages/calendarcard/calendarcard.scss +8 -8
- package/dist/packages/card/card.scss +28 -14
- package/dist/packages/cascader/cascader.scss +6 -6
- package/dist/packages/cell/cell.scss +3 -3
- package/dist/packages/cellgroup/cellgroup.scss +6 -6
- package/dist/packages/checkbox/checkbox.scss +82 -22
- package/dist/packages/checkboxgroup/checkboxgroup.scss +17 -7
- package/dist/packages/collapseitem/collapseitem.scss +32 -10
- package/dist/packages/dialog/dialog.scss +22 -37
- package/dist/packages/divider/divider.scss +13 -13
- package/dist/packages/elevator/elevator.scss +51 -37
- package/dist/packages/empty/empty.scss +36 -6
- package/dist/packages/fixednav/fixednav.scss +27 -14
- package/dist/packages/form/form.scss +4 -4
- package/dist/packages/formitem/formitem.scss +6 -6
- package/dist/packages/grid/grid.scss +1 -1
- package/dist/packages/griditem/griditem.scss +16 -15
- package/dist/packages/image/image.scss +4 -2
- package/dist/packages/imagepreview/imagepreview.scss +1 -11
- package/dist/packages/indicator/indicator.scss +9 -9
- package/dist/packages/infiniteloading/infiniteloading.scss +23 -8
- package/dist/packages/input/input.scss +4 -2
- package/dist/packages/inputnumber/inputnumber.scss +21 -18
- package/dist/packages/loading/loading.scss +3 -3
- package/dist/packages/menu/menu.scss +22 -30
- package/dist/packages/menuitem/menuitem.scss +55 -56
- package/dist/packages/navbar/navbar.scss +52 -16
- package/dist/packages/noticebar/noticebar.scss +12 -11
- package/dist/packages/notify/notify.scss +10 -18
- package/dist/packages/numberkeyboard/numberkeyboard.scss +19 -17
- package/dist/packages/pagination/pagination.scss +32 -9
- package/dist/packages/picker/picker.scss +19 -19
- package/dist/packages/popover/popover.scss +51 -35
- package/dist/packages/popup/popup.scss +225 -213
- package/dist/packages/price/price.scss +20 -9
- package/dist/packages/progress/progress.scss +1 -1
- package/dist/packages/pulltorefresh/pulltorefresh.scss +9 -2
- package/dist/packages/radio/radio.scss +45 -40
- package/dist/packages/radiogroup/radiogroup.scss +18 -18
- package/dist/packages/range/range.scss +15 -4
- package/dist/packages/rate/rate.scss +8 -9
- package/dist/packages/searchbar/searchbar.scss +67 -42
- package/dist/packages/shortpassword/shortpassword.scss +24 -24
- package/dist/packages/sidenavbar/sidenavbar.scss +8 -8
- package/dist/packages/sidenavbaritem/sidenavbaritem.scss +3 -3
- package/dist/packages/signature/signature.scss +5 -2
- package/dist/packages/skeleton/skeleton.scss +8 -8
- package/dist/packages/step/step.scss +27 -32
- package/dist/packages/sticky/sticky.scss +1 -1
- package/dist/packages/subsidenavbar/subsidenavbar.scss +5 -5
- package/dist/packages/swipe/swipe.scss +8 -5
- package/dist/packages/swiper/swiper.scss +4 -4
- package/dist/packages/switch/switch.scss +39 -28
- package/dist/packages/tabbar/tabbar.scss +4 -4
- package/dist/packages/tabbaritem/tabbaritem.scss +8 -1
- package/dist/packages/table/table.scss +28 -28
- package/dist/packages/tabpane/tabpane.scss +2 -2
- package/dist/packages/tabs/tabs.scss +181 -137
- package/dist/packages/tag/tag.scss +12 -12
- package/dist/packages/textarea/textarea.scss +6 -6
- package/dist/packages/timedetail/timedetail.scss +8 -9
- package/dist/packages/timeselect/timeselect.scss +12 -21
- package/dist/packages/toast/toast.scss +37 -22
- package/dist/packages/tour/tour.scss +9 -4
- package/dist/packages/trendarrow/trendarrow.scss +8 -3
- package/dist/packages/uploader/uploader.scss +41 -37
- package/dist/packages/virtuallist/virtuallist.scss +13 -3
- package/dist/packages/watermark/watermark.scss +1 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/theme-dark.scss +118 -23
- package/dist/styles/theme-default.scss +114 -32
- package/dist/styles/theme-jmapp.scss +158 -32
- package/dist/styles/variables-jmapp.scss +1120 -1258
- package/dist/styles/variables.scss +953 -1174
- package/dist/types/packages/animate/animate.d.ts +1 -1
- package/dist/types/packages/button/button.d.ts +3 -2
- package/dist/types/packages/checkbox/checkbox.d.ts +2 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/dialog/config.d.ts +1 -0
- package/dist/types/packages/dialog/content.d.ts +1 -0
- package/dist/types/packages/empty/empty.d.ts +5 -1
- package/dist/types/packages/empty/index.d.ts +1 -0
- package/dist/types/packages/empty/types.d.ts +3 -0
- package/dist/types/packages/navbar/navbar.d.ts +1 -0
- package/dist/types/packages/pagination/pagination.d.ts +1 -1
- package/dist/types/packages/popover/popover.d.ts +4 -0
- package/dist/types/packages/popup/popup.d.ts +15 -2
- package/dist/types/packages/searchbar/searchbar.d.ts +5 -0
- package/dist/types/packages/swipe/swipe.d.ts +6 -6
- package/dist/types/packages/tabs/tabs.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.nut-toast{position:fixed;left:0;top:0;width:100%;height:100%;text-align:center;pointer-events:none;z-index:1300}.nut-
|
|
1
|
+
@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.nut-toast{position:fixed;left:0;top:0;width:100%;height:100%;text-align:center;pointer-events:none;z-index:1300}.nut-toast-overlay-default{--nutui-overlay-bg-color: rgba(0, 0, 0, 0);--nutui-overlay-zIndex: 1300}.nut-toast-small .nut-toast-inner{font-size:var(--nutui-font-size-2, 12px)}.nut-toast-large .nut-toast-inner{font-size:var(--nutui-font-size-4, 16px)}.nut-toast-inner{display:inline-block;position:absolute;left:50%;top:var(--nutui-toast-inner-top, 50%);min-width:30%;max-width:95.7%;font-size:var(--nutui-toast-text-font-size, 14px);padding:var(--nutui-toast-inner-padding, 16px 24px);word-break:break-all;background:var(--nutui-toast-inner-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));border-radius:var(--nutui-toast-inner-border-radius, 16px);color:var(--nutui-toast-font-color, #ffffff);transform:translate(-50%,-50%)}.nut-toast-inner.normal{word-break:normal;word-wrap:normal}.nut-toast-inner.break-word{word-break:normal;word-wrap:break-word}.nut-toast-center{top:var(--nutui-toast-inner-top, 50%)}.nut-toast-bottom{top:var(--nutui-toast-inner-top, 80%)}.nut-toast-top{top:var(--nutui-toast-inner-top, 20%)}.nut-toast-text:empty{margin-bottom:-8px}.nut-toast-title{font-size:var(--nutui-toast-title-font-size, 16px);font-weight:500}.nut-toast-title:empty{margin-bottom:-8px}.nut-toast-has-icon .nut-toast-icon-wrapper{width:100%;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.nut-toast-has-icon .nut-toast-icon-wrapper .nut-icon{width:24px;height:24px}.nut-toast-loading .nut-toast-inner{display:inline-flex;flex-direction:column;justify-content:center;align-items:center}.nut-toast-loading .nut-toast-icon-wrapper{animation:rotation 2s linear infinite}.nut-toast-loading .nut-toast-icon-wrapper .nut-icon{width:24px;height:24px}.toast-fade-enter-active,.toast-fade-leave-active{transition:opacity .3s}.toast-fade-enter-from,.toast-fade-leave-to{opacity:0}
|
package/dist/esm/Toast.js
CHANGED
|
@@ -147,7 +147,7 @@ var Notification = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
147
147
|
break;
|
|
148
148
|
}
|
|
149
149
|
return React.createElement("p", {
|
|
150
|
-
className: "".concat(classPrefix, "
|
|
150
|
+
className: "".concat(classPrefix, "-icon-wrapper")
|
|
151
151
|
}, iconNode);
|
|
152
152
|
}
|
|
153
153
|
return icon;
|
|
@@ -174,7 +174,7 @@ var Notification = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
174
174
|
return React.createElement(React.Fragment, null, React.createElement(Overlay, {
|
|
175
175
|
visible: show2,
|
|
176
176
|
style,
|
|
177
|
-
className: "".concat(classPrefix, "
|
|
177
|
+
className: "".concat(classPrefix, "-overlay-default ").concat(className),
|
|
178
178
|
onClick: function onClick() {
|
|
179
179
|
_this3.clickCover();
|
|
180
180
|
},
|
|
@@ -184,7 +184,7 @@ var Notification = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
184
184
|
className: "".concat(classPrefix, " ").concat(classes),
|
|
185
185
|
id: "toast-".concat(id)
|
|
186
186
|
}, React.createElement("div", {
|
|
187
|
-
className: "".concat(classPrefix, "
|
|
187
|
+
className: "".concat(classPrefix, "-inner ").concat(classPrefix, "-").concat(position, " ").concat(contentClassName, " ").concat(wordBreak),
|
|
188
188
|
style: contentStyle
|
|
189
189
|
}, this.renderIcon(), title ? React.createElement("div", {
|
|
190
190
|
className: "".concat(classPrefix, "-title")
|
|
@@ -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)));z-index:var(--nutui-overlay-zIndex, 1000)}.nut-overlay .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-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;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-title{display:flex;align-items:center;justify-content:center;background-color:var(--nutui-gray-6, #ffffff);color:var(--nutui-gray-1, #1a1a1a);padding:var(--nutui-popup-title-padding, 15px);font-weight:var(--nutui-font-weight-bold, 400);line-height:var(--nutui-popup-title-line-height, 18px);font-size:var(--nutui-popup-title-font-size, 18px);border-bottom:var(--nutui-popup-title-border-bottom, 0)}.nut-popup-left-icon{position:absolute;top:var(--nutui-popup-close-icon-margin, 16px);left:var(--nutui-popup-close-icon-margin, 16px)}.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, 24px)}.nut-popup-bottom{bottom:0;left:0;width:100%}.nut-popup-bottom.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.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.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.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-overflow-hidden{overflow:hidden!important}.nut-popover{position:absolute;display:inline-block;word-break:normal}.nut-popover-arrow{position:absolute;width:0;height:0;border:8px solid transparent}.nut-popover-arrow-top{bottom:0;border-top-color:var(--nutui-popover-white-background-color, var(--nutui-gray-6, #ffffff));border-bottom-width:0;margin-bottom:-8px}.nut-popover-arrow-bottom{top:0;border-bottom-color:var(--nutui-popover-white-background-color, var(--nutui-gray-6, #ffffff));border-top-width:0;margin-top:-8px}.nut-popover-arrow-bottom.nut-popover-arrow--bottom{left:50%;transform:translate(-50%)}.nut-popover-arrow-bottom.nut-popover-arrow--bottom-start{left:16px;transform:translate(0)}.nut-popover-arrow-bottom.nut-popover-arrow--bottom-end{right:16px;transform:translate(0)}.nut-popover-arrow-left{right:0;border-left-color:var(--nutui-popover-white-background-color, var(--nutui-gray-6, #ffffff));border-right-width:0;margin-right:-8px}.nut-popover-arrow-left.nut-popover-arrow--left{top:50%;transform:translateY(-50%)}.nut-popover-arrow-left.nut-popover-arrow--left-start{top:16px;transform:translateY(0)}.nut-popover-arrow-left.nut-popover-arrow--left-end{bottom:16px;transform:translateY(0)}.nut-popover-arrow-right{left:0;border-right-color:var(--nutui-popover-white-background-color, var(--nutui-gray-6, #ffffff));border-left-width:0;margin-left:-8px}.nut-popover-arrow-right.nut-popover-arrow--right{top:50%;transform:translateY(-50%)}.nut-popover-arrow-right.nut-popover-arrow--right-start{top:16px;transform:translateY(0)}.nut-popover-arrow-right.nut-popover-arrow--right-end{bottom:16px;transform:translateY(0)}.nut-popover .nut-popover-content{position:absolute;background-color:var(--nutui-popover-content-background-color, var(--nutui-gray-6, #ffffff));border-radius:var(--nutui-popover-border-radius, 8px);font-size:var(--nutui-popover-font-size, var(--nutui-font-size-2, 14px));font-family:PingFangSC;font-weight:400;color:var(--nutui-popover-primary-text-color, var(--nutui-gray-1, #1a1a1a));box-shadow:0 2px 12px #3232331f;max-height:initial;overflow-y:initial}.nut-popover .nut-popover-content-group{display:block;height:100%;width:100%}.nut-popover .nut-popover-content .nut-popover-menu-item{display:flex;align-items:center;padding:var(--nutui-popover-menu-item-padding, 8px);border-bottom:1px solid var(--nutui-popover-border-bottom-color, rgb(229, 229, 229))}.nut-popover .nut-popover-content .nut-popover-menu-item:last-child{margin-bottom:2px;border-bottom:none}.nut-popover .nut-popover-content .nut-popover-menu-item:hover{cursor:pointer;color:var(--nutui-popover-menu-item-hover-text-color, #1a1a1a);background-color:var(--nutui-popover-menu-item-hover-background-color, #fff)}.nut-popover .nut-popover-content .nut-popover-menu-item:hover:nth-of-type(2){border-radius:8px 8px 0 0}.nut-popover .nut-popover-content .nut-popover-menu-item:hover:last-of-type{border-radius:0 0 8px 8px}.nut-popover .nut-popover-content .nut-popover-menu-item .nut-popover-menu-item-name{width:100%;word-break:keep-all}.nut-popover .nut-popover-content .nut-popover-menu-item.nut-popover-menu-disabled{color:var(--nutui-popover-disable-color, rgb(154, 155, 157));cursor:not-allowed}.nut-popover .nut-popover-content .nut-popover-menu-item.nut-popover-menu-taroitem{display:flex}.nut-popover .nut-popover-content--top .nut-popover-arrow--top{left:50%;transform:translate(-50%)}.nut-popover .nut-popover-content--top-end{right:0}.nut-popover .nut-popover-content--top-end .nut-popover-arrow--top-end{right:16px;transform:translate(0)}.nut-popover .nut-popover-content--top-start{left:0}.nut-popover .nut-popover-content--top-start .nut-popover-arrow--top-start{left:16px;transform:translate(0)}.nut-popover .nut-popover-content--bottom-end{right:0}.nut-popover .nut-popover-content--left-end{bottom:0}.nut-popover .nut-popover-content--left-start{top:0}.nut-popover .nut-popover-content--right-end{bottom:0}.nut-popover .nut-popover-content--right-start{top:0}.nut-popover-enter-from,.nut-popover-leave-active{transform:scale(.8);opacity:0}.nut-popover-enter-active{transition-timing-function:ease-out}.nut-popover-leave-active{transition-timing-function:ease-in}.nut-popover-content-bg{position:fixed;height:100%;width:100%;top:0;left:0;background:transparent;z-index:999}.nut-popover-wrapper{display:inline-block}.nut-popover-content-copy{position:absolute;top:-99999px}.nut-tour-mask{position:fixed;box-shadow:0 0 0 150vh #00000080;border-radius:var(--nutui-tour-mask-border-radius, 10px);z-index:999}.nut-tour-mask-none{box-shadow:none}.nut-tour-mask-hidden{opacity:0}.nut-tour-content{display:block;padding:var(--nutui-tour-content-padding, 10px 12px);min-width:var(--nutui-tour-content-min-width, 200px);box-sizing:content-box}.nut-tour-content-top{display:block;text-align:right}.nut-tour-content-top-close{--nut-icon-width: 10px;--nut-icon-height: 10px}.nut-tour-content-inner{margin:var(--nutui-tour-content-inner-margin, 10px 0px);font-size:var(--nutui-tour-content-inner-font-size, 14px);white-space:nowrap}.nut-tour-content-bottom{margin-top:var(--nutui-tour-content-bottom-margin-top, 10px);display:flex;justify-content:space-between}.nut-tour-content-bottom-operate{display:flex;justify-content:flex-end}.nut-tour-content-bottom-operate-btn{display:inline-block;border:1px solid var(--nutui-gray-3, #bfbfbf);margin-left:var(--nutui-tour-content-bottom-btn-margin-left, 4px);padding:var(--nutui-tour-content-bottom-btn-padding, 2px 4px);font-size:var(--nutui-tour-content-bottom-btn-font-size, 12px);border-radius:var(--nutui-tour-content-bottom-btn-border-radius, 4px);color:var(--nutui-gray-2, #757575)}.nut-tour-content-bottom-operate-btn.active{color:#fff;border:0;background:var(--nutui-brand-color, #fa2c19)}.nut-tour-content-tile .nut-tour-content-inner{margin:0}.nut-tour-masked{position:fixed;width:100vh;height:100vh;z-index:1000;top:0;left:0;background:transparent}
|
|
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))}.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:40%;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;height:var(--nutui-popup-title-height, 50px);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, 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 .nut-overflow-hidden{overflow:hidden!important}.nut-popover{position:absolute;display:inline-block;word-break:normal}.nut-popover-arrow{position:absolute;width:0;height:0;border:8px solid transparent}.nut-popover-arrow-top{bottom:0;border-top-color:var(--nutui-popover-border-color, #ffffff);border-bottom-width:0;margin-bottom:-8px}.nut-popover-arrow-bottom{top:0;border-bottom-color:var(--nutui-popover-border-color, #ffffff);border-top-width:0;margin-top:-8px}.nut-popover-arrow-bottom.nut-popover-arrow-bottom{left:50%;transform:translate(-50%)}.nut-popover-arrow-bottom.nut-popover-arrow-bottom-start{left:16px;transform:translate(0)}.nut-popover-arrow-bottom.nut-popover-arrow-bottom-end{right:16px;transform:translate(0)}.nut-popover-arrow-left{right:0;border-left-color:var(--nutui-popover-border-color, #ffffff);border-right-width:0;margin-right:-8px}.nut-popover-arrow-left.nut-popover-arrow-left{top:50%;transform:translateY(-50%)}.nut-popover-arrow-left.nut-popover-arrow-left-start{top:16px;transform:translateY(0)}.nut-popover-arrow-left.nut-popover-arrow-left-end{bottom:16px;transform:translateY(0)}.nut-popover-arrow-right{left:0;border-right-color:var(--nutui-popover-border-color, #ffffff);border-left-width:0;margin-left:-8px}.nut-popover-arrow-right.nut-popover-arrow-right{top:50%;transform:translateY(-50%)}.nut-popover-arrow-right.nut-popover-arrow-right-start{top:16px;transform:translateY(0)}.nut-popover-arrow-right.nut-popover-arrow-right-end{bottom:16px;transform:translateY(0)}.nut-popover .nut-popover-content{position:absolute;background-color:var(--nutui-popover-content-background-color, #ffffff);border-radius:var(--nutui-popover-border-radius, 8px);font-size:var(--nutui-popover-font-size, var(--nutui-font-size-2, 12px));font-family:PingFangSC;font-weight:400;color:var(--nutui-popover-text-color, #1a1a1a);box-shadow:0 2px 12px #3232331f;max-height:initial;overflow-y:initial}.nut-popover .nut-popover-content-group{display:block;height:100%;width:100%}.nut-popover .nut-popover-content .nut-popover-menu-item{position:relative;display:flex;align-items:center;justify-content:center;padding:var(--nutui-popover-menu-item-padding, 8px);border-bottom:1px solid var(--nutui-popover-divider-color, var(--nutui-black-3, rgba(0, 0, 0, .06)))}.nut-popover .nut-popover-content .nut-popover-menu-item:last-child{margin-bottom:2px;border-bottom:none}.nut-popover .nut-popover-content .nut-popover-menu-item:hover:nth-of-type(2){border-radius:8px 8px 0 0}.nut-popover .nut-popover-content .nut-popover-menu-item:hover:last-of-type{border-radius:0 0 8px 8px}.nut-popover .nut-popover-content .nut-popover-menu-item-icon{display:flex;justify-content:center;align-items:center;width:12px;height:12px;font-size:12px}.nut-popover .nut-popover-content .nut-popover-menu-item-name{width:100%;word-break:keep-all;margin-left:4px}.nut-popover .nut-popover-content .nut-popover-menu-item-action-icon{position:absolute;right:var(--nutui-popover-menu-item-padding, 8px);display:flex;justify-content:center;align-items:center;width:12px;height:12px;font-size:12px;color:var(--nutui-gray-6, #595959)}.nut-popover .nut-popover-content .nut-popover-menu-item.nut-popover-menu-disabled{color:var(--nutui-popover-disable-color, var(--nutui-color-text-disabled, #bfbfbf));cursor:not-allowed}.nut-popover .nut-popover-content .nut-popover-menu-item.nut-popover-menu-taroitem{display:flex}.nut-popover .nut-popover-content-top .nut-popover-arrow-top{left:50%;transform:translate(-50%)}.nut-popover .nut-popover-content-top-end{right:0}.nut-popover .nut-popover-content-top-end .nut-popover-arrow-top-end{right:16px;transform:translate(0)}.nut-popover .nut-popover-content-top-start{left:0}.nut-popover .nut-popover-content-top-start .nut-popover-arrow-top-start{left:16px;transform:translate(0)}.nut-popover .nut-popover-content-bottom-end{right:0}.nut-popover .nut-popover-content-left-end{bottom:0}.nut-popover .nut-popover-content-left-start{top:0}.nut-popover .nut-popover-content-right-end{bottom:0}.nut-popover .nut-popover-content-right-start{top:0}.nut-popover-enter-from,.nut-popover-leave-active{transform:scale(.8);opacity:0}.nut-popover-enter-active{transition-timing-function:ease-out}.nut-popover-leave-active{transition-timing-function:ease-in}.nut-popover-content-bg{position:fixed;height:100%;width:100%;top:0;left:0;background:transparent;z-index:999}.nut-popover-wrapper{display:inline-block}.nut-popover-content-copy{position:absolute;top:-99999px}.nut-tour-mask{position:fixed;box-shadow:0 0 0 150vh var(--nutui-black-10, rgba(0, 0, 0, .7));border-radius:var(--nutui-tour-mask-border-radius, 10px);z-index:999}.nut-tour-mask-none{box-shadow:none}.nut-tour-mask-hidden{opacity:0}.nut-tour-content{display:block;padding:var(--nutui-tour-content-padding, 10px 12px);min-width:var(--nutui-tour-content-min-width, 200px);box-sizing:content-box}.nut-tour-content-top{display:block;text-align:right}.nut-tour-content-top-close{--nut-icon-width: 10px;--nut-icon-height: 10px}.nut-tour-content-inner{margin:var(--nutui-tour-content-inner-margin, 10px 0px);font-size:var(--nutui-tour-content-inner-font-size, 14px);white-space:nowrap}.nut-tour-content-bottom{margin-top:var(--nutui-tour-content-bottom-margin-top, 10px);display:flex;justify-content:space-between}.nut-tour-content-bottom-operate{display:flex;justify-content:flex-end}.nut-tour-content-bottom-operate-btn{display:inline-block;border:1px solid var(--nutui-color-text-disabled, #bfbfbf);margin-left:var(--nutui-tour-content-bottom-btn-margin-left, 4px);padding:var(--nutui-tour-content-bottom-btn-padding, 2px 4px);font-size:var(--nutui-tour-content-bottom-btn-font-size, 12px);border-radius:var(--nutui-tour-content-bottom-btn-border-radius, 4px);color:var(--nutui-gray-6, #595959);cursor:pointer}.nut-tour-content-bottom-operate-btn.active{color:#fff;border:0;background:var(--nutui-color-primary, #fa2c19)}.nut-tour-content-tile .nut-tour-content-inner{margin:0}.nut-tour-masked{position:fixed;width:100vh;height:100vh;z-index:1000;top:0;left:0;background:transparent}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-trendarrow{display:inline-flex;align-items:center;font-size:var(--nutui-trendarrow-font-size, 14px)}.nut-
|
|
1
|
+
.nut-trendarrow{display:inline-flex;align-items:center;color:var(--nutui-gray-7, #1a1a1a);font-size:var(--nutui-trendarrow-font-size, 14px)}.nut-trendarrow-icon-before{margin-right:var(--nutui-trendarrow-icon-margin, 4px)}.nut-trendarrow-icon-after{margin-left:var(--nutui-trendarrow-icon-margin, 4px)}.nut-trendarrow-rate{vertical-align:middle;display:inline}.nut-trendarrow .nut-icon{vertical-align:middle}
|
package/dist/esm/TrendArrow.js
CHANGED
|
@@ -32,9 +32,9 @@ var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
|
32
32
|
zero: false,
|
|
33
33
|
left: false,
|
|
34
34
|
sync: true,
|
|
35
|
-
color: "
|
|
36
|
-
riseColor: "
|
|
37
|
-
dropColor: "
|
|
35
|
+
color: "",
|
|
36
|
+
riseColor: "var(--nutui-brand-6)",
|
|
37
|
+
dropColor: "var(--nutui-secondary-1)",
|
|
38
38
|
riseIcon: null,
|
|
39
39
|
dropIcon: null
|
|
40
40
|
});
|
|
@@ -80,7 +80,7 @@ var TrendArrow = function TrendArrow2(props) {
|
|
|
80
80
|
var renderContent = function renderContent2(left2) {
|
|
81
81
|
var classNameSuffix = !left2 ? "icon-after" : "icon-before";
|
|
82
82
|
return React__default.createElement("span", {
|
|
83
|
-
className: "".concat(classPrefix, "
|
|
83
|
+
className: "".concat(classPrefix, "-").concat(classNameSuffix, " ").concat(classPrefix, "-value"),
|
|
84
84
|
style: calcStyle
|
|
85
85
|
}, calcRate);
|
|
86
86
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-progress{display:flex;align-items:center;position:relative;width:100%}.nut-progress-outer{flex:auto;border-radius:var(--nutui-progress-border-radius, 12px);height:var(--nutui-progress-height, 10px);background:var(--nutui-progress-background, #
|
|
1
|
+
.nut-progress{display:flex;align-items:center;position:relative;width:100%}.nut-progress-outer{flex:auto;border-radius:var(--nutui-progress-border-radius, 12px);height:var(--nutui-progress-height, 10px);background:var(--nutui-progress-background, var(--nutui-gray-3, #f6f6f6))}.nut-progress-outer .nut-progress-active:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--nutui-progress-border-radius, 12px);animation:progressActive 2s ease-in-out infinite}.nut-progress-inner{height:100%;display:flex;flex-direction:column;justify-content:center;transition:all .4s;border-radius:var(--nutui-progress-border-radius, 12px);background:var(--nutui-progress-color, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #f53d4d) 0%, var(--nutui-color-primary-stop-2, #fa2c19) 100%))}.nut-progress-text{display:flex;align-items:center;position:absolute;top:var(--nutui-progress-text-position-top, -4px);bottom:var(--nutui-progress-text-position-bottom, -4px);transition:all .4s;transform:translate(-50%)}.nut-progress-text-inner{display:flex;align-items:center;height:100%;width:100%;color:var(--nutui-progress-text-color, var(--nutui-color-primary-text, #ffffff));padding:var(--nutui-progress-text-padding, 0 5px);border-radius:var(--nutui-progress-text-border-radius, 5px);font-size:var(--nutui-progress-text-font-size, 9px);line-height:1;background:var(--nutui-progress-text-background, var(--nutui-progress-color, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #f53d4d) 0%, var(--nutui-color-primary-stop-2, #fa2c19) 100%)))}@keyframes progressActive{0%{background:rgba(255,255,255,.1);width:0}20%{background:rgba(255,255,255,.5);width:0}to{background:rgba(255,255,255,0);width:100%}}.nut-uploader{position:relative;display:flex;flex-wrap:wrap}.nut-uploader-slot{position:relative}.nut-uploader-upload{position:relative;display:flex;align-items:center;justify-content:center;background:var(--nutui-uploader-background, var(--nutui-gray-3, #f6f6f6));width:var(--nutui-uploader-image-width, 100px);height:var(--nutui-uploader-image-height, 100px);border:var(--nutui-uploader-image-border, 0px);border-radius:var(--nutui-uploader-image-border-radius, 4px)}.nut-uploader-icon{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--nutui-uploader-image-color, var(--nutui-gray-5, #8c8c8c))}.nut-uploader-icon i,.nut-uploader-icon .nut-icon{color:var(--nutui-uploader-image-color, var(--nutui-gray-5, #8c8c8c));margin-bottom:var(--nutui-uploader-image-icon-margin-bottom, 6px)}.nut-uploader-icon-tip{font-size:var(--nutui-uploader-image-icon-tip-font-size, 12px)}.nut-uploader-input{position:absolute!important;top:0;left:0;width:100%!important;height:100%!important;overflow:hidden;cursor:pointer!important;opacity:0}.nut-uploader-input:disabled{cursor:not-allowed}.nut-uploader-upload-disabled{background:var(--nutui-uploader-background-disabled, var(--nutui-gray-3, #f6f6f6));color:var(--nutui-uploader-image-disabled, var(--nutui-color-text-disabled, #bfbfbf))}.nut-uploader-upload-disabled .nut-uploader-icon i,.nut-uploader-upload-disabled .nut-uploader-icon .nut-icon{color:var(--nutui-uploader-image-disabled, var(--nutui-color-text-disabled, #bfbfbf));margin-bottom:var(--nutui-uploader-image-icon-margin-bottom, 6px)}.nut-uploader-preview{position:relative;margin-right:var(--nutui-uploader-preview-margin-right, 10px);margin-bottom:var(--nutui-uploader-preview-margin-bottom, 10px);border-radius:var(--nutui-uploader-image-border-radius, 4px);box-shadow:0 2px 10px #0000001a}.nut-uploader-preview-progress{position:absolute;left:0;top:0;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;background:var(--nutui-uploader-preview-progress-background, var(--nutui-black-10, rgba(0, 0, 0, .7)));border-radius:var(--nutui-uploader-image-border-radius, 4px)}.nut-uploader-preview-progress i{margin-bottom:var(--nutui-uploader-image-icon-margin-bottom, 6px)}.nut-uploader-preview-progress-msg{color:var(--nutui-gray-5, #8c8c8c);font-size:12px}.nut-uploader-preview.list{width:100%;margin-right:0;margin-bottom:0;margin-top:10px;box-shadow:0 2px 10px #00000003}.nut-uploader-preview-list{width:100%;height:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;padding:0 10px;background-color:var(--nutui-gray-2, #f8f8f8)}.nut-uploader-preview-list .nut-uploader-preview-img-file-name{display:flex;-webkit-line-clamp:1;padding:2px;height:24px}.nut-uploader-preview-list .nut-progress{position:absolute;left:0;right:0;bottom:0}.nut-uploader-preview-list .nut-progress .nut-progress-outer{height:2px!important}.nut-uploader-preview .close{position:absolute;right:var(--nutui-uploader-preview-close-right, 0px);top:var(--nutui-uploader-preview-close-top, 0px);transform:translate(50%,-50%);z-index:1}.nut-uploader-preview-img{position:relative;width:var(--nutui-uploader-image-width, 100px);height:var(--nutui-uploader-image-height, 100px);border-radius:var(--nutui-uploader-image-border-radius, 4px);overflow:hidden}.nut-uploader-preview-img i{color:var(--nutui-gray-7, #1a1a1a)}.nut-uploader-preview-img .tips{position:absolute;bottom:0;left:0;font-size:12px;color:#fff;text-align:center;box-sizing:border-box;height:var(--nutui-uploader-preview-tips-height, 24px);line-height:var(--nutui-uploader-preview-tips-height, 24px);border-radius:var(--nutui-uploader-image-border-radius, 4px);border-top-left-radius:0;border-top-right-radius:0;padding:var(--nutui-uploader-preview-tips-padding, 0 5px);background:var(--nutui-uploader-preview-tips-background, var(--nutui-black-7));width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nut-uploader-preview-img-c{width:100%;height:100%;position:initial;border-radius:var(--nutui-uploader-image-border-radius, 4px)}.nut-uploader-preview-img-file{height:100%;width:100%;display:flex;align-items:center;justify-content:center;transition:all .3s}.nut-uploader-preview-img-file-name{display:flex;width:90%;font-size:12px;color:var(--nutui-gray-6, #595959);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-all}.nut-uploader-preview-img-file-name.error{color:red!important}.nut-uploader-preview-img-file-name.success{color:#1890ff!important}.nut-uploader-preview-img-file-name .nut-icon-link:before{margin-left:-45%;margin-top:-45%;transform:none}
|
package/dist/esm/Uploader.js
CHANGED
|
@@ -143,7 +143,7 @@ var Preview = function Preview2(_ref2) {
|
|
|
143
143
|
return React__default.createElement(React__default.Fragment, null, fileList.length !== 0 && fileList.map(function(item, index) {
|
|
144
144
|
var _item$type;
|
|
145
145
|
return React__default.createElement("div", {
|
|
146
|
-
className: "nut-
|
|
146
|
+
className: "nut-uploader-preview ".concat(previewType),
|
|
147
147
|
key: item.uid
|
|
148
148
|
}, previewType === "picture" && deletable && React__default.createElement(Failure, {
|
|
149
149
|
color: "rgba(0,0,0,0.6)",
|
|
@@ -152,17 +152,17 @@ var Preview = function Preview2(_ref2) {
|
|
|
152
152
|
return onDeleteItem(item, index);
|
|
153
153
|
}
|
|
154
154
|
}), previewType === "picture" && !children && React__default.createElement("div", {
|
|
155
|
-
className: "nut-
|
|
155
|
+
className: "nut-uploader-preview-img"
|
|
156
156
|
}, item.status === "ready" ? React__default.createElement("div", {
|
|
157
|
-
className: "nut-
|
|
157
|
+
className: "nut-uploader-preview-progress"
|
|
158
158
|
}, React__default.createElement("div", {
|
|
159
|
-
className: "nut-
|
|
159
|
+
className: "nut-uploader-preview-progress-msg"
|
|
160
160
|
}, item.message)) : item.status !== "success" && React__default.createElement("div", {
|
|
161
|
-
className: "nut-
|
|
161
|
+
className: "nut-uploader-preview-progress"
|
|
162
162
|
}, renderIcon(item), React__default.createElement("div", {
|
|
163
|
-
className: "nut-
|
|
163
|
+
className: "nut-uploader-preview-progress-msg"
|
|
164
164
|
}, item.message)), (_item$type = item.type) !== null && _item$type !== void 0 && _item$type.includes("image") ? React__default.createElement(React__default.Fragment, null, item.url && React__default.createElement("img", {
|
|
165
|
-
className: "nut-
|
|
165
|
+
className: "nut-uploader-preview-img-c",
|
|
166
166
|
style: {
|
|
167
167
|
objectFit: "fill"
|
|
168
168
|
},
|
|
@@ -172,33 +172,33 @@ var Preview = function Preview2(_ref2) {
|
|
|
172
172
|
return handleItemClick(item, index);
|
|
173
173
|
}
|
|
174
174
|
})) : React__default.createElement(React__default.Fragment, null, previewUrl ? React__default.createElement("img", {
|
|
175
|
-
className: "nut-
|
|
175
|
+
className: "nut-uploader-preview-img-c",
|
|
176
176
|
src: previewUrl,
|
|
177
177
|
alt: "",
|
|
178
178
|
onClick: function onClick() {
|
|
179
179
|
return handleItemClick(item, index);
|
|
180
180
|
}
|
|
181
181
|
}) : React__default.createElement("div", {
|
|
182
|
-
className: "nut-
|
|
182
|
+
className: "nut-uploader-preview-img-file"
|
|
183
183
|
}, React__default.createElement("div", {
|
|
184
184
|
onClick: function onClick() {
|
|
185
185
|
return handleItemClick(item, index);
|
|
186
186
|
},
|
|
187
|
-
className: "nut-
|
|
187
|
+
className: "nut-uploader-preview-img-file-name"
|
|
188
188
|
}, React__default.createElement(Link, {
|
|
189
189
|
color: "#808080"
|
|
190
190
|
}), React__default.createElement("span", null, " ", item.name)))), item.status === "success" ? React__default.createElement("div", {
|
|
191
191
|
className: "tips"
|
|
192
192
|
}, item.name) : null), previewType === "list" && React__default.createElement("div", {
|
|
193
|
-
className: "nut-
|
|
193
|
+
className: "nut-uploader-preview-list"
|
|
194
194
|
}, React__default.createElement("div", {
|
|
195
|
-
className: "nut-
|
|
195
|
+
className: "nut-uploader-preview-img-file-name ".concat(item.status),
|
|
196
196
|
onClick: function onClick() {
|
|
197
197
|
return handleItemClick(item, index);
|
|
198
198
|
}
|
|
199
199
|
}, React__default.createElement(Link, null), React__default.createElement("span", null, " ", item.name)), deletable && React__default.createElement(Del, {
|
|
200
200
|
color: "#808080",
|
|
201
|
-
className: "nut-
|
|
201
|
+
className: "nut-uploader-preview-img-file-del",
|
|
202
202
|
onClick: function onClick() {
|
|
203
203
|
return onDeleteItem(item, index);
|
|
204
204
|
}
|
|
@@ -474,12 +474,12 @@ var InternalUploader = function InternalUploader2(props, ref) {
|
|
|
474
474
|
return React__default.createElement("div", _objectSpread({
|
|
475
475
|
className: classes
|
|
476
476
|
}, restProps), (children || previewType === "list") && React__default.createElement("div", {
|
|
477
|
-
className: "nut-
|
|
477
|
+
className: "nut-uploader-slot"
|
|
478
478
|
}, children || React__default.createElement(Button, {
|
|
479
479
|
size: "small",
|
|
480
480
|
type: "primary"
|
|
481
481
|
}, "上传文件"), maxCount > fileList.length && React__default.createElement("input", {
|
|
482
|
-
className: "nut-
|
|
482
|
+
className: "nut-uploader-input",
|
|
483
483
|
type: "file",
|
|
484
484
|
capture,
|
|
485
485
|
name,
|
|
@@ -496,15 +496,15 @@ var InternalUploader = function InternalUploader2(props, ref) {
|
|
|
496
496
|
previewUrl,
|
|
497
497
|
children
|
|
498
498
|
})), maxCount > fileList.length && previewType === "picture" && !children && React__default.createElement("div", {
|
|
499
|
-
className: classNames("nut-
|
|
500
|
-
"nut-
|
|
499
|
+
className: classNames("nut-uploader-upload", previewType, {
|
|
500
|
+
"nut-uploader-upload-disabled": disabled
|
|
501
501
|
})
|
|
502
502
|
}, React__default.createElement("div", {
|
|
503
|
-
className: "nut-
|
|
503
|
+
className: "nut-uploader-icon"
|
|
504
504
|
}, uploadIcon, React__default.createElement("span", {
|
|
505
|
-
className: "nut-
|
|
505
|
+
className: "nut-uploader-icon-tip"
|
|
506
506
|
}, uploadLabel)), React__default.createElement("input", {
|
|
507
|
-
className: "nut-
|
|
507
|
+
className: "nut-uploader-input",
|
|
508
508
|
type: "file",
|
|
509
509
|
capture,
|
|
510
510
|
name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-horizontal-items{float:left}.nut-horizontal-items li{display:block;float:left;background:var(--nutui-gray-
|
|
1
|
+
.nut-horizontal-items{float:left}.nut-horizontal-items li{display:block;float:left;color:var(--nutui-gray-7, #1a1a1a);background:var(--nutui-gray-1, #ffffff);padding:10px;margin-right:20px}.nut-horizontal-items:after{content:"";display:block;visibility:hidden;clear:both}.nut-vertical-items li{display:block;color:var(--nutui-gray-7, #1a1a1a);background:var(--nutui-gray-1, #ffffff);border-radius:7px;box-shadow:0 1px 6px #edeef1;margin-top:20px;padding:14px 15px;font-size:13px;line-height:18px;font-family:PingFangSC;font-weight:500}.nut-virtualList-demo-item{height:100px}.nut-virtualList-box{overflow:auto}.nut-virtualList-demo-box .heigh1{height:500px}.nut-virtualList-demo-box.hideScrollbar .nut-virtualList-box::-webkit-scrollbar{width:0px;height:0px}.nut-virtuallist{width:100%;overflow:scroll;position:relative;-webkit-overflow-scrolling:touch}.nut-virtuallist-phantom{position:absolute;left:0;top:0;right:0;z-index:-1}.nut-virtuallist-container{left:0;right:0;top:0;position:absolute}.nut-virtuallist-item{overflow:hidden;margin:var(--nutui-list-item-margin, 0 0 10px 0)}
|
package/dist/esm/badge2.js
CHANGED
|
@@ -28,23 +28,36 @@ var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
|
28
28
|
value: "",
|
|
29
29
|
dot: false,
|
|
30
30
|
max: 99,
|
|
31
|
-
top: "
|
|
32
|
-
right: "
|
|
31
|
+
top: "4",
|
|
32
|
+
right: "8",
|
|
33
33
|
color: ""
|
|
34
34
|
});
|
|
35
35
|
var Badge = function Badge2(props) {
|
|
36
|
+
var _ref;
|
|
36
37
|
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props), className = _defaultProps$props.className, style = _defaultProps$props.style, value = _defaultProps$props.value, max = _defaultProps$props.max, children = _defaultProps$props.children, dot = _defaultProps$props.dot, top = _defaultProps$props.top, right = _defaultProps$props.right, color = _defaultProps$props.color;
|
|
37
38
|
var classPrefix = "nut-badge";
|
|
38
39
|
var classes = classNames(classPrefix, className);
|
|
39
|
-
var contentClasses = classNames(_defineProperty({}, "".concat(classPrefix, "__dot"), dot), "".concat(classPrefix, "__content"), "".concat(classPrefix, "__sup"));
|
|
40
40
|
function content() {
|
|
41
41
|
if (dot || _typeof(value) === "object")
|
|
42
42
|
return null;
|
|
43
43
|
if (typeof value === "number" && typeof max === "number") {
|
|
44
|
-
return max < value ? "".concat(max, "+") : value;
|
|
44
|
+
return max < value ? "".concat(max, "+") : "".concat(value);
|
|
45
45
|
}
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
|
+
function isIcon() {
|
|
49
|
+
if (_typeof(value) === "object" && value)
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
function isNumber() {
|
|
53
|
+
if (typeof value === "number" && value)
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function isString() {
|
|
57
|
+
if (typeof value === "string" && value)
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
var contentClasses = classNames(_defineProperty({}, "".concat(classPrefix, "-dot"), dot), "".concat(classPrefix, "-content"), _defineProperty({}, "".concat(classPrefix, "-sup"), isNumber() || isString() || dot), _defineProperty({}, "".concat(classPrefix, "-one"), typeof content() === "string" && ((_ref = "".concat(content())) === null || _ref === void 0 ? void 0 : _ref.length) === 1));
|
|
48
61
|
var getStyle = function getStyle2() {
|
|
49
62
|
var style2 = {};
|
|
50
63
|
style2.top = "".concat(Number(top) || parseFloat(String(top)) || 0, "px");
|
|
@@ -55,9 +68,9 @@ var Badge = function Badge2(props) {
|
|
|
55
68
|
return React__default.createElement("div", {
|
|
56
69
|
className: classes,
|
|
57
70
|
style
|
|
58
|
-
},
|
|
59
|
-
className: "".concat(classPrefix, "
|
|
60
|
-
}, value),
|
|
71
|
+
}, isIcon() && React__default.createElement("div", {
|
|
72
|
+
className: "".concat(classPrefix, "-icon")
|
|
73
|
+
}, value), children, !isIcon() && React__default.createElement("div", {
|
|
61
74
|
className: contentClasses,
|
|
62
75
|
style: getStyle()
|
|
63
76
|
}, content()));
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
var _excluded = ["color", "shape", "fill", "loading", "disabled", "type", "size", "block", "icon", "rightIcon", "children", "className", "style", "nativeType", "onClick"];
|
|
4
|
+
function ownKeys(e, r) {
|
|
5
|
+
var t = Object.keys(e);
|
|
6
|
+
if (Object.getOwnPropertySymbols) {
|
|
7
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
8
|
+
r && (o = o.filter(function(r2) {
|
|
9
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
10
|
+
})), t.push.apply(t, o);
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
function _objectSpread(e) {
|
|
15
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
16
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
17
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
18
|
+
_defineProperty(e, r2, t[r2]);
|
|
19
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
20
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return e;
|
|
24
|
+
}
|
|
25
|
+
import React__default, { useCallback } from "react";
|
|
26
|
+
import classNames from "classnames";
|
|
27
|
+
import { Loading } from "@nutui/icons-react";
|
|
28
|
+
import { C as ComponentDefaults } from "./typings.js";
|
|
29
|
+
var prefixCls = "nut-button";
|
|
30
|
+
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
31
|
+
color: "",
|
|
32
|
+
type: "default",
|
|
33
|
+
size: "normal",
|
|
34
|
+
shape: "round",
|
|
35
|
+
fill: "outline",
|
|
36
|
+
loading: false,
|
|
37
|
+
disabled: false,
|
|
38
|
+
block: false,
|
|
39
|
+
icon: null,
|
|
40
|
+
rightIcon: null,
|
|
41
|
+
nativeType: "button",
|
|
42
|
+
onClick: function onClick(e) {
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
var Button = React__default.forwardRef(function(props, ref) {
|
|
46
|
+
var _classNames;
|
|
47
|
+
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props), color = _defaultProps$props.color, shape = _defaultProps$props.shape, fill = _defaultProps$props.fill, loading = _defaultProps$props.loading, disabled = _defaultProps$props.disabled, type = _defaultProps$props.type, size = _defaultProps$props.size, block = _defaultProps$props.block, icon = _defaultProps$props.icon, rightIcon = _defaultProps$props.rightIcon, children = _defaultProps$props.children, className = _defaultProps$props.className, style = _defaultProps$props.style, nativeType = _defaultProps$props.nativeType, onClick2 = _defaultProps$props.onClick, rest = _objectWithoutProperties(_defaultProps$props, _excluded);
|
|
48
|
+
var getStyle = useCallback(function() {
|
|
49
|
+
var style2 = {};
|
|
50
|
+
if (props.color) {
|
|
51
|
+
if (props.fill && (props.fill === "outline" || props.fill === "dashed")) {
|
|
52
|
+
style2.color = color;
|
|
53
|
+
style2.background = "#fff";
|
|
54
|
+
if (!(color !== null && color !== void 0 && color.includes("gradient"))) {
|
|
55
|
+
style2.borderColor = color;
|
|
56
|
+
}
|
|
57
|
+
} else {
|
|
58
|
+
style2.color = "#fff";
|
|
59
|
+
style2.background = color;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return style2;
|
|
63
|
+
}, [color]);
|
|
64
|
+
var handleClick = function handleClick2(e) {
|
|
65
|
+
if (!loading && !disabled && onClick2) {
|
|
66
|
+
onClick2(e);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
return React__default.createElement("button", _objectSpread(_objectSpread({}, rest), {}, {
|
|
70
|
+
ref,
|
|
71
|
+
type: nativeType,
|
|
72
|
+
className: classNames(prefixCls, "".concat(prefixCls, "-").concat(type), props.fill ? "".concat(prefixCls, "-").concat(fill) : null, children ? "" : "".concat(prefixCls, "-icononly"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-").concat(size), size), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(shape), shape), _defineProperty(_classNames, "".concat(prefixCls, "-block"), block), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-loading"), loading), _classNames), className),
|
|
73
|
+
style: _objectSpread(_objectSpread({}, getStyle()), style),
|
|
74
|
+
onClick: function onClick3(e) {
|
|
75
|
+
return handleClick(e);
|
|
76
|
+
}
|
|
77
|
+
}), React__default.createElement("div", {
|
|
78
|
+
className: "nut-button-warp"
|
|
79
|
+
}, loading ? React__default.createElement(Loading, {
|
|
80
|
+
className: "nut-icon-loading"
|
|
81
|
+
}) : null, !loading && icon ? icon : null, children && React__default.createElement("div", {
|
|
82
|
+
className: "".concat(icon || loading ? "nut-button-text" : "").concat(rightIcon ? " nut-button-text right" : "")
|
|
83
|
+
}, children), rightIcon || null));
|
|
84
|
+
});
|
|
85
|
+
Button.displayName = "NutButton";
|
|
86
|
+
export {
|
|
87
|
+
Button as B
|
|
88
|
+
};
|
package/dist/esm/cascader2.js
CHANGED
|
@@ -544,14 +544,14 @@ var InternalCascader = function InternalCascader2(props, ref) {
|
|
|
544
544
|
active: checked,
|
|
545
545
|
disabled: node.disabled
|
|
546
546
|
}, classPrefix2);
|
|
547
|
-
var classesTitle = classNames(_defineProperty({}, "".concat(classPrefix2, "
|
|
547
|
+
var classesTitle = classNames(_defineProperty({}, "".concat(classPrefix2, "-title"), true));
|
|
548
548
|
var renderIcon = function renderIcon2() {
|
|
549
549
|
if (checked) {
|
|
550
550
|
if (isValidElement(activeIcon)) {
|
|
551
551
|
return activeIcon;
|
|
552
552
|
}
|
|
553
553
|
return React__default.createElement(Checklist, {
|
|
554
|
-
className: "".concat(checked ? "".concat(classPrefix, "
|
|
554
|
+
className: "".concat(checked ? "".concat(classPrefix, "-icon-check") : "")
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
557
|
return null;
|
|
@@ -569,7 +569,7 @@ var InternalCascader = function InternalCascader2(props, ref) {
|
|
|
569
569
|
className: classesTitle
|
|
570
570
|
}, node.text), node.loading ? React__default.createElement(Loading, {
|
|
571
571
|
color: "#969799",
|
|
572
|
-
className: "nut-cascader-
|
|
572
|
+
className: "nut-cascader-item-icon-loading"
|
|
573
573
|
}) : renderIcon());
|
|
574
574
|
};
|
|
575
575
|
var renderTabs = function renderTabs2() {
|
|
@@ -586,12 +586,12 @@ var InternalCascader = function InternalCascader2(props, ref) {
|
|
|
586
586
|
setTabvalue(pane.paneKey);
|
|
587
587
|
state.tabsCursor = index;
|
|
588
588
|
},
|
|
589
|
-
className: "nut-
|
|
589
|
+
className: "nut-tabs-titles-item ".concat(tabvalue === pane.paneKey ? "nut-tabs-titles-item-active" : ""),
|
|
590
590
|
key: pane.paneKey
|
|
591
591
|
}, React__default.createElement("span", {
|
|
592
|
-
className: "nut-
|
|
592
|
+
className: "nut-tabs-titles-item-text"
|
|
593
593
|
}, !state.initLoading && state.panes.length && (pane === null || pane === void 0 || (_pane$selectedNode2 = pane.selectedNode) === null || _pane$selectedNode2 === void 0 ? void 0 : _pane$selectedNode2.text), !state.initLoading && state.panes.length && !(pane !== null && pane !== void 0 && (_pane$selectedNode3 = pane.selectedNode) !== null && _pane$selectedNode3 !== void 0 && _pane$selectedNode3.text) && "请选择", !(!state.initLoading && state.panes.length) && "Loading..."), React__default.createElement("span", {
|
|
594
|
-
className: "nut-
|
|
594
|
+
className: "nut-tabs-titles-item-line"
|
|
595
595
|
}));
|
|
596
596
|
});
|
|
597
597
|
}
|
package/dist/esm/checkbox2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
var _excluded = ["icon", "label", "className", "activeIcon", "checked", "value", "defaultChecked", "disabled", "onChange", "indeterminate", "indeterminateIcon"], _excluded2 = ["labelPosition"];
|
|
4
|
+
var _excluded = ["icon", "label", "className", "activeIcon", "checked", "value", "defaultChecked", "shape", "disabled", "onChange", "indeterminate", "indeterminateIcon"], _excluded2 = ["labelPosition"];
|
|
5
5
|
function ownKeys(e, r) {
|
|
6
6
|
var t = Object.keys(e);
|
|
7
7
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -24,7 +24,7 @@ function _objectSpread(e) {
|
|
|
24
24
|
return e;
|
|
25
25
|
}
|
|
26
26
|
import React__default, { createContext, useContext, useState, useEffect } from "react";
|
|
27
|
-
import {
|
|
27
|
+
import { CheckDisabled, Checked, CheckNormal } from "@nutui/icons-react";
|
|
28
28
|
import classNames from "classnames";
|
|
29
29
|
import CheckboxGroup from "./CheckboxGroup.js";
|
|
30
30
|
import { C as ComponentDefaults } from "./typings.js";
|
|
@@ -33,6 +33,7 @@ var CheckboxGroupContext = createContext(null);
|
|
|
33
33
|
var Context = CheckboxGroupContext;
|
|
34
34
|
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
35
35
|
disabled: false,
|
|
36
|
+
shape: "round",
|
|
36
37
|
labelPosition: "right",
|
|
37
38
|
icon: null,
|
|
38
39
|
activeIcon: null,
|
|
@@ -43,7 +44,7 @@ var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
|
43
44
|
var classPrefix = "nut-checkbox";
|
|
44
45
|
var Checkbox = function Checkbox2(props) {
|
|
45
46
|
var _defaultProps$props = _objectSpread(_objectSpread({}, defaultProps), props), children = _defaultProps$props.children;
|
|
46
|
-
var icon = props.icon, label = props.label, className = props.className, activeIcon = props.activeIcon, checked = props.checked, value = props.value, defaultChecked = props.defaultChecked, disabled = props.disabled, onChange2 = props.onChange, indeterminate = props.indeterminate, indeterminateIcon = props.indeterminateIcon, others = _objectWithoutProperties(props, _excluded);
|
|
47
|
+
var icon = props.icon, label = props.label, className = props.className, activeIcon = props.activeIcon, checked = props.checked, value = props.value, defaultChecked = props.defaultChecked, shape = props.shape, disabled = props.disabled, onChange2 = props.onChange, indeterminate = props.indeterminate, indeterminateIcon = props.indeterminateIcon, others = _objectWithoutProperties(props, _excluded);
|
|
47
48
|
var labelPosition = others.labelPosition, rest = _objectWithoutProperties(others, _excluded2);
|
|
48
49
|
var ctx = useContext(Context);
|
|
49
50
|
var _usePropsValue = usePropsValue({
|
|
@@ -76,6 +77,21 @@ var Checkbox = function Checkbox2(props) {
|
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
var renderIcon = function renderIcon2() {
|
|
80
|
+
if (innerDisabled) {
|
|
81
|
+
if (innerIndeterminate) {
|
|
82
|
+
return React__default.createElement(CheckDisabled, {
|
|
83
|
+
className: color()
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
if (innerChecked) {
|
|
87
|
+
return React__default.createElement(Checked, {
|
|
88
|
+
className: color()
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
return React__default.createElement(CheckDisabled, {
|
|
92
|
+
className: color()
|
|
93
|
+
});
|
|
94
|
+
}
|
|
79
95
|
if (!innerChecked) {
|
|
80
96
|
return React__default.isValidElement(icon) ? icon : React__default.createElement(CheckNormal, {
|
|
81
97
|
className: color()
|
|
@@ -91,20 +107,27 @@ var Checkbox = function Checkbox2(props) {
|
|
|
91
107
|
});
|
|
92
108
|
};
|
|
93
109
|
var color = function color2() {
|
|
110
|
+
var cls = "".concat(classPrefix, "-icon ");
|
|
94
111
|
if (innerDisabled) {
|
|
95
|
-
|
|
112
|
+
if (innerChecked && !innerIndeterminate) {
|
|
113
|
+
return "".concat(cls).concat(classPrefix, "-icon-checked ").concat(classPrefix, "-icon-disabled");
|
|
114
|
+
}
|
|
115
|
+
if (innerChecked && innerIndeterminate) {
|
|
116
|
+
return "".concat(cls).concat(classPrefix, "-icon-indeterminate ").concat(classPrefix, "-icon-disabled");
|
|
117
|
+
}
|
|
118
|
+
return "".concat(cls).concat(classPrefix, "-icon-disabled");
|
|
96
119
|
}
|
|
97
120
|
if (innerChecked) {
|
|
98
121
|
if (innerIndeterminate) {
|
|
99
|
-
return "".concat(classPrefix, "
|
|
122
|
+
return "".concat(cls).concat(classPrefix, "-icon-indeterminate");
|
|
100
123
|
}
|
|
101
|
-
return "".concat(classPrefix, "
|
|
124
|
+
return "".concat(cls).concat(classPrefix, "-icon-checked");
|
|
102
125
|
}
|
|
103
|
-
return
|
|
126
|
+
return cls;
|
|
104
127
|
};
|
|
105
128
|
var renderLabel = function renderLabel2() {
|
|
106
129
|
return React__default.createElement("span", {
|
|
107
|
-
className: classNames("".concat(classPrefix, "
|
|
130
|
+
className: classNames("".concat(classPrefix, "-label "), _defineProperty({}, "".concat(classPrefix, "-label-disabled"), innerDisabled))
|
|
108
131
|
}, children || label);
|
|
109
132
|
};
|
|
110
133
|
var handleClick = function handleClick2() {
|
|
@@ -117,11 +140,25 @@ var Checkbox = function Checkbox2(props) {
|
|
|
117
140
|
}
|
|
118
141
|
setChecked(latestChecked);
|
|
119
142
|
};
|
|
143
|
+
var renderButton = function renderButton2() {
|
|
144
|
+
var _classNames2;
|
|
145
|
+
return React__default.createElement("div", {
|
|
146
|
+
className: classNames("".concat(classPrefix, "-button"), (_classNames2 = {}, _defineProperty(_classNames2, "".concat(classPrefix, "-button-active"), innerChecked), _defineProperty(_classNames2, "".concat(classPrefix, "-button-disabled"), disabled), _classNames2))
|
|
147
|
+
}, children || label, innerChecked && activeIcon ? React__default.createElement("div", {
|
|
148
|
+
className: classNames("".concat(classPrefix, "-button-icon"))
|
|
149
|
+
}, activeIcon) : null);
|
|
150
|
+
};
|
|
151
|
+
var renderCheckboxItem = function renderCheckboxItem2() {
|
|
152
|
+
if (shape === "button") {
|
|
153
|
+
return renderButton();
|
|
154
|
+
}
|
|
155
|
+
return React__default.createElement(React__default.Fragment, null, renderIcon(), renderLabel());
|
|
156
|
+
};
|
|
120
157
|
return React__default.createElement("div", _objectSpread(_objectSpread({
|
|
121
|
-
className: classNames(classPrefix, _defineProperty({}, "".concat(classPrefix, "
|
|
158
|
+
className: classNames(classPrefix, _defineProperty({}, "".concat(classPrefix, "-reverse"), labelPosition === "left"), className)
|
|
122
159
|
}, rest), {}, {
|
|
123
160
|
onClick: handleClick
|
|
124
|
-
}),
|
|
161
|
+
}), renderCheckboxItem());
|
|
125
162
|
};
|
|
126
163
|
Checkbox.defaultProps = defaultProps;
|
|
127
164
|
Checkbox.displayName = "NutCheckBox";
|
|
@@ -107,26 +107,26 @@ var CollapseItem = function CollapseItem2(props) {
|
|
|
107
107
|
className: classNames(classPrefix, className),
|
|
108
108
|
style
|
|
109
109
|
}, rest), React__default.createElement("div", {
|
|
110
|
-
className: classNames("".concat(classPrefix, "
|
|
110
|
+
className: classNames("".concat(classPrefix, "-header"), {
|
|
111
111
|
disabled
|
|
112
112
|
}),
|
|
113
113
|
onClick: handleClick
|
|
114
114
|
}, React__default.createElement("div", {
|
|
115
|
-
className: "".concat(classPrefix, "
|
|
115
|
+
className: "".concat(classPrefix, "-title")
|
|
116
116
|
}, title), React__default.createElement("div", {
|
|
117
|
-
className: "".concat(classPrefix, "
|
|
117
|
+
className: "".concat(classPrefix, "-extra")
|
|
118
118
|
}, extra), React__default.createElement("div", {
|
|
119
|
-
className: "".concat(classPrefix, "
|
|
119
|
+
className: "".concat(classPrefix, "-icon-box")
|
|
120
120
|
}, React__default.createElement("div", {
|
|
121
|
-
className: "".concat(classPrefix, "
|
|
121
|
+
className: "".concat(classPrefix, "-icon"),
|
|
122
122
|
style: iconStyle
|
|
123
123
|
}, expandIcon || context.expandIcon))), React__default.createElement("div", {
|
|
124
|
-
className: "".concat(classPrefix, "
|
|
124
|
+
className: "".concat(classPrefix, "-content"),
|
|
125
125
|
onTransitionEnd,
|
|
126
126
|
ref: wrapperRef
|
|
127
127
|
}, React__default.createElement("div", {
|
|
128
128
|
ref: contentRef,
|
|
129
|
-
className: "".concat(classPrefix, "
|
|
129
|
+
className: "".concat(classPrefix, "-content-text")
|
|
130
130
|
}, children)));
|
|
131
131
|
};
|
|
132
132
|
CollapseItem.defaultProps = defaultProps;
|