@nutui/nutui-react-taro 3.0.0-beta.11 → 3.0.0-beta.12
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/dist/cjs/packages/actionsheet/style/style.css +13 -18
- package/dist/cjs/packages/address/style/style.css +45 -57
- package/dist/cjs/packages/animatingnumbers/style/style.css +3 -3
- package/dist/cjs/packages/audio/style/style.css +55 -55
- package/dist/cjs/packages/avatar/avatar.js +2 -2
- package/dist/cjs/packages/avatar/style/style.css +2 -2
- package/dist/cjs/packages/backtop/backtop.js +1 -3
- package/dist/cjs/packages/backtop/style/backtop.scss +0 -4
- package/dist/cjs/packages/backtop/style/style.css +8 -14
- package/dist/cjs/packages/backtop/style/style.harmony.css +0 -3
- package/dist/cjs/packages/badge/style/style.css +4 -4
- package/dist/cjs/packages/barrage/style/style.css +2 -2
- package/dist/cjs/packages/button/button.js +20 -13
- package/dist/cjs/packages/button/style/button.scss +3 -3
- package/dist/cjs/packages/button/style/style.css +43 -43
- package/dist/cjs/packages/button/style/style.harmony.css +3 -3
- package/dist/cjs/packages/calendar/style/style.css +16 -21
- package/dist/cjs/packages/calendarcard/style/style.css +8 -8
- package/dist/cjs/packages/card/style/style.css +8 -8
- package/dist/cjs/packages/cascader/cascader.d.ts +2 -2
- package/dist/cjs/packages/cascader/cascader.js +4 -4
- package/dist/cjs/packages/cascader/style/style.css +35 -47
- package/dist/cjs/packages/cell/style/style.css +8 -8
- package/dist/cjs/packages/cellgroup/style/style.css +3 -3
- package/dist/cjs/packages/checkbox/style/style.css +29 -29
- package/dist/cjs/packages/checkboxgroup/style/style.css +7 -7
- package/dist/cjs/packages/circleprogress/style/style.css +3 -3
- package/dist/cjs/packages/col/style/col.scss +0 -1
- package/dist/cjs/packages/collapse/style/style.css +11 -11
- package/dist/cjs/packages/collapseitem/style/style.css +11 -11
- package/dist/cjs/packages/configprovider/configprovider.js +2 -2
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/style/style.css +7 -7
- package/dist/cjs/packages/countup/style/style.css +3 -3
- package/dist/cjs/packages/datepicker/style/style.css +14 -19
- package/dist/cjs/packages/dialog/content.d.ts +3 -13
- package/dist/cjs/packages/dialog/content.js +27 -9
- package/dist/cjs/packages/dialog/dialog.d.ts +3 -5
- package/dist/cjs/packages/dialog/dialog.js +21 -21
- package/dist/cjs/packages/dialog/index.d.ts +1 -1
- package/dist/cjs/packages/dialog/style/dialog.scss +0 -4
- package/dist/cjs/packages/dialog/style/style.css +49 -57
- package/dist/cjs/packages/dialog/types.d.ts +57 -0
- package/dist/cjs/packages/dialog/types.js +4 -0
- package/dist/cjs/packages/dialog/types.taro.d.ts +10 -0
- package/dist/cjs/packages/divider/style/style.css +4 -4
- package/dist/cjs/packages/elevator/style/style.css +8 -8
- package/dist/cjs/packages/empty/empty.js +1 -3
- package/dist/cjs/packages/empty/style/style.css +3 -3
- package/dist/cjs/packages/fixednav/fixednav.d.ts +2 -15
- package/dist/cjs/packages/fixednav/fixednav.js +15 -34
- package/dist/cjs/packages/fixednav/index.d.ts +1 -2
- package/dist/cjs/packages/fixednav/style/style.css +3 -8
- package/dist/cjs/packages/fixednav/types.d.ts +12 -0
- package/dist/cjs/packages/fixednav/types.taro.d.ts +1 -0
- package/dist/cjs/packages/form/style/style.css +15 -15
- package/dist/cjs/packages/formitem/style/style.css +4 -4
- package/dist/cjs/packages/grid/style/style.css +6 -6
- package/dist/cjs/packages/griditem/style/style.css +5 -5
- package/dist/cjs/packages/hoverbutton/hoverbutton.js +1 -3
- package/dist/cjs/packages/hoverbutton/style/hoverbutton.scss +0 -4
- package/dist/cjs/packages/hoverbutton/style/style.css +4 -7
- package/dist/cjs/packages/hoverbutton/style/style.harmony.css +0 -3
- package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.js +4 -5
- package/dist/cjs/packages/hoverbuttonitem/style/style.css +4 -4
- package/dist/cjs/packages/image/image.js +1 -1
- package/dist/cjs/packages/image/style/style.css +2 -2
- package/dist/cjs/packages/imagepreview/style/style.css +11 -27
- package/dist/cjs/packages/indicator/style/style.css +4 -4
- package/dist/cjs/packages/infiniteloading/style/style.css +4 -4
- package/dist/cjs/packages/input/style/input.scss +0 -6
- package/dist/cjs/packages/input/style/style.css +8 -14
- package/dist/cjs/packages/input/style/style.harmony.css +0 -6
- package/dist/cjs/packages/inputnumber/inputnumber.js +4 -14
- package/dist/cjs/packages/inputnumber/style/style.css +7 -7
- package/dist/cjs/packages/loading/style/style.css +2 -2
- package/dist/cjs/packages/menu/style/style.css +8 -13
- package/dist/cjs/packages/menuitem/style/style.css +4 -9
- package/dist/cjs/packages/navbar/style/navbar.scss +1 -1
- package/dist/cjs/packages/navbar/style/style.css +3 -3
- package/dist/cjs/packages/navbar/style/style.harmony.css +1 -1
- package/dist/cjs/packages/notify/notify.js +2 -9
- package/dist/cjs/packages/notify/style/style.css +4 -4
- package/dist/cjs/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/cjs/packages/numberkeyboard/style/style.css +13 -18
- package/dist/cjs/packages/overlay/index.d.ts +1 -1
- package/dist/cjs/packages/overlay/overlay.d.ts +1 -12
- package/dist/cjs/packages/overlay/overlay.js +21 -34
- package/dist/cjs/packages/overlay/style/overlay.scss +0 -5
- package/dist/cjs/packages/overlay/style/style.css +1 -6
- package/dist/cjs/packages/overlay/style/style.harmony.css +0 -5
- package/dist/cjs/packages/overlay/types.d.ts +11 -0
- package/dist/cjs/packages/overlay/types.js +4 -0
- package/dist/cjs/packages/overlay/types.taro.d.ts +5 -0
- package/dist/cjs/packages/pagination/style/style.css +7 -7
- package/dist/cjs/packages/picker/picker.d.ts +1 -1
- package/dist/cjs/packages/picker/picker.js +4 -4
- package/dist/cjs/packages/picker/style/style.css +14 -19
- package/dist/cjs/packages/popover/popover.d.ts +1 -1
- package/dist/cjs/packages/popover/popover.js +1 -1
- package/dist/cjs/packages/popover/style/style.css +12 -17
- package/dist/cjs/packages/popup/index.d.ts +1 -1
- package/dist/cjs/packages/popup/popup.d.ts +2 -25
- package/dist/cjs/packages/popup/popup.js +23 -39
- package/dist/cjs/packages/popup/style/style.css +5 -10
- package/dist/cjs/packages/popup/types.d.ts +25 -0
- package/dist/cjs/packages/popup/types.js +4 -0
- package/dist/cjs/packages/popup/types.taro.d.ts +8 -0
- package/dist/cjs/packages/price/style/style.css +1 -1
- package/dist/cjs/packages/progress/progress.js +3 -6
- package/dist/cjs/packages/progress/style/style.css +1 -1
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +0 -6
- package/dist/cjs/packages/pulltorefresh/style/style.css +4 -4
- package/dist/cjs/packages/radio/style/style.css +19 -19
- package/dist/cjs/packages/radiogroup/style/style.css +6 -6
- package/dist/cjs/packages/range/range.js +6 -40
- package/dist/cjs/packages/range/style/style.css +9 -9
- package/dist/cjs/packages/resultpage/style/style.css +2 -2
- package/dist/cjs/packages/searchbar/style/style.css +5 -5
- package/dist/cjs/packages/segmented/style/style.css +2 -2
- package/dist/cjs/packages/shortpassword/shortpassword.d.ts +1 -1
- package/dist/cjs/packages/shortpassword/style/style.css +15 -20
- package/dist/cjs/packages/sidebar/style/style.css +5 -5
- package/dist/cjs/packages/sidebaritem/style/style.css +1 -1
- package/dist/cjs/packages/sidenavbar/style/style.css +9 -14
- package/dist/cjs/packages/sidenavbaritem/style/style.css +2 -2
- package/dist/cjs/packages/signature/style/style.css +2 -2
- package/dist/cjs/packages/skeleton/style/skeleton.scss +0 -18
- package/dist/cjs/packages/skeleton/style/style.css +5 -11
- package/dist/cjs/packages/skeleton/style/style.harmony.css +0 -6
- package/dist/cjs/packages/step/style/style.css +19 -19
- package/dist/cjs/packages/steps/style/style.css +19 -19
- package/dist/cjs/packages/subsidenavbar/style/style.css +2 -2
- package/dist/cjs/packages/swipe/swipe.js +1 -1
- package/dist/cjs/packages/swiper/style/style.css +4 -15
- package/dist/cjs/packages/swiper/style/style.harmony.css +0 -11
- package/dist/cjs/packages/swiper/style/swiper.scss +0 -11
- package/dist/cjs/packages/switch/style/style.css +6 -6
- package/dist/cjs/packages/tabbar/style/style.css +10 -10
- package/dist/cjs/packages/tabbaritem/style/style.css +9 -9
- package/dist/cjs/packages/table/style/style.css +11 -11
- package/dist/cjs/packages/tabpane/style/style.css +1 -1
- package/dist/cjs/packages/tabpane/tabpane.js +2 -2
- package/dist/cjs/packages/tabs/style/style.css +25 -32
- package/dist/cjs/packages/tabs/style/style.harmony.css +4 -11
- package/dist/cjs/packages/tabs/style/tabs.scss +4 -9
- package/dist/cjs/packages/tabs/tabs.js +30 -49
- package/dist/cjs/packages/tag/style/style.css +5 -5
- package/dist/cjs/packages/tag/style/tag.scss +0 -2
- package/dist/cjs/packages/textarea/style/style.css +13 -13
- package/dist/cjs/packages/timedetail/style/style.css +4 -4
- package/dist/cjs/packages/timeselect/style/style.css +14 -19
- package/dist/cjs/packages/toast/index.d.ts +2 -1
- package/dist/cjs/packages/toast/style/style.css +2 -20
- package/dist/cjs/packages/toast/style/style.harmony.css +0 -11
- package/dist/cjs/packages/toast/style/toast.scss +0 -13
- package/dist/cjs/packages/toast/toast.d.ts +1 -22
- package/dist/cjs/packages/toast/toast.js +26 -24
- package/dist/cjs/packages/toast/types.d.ts +17 -0
- package/dist/cjs/packages/toast/types.js +4 -0
- package/dist/cjs/packages/tour/style/style.css +16 -21
- package/dist/cjs/packages/trendarrow/style/style.css +1 -1
- package/dist/cjs/packages/uploader/style/style.css +12 -12
- package/dist/cjs/packages/virtuallist/style/style.css +4 -4
- package/dist/cjs/utils/get-rect-by-taro.js +0 -14
- package/dist/cjs/utils/platform-taro.d.ts +0 -2
- package/dist/cjs/utils/platform-taro.js +0 -21
- package/dist/cjs/utils/px-transform.js +0 -1
- package/dist/cjs/utils/use-custom-event.js +2 -2
- package/dist/es/packages/actionsheet/style/style.css +13 -18
- package/dist/es/packages/address/style/style.css +45 -57
- package/dist/es/packages/animatingnumbers/style/style.css +3 -3
- package/dist/es/packages/audio/style/style.css +55 -55
- package/dist/es/packages/avatar/avatar.js +3 -3
- package/dist/es/packages/avatar/style/style.css +2 -2
- package/dist/es/packages/backtop/backtop.js +1 -3
- package/dist/es/packages/backtop/style/backtop.scss +0 -4
- package/dist/es/packages/backtop/style/style.css +8 -14
- package/dist/es/packages/backtop/style/style.harmony.css +0 -3
- package/dist/es/packages/badge/style/style.css +4 -4
- package/dist/es/packages/barrage/style/style.css +2 -2
- package/dist/es/packages/button/button.js +22 -15
- package/dist/es/packages/button/style/button.scss +3 -3
- package/dist/es/packages/button/style/style.css +43 -43
- package/dist/es/packages/button/style/style.harmony.css +3 -3
- package/dist/es/packages/calendar/style/style.css +16 -21
- package/dist/es/packages/calendarcard/style/style.css +8 -8
- package/dist/es/packages/card/style/style.css +8 -8
- package/dist/es/packages/cascader/cascader.d.ts +2 -2
- package/dist/es/packages/cascader/cascader.js +1 -1
- package/dist/es/packages/cascader/style/style.css +35 -47
- package/dist/es/packages/cell/style/style.css +8 -8
- package/dist/es/packages/cellgroup/style/style.css +3 -3
- package/dist/es/packages/checkbox/style/style.css +29 -29
- package/dist/es/packages/checkboxgroup/style/style.css +7 -7
- package/dist/es/packages/circleprogress/style/style.css +3 -3
- package/dist/es/packages/col/style/col.scss +0 -1
- package/dist/es/packages/collapse/style/style.css +11 -11
- package/dist/es/packages/collapseitem/style/style.css +11 -11
- package/dist/es/packages/configprovider/configprovider.js +2 -2
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/style/style.css +7 -7
- package/dist/es/packages/countup/style/style.css +3 -3
- package/dist/es/packages/datepicker/style/style.css +14 -19
- package/dist/es/packages/dialog/content.d.ts +3 -13
- package/dist/es/packages/dialog/content.js +16 -6
- package/dist/es/packages/dialog/dialog.d.ts +3 -5
- package/dist/es/packages/dialog/dialog.js +22 -22
- package/dist/es/packages/dialog/index.d.ts +1 -1
- package/dist/es/packages/dialog/style/dialog.scss +0 -4
- package/dist/es/packages/dialog/style/style.css +49 -57
- package/dist/es/packages/dialog/types.d.ts +57 -0
- package/dist/es/packages/dialog/types.js +1 -0
- package/dist/es/packages/dialog/types.taro.d.ts +10 -0
- package/dist/es/packages/divider/style/style.css +4 -4
- package/dist/es/packages/elevator/style/style.css +8 -8
- package/dist/es/packages/empty/empty.js +1 -3
- package/dist/es/packages/empty/style/style.css +3 -3
- package/dist/es/packages/fixednav/fixednav.d.ts +2 -55
- package/dist/es/packages/fixednav/fixednav.js +15 -34
- package/dist/es/packages/fixednav/index.d.ts +1 -2
- package/dist/es/packages/fixednav/style/style.css +3 -8
- package/dist/es/packages/fixednav/types.d.ts +12 -0
- package/dist/es/packages/fixednav/types.taro.d.ts +1 -0
- package/dist/es/packages/form/style/style.css +15 -15
- package/dist/es/packages/formitem/style/style.css +4 -4
- package/dist/es/packages/grid/style/style.css +6 -6
- package/dist/es/packages/griditem/style/style.css +5 -5
- package/dist/es/packages/hoverbutton/hoverbutton.js +1 -3
- package/dist/es/packages/hoverbutton/style/hoverbutton.scss +0 -4
- package/dist/es/packages/hoverbutton/style/style.css +4 -7
- package/dist/es/packages/hoverbutton/style/style.harmony.css +0 -3
- package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +5 -6
- package/dist/es/packages/hoverbuttonitem/style/style.css +4 -4
- package/dist/es/packages/image/image.js +1 -1
- package/dist/es/packages/image/style/style.css +2 -2
- package/dist/es/packages/imagepreview/style/style.css +11 -27
- package/dist/es/packages/indicator/style/style.css +4 -4
- package/dist/es/packages/infiniteloading/style/style.css +4 -4
- package/dist/es/packages/input/style/input.scss +0 -6
- package/dist/es/packages/input/style/style.css +8 -14
- package/dist/es/packages/input/style/style.harmony.css +0 -6
- package/dist/es/packages/inputnumber/inputnumber.js +6 -16
- package/dist/es/packages/inputnumber/style/style.css +7 -7
- package/dist/es/packages/loading/style/style.css +2 -2
- package/dist/es/packages/menu/style/style.css +8 -13
- package/dist/es/packages/menuitem/style/style.css +4 -9
- package/dist/es/packages/navbar/style/navbar.scss +1 -1
- package/dist/es/packages/navbar/style/style.css +3 -3
- package/dist/es/packages/navbar/style/style.harmony.css +1 -1
- package/dist/es/packages/notify/notify.js +2 -9
- package/dist/es/packages/notify/style/style.css +4 -4
- package/dist/es/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
- package/dist/es/packages/numberkeyboard/style/style.css +13 -18
- package/dist/es/packages/overlay/index.d.ts +1 -1
- package/dist/es/packages/overlay/overlay.d.ts +1 -12
- package/dist/es/packages/overlay/overlay.js +22 -35
- package/dist/es/packages/overlay/style/overlay.scss +0 -5
- package/dist/es/packages/overlay/style/style.css +1 -6
- package/dist/es/packages/overlay/style/style.harmony.css +0 -5
- package/dist/es/packages/overlay/types.d.ts +11 -0
- package/dist/es/packages/overlay/types.js +1 -0
- package/dist/es/packages/overlay/types.taro.d.ts +5 -0
- package/dist/es/packages/pagination/style/style.css +7 -7
- package/dist/es/packages/picker/picker.d.ts +1 -1
- package/dist/es/packages/picker/picker.js +1 -1
- package/dist/es/packages/picker/style/style.css +14 -19
- package/dist/es/packages/popover/popover.d.ts +1 -1
- package/dist/es/packages/popover/popover.js +1 -1
- package/dist/es/packages/popover/style/style.css +12 -17
- package/dist/es/packages/popup/index.d.ts +1 -1
- package/dist/es/packages/popup/popup.d.ts +2 -25
- package/dist/es/packages/popup/popup.js +23 -39
- package/dist/es/packages/popup/style/style.css +5 -10
- package/dist/es/packages/popup/types.d.ts +25 -0
- package/dist/es/packages/popup/types.js +1 -0
- package/dist/es/packages/popup/types.taro.d.ts +8 -0
- package/dist/es/packages/price/style/style.css +1 -1
- package/dist/es/packages/progress/progress.js +4 -7
- package/dist/es/packages/progress/style/style.css +1 -1
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +0 -6
- package/dist/es/packages/pulltorefresh/style/style.css +4 -4
- package/dist/es/packages/radio/style/style.css +19 -19
- package/dist/es/packages/radiogroup/style/style.css +6 -6
- package/dist/es/packages/range/range.js +7 -41
- package/dist/es/packages/range/style/style.css +9 -9
- package/dist/es/packages/resultpage/style/style.css +2 -2
- package/dist/es/packages/searchbar/style/style.css +5 -5
- package/dist/es/packages/segmented/style/style.css +2 -2
- package/dist/es/packages/shortpassword/shortpassword.d.ts +1 -1
- package/dist/es/packages/shortpassword/style/style.css +15 -20
- package/dist/es/packages/sidebar/style/style.css +5 -5
- package/dist/es/packages/sidebaritem/style/style.css +1 -1
- package/dist/es/packages/sidenavbar/style/style.css +9 -14
- package/dist/es/packages/sidenavbaritem/style/style.css +2 -2
- package/dist/es/packages/signature/style/style.css +2 -2
- package/dist/es/packages/skeleton/style/skeleton.scss +0 -18
- package/dist/es/packages/skeleton/style/style.css +5 -11
- package/dist/es/packages/skeleton/style/style.harmony.css +0 -6
- package/dist/es/packages/step/style/style.css +19 -19
- package/dist/es/packages/steps/style/style.css +19 -19
- package/dist/es/packages/subsidenavbar/style/style.css +2 -2
- package/dist/es/packages/swipe/swipe.js +2 -2
- package/dist/es/packages/swiper/style/style.css +4 -15
- package/dist/es/packages/swiper/style/style.harmony.css +0 -11
- package/dist/es/packages/swiper/style/swiper.scss +0 -11
- package/dist/es/packages/switch/style/style.css +6 -6
- package/dist/es/packages/tabbar/style/style.css +10 -10
- package/dist/es/packages/tabbaritem/style/style.css +9 -9
- package/dist/es/packages/table/style/style.css +11 -11
- package/dist/es/packages/tabpane/style/style.css +1 -1
- package/dist/es/packages/tabpane/tabpane.js +2 -2
- package/dist/es/packages/tabs/style/style.css +25 -32
- package/dist/es/packages/tabs/style/style.harmony.css +4 -11
- package/dist/es/packages/tabs/style/tabs.scss +4 -9
- package/dist/es/packages/tabs/tabs.js +30 -49
- package/dist/es/packages/tag/style/style.css +5 -5
- package/dist/es/packages/tag/style/tag.scss +0 -2
- package/dist/es/packages/textarea/style/style.css +13 -13
- package/dist/es/packages/timedetail/style/style.css +4 -4
- package/dist/es/packages/timeselect/style/style.css +14 -19
- package/dist/es/packages/toast/index.d.ts +2 -1
- package/dist/es/packages/toast/style/style.css +2 -20
- package/dist/es/packages/toast/style/style.harmony.css +0 -11
- package/dist/es/packages/toast/style/toast.scss +0 -13
- package/dist/es/packages/toast/toast.d.ts +1 -22
- package/dist/es/packages/toast/toast.js +26 -25
- package/dist/es/packages/toast/types.d.ts +17 -0
- package/dist/es/packages/toast/types.js +1 -0
- package/dist/es/packages/tour/style/style.css +16 -21
- package/dist/es/packages/trendarrow/style/style.css +1 -1
- package/dist/es/packages/uploader/style/style.css +12 -12
- package/dist/es/packages/virtuallist/style/style.css +4 -4
- package/dist/es/utils/get-rect-by-taro.js +0 -14
- package/dist/es/utils/platform-taro.d.ts +0 -2
- package/dist/es/utils/platform-taro.js +0 -15
- package/dist/es/utils/px-transform.js +1 -2
- package/dist/es/utils/use-custom-event.js +1 -1
- package/dist/nutui.react.umd.js +420 -1118
- package/dist/style.css +1 -1
- package/dist/style.scss +35 -35
- package/dist/styles/variables.scss +68 -32
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ITouchEvent } from '@tarojs/components';
|
|
2
|
+
import { ContentProps as ContentWebProps, DialogBasicProps as DialogBasicWebProps } from './types';
|
|
3
|
+
export type { DialogConfigType, DialogCloseIconPosition, DialogFooterDirection, DialogWrapProps, DialogConfirmProps, DialogReturnProps, } from './types';
|
|
4
|
+
export type ContentProps = Omit<ContentWebProps, 'onClick'> & {
|
|
5
|
+
onClick: (event: ITouchEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
export type DialogBasicProps = Omit<DialogBasicWebProps, 'onOverlayClick' | 'onClick'> & {
|
|
8
|
+
onClick: (event: ITouchEvent) => void;
|
|
9
|
+
onOverlayClick: (event: ITouchEvent) => boolean | void;
|
|
10
|
+
};
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
align-items: center;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
font-size: var(--nutui-divider-text-font-size, var(--nutui-font-size-base, 14px));
|
|
10
|
-
color: var(--nutui-divider-text-color, var(--nutui-
|
|
10
|
+
color: var(--nutui-divider-text-color, var(--nutui-color-text, #505259));
|
|
11
11
|
margin: var(--nutui-divider-margin, 16px 0);
|
|
12
12
|
width: 100%;
|
|
13
|
-
border: 0 solid var(--nutui-divider-border-color, var(--nutui-
|
|
13
|
+
border: 0 solid var(--nutui-divider-border-color, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
14
14
|
}
|
|
15
15
|
.nut-divider-before, .nut-divider-after {
|
|
16
16
|
display: flex;
|
|
17
17
|
border-style: solid;
|
|
18
|
-
border-color: var(--nutui-divider-border-color, var(--nutui-
|
|
18
|
+
border-color: var(--nutui-divider-border-color, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
19
19
|
border-width: var(--nutui-divider-line-height, 1px) 0 0;
|
|
20
20
|
height: var(--nutui-divider-line-height, 1px);
|
|
21
21
|
flex: 1;
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
display: inline-flex;
|
|
39
39
|
width: 0px;
|
|
40
40
|
height: var(--nutui-divider-vertical-height, 12px);
|
|
41
|
-
border-left: 1px solid var(--nutui-divider-border-color, var(--nutui-
|
|
41
|
+
border-left: 1px solid var(--nutui-divider-border-color, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
42
42
|
margin: var(--nutui-divider-vertical-margin, 0 8px);
|
|
43
43
|
vertical-align: middle;
|
|
44
44
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
top: 0;
|
|
15
15
|
overflow: hidden;
|
|
16
16
|
font-size: var(--nutui-elevator-list-font-size, var(--nutui-font-size-s, 12px));
|
|
17
|
-
color: var(--nutui-elevator-list-color, var(--nutui-
|
|
17
|
+
color: var(--nutui-elevator-list-color, var(--nutui-color-title, #1a1a1a));
|
|
18
18
|
}
|
|
19
19
|
.nut-elevator-list-inner {
|
|
20
20
|
height: 100%;
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
height: var(--nutui-elevator-list-item-code-height, 35px);
|
|
33
33
|
line-height: var(--nutui-elevator-list-item-code-line-height, 35px);
|
|
34
34
|
font-size: var(--nutui-elevator-list-item-code-font-size, var(--nutui-font-size-base, 14px));
|
|
35
|
-
color: var(--nutui-elevator-list-item-code-color, var(--nutui-
|
|
35
|
+
color: var(--nutui-elevator-list-item-code-color, var(--nutui-color-title, #1a1a1a));
|
|
36
36
|
padding: var(--nutui-elevator-list-item-padding, 0 20px);
|
|
37
37
|
font-weight: var(--nutui-elevator-list-item-code-font-weight, var(--nutui-font-weight-bold, 600));
|
|
38
38
|
box-sizing: border-box;
|
|
39
|
-
border-bottom: var(--nutui-elevator-list-item-code-border-bottom, 1px solid var(--nutui-
|
|
39
|
+
border-bottom: var(--nutui-elevator-list-item-code-border-bottom, 1px solid var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
40
40
|
background-color: var(--nutui-elevator-list-item-code-background-color, inherit);
|
|
41
41
|
}
|
|
42
42
|
.nut-elevator-list-item-name {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
line-height: var(--nutui-elevator-list-item-name-line-height, 30px);
|
|
48
48
|
}
|
|
49
49
|
.nut-elevator-list-item-name-highcolor {
|
|
50
|
-
color: var(--nutui-
|
|
50
|
+
color: var(--nutui-color-primary, #ff0f23);
|
|
51
51
|
}
|
|
52
52
|
.nut-elevator-list-fixed {
|
|
53
53
|
display: flex;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
.nut-elevator-list-fixed-title {
|
|
67
67
|
font-size: var(--nutui-elevator-list-item-code-font-size, var(--nutui-font-size-base, 14px));
|
|
68
|
-
color: var(--nutui-elevator-list-fixed-color, var(--nutui-
|
|
68
|
+
color: var(--nutui-elevator-list-fixed-color, var(--nutui-color-primary, #ff0f23));
|
|
69
69
|
font-weight: var(--nutui-elevator-list-item-code-font-weight, var(--nutui-font-weight-bold, 600));
|
|
70
70
|
}
|
|
71
71
|
.nut-elevator-code-current {
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
position: absolute;
|
|
86
86
|
right: var(--nutui-elevator-bars-right, 10px);
|
|
87
87
|
top: var(--nutui-elevator-bars-top, 50%);
|
|
88
|
-
color: var(--nutui-
|
|
88
|
+
color: var(--nutui-color-text-help, #888b94);
|
|
89
89
|
font-size: var(--nutui-elevator-bars-font-size, var(--nutui-font-size-s, 12px));
|
|
90
90
|
transform: var(--nutui-elevator-bars-transform, translateY(-50%));
|
|
91
91
|
padding: var(--nutui-elevator-bars-padding, 15px 0);
|
|
92
|
-
background-color: var(--nutui-elevator-bars-background-color, var(--nutui-
|
|
92
|
+
background-color: var(--nutui-elevator-bars-background-color, var(--nutui-color-background, #f2f3f5));
|
|
93
93
|
border-radius: var(--nutui-elevator-bars-border-radius, 6px);
|
|
94
94
|
text-align: center;
|
|
95
95
|
z-index: var(--nutui-elevator-bars-z-index, 1);
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
}
|
|
102
102
|
.nut-elevator-bars-inner-item-active {
|
|
103
103
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
104
|
-
color: var(--nutui-elevator-bars-active-color, var(--nutui-
|
|
104
|
+
color: var(--nutui-elevator-bars-active-color, var(--nutui-color-primary, #ff0f23));
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
[dir=rtl] .nut-elevator-list-fixed,
|
|
@@ -5,7 +5,6 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
|
5
5
|
import React, { useEffect, useState } from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
7
|
import { View, Image } from "@tarojs/components";
|
|
8
|
-
import Taro from "@tarojs/taro";
|
|
9
8
|
import { ComponentDefaults } from "../../utils/typings";
|
|
10
9
|
import { Button } from "../button/button";
|
|
11
10
|
var defaultStatus = {
|
|
@@ -34,12 +33,11 @@ export var Empty = function(props) {
|
|
|
34
33
|
src: imageUrl
|
|
35
34
|
}) : imageUrl;
|
|
36
35
|
useEffect(function() {
|
|
37
|
-
var isRN = Taro.getEnv() === Taro.ENV_TYPE.RN;
|
|
38
36
|
setImgStyle(function() {
|
|
39
37
|
if (!imageSize) {
|
|
40
38
|
return {};
|
|
41
39
|
}
|
|
42
|
-
if (
|
|
40
|
+
if (typeof imageSize !== 'number') {
|
|
43
41
|
return {
|
|
44
42
|
width: imageSize,
|
|
45
43
|
height: imageSize
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
justify-content: center;
|
|
12
12
|
padding: var(--nutui-empty-padding, 32px 40px);
|
|
13
|
-
background-color: var(--nutui-empty-background-color, var(--nutui-
|
|
13
|
+
background-color: var(--nutui-empty-background-color, var(--nutui-color-background-overlay, #ffffff));
|
|
14
14
|
}
|
|
15
15
|
.nut-empty-base {
|
|
16
16
|
width: var(--nutui-empty-image-size, 160px);
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
margin-top: var(--nutui-empty-title-margin-top, 0px);
|
|
35
35
|
font-weight: var(--nutui-font-weight-bold, 600);
|
|
36
36
|
margin-bottom: var(--nutui-empty-title-margin-bottom, 12px);
|
|
37
|
-
color: var(--nutui-
|
|
37
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
38
38
|
font-size: var(--nutui-font-size-l, 16px);
|
|
39
39
|
line-height: var(--nutui-empty-title-line-height, var(--nutui-font-size-l, 16px));
|
|
40
40
|
}
|
|
41
41
|
.nut-empty-description {
|
|
42
|
-
color: var(--nutui-
|
|
42
|
+
color: var(--nutui-color-text, #505259);
|
|
43
43
|
font-size: var(--nutui-font-size-s, 12px);
|
|
44
44
|
line-height: var(--nutui-empty-description-line-height, 1);
|
|
45
45
|
}
|
|
@@ -1,56 +1,3 @@
|
|
|
1
|
-
import React, { FunctionComponent
|
|
2
|
-
import {
|
|
3
|
-
import { FixedNavType, FixedNavItem, FixedNavPosition } from "./types";
|
|
4
|
-
export interface FixedNavProps extends BasicComponent {
|
|
5
|
-
/**
|
|
6
|
-
* 是否打开
|
|
7
|
-
* @default false
|
|
8
|
-
*/
|
|
9
|
-
visible: boolean
|
|
10
|
-
/**
|
|
11
|
-
* 展开时是否显示遮罩
|
|
12
|
-
* @default true
|
|
13
|
-
*/
|
|
14
|
-
overlay: boolean
|
|
15
|
-
/**
|
|
16
|
-
* 悬浮列表内容数据
|
|
17
|
-
* @default []
|
|
18
|
-
*/
|
|
19
|
-
list: Array<FixedNavItem>
|
|
20
|
-
/**
|
|
21
|
-
* 收起列表按钮文案
|
|
22
|
-
* @default 收起导航
|
|
23
|
-
*/
|
|
24
|
-
activeText: string
|
|
25
|
-
/**
|
|
26
|
-
* 展开列表按钮文案
|
|
27
|
-
* @default 快速导航
|
|
28
|
-
*/
|
|
29
|
-
inactiveText: string
|
|
30
|
-
/**
|
|
31
|
-
* fixed 垂直位置
|
|
32
|
-
* @default {top: 'auto', bottom: 'auto'}
|
|
33
|
-
*/
|
|
34
|
-
position: FixedNavPosition
|
|
35
|
-
/**
|
|
36
|
-
* 导航方向
|
|
37
|
-
* @default right
|
|
38
|
-
*/
|
|
39
|
-
type: FixedNavType
|
|
40
|
-
/**
|
|
41
|
-
* 展开收起按钮回调
|
|
42
|
-
* @default -
|
|
43
|
-
*/
|
|
44
|
-
onChange: (item: any) => void
|
|
45
|
-
/**
|
|
46
|
-
* 选择之后触发
|
|
47
|
-
* @default -
|
|
48
|
-
*/
|
|
49
|
-
onSelect: (item: any, event: MouseEvent) => void
|
|
50
|
-
/**
|
|
51
|
-
* 自定义按钮
|
|
52
|
-
* @default -
|
|
53
|
-
*/
|
|
54
|
-
content: React.ReactNode
|
|
55
|
-
}
|
|
1
|
+
import React, { FunctionComponent } from 'react';
|
|
2
|
+
import { FixedNavProps } from './types.taro';
|
|
56
3
|
export declare const FixedNav: FunctionComponent<Partial<FixedNavProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onSelect' | 'content'>>;
|
|
@@ -1,60 +1,41 @@
|
|
|
1
1
|
import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
2
2
|
import { _ as _object_spread_props } from "@swc/helpers/_/_object_spread_props";
|
|
3
|
-
import { _ as _object_without_properties } from "@swc/helpers/_/_object_without_properties";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import classNames from "classnames";
|
|
6
5
|
import { ArrowLeft } from "@nutui/icons-react-taro";
|
|
7
6
|
import { View } from "@tarojs/components";
|
|
8
7
|
import Overlay from "../overlay/index";
|
|
9
8
|
import { useConfig } from "../configprovider/index";
|
|
10
|
-
import {
|
|
11
|
-
var defaultProps = _object_spread_props(_object_spread({},
|
|
9
|
+
import { defaultOverlayProps } from "../overlay/overlay";
|
|
10
|
+
var defaultProps = _object_spread_props(_object_spread({}, defaultOverlayProps), {
|
|
12
11
|
activeText: '',
|
|
13
12
|
inactiveText: '',
|
|
14
13
|
type: 'right',
|
|
14
|
+
list: [],
|
|
15
|
+
overlay: true,
|
|
15
16
|
position: {
|
|
16
17
|
top: 'auto',
|
|
17
18
|
bottom: 'auto'
|
|
18
|
-
}
|
|
19
|
+
},
|
|
20
|
+
zIndex: 200,
|
|
21
|
+
onChange: function(value) {},
|
|
22
|
+
onSelect: function() {}
|
|
19
23
|
});
|
|
20
24
|
export var FixedNav = function(props) {
|
|
21
25
|
var locale = useConfig().locale;
|
|
22
|
-
var
|
|
23
|
-
"className",
|
|
24
|
-
"overlay",
|
|
25
|
-
"visible",
|
|
26
|
-
"list",
|
|
27
|
-
"activeText",
|
|
28
|
-
"inactiveText",
|
|
29
|
-
"position",
|
|
30
|
-
"onChange",
|
|
31
|
-
"onSelect",
|
|
32
|
-
"type",
|
|
33
|
-
"children",
|
|
34
|
-
"style",
|
|
35
|
-
"content"
|
|
36
|
-
]);
|
|
26
|
+
var _$_object_spread = _object_spread({}, defaultProps, props), className = _$_object_spread.className, overlay = _$_object_spread.overlay, visible = _$_object_spread.visible, list = _$_object_spread.list, activeText = _$_object_spread.activeText, inactiveText = _$_object_spread.inactiveText, position = _$_object_spread.position, type = _$_object_spread.type, children = _$_object_spread.children, style = _$_object_spread.style, content = _$_object_spread.content, zIndex = _$_object_spread.zIndex, onChange = _$_object_spread.onChange, onSelect = _$_object_spread.onSelect;
|
|
37
27
|
var classPrefix = 'nut-fixednav';
|
|
38
28
|
var classes = classNames(classPrefix, {
|
|
39
29
|
active: visible
|
|
40
30
|
}, type, className);
|
|
41
|
-
|
|
42
|
-
onSelect(item, event);
|
|
43
|
-
};
|
|
44
|
-
var onUpdateValue = function() {
|
|
45
|
-
var value = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !visible;
|
|
46
|
-
onChange(value);
|
|
47
|
-
};
|
|
48
|
-
return /*#__PURE__*/ React.createElement("div", _object_spread({
|
|
31
|
+
return /*#__PURE__*/ React.createElement(View, {
|
|
49
32
|
className: classes,
|
|
50
33
|
style: _object_spread({}, position, style)
|
|
51
|
-
},
|
|
34
|
+
}, overlay && /*#__PURE__*/ React.createElement(Overlay, {
|
|
52
35
|
visible: visible,
|
|
53
|
-
|
|
54
|
-
'--nutui-overlay-zIndex': 200
|
|
55
|
-
},
|
|
36
|
+
zIndex: zIndex,
|
|
56
37
|
onClick: function() {
|
|
57
|
-
return
|
|
38
|
+
return onChange(false);
|
|
58
39
|
}
|
|
59
40
|
}), /*#__PURE__*/ React.createElement(View, {
|
|
60
41
|
className: "list"
|
|
@@ -64,7 +45,7 @@ export var FixedNav = function(props) {
|
|
|
64
45
|
return /*#__PURE__*/ React.createElement(View, {
|
|
65
46
|
className: "".concat(classPrefix, "-list-item"),
|
|
66
47
|
onClick: function(event) {
|
|
67
|
-
return
|
|
48
|
+
return onSelect(item, event);
|
|
68
49
|
},
|
|
69
50
|
key: item.id || index
|
|
70
51
|
}, /*#__PURE__*/ React.isValidElement(item.icon) ? item.icon : /*#__PURE__*/ React.createElement("img", {
|
|
@@ -78,7 +59,7 @@ export var FixedNav = function(props) {
|
|
|
78
59
|
}))), /*#__PURE__*/ React.createElement(View, {
|
|
79
60
|
className: "".concat(classPrefix, "-btn"),
|
|
80
61
|
onClick: function() {
|
|
81
|
-
return
|
|
62
|
+
return onChange(!visible);
|
|
82
63
|
}
|
|
83
64
|
}, content || /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(ArrowLeft, {
|
|
84
65
|
color: "#fff"
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { FixedNav } from "./fixednav";
|
|
2
|
-
export type { FixedNavType, FixedNavPosition, FixedNavItem } from './types';
|
|
3
|
-
export type { FixedNavProps } from "./fixednav";
|
|
2
|
+
export type { FixedNavType, FixedNavPosition, FixedNavItem, FixedNavProps, } from './types.taro';
|
|
4
3
|
export default FixedNav;
|
|
@@ -3,19 +3,14 @@
|
|
|
3
3
|
/* #ifndef harmony */
|
|
4
4
|
/* #endif */
|
|
5
5
|
.nut-overlay {
|
|
6
|
-
/* #ifdef rn */
|
|
7
|
-
position: absolute;
|
|
8
|
-
/* #endif */
|
|
9
|
-
/* #ifndef rn */
|
|
10
6
|
position: fixed;
|
|
11
|
-
/* #endif */
|
|
12
7
|
top: 0;
|
|
13
8
|
left: 0;
|
|
14
9
|
bottom: 0;
|
|
15
10
|
right: 0;
|
|
16
11
|
width: 100%;
|
|
17
12
|
height: 100%;
|
|
18
|
-
background-color: var(--nutui-overlay-bg-color, var(--nutui-
|
|
13
|
+
background-color: var(--nutui-overlay-bg-color, var(--nutui-color-mask, rgba(0, 0, 0, 0.7)));
|
|
19
14
|
z-index: var(--nutui-overlay-zIndex, 1000);
|
|
20
15
|
}
|
|
21
16
|
|
|
@@ -85,7 +80,7 @@
|
|
|
85
80
|
z-index: var(--nutui-fixednav-index, 900);
|
|
86
81
|
width: 70px;
|
|
87
82
|
height: 100%;
|
|
88
|
-
background: var(--nutui-fixednav-button-background, var(--nutui-
|
|
83
|
+
background: var(--nutui-fixednav-button-background, var(--nutui-color-primary, #ff0f23));
|
|
89
84
|
border-radius: 45px 0px 0px 45px;
|
|
90
85
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
|
|
91
86
|
display: flex;
|
|
@@ -150,7 +145,7 @@
|
|
|
150
145
|
font-size: 10px;
|
|
151
146
|
padding: 0 3px;
|
|
152
147
|
color: white;
|
|
153
|
-
background: var(--nutui-
|
|
148
|
+
background: var(--nutui-color-primary, #ff0f23);
|
|
154
149
|
border-radius: 7px;
|
|
155
150
|
text-align: center;
|
|
156
151
|
min-width: 12px;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Key, ReactNode } from 'react';
|
|
2
|
+
import { OverlayProps } from "../overlay/types";
|
|
2
3
|
export type FixedNavType = 'right' | 'left';
|
|
3
4
|
export type FixedNavPosition = {
|
|
4
5
|
top?: string;
|
|
@@ -10,3 +11,14 @@ export interface FixedNavItem {
|
|
|
10
11
|
text: ReactNode;
|
|
11
12
|
icon: ReactNode;
|
|
12
13
|
}
|
|
14
|
+
export interface FixedNavProps extends Omit<OverlayProps, 'onClick'> {
|
|
15
|
+
overlay: boolean;
|
|
16
|
+
activeText: string;
|
|
17
|
+
inactiveText: string;
|
|
18
|
+
position: FixedNavPosition;
|
|
19
|
+
type: FixedNavType;
|
|
20
|
+
content?: React.ReactNode;
|
|
21
|
+
list: Array<FixedNavItem>;
|
|
22
|
+
onChange: (value: boolean) => void;
|
|
23
|
+
onSelect: (item: FixedNavItem, event: React.MouseEvent<Element, MouseEvent>) => void;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { FixedNavType, FixedNavPosition, FixedNavItem, FixedNavProps, } from './types';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.nut-cell-group-title {
|
|
9
9
|
display: inherit;
|
|
10
10
|
padding: var(--nutui-cell-group-title-padding, 0 10px);
|
|
11
|
-
color: var(--nutui-cell-group-title-color, var(--nutui-
|
|
11
|
+
color: var(--nutui-cell-group-title-color, var(--nutui-color-title, #1a1a1a));
|
|
12
12
|
font-size: var(--nutui-cell-group-title-font-size, var(--nutui-font-size-base, 14px));
|
|
13
13
|
line-height: var(--nutui-cell-group-title-line-height, 20px);
|
|
14
14
|
margin-top: 30px;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
.nut-cell-group-description {
|
|
18
18
|
display: inherit;
|
|
19
19
|
padding: var(--nutui-cell-group-description-padding, 0 10px);
|
|
20
|
-
color: var(--nutui-cell-group-description-color, var(--nutui-
|
|
20
|
+
color: var(--nutui-cell-group-description-color, var(--nutui-color-text, #505259));
|
|
21
21
|
font-size: var(--nutui-cell-group-description-font-size, var(--nutui-font-size-s, 12px));
|
|
22
22
|
line-height: var(--nutui-cell-group-description-line-height, 16px);
|
|
23
23
|
margin-top: 10px;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
.nut-cell-group-wrap {
|
|
27
27
|
border-radius: var(--nutui-cell-border-radius, 6px);
|
|
28
28
|
overflow: hidden;
|
|
29
|
-
background-color: var(--nutui-cell-group-background-color, var(--nutui-
|
|
29
|
+
background-color: var(--nutui-cell-group-background-color, var(--nutui-color-background-overlay, #ffffff));
|
|
30
30
|
margin-bottom: var(--nutui-cell-group-wrap-margin, 10px);
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
.nut-cell-group-title {
|
|
37
37
|
display: inherit;
|
|
38
38
|
padding: var(--nutui-cell-group-title-padding, 0 10px);
|
|
39
|
-
color: var(--nutui-cell-group-title-color, var(--nutui-
|
|
39
|
+
color: var(--nutui-cell-group-title-color, var(--nutui-color-title, #1a1a1a));
|
|
40
40
|
font-size: var(--nutui-cell-group-title-font-size, var(--nutui-font-size-base, 14px));
|
|
41
41
|
line-height: var(--nutui-cell-group-title-line-height, 20px);
|
|
42
42
|
margin-top: 30px;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
.nut-cell-group-description {
|
|
46
46
|
display: inherit;
|
|
47
47
|
padding: var(--nutui-cell-group-description-padding, 0 10px);
|
|
48
|
-
color: var(--nutui-cell-group-description-color, var(--nutui-
|
|
48
|
+
color: var(--nutui-cell-group-description-color, var(--nutui-color-text, #505259));
|
|
49
49
|
font-size: var(--nutui-cell-group-description-font-size, var(--nutui-font-size-s, 12px));
|
|
50
50
|
line-height: var(--nutui-cell-group-description-line-height, 16px);
|
|
51
51
|
margin-top: 10px;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
.nut-cell-group-wrap {
|
|
55
55
|
border-radius: var(--nutui-cell-border-radius, 6px);
|
|
56
56
|
overflow: hidden;
|
|
57
|
-
background-color: var(--nutui-cell-group-background-color, var(--nutui-
|
|
57
|
+
background-color: var(--nutui-cell-group-background-color, var(--nutui-color-background-overlay, #ffffff));
|
|
58
58
|
margin-bottom: var(--nutui-cell-group-wrap-margin, 10px);
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
width: 100%;
|
|
66
66
|
line-height: var(--nutui-cell-line-height, 20px);
|
|
67
67
|
padding: var(--nutui-cell-padding, 13px 16px);
|
|
68
|
-
background-color: var(--nutui-cell-background-color, var(--nutui-
|
|
68
|
+
background-color: var(--nutui-cell-background-color, var(--nutui-color-background-overlay, #ffffff));
|
|
69
69
|
border-radius: var(--nutui-cell-border-radius, 6px);
|
|
70
70
|
box-shadow: var(--nutui-cell-box-shadow, 0px 1px 7px 0px rgb(237, 238, 241));
|
|
71
71
|
font-size: var(--nutui-cell-title-font-size, var(--nutui-font-size-base, 14px));
|
|
72
|
-
color: var(--nutui-cell-title-color, var(--nutui-
|
|
72
|
+
color: var(--nutui-cell-title-color, var(--nutui-color-title, #1a1a1a));
|
|
73
73
|
margin-bottom: 10px;
|
|
74
74
|
box-sizing: border-box;
|
|
75
75
|
}
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
}
|
|
90
90
|
.nut-cell-description {
|
|
91
91
|
font-size: var(--nutui-cell-description-font-size, var(--nutui-font-size-s, 12px));
|
|
92
|
-
color: var(--nutui-cell-description-color, var(--nutui-
|
|
92
|
+
color: var(--nutui-cell-description-color, var(--nutui-color-text, #505259));
|
|
93
93
|
}
|
|
94
94
|
.nut-cell-extra {
|
|
95
95
|
display: flex;
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
min-width: 0;
|
|
102
102
|
word-break: break-all;
|
|
103
103
|
font-size: var(--nutui-cell-extra-font-size, var(--nutui-font-size-base, 14px));
|
|
104
|
-
color: var(--nutui-cell-extra-color, var(--nutui-
|
|
104
|
+
color: var(--nutui-cell-extra-color, var(--nutui-color-text, #505259));
|
|
105
105
|
}
|
|
106
106
|
.nut-cell:active::before {
|
|
107
107
|
opacity: 0.1;
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
display: flex;
|
|
134
134
|
height: 1px;
|
|
135
135
|
width: 100%;
|
|
136
|
-
border-top: var(--nutui-cell-divider-border-bottom, 1px solid var(--nutui-
|
|
136
|
+
border-top: var(--nutui-cell-divider-border-bottom, 1px solid var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
137
137
|
}
|
|
138
138
|
.nut-cell-divider-rtl {
|
|
139
139
|
padding-left: var(--nutui-cell-divider-right, 16px);
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
padding: 4px 12px;
|
|
147
147
|
}
|
|
148
148
|
.nut-form-item.error.line::before {
|
|
149
|
-
border-bottom: 1px solid var(--nutui-form-item-error-line-color, var(--nutui-
|
|
149
|
+
border-bottom: 1px solid var(--nutui-form-item-error-line-color, var(--nutui-color-primary, #ff0f23));
|
|
150
150
|
transform: scaleX(1);
|
|
151
151
|
transition: transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
152
152
|
}
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
}
|
|
163
163
|
.nut-form-item-label .required::before {
|
|
164
164
|
content: "*";
|
|
165
|
-
color: var(--nutui-form-item-required-color, var(--nutui-
|
|
165
|
+
color: var(--nutui-form-item-required-color, var(--nutui-color-primary, #ff0f23));
|
|
166
166
|
margin-right: var(--nutui-form-item-required-margin-right, 4px);
|
|
167
167
|
}
|
|
168
168
|
.nut-form-item-body {
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
.nut-form-item-body-slots .nut-input-text {
|
|
181
181
|
font-size: var(--nutui-form-item-body-font-size, var(--nutui-font-size-base, 14px));
|
|
182
182
|
text-align: var(--nutui-form-item-body-input-text-align, left);
|
|
183
|
-
color: var(--nutui-
|
|
183
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
184
184
|
width: 100%;
|
|
185
185
|
outline: 0 none;
|
|
186
186
|
border: 0;
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
.nut-form-item-body-tips {
|
|
201
201
|
text-align: var(--nutui-form-item-tip-text-align, left);
|
|
202
202
|
font-size: var(--nutui-form-item-tip-font-size, var(--nutui-font-size-xs, 11px));
|
|
203
|
-
color: var(--nutui-form-item-error-message-color, var(--nutui-
|
|
203
|
+
color: var(--nutui-form-item-error-message-color, var(--nutui-color-primary, #ff0f23));
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
[dir=rtl] .nut-form-item-label,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
padding: 4px 12px;
|
|
9
9
|
}
|
|
10
10
|
.nut-form-item.error.line::before {
|
|
11
|
-
border-bottom: 1px solid var(--nutui-form-item-error-line-color, var(--nutui-
|
|
11
|
+
border-bottom: 1px solid var(--nutui-form-item-error-line-color, var(--nutui-color-primary, #ff0f23));
|
|
12
12
|
transform: scaleX(1);
|
|
13
13
|
transition: transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
14
14
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
.nut-form-item-label .required::before {
|
|
26
26
|
content: "*";
|
|
27
|
-
color: var(--nutui-form-item-required-color, var(--nutui-
|
|
27
|
+
color: var(--nutui-form-item-required-color, var(--nutui-color-primary, #ff0f23));
|
|
28
28
|
margin-right: var(--nutui-form-item-required-margin-right, 4px);
|
|
29
29
|
}
|
|
30
30
|
.nut-form-item-body {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
.nut-form-item-body-slots .nut-input-text {
|
|
43
43
|
font-size: var(--nutui-form-item-body-font-size, var(--nutui-font-size-base, 14px));
|
|
44
44
|
text-align: var(--nutui-form-item-body-input-text-align, left);
|
|
45
|
-
color: var(--nutui-
|
|
45
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
46
46
|
width: 100%;
|
|
47
47
|
outline: 0 none;
|
|
48
48
|
border: 0;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
.nut-form-item-body-tips {
|
|
63
63
|
text-align: var(--nutui-form-item-tip-text-align, left);
|
|
64
64
|
font-size: var(--nutui-form-item-tip-font-size, var(--nutui-font-size-xs, 11px));
|
|
65
|
-
color: var(--nutui-form-item-error-message-color, var(--nutui-
|
|
65
|
+
color: var(--nutui-form-item-error-message-color, var(--nutui-color-primary, #ff0f23));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
[dir=rtl] .nut-form-item-label,
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
position: relative;
|
|
9
9
|
box-sizing: border-box;
|
|
10
|
-
color: var(--nutui-grid-item-text-color, var(--nutui-
|
|
10
|
+
color: var(--nutui-grid-item-text-color, var(--nutui-color-title, #1a1a1a));
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
}
|
|
13
13
|
.nut-grid-item-text {
|
|
14
|
-
color: var(--nutui-grid-item-text-color, var(--nutui-
|
|
14
|
+
color: var(--nutui-grid-item-text-color, var(--nutui-color-title, #1a1a1a));
|
|
15
15
|
font-size: var(--nutui-grid-item-text-font-size, var(--nutui-font-size-s, 12px));
|
|
16
16
|
word-break: break-all;
|
|
17
17
|
margin: var(--nutui-grid-item-text-margin, 8px) 0 0 0;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
width: 100%;
|
|
34
34
|
padding: var(--nutui-grid-item-content-padding, 16px 8px);
|
|
35
35
|
background: var(--nutui-grid-item-content-bg-color, var(--nutui-gray-1));
|
|
36
|
-
border: 0 solid var(--nutui-grid-border-color, var(--nutui-
|
|
36
|
+
border: 0 solid var(--nutui-grid-border-color, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
37
37
|
}
|
|
38
38
|
.nut-grid-item-content-border {
|
|
39
39
|
border-right-width: var(--nutui-grid-border-width, 0px);
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
left: 50%;
|
|
70
70
|
width: 100%;
|
|
71
71
|
height: 100%;
|
|
72
|
-
background-color: var(--nutui-
|
|
72
|
+
background-color: var(--nutui-color-mask, rgba(0, 0, 0, 0.7));
|
|
73
73
|
border: inherit;
|
|
74
|
-
border-color: var(--nutui-
|
|
74
|
+
border-color: var(--nutui-color-mask, rgba(0, 0, 0, 0.7));
|
|
75
75
|
border-radius: inherit;
|
|
76
76
|
transform: translate(-50%, -50%);
|
|
77
77
|
opacity: 0;
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
flex-direction: row;
|
|
112
112
|
align-items: stretch;
|
|
113
113
|
flex-wrap: wrap;
|
|
114
|
-
border: 0 solid var(--nutui-grid-border-color, var(--nutui-
|
|
114
|
+
border: 0 solid var(--nutui-grid-border-color, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
115
115
|
}
|
|
116
116
|
.nut-grid-border {
|
|
117
117
|
border-top-width: var(--nutui-grid-border-width, 0px);
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
position: relative;
|
|
9
9
|
box-sizing: border-box;
|
|
10
|
-
color: var(--nutui-grid-item-text-color, var(--nutui-
|
|
10
|
+
color: var(--nutui-grid-item-text-color, var(--nutui-color-title, #1a1a1a));
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
}
|
|
13
13
|
.nut-grid-item-text {
|
|
14
|
-
color: var(--nutui-grid-item-text-color, var(--nutui-
|
|
14
|
+
color: var(--nutui-grid-item-text-color, var(--nutui-color-title, #1a1a1a));
|
|
15
15
|
font-size: var(--nutui-grid-item-text-font-size, var(--nutui-font-size-s, 12px));
|
|
16
16
|
word-break: break-all;
|
|
17
17
|
margin: var(--nutui-grid-item-text-margin, 8px) 0 0 0;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
width: 100%;
|
|
34
34
|
padding: var(--nutui-grid-item-content-padding, 16px 8px);
|
|
35
35
|
background: var(--nutui-grid-item-content-bg-color, var(--nutui-gray-1));
|
|
36
|
-
border: 0 solid var(--nutui-grid-border-color, var(--nutui-
|
|
36
|
+
border: 0 solid var(--nutui-grid-border-color, var(--nutui-color-border, rgba(0, 0, 0, 0.06)));
|
|
37
37
|
}
|
|
38
38
|
.nut-grid-item-content-border {
|
|
39
39
|
border-right-width: var(--nutui-grid-border-width, 0px);
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
left: 50%;
|
|
70
70
|
width: 100%;
|
|
71
71
|
height: 100%;
|
|
72
|
-
background-color: var(--nutui-
|
|
72
|
+
background-color: var(--nutui-color-mask, rgba(0, 0, 0, 0.7));
|
|
73
73
|
border: inherit;
|
|
74
|
-
border-color: var(--nutui-
|
|
74
|
+
border-color: var(--nutui-color-mask, rgba(0, 0, 0, 0.7));
|
|
75
75
|
border-radius: inherit;
|
|
76
76
|
transform: translate(-50%, -50%);
|
|
77
77
|
opacity: 0;
|
|
@@ -3,7 +3,6 @@ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { View } from "@tarojs/components";
|
|
6
|
-
import Taro from "@tarojs/taro";
|
|
7
6
|
import { ComponentDefaults } from "../../utils/typings";
|
|
8
7
|
import { useRtl } from "../configprovider/index";
|
|
9
8
|
import HoverButtonItem from "../hoverbuttonitem/index";
|
|
@@ -22,12 +21,11 @@ export var HoverButton = function(props) {
|
|
|
22
21
|
if (typeof zIndex !== 'undefined') {
|
|
23
22
|
baseStyle.zIndex = zIndex;
|
|
24
23
|
}
|
|
25
|
-
var _obj;
|
|
26
24
|
return /*#__PURE__*/ React.createElement(View, {
|
|
27
25
|
className: classNames([
|
|
28
26
|
"".concat(classPrefix, "-container"),
|
|
29
27
|
className
|
|
30
|
-
], (
|
|
28
|
+
], _define_property({}, "".concat(classPrefix, "-container-rtl"), rtl)),
|
|
31
29
|
style: baseStyle
|
|
32
30
|
}, /*#__PURE__*/ React.createElement(View, {
|
|
33
31
|
className: classPrefix
|