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/drawer.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export interface AtDrawerProps extends AtComponent {
|
|
6
|
-
/**
|
|
7
|
-
* 展示或隐藏
|
|
8
|
-
* @default false
|
|
9
|
-
*/
|
|
10
|
-
show: boolean
|
|
11
|
-
/**
|
|
12
|
-
* 是否需要遮罩
|
|
13
|
-
* @default true
|
|
14
|
-
*/
|
|
15
|
-
mask?: boolean
|
|
16
|
-
/**
|
|
17
|
-
* 抽屉宽度
|
|
18
|
-
* @default 230px
|
|
19
|
-
*/
|
|
20
|
-
width?: string
|
|
21
|
-
/**
|
|
22
|
-
* 是否从右侧滑出
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
right?: boolean
|
|
26
|
-
/**
|
|
27
|
-
* Array
|
|
28
|
-
*/
|
|
29
|
-
items?: Array<string>
|
|
30
|
-
/**
|
|
31
|
-
* 点击菜单时触发
|
|
32
|
-
*/
|
|
33
|
-
onItemClick?: (index: number) => void
|
|
34
|
-
/**
|
|
35
|
-
* 动画结束组件关闭的时候触发
|
|
36
|
-
*/
|
|
37
|
-
onClose?: () => void
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface AtDrawerState {
|
|
41
|
-
animShow: boolean
|
|
42
|
-
translateX?: any
|
|
43
|
-
_show: boolean
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
declare const AtDrawer: ComponentClass<AtDrawerProps>
|
|
47
|
-
|
|
48
|
-
export default AtDrawer
|
package/types/fab.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
import { CommonEventFunction } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import AtComponent from './base'
|
|
6
|
-
|
|
7
|
-
export interface AtFabProps extends AtComponent {
|
|
8
|
-
/**
|
|
9
|
-
* 大小尺寸
|
|
10
|
-
* @default 'normal'
|
|
11
|
-
*/
|
|
12
|
-
size?: 'normal' | 'small'
|
|
13
|
-
/**
|
|
14
|
-
* 点击标签时触发
|
|
15
|
-
*/
|
|
16
|
-
onClick?: CommonEventFunction
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
declare const AtFab: ComponentClass<AtFabProps>
|
|
20
|
-
|
|
21
|
-
export default AtFab
|
package/types/flex.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export interface AtFlexItemProps extends AtComponent {
|
|
6
|
-
isAuto: boolean
|
|
7
|
-
isWrap: boolean
|
|
8
|
-
align: 'top' | 'bottom' | 'center'
|
|
9
|
-
size: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
10
|
-
offset: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface AtFlexProps extends AtComponent {
|
|
14
|
-
wrap: 'no-wrap' | 'wrap' | 'wrap-reverse'
|
|
15
|
-
align: 'start' | 'end' | 'center' | 'stretch' | 'baseline'
|
|
16
|
-
justify: 'start' | 'end' | 'center' | 'between' | 'around'
|
|
17
|
-
dirction: 'row' | 'column' | 'row-reverse' | 'column-reverse'
|
|
18
|
-
alignContent: 'start' | 'end' | 'center' | 'stretch' | 'between' | 'around'
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare const AtFlexItem: ComponentClass<AtFlexItemProps>
|
|
22
|
-
|
|
23
|
-
declare const AtFlex: ComponentClass<AtFlexProps>
|
|
24
|
-
|
|
25
|
-
export { AtFlexItem, AtFlex }
|
|
26
|
-
|
|
27
|
-
export default AtFlex
|
package/types/float-button.d.ts
DELETED
|
@@ -1,26 +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 AtFloatButtonProps extends AtComponent {
|
|
7
|
-
size?: number
|
|
8
|
-
|
|
9
|
-
icon?: string
|
|
10
|
-
|
|
11
|
-
onClick?: CommonEventFunction
|
|
12
|
-
|
|
13
|
-
onTouchStart?: CommonEventFunction
|
|
14
|
-
|
|
15
|
-
onTouchEnd?: CommonEventFunction
|
|
16
|
-
|
|
17
|
-
backgroundColor?: string
|
|
18
|
-
|
|
19
|
-
touchedBackgroundColor?: string
|
|
20
|
-
|
|
21
|
-
borderColor?: string
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare const AtFloatButton: ComponentClass<AtFloatButtonProps>
|
|
25
|
-
|
|
26
|
-
export default AtFloatButton
|
package/types/float-layout.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-restricted-globals */
|
|
2
|
-
import { ComponentClass } from 'react'
|
|
3
|
-
import { CommonEventFunction } from '@tarojs/components/types/common'
|
|
4
|
-
|
|
5
|
-
import AtComponent from './base'
|
|
6
|
-
|
|
7
|
-
export interface AtFloatLayoutProps extends AtComponent {
|
|
8
|
-
/**
|
|
9
|
-
* 控制是否出现在页面上
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
isOpened: boolean
|
|
13
|
-
/**
|
|
14
|
-
* 元素的标题
|
|
15
|
-
*/
|
|
16
|
-
title?: string
|
|
17
|
-
/**
|
|
18
|
-
* 是否垂直滚动
|
|
19
|
-
* @default true
|
|
20
|
-
*/
|
|
21
|
-
scrollY?: boolean
|
|
22
|
-
/**
|
|
23
|
-
* 是否水平滚动
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
scrollX?: boolean
|
|
27
|
-
/**
|
|
28
|
-
* 设置竖向滚动条位置
|
|
29
|
-
*/
|
|
30
|
-
scrollTop?: number
|
|
31
|
-
/**
|
|
32
|
-
* 设置横向滚动条位置
|
|
33
|
-
*/
|
|
34
|
-
scrollLeft?: number
|
|
35
|
-
/**
|
|
36
|
-
* 距顶部/左边多远时,触发 scrolltolower 事件
|
|
37
|
-
*/
|
|
38
|
-
upperThreshold?: number
|
|
39
|
-
/**
|
|
40
|
-
* 距底部/右边多远时,触发 scrolltolower 事件
|
|
41
|
-
*/
|
|
42
|
-
lowerThreshold?: number
|
|
43
|
-
/**
|
|
44
|
-
* 在设置滚动条位置时使用动画过渡
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
scrollWithAnimation?: boolean
|
|
48
|
-
/**
|
|
49
|
-
* 元素被关闭时候触发的事件
|
|
50
|
-
*/
|
|
51
|
-
onClose?: CommonEventFunction
|
|
52
|
-
/**
|
|
53
|
-
* 滚动时触发的事件
|
|
54
|
-
*/
|
|
55
|
-
onScroll?: CommonEventFunction
|
|
56
|
-
/**
|
|
57
|
-
* 滚动到顶部/左边,会触发 onScrollToUpper 事件
|
|
58
|
-
*/
|
|
59
|
-
onScrollToUpper?: CommonEventFunction
|
|
60
|
-
/**
|
|
61
|
-
* 滚动到底部/右边,会触发 onScrollToLower 事件
|
|
62
|
-
*/
|
|
63
|
-
onScrollToLower?: CommonEventFunction
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface AtFloatLayoutState {
|
|
67
|
-
_isOpened: boolean
|
|
68
|
-
translateY?: any
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
declare const AtFloatLayout: ComponentClass<AtFloatLayoutProps>
|
|
72
|
-
|
|
73
|
-
export default AtFloatLayout
|
package/types/form.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
import { CommonEvent } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
declare type FormFunction = (event: CommonEvent) => void
|
|
5
|
-
|
|
6
|
-
import AtComponent from './base'
|
|
7
|
-
|
|
8
|
-
export interface AtFormProps extends AtComponent {
|
|
9
|
-
/**
|
|
10
|
-
* 是否返回 formId 用于发送模板消息
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
reportSubmit?: boolean
|
|
14
|
-
/**
|
|
15
|
-
* 携带 form 中的数据触发 submit 事件,由于小程序组件化的限制,onSubmit 事件获得的 event 中的 event.detail.value 始终为空对象,开发者要获取数据,可以自行在页面的 state 中获取
|
|
16
|
-
*/
|
|
17
|
-
onSubmit?: FormFunction
|
|
18
|
-
/**
|
|
19
|
-
* 表单重置时会触发 reset 事件
|
|
20
|
-
*/
|
|
21
|
-
onReset?: FormFunction
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare const AtForm: ComponentClass<AtFormProps>
|
|
25
|
-
|
|
26
|
-
export default AtForm
|
package/types/grid.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
import { CommonEvent } from '@tarojs/components/types/common'
|
|
3
|
-
import AtComponent, { AtIconBaseProps } from './base'
|
|
4
|
-
|
|
5
|
-
export interface AtGridItem {
|
|
6
|
-
/**
|
|
7
|
-
* 宫格图片
|
|
8
|
-
*/
|
|
9
|
-
image?: string
|
|
10
|
-
/**
|
|
11
|
-
* 宫格文字
|
|
12
|
-
*/
|
|
13
|
-
value?: string
|
|
14
|
-
/**
|
|
15
|
-
* 宫格图标
|
|
16
|
-
*/
|
|
17
|
-
iconInfo?: AtIconBaseProps
|
|
18
|
-
/**
|
|
19
|
-
* 允许用户扩充 Item 字段
|
|
20
|
-
*/
|
|
21
|
-
[key: string]: any
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface AtGridProps extends AtComponent {
|
|
25
|
-
/**
|
|
26
|
-
* 宫格布局数据源
|
|
27
|
-
*/
|
|
28
|
-
data: Array<AtGridItem>
|
|
29
|
-
/**
|
|
30
|
-
* 每一列有多少个
|
|
31
|
-
*/
|
|
32
|
-
columnNum?: number
|
|
33
|
-
/**
|
|
34
|
-
* 是否有边框
|
|
35
|
-
* @default true
|
|
36
|
-
*/
|
|
37
|
-
hasBorder?: boolean
|
|
38
|
-
/**
|
|
39
|
-
* 布局模式
|
|
40
|
-
* @default square
|
|
41
|
-
*/
|
|
42
|
-
mode?: 'square' | 'rect'
|
|
43
|
-
/**
|
|
44
|
-
* 点击宫格触发的事件
|
|
45
|
-
*/
|
|
46
|
-
onClick?: (item: AtGridItem, index: number, event: CommonEvent) => void
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare const AtGrid: ComponentClass<AtGridProps>
|
|
50
|
-
|
|
51
|
-
export default AtGrid
|
package/types/icon.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
import { CommonEventFunction } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
import AtComponent, { AtIconBaseProps } from './base'
|
|
5
|
-
|
|
6
|
-
export interface AtIconProps extends AtComponent, AtIconBaseProps {
|
|
7
|
-
onClick?: CommonEventFunction
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare const AtIcon: ComponentClass<AtIconProps>
|
|
11
|
-
|
|
12
|
-
export default AtIcon
|
package/types/image-picker.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
interface FileItem {
|
|
6
|
-
path: string
|
|
7
|
-
|
|
8
|
-
size: number
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface File {
|
|
12
|
-
url: string
|
|
13
|
-
|
|
14
|
-
file?: FileItem
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface AtImagePickerProps extends AtComponent {
|
|
18
|
-
/**
|
|
19
|
-
* 图片文件数组, 元素为对象, 包含属性 url(必选)
|
|
20
|
-
*/
|
|
21
|
-
files: File[]
|
|
22
|
-
/**
|
|
23
|
-
* 图片预览模式,详见[微信开发者文档](https://developers.weixin.qq.com/miniprogram/dev/component/image.html)
|
|
24
|
-
* @default 'aspectFill'
|
|
25
|
-
*/
|
|
26
|
-
mode?: 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right'
|
|
27
|
-
/**
|
|
28
|
-
* 是否显示添加图片按钮
|
|
29
|
-
* @default true
|
|
30
|
-
*/
|
|
31
|
-
showAddBtn?: boolean
|
|
32
|
-
/**
|
|
33
|
-
* 是否支持多选
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
multiple?: boolean
|
|
37
|
-
/**
|
|
38
|
-
* 单行的图片数量,不能为 0 或负数
|
|
39
|
-
* @default 4
|
|
40
|
-
*/
|
|
41
|
-
length?: number
|
|
42
|
-
/**
|
|
43
|
-
* 最多可以选择的图片张数
|
|
44
|
-
* @since v2.0.2
|
|
45
|
-
*/
|
|
46
|
-
count?: number
|
|
47
|
-
/**
|
|
48
|
-
* 所选的图片的尺寸
|
|
49
|
-
* @since v2.0.2
|
|
50
|
-
*/
|
|
51
|
-
sizeType?: string[]
|
|
52
|
-
/**
|
|
53
|
-
* 选择图片的来源
|
|
54
|
-
* @since v2.0.2
|
|
55
|
-
*/
|
|
56
|
-
sourceType?: string[]
|
|
57
|
-
/**
|
|
58
|
-
* files 值发生变化触发的回调函数, operationType 操作类型有添加,移除,如果是移除操作,则第三个参数代表的是移除图片的索引
|
|
59
|
-
*/
|
|
60
|
-
onChange: (files: File[], operationType: 'add' | 'remove', index?: number) => void
|
|
61
|
-
/**
|
|
62
|
-
* 点击图片触发的回调
|
|
63
|
-
*/
|
|
64
|
-
onImageClick?: (index: number, file: Object) => void
|
|
65
|
-
/**
|
|
66
|
-
* 选择失败触发的回调
|
|
67
|
-
*/
|
|
68
|
-
onFail?: (message: string) => void
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
declare const AtImagePicker: ComponentClass<AtImagePickerProps>
|
|
72
|
-
|
|
73
|
-
export default AtImagePicker
|
package/types/index.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
import { Props } from '../src/components/calendar/interface'
|
|
3
|
-
|
|
4
|
-
export { default as AtActionSheet, AtActionSheetItem } from './action-sheet'
|
|
5
|
-
export { default as AtActivityIndicator } from './activity-indicator'
|
|
6
|
-
export { default as AtAvatar } from './avatar'
|
|
7
|
-
export { default as AtBadge } from './badge'
|
|
8
|
-
export { default as AtButton } from './button'
|
|
9
|
-
export { default as AtCard } from './card'
|
|
10
|
-
export { default as AtCheckbox } from './checkbox'
|
|
11
|
-
export { default as AtDrawer } from './drawer'
|
|
12
|
-
export { default as AtFab } from './fab'
|
|
13
|
-
export { default as AtFloatLayout } from './float-layout'
|
|
14
|
-
export { default as AtForm } from './form'
|
|
15
|
-
export { default as AtGrid } from './grid'
|
|
16
|
-
export { default as AtIcon } from './icon'
|
|
17
|
-
export { default as AtInputNumber } from './input-number'
|
|
18
|
-
export { default as AtInput } from './input'
|
|
19
|
-
export { default as AtListItem, AtList } from './list'
|
|
20
|
-
export { default as AtModal } from './modal'
|
|
21
|
-
export { default as AtNavBar } from './nav-bar'
|
|
22
|
-
export { default as AtNoticebar } from './noticebar'
|
|
23
|
-
export { default as AtPagination } from './pagination'
|
|
24
|
-
export { default as AtProgress } from './progress'
|
|
25
|
-
export { default as AtRadio } from './radio'
|
|
26
|
-
export { default as AtRate } from './rate'
|
|
27
|
-
export { default as AtSegmentedControl } from './segmented-control'
|
|
28
|
-
export { default as AtSwitch } from './switch'
|
|
29
|
-
export { default as AtSearchBar } from './search-bar'
|
|
30
|
-
export { default as AtTabBar } from './tab-bar'
|
|
31
|
-
export { default as AtTabs } from './tabs'
|
|
32
|
-
export { default as AtTag } from './tag'
|
|
33
|
-
export { default as AtTextarea } from './textarea'
|
|
34
|
-
export { default as AtTimeline } from './timeline'
|
|
35
|
-
export { default as AtToast } from './toast'
|
|
36
|
-
export { default as AtTabsPane } from './tabs-pane'
|
|
37
|
-
export { default as AtSwipeAction } from './swipe-action'
|
|
38
|
-
export { default as AtAccordion } from './accordion'
|
|
39
|
-
export { default as AtLoadMore } from './load-more'
|
|
40
|
-
export { default as AtDivider } from './divider'
|
|
41
|
-
export { default as AtCountdown } from './countdown'
|
|
42
|
-
export { default as AtSteps } from './steps'
|
|
43
|
-
export { default as AtCurtain } from './curtain'
|
|
44
|
-
export { default as AtSlider } from './slider'
|
|
45
|
-
export { AtMessage, message } from './message'
|
|
46
|
-
export { default as AtImagePicker } from './image-picker'
|
|
47
|
-
export { default as AtIndexes } from './indexes'
|
|
48
|
-
export { default as AtRange } from './range'
|
|
49
|
-
export { default as AtFloatButton } from './float-button'
|
|
50
|
-
|
|
51
|
-
export declare const AtCalendar: ComponentClass<Props>
|
|
52
|
-
|
|
53
|
-
export declare const AtModalHeader: ComponentClass
|
|
54
|
-
export declare const AtModalAction: ComponentClass
|
|
55
|
-
export declare const AtModalContent: ComponentClass
|
package/types/indexes.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export interface Item {
|
|
6
|
-
/**
|
|
7
|
-
* 列表项内容
|
|
8
|
-
*/
|
|
9
|
-
name: string
|
|
10
|
-
|
|
11
|
-
[propName: string]: any
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface ListItem {
|
|
15
|
-
/**
|
|
16
|
-
* 列表标题
|
|
17
|
-
*/
|
|
18
|
-
title: string
|
|
19
|
-
/**
|
|
20
|
-
* 右侧导航标题
|
|
21
|
-
*/
|
|
22
|
-
key: string
|
|
23
|
-
/**
|
|
24
|
-
* 列表项
|
|
25
|
-
*/
|
|
26
|
-
items: Array<Item>
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface AtIndexesProps extends AtComponent {
|
|
30
|
-
/**
|
|
31
|
-
* 是否开启跳转过渡动画
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
animation?: boolean
|
|
35
|
-
/**
|
|
36
|
-
* 右侧导航第一个名称
|
|
37
|
-
* @default Top
|
|
38
|
-
*/
|
|
39
|
-
topKey?: string
|
|
40
|
-
/**
|
|
41
|
-
* 是否切换 key 的震动
|
|
42
|
-
* **注意:** 只在微信小程序有效
|
|
43
|
-
* @default true
|
|
44
|
-
*/
|
|
45
|
-
isVibrate?: boolean
|
|
46
|
-
/**
|
|
47
|
-
* 是否用弹框显示当前 key
|
|
48
|
-
* @default true
|
|
49
|
-
*/
|
|
50
|
-
isShowToast?: boolean
|
|
51
|
-
/**
|
|
52
|
-
* 列表
|
|
53
|
-
*/
|
|
54
|
-
list: Array<ListItem>
|
|
55
|
-
/**
|
|
56
|
-
* 点击列表项触发事件
|
|
57
|
-
*/
|
|
58
|
-
onClick?: (item: Item) => void
|
|
59
|
-
/**
|
|
60
|
-
* 获取跳转事件跳转到指定 key
|
|
61
|
-
*/
|
|
62
|
-
onScrollIntoView?: (fn: (key: string) => void) => void
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface AtIndexesState {
|
|
66
|
-
_scrollIntoView: string
|
|
67
|
-
_scrollTop: number
|
|
68
|
-
_tipText: string
|
|
69
|
-
_isShowToast: boolean
|
|
70
|
-
isWEB: boolean
|
|
71
|
-
currentIndex: number
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare const AtIndexes: ComponentClass<AtIndexesProps>
|
|
75
|
-
|
|
76
|
-
export default AtIndexes
|
package/types/input-number.d.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { ComponentClass, CSSProperties } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
CommonEventFunction,
|
|
4
|
-
CommonEvent
|
|
5
|
-
} from '@tarojs/components/types/common'
|
|
6
|
-
import AtComponent from './base'
|
|
7
|
-
|
|
8
|
-
export interface InputError {
|
|
9
|
-
type: 'OVER' | 'LOW' | 'DISABLED'
|
|
10
|
-
errorValue: number
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface AtInputNumberProps extends AtComponent {
|
|
14
|
-
/**
|
|
15
|
-
* 输入框类型
|
|
16
|
-
* @type {'number' | 'digit'}
|
|
17
|
-
* @description 必填,type='digit' 时,h5 无法显示数字输入框,若需要数字输入框建议使用 number (v1.5.1 支持)
|
|
18
|
-
*/
|
|
19
|
-
type: 'number' | 'digit'
|
|
20
|
-
/**
|
|
21
|
-
* 输入框当前值
|
|
22
|
-
* @type {number | string}
|
|
23
|
-
* @description 必填,输入框当前值,开发者需要通过 onChange 事件来更新 value 值
|
|
24
|
-
*/
|
|
25
|
-
value: number | string
|
|
26
|
-
|
|
27
|
-
customStyle?: CSSProperties | string
|
|
28
|
-
/**
|
|
29
|
-
* 最小值
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @default 0
|
|
32
|
-
*/
|
|
33
|
-
min?: number
|
|
34
|
-
/**
|
|
35
|
-
* 最大值
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @default 100
|
|
38
|
-
*/
|
|
39
|
-
max?: number
|
|
40
|
-
/**
|
|
41
|
-
* 每次点击改变的间隔大小
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @default 1
|
|
44
|
-
*/
|
|
45
|
-
step?: number
|
|
46
|
-
/**
|
|
47
|
-
* 组件的大小
|
|
48
|
-
* @default 'normal'
|
|
49
|
-
*/
|
|
50
|
-
size?: 'normal' | 'large'
|
|
51
|
-
/**
|
|
52
|
-
* input 宽度
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @description 不包括两侧按钮,单位根据环境转为 rpx 或 rem
|
|
55
|
-
* @default 120
|
|
56
|
-
*/
|
|
57
|
-
width?: number
|
|
58
|
-
/**
|
|
59
|
-
* 是否禁止输入,禁止点击按钮
|
|
60
|
-
* @type {boolean}
|
|
61
|
-
* @default false
|
|
62
|
-
*/
|
|
63
|
-
disabled?: boolean
|
|
64
|
-
/**
|
|
65
|
-
* 是否禁止输入,但不禁止点击按钮
|
|
66
|
-
* @type {boolean}
|
|
67
|
-
* @default false
|
|
68
|
-
*/
|
|
69
|
-
disabledInput?: boolean
|
|
70
|
-
/**
|
|
71
|
-
* 输入框值改变时触发的事件
|
|
72
|
-
* @param {number} value 输入框当前值
|
|
73
|
-
* @description 开发者需要通过 onChange 事件来更新 value 值变化,onChange 函数必填
|
|
74
|
-
*/
|
|
75
|
-
onChange: (value: number, e: CommonEvent) => void
|
|
76
|
-
/**
|
|
77
|
-
* 输入框值失去焦点时触发的事件
|
|
78
|
-
*/
|
|
79
|
-
onBlur?: CommonEventFunction
|
|
80
|
-
/**
|
|
81
|
-
* 输入框尝试输入错误数组触发的事件
|
|
82
|
-
* @param {InputError} errCb
|
|
83
|
-
*/
|
|
84
|
-
onErrorInput?: (errCb: InputError) => void
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
declare const AtInputNumber: ComponentClass<AtInputNumberProps>
|
|
88
|
-
|
|
89
|
-
export default AtInputNumber
|