taro-ui 3.3.1 → 3.3.2
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/lib/common/component.d.ts +10 -0
- package/lib/common/component.js +27 -28
- package/lib/common/component.js.map +1 -1
- package/lib/common/utils.d.ts +41 -0
- package/lib/common/utils.js +169 -192
- package/lib/common/utils.js.map +1 -1
- package/lib/components/accordion/index.d.ts +14 -0
- package/lib/components/accordion/index.js +111 -106
- package/lib/components/accordion/index.js.map +1 -1
- package/lib/components/action-sheet/body/index.d.ts +5 -0
- package/lib/components/action-sheet/body/index.js +11 -8
- package/lib/components/action-sheet/body/index.js.map +1 -1
- package/lib/components/action-sheet/body/item/index.d.ts +9 -0
- package/lib/components/action-sheet/body/item/index.js +21 -18
- package/lib/components/action-sheet/body/item/index.js.map +1 -1
- package/lib/components/action-sheet/footer/index.d.ts +9 -0
- package/lib/components/action-sheet/footer/index.js +24 -18
- package/lib/components/action-sheet/footer/index.js.map +1 -1
- package/lib/components/action-sheet/header/index.d.ts +5 -0
- package/lib/components/action-sheet/header/index.js +14 -8
- package/lib/components/action-sheet/header/index.js.map +1 -1
- package/lib/components/action-sheet/index.d.ts +14 -0
- package/lib/components/action-sheet/index.js +69 -64
- package/lib/components/action-sheet/index.js.map +1 -1
- package/lib/components/activity-indicator/index.d.ts +8 -0
- package/lib/components/activity-indicator/index.js +33 -29
- package/lib/components/activity-indicator/index.js.map +1 -1
- package/lib/components/avatar/index.d.ts +9 -0
- package/lib/components/avatar/index.js +58 -55
- package/lib/components/avatar/index.js.map +1 -1
- package/lib/components/badge/index.d.ts +10 -0
- package/lib/components/badge/index.js +44 -35
- package/lib/components/badge/index.js.map +1 -1
- package/lib/components/button/index.d.ts +15 -0
- package/lib/components/button/index.js +165 -113
- package/lib/components/button/index.js.map +1 -1
- package/lib/components/calendar/body/index.d.ts +26 -0
- package/lib/components/calendar/body/index.js +279 -183
- package/lib/components/calendar/body/index.js.map +1 -1
- package/lib/components/calendar/common/constant.d.ts +3 -0
- package/lib/components/calendar/common/constant.js +8 -3
- package/lib/components/calendar/common/constant.js.map +1 -1
- package/lib/components/calendar/common/helper.d.ts +4 -0
- package/lib/components/calendar/common/helper.js +77 -76
- package/lib/components/calendar/common/helper.js.map +1 -1
- package/lib/components/calendar/common/plugins.d.ts +11 -0
- package/lib/components/calendar/common/plugins.js +50 -66
- package/lib/components/calendar/common/plugins.js.map +1 -1
- package/lib/components/calendar/controller/index.d.ts +5 -0
- package/lib/components/calendar/controller/index.js +49 -28
- package/lib/components/calendar/controller/index.js.map +1 -1
- package/lib/components/calendar/index.d.ts +20 -0
- package/lib/components/calendar/index.js +233 -196
- package/lib/components/calendar/index.js.map +1 -1
- package/lib/components/calendar/ui/date-list/index.d.ts +12 -0
- package/lib/components/calendar/ui/date-list/index.js +50 -39
- package/lib/components/calendar/ui/date-list/index.js.map +1 -1
- package/lib/components/calendar/ui/day-list/index.d.ts +4 -0
- package/lib/components/calendar/ui/day-list/index.js +9 -14
- package/lib/components/calendar/ui/day-list/index.js.map +1 -1
- package/lib/components/card/index.d.ts +9 -0
- package/lib/components/card/index.js +73 -52
- package/lib/components/card/index.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +9 -0
- package/lib/components/checkbox/index.js +52 -48
- package/lib/components/checkbox/index.js.map +1 -1
- package/lib/components/countdown/index.d.ts +20 -0
- package/lib/components/countdown/index.js +140 -125
- package/lib/components/countdown/index.js.map +1 -1
- package/lib/components/countdown/item/index.d.ts +9 -0
- package/lib/components/countdown/item/index.js +18 -18
- package/lib/components/countdown/item/index.js.map +1 -1
- package/lib/components/curtain/index.d.ts +10 -0
- package/lib/components/curtain/index.js +56 -39
- package/lib/components/curtain/index.js.map +1 -1
- package/lib/components/divider/index.d.ts +8 -0
- package/lib/components/divider/index.js +51 -34
- package/lib/components/divider/index.js.map +1 -1
- package/lib/components/drawer/index.d.ts +16 -0
- package/lib/components/drawer/index.js +106 -85
- package/lib/components/drawer/index.js.map +1 -1
- package/lib/components/fab/index.d.ts +9 -0
- package/lib/components/fab/index.js +22 -19
- package/lib/components/fab/index.js.map +1 -1
- package/lib/components/flex/index.d.ts +7 -0
- package/lib/components/flex/index.js +37 -34
- package/lib/components/flex/index.js.map +1 -1
- package/lib/components/flex/item/index.d.ts +7 -0
- package/lib/components/flex/item/index.js +30 -27
- package/lib/components/flex/item/index.js.map +1 -1
- package/lib/components/float-layout/index.d.ts +13 -0
- package/lib/components/float-layout/index.js +96 -68
- package/lib/components/float-layout/index.js.map +1 -1
- package/lib/components/form/index.d.ts +10 -0
- package/lib/components/form/index.js +37 -24
- package/lib/components/form/index.js.map +1 -1
- package/lib/components/grid/index.d.ts +9 -0
- package/lib/components/grid/index.js +92 -62
- package/lib/components/grid/index.js.map +1 -1
- package/lib/components/icon/index.d.ts +9 -0
- package/lib/components/icon/index.js +48 -31
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/image-picker/index.d.ts +11 -0
- package/lib/components/image-picker/index.js +152 -126
- package/lib/components/image-picker/index.js.map +1 -1
- package/lib/components/indexes/index.d.ts +29 -0
- package/lib/components/indexes/index.js +255 -198
- package/lib/components/indexes/index.js.map +1 -1
- package/lib/components/input/index.d.ts +17 -0
- package/lib/components/input/index.js +224 -160
- package/lib/components/input/index.js.map +1 -1
- package/lib/components/input-number/index.d.ts +13 -0
- package/lib/components/input-number/index.js +180 -152
- package/lib/components/input-number/index.js.map +1 -1
- package/lib/components/list/index.d.ts +8 -0
- package/lib/components/list/index.js +20 -13
- package/lib/components/list/index.js.map +1 -1
- package/lib/components/list/item/index.d.ts +11 -0
- package/lib/components/list/item/index.js +146 -99
- package/lib/components/list/item/index.js.map +1 -1
- package/lib/components/load-more/index.d.ts +9 -0
- package/lib/components/load-more/index.js +65 -41
- package/lib/components/load-more/index.js.map +1 -1
- package/lib/components/loading/index.d.ts +12 -0
- package/lib/components/loading/index.js +26 -26
- package/lib/components/loading/index.js.map +1 -1
- package/lib/components/message/index.d.ts +15 -0
- package/lib/components/message/index.js +72 -63
- package/lib/components/message/index.js.map +1 -1
- package/lib/components/modal/action/index.d.ts +8 -0
- package/lib/components/modal/action/index.js +20 -14
- package/lib/components/modal/action/index.js.map +1 -1
- package/lib/components/modal/content/index.d.ts +5 -0
- package/lib/components/modal/content/index.js +11 -8
- package/lib/components/modal/content/index.js.map +1 -1
- package/lib/components/modal/header/index.d.ts +5 -0
- package/lib/components/modal/header/index.js +11 -8
- package/lib/components/modal/header/index.js.map +1 -1
- package/lib/components/modal/index.d.ts +15 -0
- package/lib/components/modal/index.js +96 -87
- package/lib/components/modal/index.js.map +1 -1
- package/lib/components/nav-bar/index.d.ts +12 -0
- package/lib/components/nav-bar/index.js +210 -98
- package/lib/components/nav-bar/index.js.map +1 -1
- package/lib/components/noticebar/index.d.ts +16 -0
- package/lib/components/noticebar/index.js +177 -154
- package/lib/components/noticebar/index.js.map +1 -1
- package/lib/components/pagination/index.d.ts +12 -0
- package/lib/components/pagination/index.js +133 -102
- package/lib/components/pagination/index.js.map +1 -1
- package/lib/components/progress/index.d.ts +7 -0
- package/lib/components/progress/index.js +48 -40
- package/lib/components/progress/index.js.map +1 -1
- package/lib/components/radio/index.d.ts +9 -0
- package/lib/components/radio/index.js +48 -37
- package/lib/components/radio/index.js.map +1 -1
- package/lib/components/range/index.d.ts +22 -0
- package/lib/components/range/index.js +197 -142
- package/lib/components/range/index.js.map +1 -1
- package/lib/components/rate/index.d.ts +9 -0
- package/lib/components/rate/index.js +74 -48
- package/lib/components/rate/index.js.map +1 -1
- package/lib/components/search-bar/index.d.ts +16 -0
- package/lib/components/search-bar/index.js +167 -112
- package/lib/components/search-bar/index.js.map +1 -1
- package/lib/components/segmented-control/index.d.ts +9 -0
- package/lib/components/segmented-control/index.js +78 -53
- package/lib/components/segmented-control/index.js.map +1 -1
- package/lib/components/slider/index.d.ts +13 -0
- package/lib/components/slider/index.js +107 -69
- package/lib/components/slider/index.js.map +1 -1
- package/lib/components/steps/index.d.ts +9 -0
- package/lib/components/steps/index.js +61 -44
- package/lib/components/steps/index.js.map +1 -1
- package/lib/components/swipe-action/index.d.ts +27 -0
- package/lib/components/swipe-action/index.js +206 -157
- package/lib/components/swipe-action/index.js.map +1 -1
- package/lib/components/swipe-action/options/index.d.ts +5 -0
- package/lib/components/swipe-action/options/index.js +22 -8
- package/lib/components/swipe-action/options/index.js.map +1 -1
- package/lib/components/switch/index.d.ts +9 -0
- package/lib/components/switch/index.js +53 -42
- package/lib/components/switch/index.js.map +1 -1
- package/lib/components/tab-bar/index.d.ts +9 -0
- package/lib/components/tab-bar/index.js +164 -90
- package/lib/components/tab-bar/index.js.map +1 -1
- package/lib/components/tabs/index.d.ts +24 -0
- package/lib/components/tabs/index.js +203 -174
- package/lib/components/tabs/index.js.map +1 -1
- package/lib/components/tabs-pane/index.d.ts +8 -0
- package/lib/components/tabs-pane/index.js +37 -24
- package/lib/components/tabs-pane/index.js.map +1 -1
- package/lib/components/tag/index.d.ts +9 -0
- package/lib/components/tag/index.js +64 -44
- package/lib/components/tag/index.js.map +1 -1
- package/lib/components/textarea/index.d.ts +13 -0
- package/lib/components/textarea/index.js +132 -86
- package/lib/components/textarea/index.js.map +1 -1
- package/lib/components/timeline/index.d.ts +8 -0
- package/lib/components/timeline/index.js +70 -47
- package/lib/components/timeline/index.js.map +1 -1
- package/lib/components/toast/img.json +6 -3
- package/lib/components/toast/index.d.ts +16 -0
- package/lib/components/toast/index.js +111 -104
- package/lib/components/toast/index.js.map +1 -1
- package/lib/index.d.ts +53 -0
- package/lib/index.js +108 -54
- package/lib/index.js.map +1 -1
- package/{dist → lib}/style/components/grid.scss +2 -2
- package/lib/style/components/index.scss +52 -0
- package/{dist → lib}/style/components/list.scss +2 -2
- package/lib/style/index.css +11754 -0
- package/lib/style/index.css.map +1 -0
- package/lib/style/mixins/index.scss +18 -0
- package/{dist → lib}/style/mixins/libs/shade.scss +4 -2
- package/{dist → lib}/style/mixins/libs/tint.scss +4 -2
- package/{dist → lib}/style/variables/default.scss +1 -1
- package/package.json +24 -32
- package/rn/components/action-sheet/index.tsx +8 -14
- package/rn/components/calendar/ui/date-list/index.tsx +1 -1
- package/rn/components/drawer/index.tsx +15 -15
- package/rn/components/float-layout/index.tsx +3 -2
- package/rn/components/input/index.tsx +14 -7
- package/rn/components/input-number/index.tsx +19 -19
- package/rn/components/message/index.tsx +1 -1
- package/rn/components/swipe-action/index.rn.tsx +4 -2
- package/rn/components/swipe-action/index.tsx +6 -5
- package/rn/components/tab-bar/index.tsx +1 -1
- package/rn/components/tabs/index.tsx +14 -14
- package/rn/components/textarea/index.tsx +2 -2
- package/dist/index.esm.js +0 -8506
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -8567
- package/dist/index.js.map +0 -1
- package/dist/style/components/accordion.rn.scss +0 -79
- package/dist/style/components/action-sheet.rn.scss +0 -80
- package/dist/style/components/activity-indicator.rn.scss +0 -30
- package/dist/style/components/article.rn.scss +0 -59
- package/dist/style/components/avatar.rn.scss +0 -46
- package/dist/style/components/badge.rn.scss +0 -52
- package/dist/style/components/button.rn.scss +0 -80
- package/dist/style/components/calendar.rn.scss +0 -182
- package/dist/style/components/card.rn.scss +0 -88
- package/dist/style/components/checkbox.rn.scss +0 -108
- package/dist/style/components/countdown.rn.scss +0 -82
- package/dist/style/components/curtain.rn.scss +0 -129
- package/dist/style/components/divider.rn.scss +0 -33
- package/dist/style/components/drawer.rn.scss +0 -72
- package/dist/style/components/fab.rn.scss +0 -38
- package/dist/style/components/flex.rn.scss +0 -159
- package/dist/style/components/float-layout.rn.scss +0 -119
- package/dist/style/components/form.rn.scss +0 -12
- package/dist/style/components/grid.rn.scss +0 -104
- package/dist/style/components/icon.rn.scss +0 -221
- package/dist/style/components/image-picker.rn.scss +0 -108
- package/dist/style/components/index.rn.scss +0 -51
- package/dist/style/components/index.scss +0 -52
- package/dist/style/components/indexes.rn.scss +0 -53
- package/dist/style/components/input-number.rn.scss +0 -82
- package/dist/style/components/input.rn.scss +0 -149
- package/dist/style/components/list.rn.scss +0 -107
- package/dist/style/components/load-more.rn.scss +0 -28
- package/dist/style/components/loading.rn.scss +0 -45
- package/dist/style/components/message.rn.scss +0 -57
- package/dist/style/components/modal.rn.scss +0 -136
- package/dist/style/components/nav-bar.rn.scss +0 -123
- package/dist/style/components/noticebar.rn.scss +0 -111
- package/dist/style/components/pagination.rn.scss +0 -43
- package/dist/style/components/progress.rn.scss +0 -105
- package/dist/style/components/radio.rn.scss +0 -94
- package/dist/style/components/range.rn.scss +0 -52
- package/dist/style/components/rate.rn.scss +0 -48
- package/dist/style/components/search-bar.rn.scss +0 -134
- package/dist/style/components/segmented-control.rn.scss +0 -44
- package/dist/style/components/slider.rn.scss +0 -33
- package/dist/style/components/steps.rn.scss +0 -131
- package/dist/style/components/swipe-action.rn.scss +0 -53
- package/dist/style/components/switch.rn.scss +0 -61
- package/dist/style/components/tab-bar.rn.scss +0 -74
- package/dist/style/components/tabs.rn.scss +0 -205
- package/dist/style/components/tag.rn.scss +0 -74
- package/dist/style/components/textarea.rn.scss +0 -57
- package/dist/style/components/timeline.rn.scss +0 -89
- package/dist/style/components/toast.rn.scss +0 -112
- package/dist/style/index.rn.scss +0 -14
- package/dist/style/mixins/index.rn.scss +0 -18
- package/dist/style/mixins/index.scss +0 -18
- package/dist/style/mixins/libs/absolute-center.rn.scss +0 -9
- package/dist/style/mixins/libs/active.rn.scss +0 -10
- package/dist/style/mixins/libs/alignhack.rn.scss +0 -11
- package/dist/style/mixins/libs/border.rn.scss +0 -48
- package/dist/style/mixins/libs/clearfix.rn.scss +0 -21
- package/dist/style/mixins/libs/disabled.rn.scss +0 -6
- package/dist/style/mixins/libs/flex.rn.scss +0 -49
- package/dist/style/mixins/libs/hairline.rn.scss +0 -209
- package/dist/style/mixins/libs/line.rn.scss +0 -14
- package/dist/style/mixins/libs/overlay.rn.scss +0 -11
- package/dist/style/mixins/libs/placeholder.rn.scss +0 -12
- package/dist/style/mixins/libs/shade.rn.scss +0 -23
- package/dist/style/mixins/libs/tint.rn.scss +0 -23
- package/dist/style/themes/purple.rn.scss +0 -44
- package/dist/style/themes/red.rn.scss +0 -45
- package/dist/style/variables/default.rn.scss +0 -461
- package/types/accordion.d.ts +0 -49
- package/types/action-sheet.d.ts +0 -55
- package/types/activity-indicator.d.ts +0 -33
- package/types/avatar.d.ts +0 -39
- package/types/badge.d.ts +0 -24
- package/types/base.d.ts +0 -26
- package/types/button.d.ts +0 -70
- package/types/calendar.d.ts +0 -225
- package/types/card.d.ts +0 -48
- package/types/checkbox.d.ts +0 -24
- package/types/countdown.d.ts +0 -95
- package/types/curtain.d.ts +0 -26
- package/types/divider.d.ts +0 -33
- package/types/drawer.d.ts +0 -48
- package/types/fab.d.ts +0 -21
- package/types/flex.d.ts +0 -27
- package/types/float-button.d.ts +0 -26
- package/types/float-layout.d.ts +0 -73
- package/types/form.d.ts +0 -26
- package/types/grid.d.ts +0 -51
- package/types/icon.d.ts +0 -12
- package/types/image-picker.d.ts +0 -73
- package/types/index.d.ts +0 -55
- package/types/indexes.d.ts +0 -76
- package/types/input-number.d.ts +0 -89
- package/types/input.d.ts +0 -162
- package/types/list.d.ts +0 -84
- package/types/load-more.d.ts +0 -43
- package/types/message.d.ts +0 -43
- package/types/modal.d.ts +0 -62
- package/types/nav-bar.d.ts +0 -65
- package/types/noticebar.d.ts +0 -65
- package/types/pagination.d.ts +0 -51
- package/types/progress.d.ts +0 -30
- package/types/radio.d.ts +0 -47
- package/types/range.d.ts +0 -63
- package/types/rate.d.ts +0 -34
- package/types/search-bar.d.ts +0 -105
- package/types/segmented-control.d.ts +0 -44
- package/types/slider.d.ts +0 -73
- package/types/steps.d.ts +0 -69
- package/types/swipe-action.d.ts +0 -86
- package/types/switch.d.ts +0 -38
- package/types/tab-bar.d.ts +0 -98
- package/types/tabs-pane.d.ts +0 -25
- package/types/tabs.d.ts +0 -62
- package/types/tag.d.ts +0 -48
- package/types/textarea.d.ts +0 -113
- package/types/timeline.d.ts +0 -46
- package/types/toast.d.ts +0 -53
- /package/{dist → lib}/style/components/accordion.scss +0 -0
- /package/{dist → lib}/style/components/action-sheet.scss +0 -0
- /package/{dist → lib}/style/components/activity-indicator.scss +0 -0
- /package/{dist → lib}/style/components/article.scss +0 -0
- /package/{dist → lib}/style/components/avatar.scss +0 -0
- /package/{dist → lib}/style/components/badge.scss +0 -0
- /package/{dist → lib}/style/components/button.scss +0 -0
- /package/{dist → lib}/style/components/calendar.scss +0 -0
- /package/{dist → lib}/style/components/card.scss +0 -0
- /package/{dist → lib}/style/components/checkbox.scss +0 -0
- /package/{dist → lib}/style/components/countdown.scss +0 -0
- /package/{dist → lib}/style/components/curtain.scss +0 -0
- /package/{dist → lib}/style/components/divider.scss +0 -0
- /package/{dist → lib}/style/components/drawer.scss +0 -0
- /package/{dist → lib}/style/components/fab.scss +0 -0
- /package/{dist → lib}/style/components/flex.scss +0 -0
- /package/{dist → lib}/style/components/float-layout.scss +0 -0
- /package/{dist → lib}/style/components/form.scss +0 -0
- /package/{dist → lib}/style/components/icon.scss +0 -0
- /package/{dist → lib}/style/components/image-picker.scss +0 -0
- /package/{dist → lib}/style/components/indexes.scss +0 -0
- /package/{dist → lib}/style/components/input-number.scss +0 -0
- /package/{dist → lib}/style/components/input.scss +0 -0
- /package/{dist → lib}/style/components/load-more.scss +0 -0
- /package/{dist → lib}/style/components/loading.scss +0 -0
- /package/{dist → lib}/style/components/message.scss +0 -0
- /package/{dist → lib}/style/components/modal.scss +0 -0
- /package/{dist → lib}/style/components/nav-bar.scss +0 -0
- /package/{dist → lib}/style/components/noticebar.scss +0 -0
- /package/{dist → lib}/style/components/pagination.scss +0 -0
- /package/{dist → lib}/style/components/progress.scss +0 -0
- /package/{dist → lib}/style/components/radio.scss +0 -0
- /package/{dist → lib}/style/components/range.scss +0 -0
- /package/{dist → lib}/style/components/rate.scss +0 -0
- /package/{dist → lib}/style/components/search-bar.scss +0 -0
- /package/{dist → lib}/style/components/segmented-control.scss +0 -0
- /package/{dist → lib}/style/components/slider.scss +0 -0
- /package/{dist → lib}/style/components/steps.scss +0 -0
- /package/{dist → lib}/style/components/swipe-action.scss +0 -0
- /package/{dist → lib}/style/components/switch.scss +0 -0
- /package/{dist → lib}/style/components/tab-bar.scss +0 -0
- /package/{dist → lib}/style/components/tabs.scss +0 -0
- /package/{dist → lib}/style/components/tag.scss +0 -0
- /package/{dist → lib}/style/components/textarea.scss +0 -0
- /package/{dist → lib}/style/components/timeline.scss +0 -0
- /package/{dist → lib}/style/components/toast.scss +0 -0
- /package/{dist → lib}/style/index.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/absolute-center.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/active.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/alignhack.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/border.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/clearfix.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/disabled.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/flex.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/hairline.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/line.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/overlay.scss +0 -0
- /package/{dist → lib}/style/mixins/libs/placeholder.scss +0 -0
- /package/{dist → lib}/style/themes/purple.scss +0 -0
- /package/{dist → lib}/style/themes/red.scss +0 -0
package/types/range.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
type RangeTuple = [number, number]
|
|
6
|
-
|
|
7
|
-
export interface AtRangeProps extends AtComponent {
|
|
8
|
-
/**
|
|
9
|
-
* 滑块样式
|
|
10
|
-
*/
|
|
11
|
-
sliderStyle?: string | Object
|
|
12
|
-
/**
|
|
13
|
-
* 未选中部分滑动条的样式
|
|
14
|
-
*/
|
|
15
|
-
railStyle?: string | Object
|
|
16
|
-
/**
|
|
17
|
-
* 选中部分滑动条的样式
|
|
18
|
-
*/
|
|
19
|
-
trackStyle?: string | Object
|
|
20
|
-
/**
|
|
21
|
-
* 当前取值
|
|
22
|
-
* @default [0, 0]
|
|
23
|
-
*/
|
|
24
|
-
value?: RangeTuple
|
|
25
|
-
/**
|
|
26
|
-
* 最小值
|
|
27
|
-
* @default 0
|
|
28
|
-
*/
|
|
29
|
-
min?: number
|
|
30
|
-
/**
|
|
31
|
-
* 最大值
|
|
32
|
-
* @default 100
|
|
33
|
-
*/
|
|
34
|
-
max?: number
|
|
35
|
-
/**
|
|
36
|
-
* 滑块大小
|
|
37
|
-
* @default 28
|
|
38
|
-
*/
|
|
39
|
-
blockSize?: number
|
|
40
|
-
/**
|
|
41
|
-
* 是否禁用
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
disabled?: boolean
|
|
45
|
-
/**
|
|
46
|
-
* 当 Slider 的值发生改变时,会触发 onChange 事件,并把改变后的值作为参数传入。
|
|
47
|
-
*/
|
|
48
|
-
onChange?: (value: RangeTuple) => void
|
|
49
|
-
/**
|
|
50
|
-
* 与 onTouchEnd 触发时机一致,把当前值作为参数传入。
|
|
51
|
-
*/
|
|
52
|
-
onAfterChange?: (value: RangeTuple) => void
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface AtRangeState {
|
|
56
|
-
aX: number
|
|
57
|
-
bX: number
|
|
58
|
-
[sliderName: string]: number
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
declare const AtRange: ComponentClass<AtRangeProps>
|
|
62
|
-
|
|
63
|
-
export default AtRange
|
package/types/rate.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
import { CommonEventFunction } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
import AtComponent from './base'
|
|
5
|
-
|
|
6
|
-
export interface AtRateProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* 评分星星大小
|
|
9
|
-
* @default 20
|
|
10
|
-
*/
|
|
11
|
-
size?: number
|
|
12
|
-
/**
|
|
13
|
-
* 当前评分,开发者需要通过 onChange 事件来更新 value 值,必填
|
|
14
|
-
*/
|
|
15
|
-
value?: number
|
|
16
|
-
/**
|
|
17
|
-
* 最大评分
|
|
18
|
-
* @default 5
|
|
19
|
-
*/
|
|
20
|
-
max?: number
|
|
21
|
-
/**
|
|
22
|
-
* 星星间隔,单位根据环境自动转为 rpx 或 rem
|
|
23
|
-
* @default 5
|
|
24
|
-
*/
|
|
25
|
-
margin?: number
|
|
26
|
-
/**
|
|
27
|
-
* 输入框值改变时触发的事件,开发者需要通过 onChange 事件来更新 value 值变化,但不填写 onChange 函数时,该组件只读
|
|
28
|
-
*/
|
|
29
|
-
onChange?: CommonEventFunction
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare const AtRate: ComponentClass<AtRateProps>
|
|
33
|
-
|
|
34
|
-
export default AtRate
|
package/types/search-bar.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
CommonEventFunction,
|
|
4
|
-
CommonEvent
|
|
5
|
-
} from '@tarojs/components/types/common'
|
|
6
|
-
|
|
7
|
-
import AtComponent from './base'
|
|
8
|
-
|
|
9
|
-
export interface AtSearchBarProps extends AtComponent {
|
|
10
|
-
/**
|
|
11
|
-
* 输入框当前值
|
|
12
|
-
* @type {string}
|
|
13
|
-
* @description 必填,开发者需要通过 onChange 事件来更新 value 值
|
|
14
|
-
*/
|
|
15
|
-
value: string
|
|
16
|
-
/**
|
|
17
|
-
* 输入框占位符
|
|
18
|
-
* @type {string}
|
|
19
|
-
*/
|
|
20
|
-
placeholder?: string
|
|
21
|
-
/**
|
|
22
|
-
* 最大输入长度
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @default 140
|
|
25
|
-
*/
|
|
26
|
-
maxLength?: number
|
|
27
|
-
/**
|
|
28
|
-
* 是否固定顶部
|
|
29
|
-
* @type {boolean}
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
fixed?: boolean
|
|
33
|
-
/**
|
|
34
|
-
* 是否聚焦
|
|
35
|
-
* @type {boolean}
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
focus?: boolean
|
|
39
|
-
/**
|
|
40
|
-
* 是否禁止输入
|
|
41
|
-
* @type {boolean}
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
disabled?: boolean
|
|
45
|
-
/**
|
|
46
|
-
* 是否一直显示右侧按钮
|
|
47
|
-
* @type {boolean}
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
showActionButton?: boolean
|
|
51
|
-
/**
|
|
52
|
-
* 右侧按钮文案
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @default '搜索'
|
|
55
|
-
*/
|
|
56
|
-
actionName?: string
|
|
57
|
-
/**
|
|
58
|
-
* 输入框输入类型
|
|
59
|
-
* @description 可选择的值 'text', 'number', 'idcard', 'digit'
|
|
60
|
-
* @type {('text'|'number'|'idcard'|'digit')}
|
|
61
|
-
* @default 'text'
|
|
62
|
-
*/
|
|
63
|
-
inputType?: 'text' | 'number' | 'idcard' | 'digit'
|
|
64
|
-
/** 使用原生键盘
|
|
65
|
-
* @default true
|
|
66
|
-
* @supported alipay
|
|
67
|
-
*/
|
|
68
|
-
enableNative?: boolean
|
|
69
|
-
/**
|
|
70
|
-
* 输入框值改变时触发的事件
|
|
71
|
-
* @description 必填,开发者需要通过 onChange 事件来更新 value 值变化
|
|
72
|
-
*/
|
|
73
|
-
onChange: (value: string, event: CommonEvent) => void
|
|
74
|
-
/**
|
|
75
|
-
* 输入框聚焦时触发
|
|
76
|
-
* @description height 参数在基础库 1.9.90 起支持
|
|
77
|
-
*/
|
|
78
|
-
onFocus?: CommonEventFunction
|
|
79
|
-
/**
|
|
80
|
-
* 输入框值失去焦点时触发的事件
|
|
81
|
-
*/
|
|
82
|
-
onBlur?: CommonEventFunction
|
|
83
|
-
/**
|
|
84
|
-
* 点击清除按钮时触发事件
|
|
85
|
-
* @description 若不传,则默认传空字符串调用 onChange 函数,Taro UI 2.0.3 起支持
|
|
86
|
-
*/
|
|
87
|
-
onClear?: CommonEventFunction
|
|
88
|
-
/**
|
|
89
|
-
* 点击完成按钮时触发
|
|
90
|
-
* @description H5 版中目前需借用 Form 组件的onSubmit事件来替代
|
|
91
|
-
*/
|
|
92
|
-
onConfirm?: CommonEventFunction
|
|
93
|
-
/**
|
|
94
|
-
* 右侧按钮点击触发事件
|
|
95
|
-
*/
|
|
96
|
-
onActionClick?: CommonEventFunction
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface AtSearchBarState {
|
|
100
|
-
isFocus: boolean
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
declare const AtSearchBar: ComponentClass<AtSearchBarProps>
|
|
104
|
-
|
|
105
|
-
export default AtSearchBar
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
import { CommonEvent } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
import AtComponent from './base'
|
|
5
|
-
|
|
6
|
-
export interface AtSegmentedControlProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* 当前选中的 tab 索引值,从 0 计数
|
|
9
|
-
* @default 0
|
|
10
|
-
*/
|
|
11
|
-
current: number
|
|
12
|
-
/**
|
|
13
|
-
* 背景颜色与选中标签字体的颜色
|
|
14
|
-
* @default #fff
|
|
15
|
-
*/
|
|
16
|
-
color?: string
|
|
17
|
-
/**
|
|
18
|
-
* 选中的标签背景色与边框颜色
|
|
19
|
-
* @default #6190E8
|
|
20
|
-
*/
|
|
21
|
-
selectedColor?: string
|
|
22
|
-
/**
|
|
23
|
-
* 字体大小,单位 h5 为 rem,小程序为 rem
|
|
24
|
-
* @default 28
|
|
25
|
-
*/
|
|
26
|
-
fontSize?: number
|
|
27
|
-
/**
|
|
28
|
-
* 是否禁止点击
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
disabled?: boolean
|
|
32
|
-
/**
|
|
33
|
-
* 选项数组,值是字符串,eg: ['标签页1', '标签页2']
|
|
34
|
-
*/
|
|
35
|
-
values: string[]
|
|
36
|
-
/**
|
|
37
|
-
* 点击触发事件,开发者需要通过 onClick 事件来更新 current 值变化,onClick 函数必填
|
|
38
|
-
*/
|
|
39
|
-
onClick: (index: number, event: CommonEvent) => void
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare const AtSegmentedControl: ComponentClass<AtSegmentedControlProps>
|
|
43
|
-
|
|
44
|
-
export default AtSegmentedControl
|
package/types/slider.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
import AtComponent from './base'
|
|
3
|
-
|
|
4
|
-
declare type SliderFunction = (value: number) => void
|
|
5
|
-
|
|
6
|
-
export interface AtSliderProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* 最小值
|
|
9
|
-
* @default 0
|
|
10
|
-
*/
|
|
11
|
-
min?: number
|
|
12
|
-
/**
|
|
13
|
-
* 最大值
|
|
14
|
-
* @default 100
|
|
15
|
-
*/
|
|
16
|
-
max?: number
|
|
17
|
-
/**
|
|
18
|
-
* 步长,取值必须大于 0,并且可被 max - min 整除
|
|
19
|
-
* @default 1
|
|
20
|
-
*/
|
|
21
|
-
step?: number
|
|
22
|
-
/**
|
|
23
|
-
* 当前取值
|
|
24
|
-
* @default 0
|
|
25
|
-
*/
|
|
26
|
-
value?: number
|
|
27
|
-
/**
|
|
28
|
-
* 是否禁用
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
disabled?: boolean
|
|
32
|
-
/**
|
|
33
|
-
* 已选择的颜色
|
|
34
|
-
* @default #6190e8
|
|
35
|
-
*/
|
|
36
|
-
activeColor?: string
|
|
37
|
-
/**
|
|
38
|
-
* 背景条的颜色
|
|
39
|
-
* @default #e9e9e9
|
|
40
|
-
*/
|
|
41
|
-
backgroundColor?: string
|
|
42
|
-
/**
|
|
43
|
-
* 滑块的大小,取值范围为 12-28
|
|
44
|
-
* @default 28
|
|
45
|
-
*/
|
|
46
|
-
blockSize?: number
|
|
47
|
-
/**
|
|
48
|
-
* 滑块的颜色
|
|
49
|
-
* @default #ffffff
|
|
50
|
-
*/
|
|
51
|
-
blockColor?: string
|
|
52
|
-
/**
|
|
53
|
-
* 是否显示当前的 Value
|
|
54
|
-
* @default false
|
|
55
|
-
*/
|
|
56
|
-
showValue?: boolean
|
|
57
|
-
/**
|
|
58
|
-
* 完成一次拖动后触发的事件
|
|
59
|
-
*/
|
|
60
|
-
onChange?: SliderFunction
|
|
61
|
-
/**
|
|
62
|
-
* 拖动过程中触发的事件
|
|
63
|
-
*/
|
|
64
|
-
onChanging?: SliderFunction
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface AtSliderState {
|
|
68
|
-
_value: number
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
declare const AtSlider: ComponentClass<AtSliderProps>
|
|
72
|
-
|
|
73
|
-
export default AtSlider
|
package/types/steps.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
import { CommonEvent } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
import AtComponent from './base'
|
|
5
|
-
|
|
6
|
-
export interface Icon {
|
|
7
|
-
/**
|
|
8
|
-
* 图标类型
|
|
9
|
-
*/
|
|
10
|
-
value?: string
|
|
11
|
-
/**
|
|
12
|
-
* 激活态颜色
|
|
13
|
-
*/
|
|
14
|
-
activeColor?: string
|
|
15
|
-
/**
|
|
16
|
-
* 非激活态颜色
|
|
17
|
-
*/
|
|
18
|
-
inactiveColor?: string
|
|
19
|
-
/**
|
|
20
|
-
* 大小
|
|
21
|
-
*/
|
|
22
|
-
size?: string | number
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface Item {
|
|
26
|
-
/**
|
|
27
|
-
* 步骤标题
|
|
28
|
-
*/
|
|
29
|
-
title?: string
|
|
30
|
-
/**
|
|
31
|
-
* 步骤说明文字
|
|
32
|
-
*/
|
|
33
|
-
desc?: string
|
|
34
|
-
/**
|
|
35
|
-
* 图标信息,
|
|
36
|
-
* value:图标类型,
|
|
37
|
-
* activeColor:激活态颜色,
|
|
38
|
-
* inactiveColor:非激活态颜色,
|
|
39
|
-
* size:大小
|
|
40
|
-
*/
|
|
41
|
-
icon?: Icon
|
|
42
|
-
/**
|
|
43
|
-
* 步骤的状态,只允许 'success' 或 'error'
|
|
44
|
-
*/
|
|
45
|
-
status?: 'success' | 'error'
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface AtStepsProps extends AtComponent {
|
|
49
|
-
/**
|
|
50
|
-
* 当前步骤索引值。
|
|
51
|
-
*
|
|
52
|
-
* **注意:** 必填,开发者需要通过 onChange 事件来更新 current 值。
|
|
53
|
-
*/
|
|
54
|
-
current: number
|
|
55
|
-
/**
|
|
56
|
-
* 步骤条数据列表
|
|
57
|
-
*/
|
|
58
|
-
items?: Array<Item>
|
|
59
|
-
/**
|
|
60
|
-
* 点击触发事件。
|
|
61
|
-
*
|
|
62
|
-
* **注意:** 开发者需要通过 onChange 事件来更新 current,onChange 函数必填
|
|
63
|
-
*/
|
|
64
|
-
onChange: (current: number, event: CommonEvent) => void
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
declare const AtSteps: ComponentClass<AtStepsProps>
|
|
68
|
-
|
|
69
|
-
export default AtSteps
|
package/types/swipe-action.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
CommonEventFunction,
|
|
4
|
-
CommonEvent
|
|
5
|
-
} from '@tarojs/components/types/common'
|
|
6
|
-
|
|
7
|
-
import AtComponent from './base'
|
|
8
|
-
|
|
9
|
-
export interface SwipeActionOption {
|
|
10
|
-
/**
|
|
11
|
-
* 选项名称
|
|
12
|
-
*/
|
|
13
|
-
text: string
|
|
14
|
-
/**
|
|
15
|
-
* 选项样式
|
|
16
|
-
*/
|
|
17
|
-
style?: object | string
|
|
18
|
-
/**
|
|
19
|
-
* 选项样式类名
|
|
20
|
-
*/
|
|
21
|
-
className?: string
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface AtSwipeActionProps extends AtComponent {
|
|
25
|
-
/**
|
|
26
|
-
* 是否开启
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
isOpened?: boolean
|
|
30
|
-
/**
|
|
31
|
-
* 是否禁止滑动
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
disabled?: boolean
|
|
35
|
-
/**
|
|
36
|
-
* 点击选项时,是否自动关闭
|
|
37
|
-
* @default false
|
|
38
|
-
*/
|
|
39
|
-
autoClose?: boolean
|
|
40
|
-
/**
|
|
41
|
-
* 展示的选项数组
|
|
42
|
-
*/
|
|
43
|
-
options?: SwipeActionOption[]
|
|
44
|
-
/**
|
|
45
|
-
* 点击触发事件
|
|
46
|
-
*/
|
|
47
|
-
onClick?: (item: SwipeActionOption, index: number, event: CommonEvent) => void
|
|
48
|
-
/**
|
|
49
|
-
* 完全打开时触发
|
|
50
|
-
*/
|
|
51
|
-
onOpened?: CommonEventFunction
|
|
52
|
-
/**
|
|
53
|
-
* 完全关闭时触发
|
|
54
|
-
*/
|
|
55
|
-
onClosed?: CommonEventFunction
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* 滑块最大滑动距离,一般是按钮个数乘以按钮宽度
|
|
59
|
-
* @deprecated 已废弃,无需设置 maxDistance
|
|
60
|
-
*/
|
|
61
|
-
maxDistance?: number
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* SwipeAction 组件宽度
|
|
65
|
-
* @deprecated 已废弃,无需设置 areaWidth
|
|
66
|
-
*/
|
|
67
|
-
areaWidth?: number
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export interface AtSwipeActionState {
|
|
71
|
-
componentId: string
|
|
72
|
-
offsetSize: number
|
|
73
|
-
_isOpened: boolean
|
|
74
|
-
needAnimation: boolean
|
|
75
|
-
eleWidth: number
|
|
76
|
-
maxOffsetSize: number
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface AtSwipeActionOptionsProps extends AtComponent {
|
|
80
|
-
componentId: string
|
|
81
|
-
options: SwipeActionOption[]
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
declare const AtSwipeAction: ComponentClass<AtSwipeActionProps>
|
|
85
|
-
|
|
86
|
-
export default AtSwipeAction
|
package/types/switch.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export interface AtSwitchProps extends AtComponent {
|
|
6
|
-
/**
|
|
7
|
-
* 标签名
|
|
8
|
-
*/
|
|
9
|
-
title?: string
|
|
10
|
-
/**
|
|
11
|
-
* 背景颜色
|
|
12
|
-
* @default #6190e8
|
|
13
|
-
*/
|
|
14
|
-
color?: string
|
|
15
|
-
/**
|
|
16
|
-
* 是否显示开启
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
checked?: boolean
|
|
20
|
-
/**
|
|
21
|
-
* 是否禁止点击
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
disabled?: boolean
|
|
25
|
-
/**
|
|
26
|
-
* 是否显示下划线边框
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
border?: boolean
|
|
30
|
-
/**
|
|
31
|
-
* 输入框值改变时触发的事件
|
|
32
|
-
*/
|
|
33
|
-
onChange?: (value: boolean) => void
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
declare const AtSwitch: ComponentClass<AtSwitchProps>
|
|
37
|
-
|
|
38
|
-
export default AtSwitch
|
package/types/tab-bar.d.ts
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { ReactNode, ComponentClass } from 'react'
|
|
2
|
-
import { CommonEvent } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
import AtComponent from './base'
|
|
5
|
-
|
|
6
|
-
export interface TabItem {
|
|
7
|
-
/**
|
|
8
|
-
* text 可显示的最大数字,超过则显示最大数字加'+',如'99+'
|
|
9
|
-
*/
|
|
10
|
-
max?: number
|
|
11
|
-
/**
|
|
12
|
-
* 是否显示红点,优先级比 text 高
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
dot?: boolean
|
|
16
|
-
/**
|
|
17
|
-
* 右上角显示到文本,可以为数字或文字,如果有 dot,优先显示 dot
|
|
18
|
-
*/
|
|
19
|
-
text?: string | number
|
|
20
|
-
/**
|
|
21
|
-
* 标题
|
|
22
|
-
*/
|
|
23
|
-
title: ReactNode
|
|
24
|
-
/**
|
|
25
|
-
* icon className 前缀,用于第三方字体图标库,
|
|
26
|
-
* 比如想使用'fa fa-clock' 的图标,则传入 iconPrefixClass='fa' iconType='clock',
|
|
27
|
-
* 参考[拓展图标库详细](https://jd-opensource.github.io/taro-ui/#/docs/icon)
|
|
28
|
-
*/
|
|
29
|
-
iconPrefixClass?: string
|
|
30
|
-
/**
|
|
31
|
-
* 未选中时展示的 icon 类型,可扩展第三方字体图标库,
|
|
32
|
-
* 参考[拓展图标库详细](https://jd-opensource.github.io/taro-ui/#/docs/icon)
|
|
33
|
-
*/
|
|
34
|
-
iconType?: string
|
|
35
|
-
/**
|
|
36
|
-
* 选中时展示的 icon 类型,可扩展第三方字体图标库,
|
|
37
|
-
* 参考[拓展图标库详细](https://jd-opensource.github.io/taro-ui/#/docs/icon)
|
|
38
|
-
*/
|
|
39
|
-
selectedIconType?: string
|
|
40
|
-
/**
|
|
41
|
-
* 未选中时图片 icon 的链接
|
|
42
|
-
*/
|
|
43
|
-
image?: string
|
|
44
|
-
/**
|
|
45
|
-
* 选中时图片 icon 的链接
|
|
46
|
-
*/
|
|
47
|
-
selectedImage?: string
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface AtTabBarProps extends AtComponent {
|
|
51
|
-
/**
|
|
52
|
-
* 是否固定底部
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
fixed?: boolean
|
|
56
|
-
/**
|
|
57
|
-
* 背景颜色
|
|
58
|
-
* @default #fff
|
|
59
|
-
*/
|
|
60
|
-
backgroundColor?: string
|
|
61
|
-
/**
|
|
62
|
-
* 当前选中的标签索引值,从 0 计数
|
|
63
|
-
* @default 0
|
|
64
|
-
*/
|
|
65
|
-
current: number
|
|
66
|
-
/**
|
|
67
|
-
* 图标大小
|
|
68
|
-
* @default 24
|
|
69
|
-
*/
|
|
70
|
-
iconSize?: number
|
|
71
|
-
/**
|
|
72
|
-
* 字体大小
|
|
73
|
-
* @default 14
|
|
74
|
-
*/
|
|
75
|
-
fontSize?: number
|
|
76
|
-
/**
|
|
77
|
-
* 未选中标签字体与图标颜色
|
|
78
|
-
* @default #333
|
|
79
|
-
*/
|
|
80
|
-
color?: string
|
|
81
|
-
/**
|
|
82
|
-
* 选中标签字体与图标颜色
|
|
83
|
-
* @default #6190E8
|
|
84
|
-
*/
|
|
85
|
-
selectedColor?: string
|
|
86
|
-
/**
|
|
87
|
-
* tab 列表
|
|
88
|
-
*/
|
|
89
|
-
tabList: TabItem[]
|
|
90
|
-
/**
|
|
91
|
-
* 点击触发事件,开发者需要通过 onClick 事件来更新 current 值变化,onClick 函数必填
|
|
92
|
-
*/
|
|
93
|
-
onClick: (index: number, event: CommonEvent) => void
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
declare const AtTabBar: ComponentClass<AtTabBarProps>
|
|
97
|
-
|
|
98
|
-
export default AtTabBar
|
package/types/tabs-pane.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export interface AtTabsPaneProps extends AtComponent {
|
|
6
|
-
/**
|
|
7
|
-
* Tab 方向,请跟 AtTabs 保持一致
|
|
8
|
-
* @default 'horizontal'
|
|
9
|
-
*/
|
|
10
|
-
tabDirection?: 'horizontal' | 'vertical'
|
|
11
|
-
/**
|
|
12
|
-
* 当前选中的标签索引值,从 0 计数,请跟 AtTabs 保持一致
|
|
13
|
-
* @default 0
|
|
14
|
-
*/
|
|
15
|
-
current: number
|
|
16
|
-
/**
|
|
17
|
-
* tabPane 排序,从 0 计数
|
|
18
|
-
* @default 0
|
|
19
|
-
*/
|
|
20
|
-
index: number
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare const AtTabsPane: ComponentClass<AtTabsPaneProps>
|
|
24
|
-
|
|
25
|
-
export default AtTabsPane
|
package/types/tabs.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
import { CommonEvent } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
import AtComponent from './base'
|
|
5
|
-
|
|
6
|
-
export interface TabItem {
|
|
7
|
-
/**
|
|
8
|
-
* 标题
|
|
9
|
-
*/
|
|
10
|
-
title: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface AtTabsProps extends AtComponent {
|
|
14
|
-
/**
|
|
15
|
-
* Tab 方向,请跟 AtTabPane 保持一致
|
|
16
|
-
* @default 'horizontal'
|
|
17
|
-
*/
|
|
18
|
-
tabDirection?: 'horizontal' | 'vertical'
|
|
19
|
-
/**
|
|
20
|
-
* Tab 高度,当 tabDirection='vertical' 时,需要设置;
|
|
21
|
-
* 当 tabDirection='horizontal' 时,会自动根据内容撑开,请勿设置
|
|
22
|
-
*/
|
|
23
|
-
height?: string
|
|
24
|
-
/**
|
|
25
|
-
* 当前选中的标签索引值,从 0 计数,开发者需要通过 onClick 事件来改变 current,从而切换 tab
|
|
26
|
-
* @default 0
|
|
27
|
-
*/
|
|
28
|
-
current: number
|
|
29
|
-
/**
|
|
30
|
-
* 是否滚动,当标签太多时,建议使用。否则会出现部分标签被隐藏
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
scroll?: boolean
|
|
34
|
-
/**
|
|
35
|
-
* 是否开启切换动画
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
animated?: boolean
|
|
39
|
-
/**
|
|
40
|
-
* 是否支持手势滑动切换内容页,当 tabDirection='vertical' 时,无论是否设置,都不支持手势滑动切换内容页
|
|
41
|
-
* @default true
|
|
42
|
-
*/
|
|
43
|
-
swipeable?: boolean
|
|
44
|
-
/**
|
|
45
|
-
* tab 列表
|
|
46
|
-
*/
|
|
47
|
-
tabList: TabItem[]
|
|
48
|
-
/**
|
|
49
|
-
* 点击或滑动时触发事件
|
|
50
|
-
*/
|
|
51
|
-
onClick: (index: number, event: CommonEvent) => void
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface AtTabsState {
|
|
55
|
-
_scrollLeft: number
|
|
56
|
-
_scrollTop: number
|
|
57
|
-
_scrollIntoView: string
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
declare const AtTabs: ComponentClass<AtTabsProps>
|
|
61
|
-
|
|
62
|
-
export default AtTabs
|