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/action-sheet.d.ts
DELETED
|
@@ -1,55 +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 AtActionSheetProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* 是否展示元素
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
isOpened: boolean
|
|
12
|
-
/**
|
|
13
|
-
* 元素的标题
|
|
14
|
-
*/
|
|
15
|
-
title?: string
|
|
16
|
-
/**
|
|
17
|
-
* 取消按钮的内容
|
|
18
|
-
*/
|
|
19
|
-
cancelText?: string
|
|
20
|
-
/**
|
|
21
|
-
* 元素被关闭触发的事件
|
|
22
|
-
*/
|
|
23
|
-
onClose?: (event?: CommonEvent) => void
|
|
24
|
-
/**
|
|
25
|
-
* 点击了底部取消按钮触发的事件
|
|
26
|
-
*/
|
|
27
|
-
onCancel?: (event?: CommonEvent) => void
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface AtActionSheetState {
|
|
31
|
-
_isOpened: boolean
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface AtActionSheetHeaderProps extends AtComponent {}
|
|
35
|
-
|
|
36
|
-
export interface AtActionSheetFooterProps extends AtComponent {
|
|
37
|
-
onClick?: Function
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface AtActionSheetBodyProps extends AtComponent {}
|
|
41
|
-
|
|
42
|
-
export interface AtActionSheetItemProps extends AtComponent {
|
|
43
|
-
/**
|
|
44
|
-
* 点击 Item 触发的事件
|
|
45
|
-
*/
|
|
46
|
-
onClick?: (event?: CommonEvent) => void
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare const AtActionSheetItem: ComponentClass<AtActionSheetItemProps>
|
|
50
|
-
|
|
51
|
-
declare const AtActionSheet: ComponentClass<AtActionSheetProps>
|
|
52
|
-
|
|
53
|
-
export default AtActionSheet
|
|
54
|
-
|
|
55
|
-
export { AtActionSheetItem }
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export interface AtActivityIndicatorProps extends AtComponent{
|
|
6
|
-
/**
|
|
7
|
-
* loading 图的大小
|
|
8
|
-
* @default 24
|
|
9
|
-
*/
|
|
10
|
-
size?: number
|
|
11
|
-
/**
|
|
12
|
-
* 元素的类型
|
|
13
|
-
*/
|
|
14
|
-
mode?: 'center' | 'normal'
|
|
15
|
-
/**
|
|
16
|
-
* loading 图的颜色
|
|
17
|
-
* @default #6190E8
|
|
18
|
-
*/
|
|
19
|
-
color?: string
|
|
20
|
-
/**
|
|
21
|
-
* 元素的内容文本
|
|
22
|
-
*/
|
|
23
|
-
content?: string
|
|
24
|
-
/**
|
|
25
|
-
* 控制元素显示隐藏
|
|
26
|
-
* @default true
|
|
27
|
-
*/
|
|
28
|
-
isOpened?: boolean
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare const AtActivityIndicator: ComponentClass<AtActivityIndicatorProps>
|
|
32
|
-
|
|
33
|
-
export default AtActivityIndicator
|
package/types/avatar.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export interface AtAvatarProps extends AtComponent {
|
|
6
|
-
/**
|
|
7
|
-
* 头像大小
|
|
8
|
-
* @default 'normal'
|
|
9
|
-
*/
|
|
10
|
-
size?: 'large' | 'normal' | 'small'
|
|
11
|
-
/**
|
|
12
|
-
* 头像是否圆形
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
circle?: boolean
|
|
16
|
-
/**
|
|
17
|
-
* 以文字形式展示头像
|
|
18
|
-
*/
|
|
19
|
-
text?: string
|
|
20
|
-
/**
|
|
21
|
-
* 头像图片地址
|
|
22
|
-
*/
|
|
23
|
-
image?: string
|
|
24
|
-
/**
|
|
25
|
-
* 参考微信[开放数据](https://developers.weixin.qq.com/miniprogram/dev/component/open-data.html)
|
|
26
|
-
*
|
|
27
|
-
* **注意:** openData 仅支持 type 为 userAvatarUrl
|
|
28
|
-
*/
|
|
29
|
-
openData?: { type: 'userAvatarUrl' }
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface AtAvatarState {
|
|
33
|
-
isWEAPP: boolean
|
|
34
|
-
_width?: number
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare const AtAvatar: ComponentClass<AtAvatarProps>
|
|
38
|
-
|
|
39
|
-
export default AtAvatar
|
package/types/badge.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export interface AtBadgeProps extends AtComponent {
|
|
6
|
-
/**
|
|
7
|
-
* 角标红点
|
|
8
|
-
* @default false
|
|
9
|
-
*/
|
|
10
|
-
dot?: boolean
|
|
11
|
-
/**
|
|
12
|
-
* 角标内容
|
|
13
|
-
*/
|
|
14
|
-
value?: string | number
|
|
15
|
-
/**
|
|
16
|
-
* 角标最大值
|
|
17
|
-
* @default 99
|
|
18
|
-
*/
|
|
19
|
-
maxValue?: number
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare const AtBadge: ComponentClass<AtBadgeProps>
|
|
23
|
-
|
|
24
|
-
export default AtBadge
|
package/types/base.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react'
|
|
2
|
-
|
|
3
|
-
export interface AtComponent {
|
|
4
|
-
className?: string
|
|
5
|
-
style?: CSSProperties
|
|
6
|
-
customStyle?: string | CSSProperties
|
|
7
|
-
children?: ReactNode
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface AtIconBaseProps2 extends AtComponent {
|
|
11
|
-
value: string
|
|
12
|
-
|
|
13
|
-
color?: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface AtIconBaseProps extends AtComponent {
|
|
17
|
-
value: string
|
|
18
|
-
|
|
19
|
-
color?: string
|
|
20
|
-
|
|
21
|
-
prefixClass?: string
|
|
22
|
-
|
|
23
|
-
size?: number | string
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default AtComponent
|
package/types/button.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
import { CommonEventFunction } from '@tarojs/components/types/common'
|
|
3
|
-
import { ButtonProps } from '@tarojs/components/types/Button'
|
|
4
|
-
|
|
5
|
-
import AtComponent from './base'
|
|
6
|
-
|
|
7
|
-
type TaroButtonProps = Pick<
|
|
8
|
-
ButtonProps,
|
|
9
|
-
| 'formType'
|
|
10
|
-
| 'openType'
|
|
11
|
-
| 'lang'
|
|
12
|
-
| 'sessionFrom'
|
|
13
|
-
| 'sendMessageTitle'
|
|
14
|
-
| 'sendMessagePath'
|
|
15
|
-
| 'sendMessageImg'
|
|
16
|
-
| 'showMessageCard'
|
|
17
|
-
| 'appParameter'
|
|
18
|
-
| 'onContact'
|
|
19
|
-
| 'onGetUserInfo'
|
|
20
|
-
| 'onGetPhoneNumber'
|
|
21
|
-
| 'onOpenSetting'
|
|
22
|
-
| 'onError'
|
|
23
|
-
| 'onChooseAvatar'
|
|
24
|
-
>
|
|
25
|
-
|
|
26
|
-
export interface AtButtonProps extends AtComponent, TaroButtonProps {
|
|
27
|
-
/**
|
|
28
|
-
* 按钮的大小
|
|
29
|
-
* @default 'normal'
|
|
30
|
-
*/
|
|
31
|
-
size?: 'normal' | 'small'
|
|
32
|
-
/**
|
|
33
|
-
* 按钮的类型
|
|
34
|
-
*/
|
|
35
|
-
type?: 'primary' | 'secondary'
|
|
36
|
-
/**
|
|
37
|
-
* 设置按钮圆角
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
circle?: boolean
|
|
41
|
-
/**
|
|
42
|
-
* 是否通栏样式(即按钮宽度为屏幕宽度时的样式)
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
full?: boolean
|
|
46
|
-
/**
|
|
47
|
-
* 设置按钮的载入状态
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
loading?: boolean
|
|
51
|
-
/**
|
|
52
|
-
* 设置按钮为禁用态(不可点击)
|
|
53
|
-
* @default false
|
|
54
|
-
*/
|
|
55
|
-
disabled?: boolean
|
|
56
|
-
/**
|
|
57
|
-
* 点击按钮时触发
|
|
58
|
-
*/
|
|
59
|
-
onClick?: CommonEventFunction
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface AtButtonState {
|
|
63
|
-
isWEB: boolean
|
|
64
|
-
isWEAPP: boolean
|
|
65
|
-
isALIPAY: boolean
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
declare const AtButton: ComponentClass<AtButtonProps>
|
|
69
|
-
|
|
70
|
-
export default AtButton
|
package/types/calendar.d.ts
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs'
|
|
2
|
-
import { BaseEvent } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
// #region Calendar
|
|
5
|
-
declare namespace Calendar {
|
|
6
|
-
export type DateArg = string | number
|
|
7
|
-
|
|
8
|
-
export type classNameType =
|
|
9
|
-
| string
|
|
10
|
-
| Array<string>
|
|
11
|
-
| { [key: string]: boolean }
|
|
12
|
-
|
|
13
|
-
export interface Mark {
|
|
14
|
-
value: DateArg
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface ValidDate {
|
|
18
|
-
value: DateArg
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface Item {
|
|
22
|
-
value: string
|
|
23
|
-
|
|
24
|
-
_value?: dayjs.Dayjs
|
|
25
|
-
|
|
26
|
-
text: number
|
|
27
|
-
|
|
28
|
-
type: number
|
|
29
|
-
|
|
30
|
-
marks: Array<Mark>
|
|
31
|
-
|
|
32
|
-
isActive?: boolean
|
|
33
|
-
|
|
34
|
-
isToday?: boolean
|
|
35
|
-
|
|
36
|
-
isBeforeMin?: boolean
|
|
37
|
-
|
|
38
|
-
isAfterMax?: boolean
|
|
39
|
-
|
|
40
|
-
isDisabled?: boolean
|
|
41
|
-
|
|
42
|
-
isSelected?: boolean
|
|
43
|
-
|
|
44
|
-
isSelectedHead?: boolean
|
|
45
|
-
|
|
46
|
-
isSelectedTail?: boolean
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface SelectedDate {
|
|
50
|
-
end?: Calendar.DateArg
|
|
51
|
-
|
|
52
|
-
start: Calendar.DateArg
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface GroupOptions {
|
|
56
|
-
validDates: Array<ValidDate>
|
|
57
|
-
|
|
58
|
-
marks: Array<Mark>
|
|
59
|
-
|
|
60
|
-
format: string
|
|
61
|
-
|
|
62
|
-
selectedDates: Array<SelectedDate>
|
|
63
|
-
|
|
64
|
-
minDate?: DateArg
|
|
65
|
-
|
|
66
|
-
maxDate?: DateArg
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type List<T> = Array<T>
|
|
70
|
-
|
|
71
|
-
export type ListInfo<T> = {
|
|
72
|
-
value: number
|
|
73
|
-
|
|
74
|
-
list: List<T>
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export default Calendar
|
|
79
|
-
export { Calendar }
|
|
80
|
-
// #endregion
|
|
81
|
-
|
|
82
|
-
// #region AtCalendar
|
|
83
|
-
export interface AtCalendarPropsBase {
|
|
84
|
-
format?: string
|
|
85
|
-
|
|
86
|
-
validDates?: Array<Calendar.ValidDate>
|
|
87
|
-
|
|
88
|
-
minDate?: Calendar.DateArg
|
|
89
|
-
|
|
90
|
-
maxDate?: Calendar.DateArg
|
|
91
|
-
|
|
92
|
-
isSwiper?: boolean
|
|
93
|
-
|
|
94
|
-
marks?: Array<Calendar.Mark>
|
|
95
|
-
|
|
96
|
-
monthFormat?: string
|
|
97
|
-
|
|
98
|
-
hideArrow?: boolean
|
|
99
|
-
|
|
100
|
-
isVertical?: boolean
|
|
101
|
-
|
|
102
|
-
className?: Calendar.classNameType
|
|
103
|
-
|
|
104
|
-
onClickPreMonth?: () => void
|
|
105
|
-
|
|
106
|
-
onClickNextMonth?: () => void
|
|
107
|
-
|
|
108
|
-
onSelectDate?: (item: { value: Calendar.SelectedDate }) => void
|
|
109
|
-
|
|
110
|
-
onDayClick?: (item: { value: string }) => void
|
|
111
|
-
|
|
112
|
-
onDayLongClick?: (item: { value: string }) => void
|
|
113
|
-
|
|
114
|
-
onMonthChange?: (value: string) => void
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface AtCalendarSingleSelectedProps extends AtCalendarPropsBase {
|
|
118
|
-
isMultiSelect?: false
|
|
119
|
-
|
|
120
|
-
currentDate?: Calendar.DateArg
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export interface AtCalendarMutilSelectedProps extends AtCalendarPropsBase {
|
|
124
|
-
isMultiSelect?: true
|
|
125
|
-
|
|
126
|
-
currentDate?: Calendar.SelectedDate
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export type AtCalendarProps =
|
|
130
|
-
| AtCalendarSingleSelectedProps
|
|
131
|
-
| AtCalendarMutilSelectedProps
|
|
132
|
-
|
|
133
|
-
export interface AtCalendarDefaultProps {
|
|
134
|
-
format: string
|
|
135
|
-
|
|
136
|
-
isSwiper: boolean
|
|
137
|
-
|
|
138
|
-
validDates: Array<Calendar.ValidDate>
|
|
139
|
-
|
|
140
|
-
marks: Array<Calendar.Mark>
|
|
141
|
-
|
|
142
|
-
currentDate: Calendar.DateArg | Calendar.SelectedDate
|
|
143
|
-
|
|
144
|
-
monthFormat: string
|
|
145
|
-
|
|
146
|
-
hideArrow: boolean
|
|
147
|
-
|
|
148
|
-
isVertical: boolean
|
|
149
|
-
|
|
150
|
-
isMultiSelect: boolean
|
|
151
|
-
|
|
152
|
-
selectedDates: Array<Calendar.SelectedDate>
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export interface AtCalendarState {
|
|
156
|
-
generateDate: number
|
|
157
|
-
|
|
158
|
-
selectedDate: Calendar.SelectedDate
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export type AtCalendarPropsWithDefaults = AtCalendarProps &
|
|
162
|
-
AtCalendarDefaultProps
|
|
163
|
-
// #endregion
|
|
164
|
-
|
|
165
|
-
// #region AtCalendarController
|
|
166
|
-
export interface AtCalendarControllerProps {
|
|
167
|
-
generateDate: Calendar.DateArg
|
|
168
|
-
|
|
169
|
-
minDate?: Calendar.DateArg
|
|
170
|
-
|
|
171
|
-
maxDate?: Calendar.DateArg
|
|
172
|
-
|
|
173
|
-
hideArrow: boolean
|
|
174
|
-
|
|
175
|
-
monthFormat: string
|
|
176
|
-
|
|
177
|
-
onPreMonth: () => void
|
|
178
|
-
|
|
179
|
-
onNextMonth: () => void
|
|
180
|
-
|
|
181
|
-
onSelectDate: (e: BaseEvent) => void
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export interface AtCalendarControllerState {}
|
|
185
|
-
// #endregion
|
|
186
|
-
|
|
187
|
-
// #region AtCalendarBody
|
|
188
|
-
export type AtCalendarBodyListGroup = Array<Calendar.ListInfo<Calendar.Item>>
|
|
189
|
-
|
|
190
|
-
export interface AtCalendarBodyProps {
|
|
191
|
-
format: string
|
|
192
|
-
|
|
193
|
-
validDates: Array<Calendar.ValidDate>
|
|
194
|
-
|
|
195
|
-
marks: Array<Calendar.Mark>
|
|
196
|
-
|
|
197
|
-
isSwiper: boolean
|
|
198
|
-
|
|
199
|
-
minDate?: Calendar.DateArg
|
|
200
|
-
|
|
201
|
-
maxDate?: Calendar.DateArg
|
|
202
|
-
|
|
203
|
-
isVertical: boolean
|
|
204
|
-
|
|
205
|
-
generateDate: number
|
|
206
|
-
|
|
207
|
-
selectedDate: Calendar.SelectedDate
|
|
208
|
-
|
|
209
|
-
selectedDates: Array<Calendar.SelectedDate> | []
|
|
210
|
-
|
|
211
|
-
onDayClick: (item: Calendar.Item) => void
|
|
212
|
-
|
|
213
|
-
onSwipeMonth: (vectorCount: number) => void
|
|
214
|
-
|
|
215
|
-
onLongClick: (item: Calendar.Item) => void
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export interface AtCalendarBodyState {
|
|
219
|
-
isAnimate: boolean
|
|
220
|
-
|
|
221
|
-
offsetSize: number
|
|
222
|
-
|
|
223
|
-
listGroup: AtCalendarBodyListGroup
|
|
224
|
-
}
|
|
225
|
-
// #endregion
|
package/types/card.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
import { CommonEventFunction } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
import AtComponent, { AtIconBaseProps } from './base'
|
|
5
|
-
|
|
6
|
-
export interface AtCardProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* 元素的辅助信息
|
|
9
|
-
*/
|
|
10
|
-
note?: string
|
|
11
|
-
/**
|
|
12
|
-
* 是否通栏
|
|
13
|
-
*/
|
|
14
|
-
isFull?: boolean
|
|
15
|
-
/**
|
|
16
|
-
* 元素的缩略图
|
|
17
|
-
*/
|
|
18
|
-
thumb?: string
|
|
19
|
-
/**
|
|
20
|
-
* 元素的标题
|
|
21
|
-
*/
|
|
22
|
-
title?: string
|
|
23
|
-
/**
|
|
24
|
-
* 元素的额外信息
|
|
25
|
-
*/
|
|
26
|
-
extra?: JSX.Element | string
|
|
27
|
-
/**
|
|
28
|
-
* 元素的额外信息自定义样式
|
|
29
|
-
*/
|
|
30
|
-
extraStyle?: object
|
|
31
|
-
/**
|
|
32
|
-
* 图标,仅支持 AtIcon 支持的类型,
|
|
33
|
-
* object 属性有 value color size prefixClass
|
|
34
|
-
*/
|
|
35
|
-
icon?: AtIconBaseProps
|
|
36
|
-
/**
|
|
37
|
-
* 元素自定义图标
|
|
38
|
-
*/
|
|
39
|
-
renderIcon?: JSX.Element
|
|
40
|
-
/**
|
|
41
|
-
* 元素被点击触发的事件
|
|
42
|
-
*/
|
|
43
|
-
onClick?: CommonEventFunction
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
declare const AtCard: ComponentClass<AtCardProps>
|
|
47
|
-
|
|
48
|
-
export default AtCard
|
package/types/checkbox.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export interface CheckboxOption<T> {
|
|
6
|
-
value: T
|
|
7
|
-
label: string
|
|
8
|
-
desc?: string
|
|
9
|
-
disabled?: boolean
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface AtCheckboxProps<T> extends AtComponent {
|
|
13
|
-
options: Array<CheckboxOption<T>>
|
|
14
|
-
|
|
15
|
-
border?: boolean
|
|
16
|
-
|
|
17
|
-
selectedList: Array<T>
|
|
18
|
-
|
|
19
|
-
onChange: (selectedList: Array<T>) => void
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare const AtCheckbox: ComponentClass<AtCheckboxProps<any>>
|
|
23
|
-
|
|
24
|
-
export default AtCheckbox
|
package/types/countdown.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export interface FormatObject {
|
|
6
|
-
/**
|
|
7
|
-
* 格式化分割符号:天
|
|
8
|
-
* @default '天'
|
|
9
|
-
*/
|
|
10
|
-
day?: string
|
|
11
|
-
/**
|
|
12
|
-
* 格式化分割符号:小时
|
|
13
|
-
* @default '时'
|
|
14
|
-
*/
|
|
15
|
-
hours: string
|
|
16
|
-
/**
|
|
17
|
-
* 格式化分割符号:分钟
|
|
18
|
-
* @default '分'
|
|
19
|
-
*/
|
|
20
|
-
minutes: string
|
|
21
|
-
/**
|
|
22
|
-
* 格式化分割符号:秒
|
|
23
|
-
* @default '秒'
|
|
24
|
-
*/
|
|
25
|
-
seconds: string
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface AtCountDownProps extends AtComponent {
|
|
29
|
-
/**
|
|
30
|
-
* 是否显示卡片式样式
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
isCard?: boolean
|
|
34
|
-
/**
|
|
35
|
-
* 是否显示天数
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
isShowDay?: boolean
|
|
39
|
-
/**
|
|
40
|
-
* 是否显示小时
|
|
41
|
-
* @default true
|
|
42
|
-
*/
|
|
43
|
-
isShowHour?: boolean
|
|
44
|
-
/**
|
|
45
|
-
* 是否显示分钟
|
|
46
|
-
* @default true
|
|
47
|
-
*/
|
|
48
|
-
isShowMinute?: boolean
|
|
49
|
-
/**
|
|
50
|
-
* 格式化分割符号
|
|
51
|
-
* @default { day: '天', hours: '时', minutes: '分', seconds: '秒' }
|
|
52
|
-
*/
|
|
53
|
-
format?: FormatObject
|
|
54
|
-
/**
|
|
55
|
-
* 天数
|
|
56
|
-
* @default 0
|
|
57
|
-
*/
|
|
58
|
-
day?: number
|
|
59
|
-
/**
|
|
60
|
-
* 小时
|
|
61
|
-
* @default 0
|
|
62
|
-
*/
|
|
63
|
-
hours?: number
|
|
64
|
-
/**
|
|
65
|
-
* 分钟
|
|
66
|
-
* @default 0
|
|
67
|
-
*/
|
|
68
|
-
minutes?: number
|
|
69
|
-
/**
|
|
70
|
-
* 秒
|
|
71
|
-
* @default 0
|
|
72
|
-
*/
|
|
73
|
-
seconds?: number
|
|
74
|
-
/**
|
|
75
|
-
* 倒计时时间到,执行的回调函数
|
|
76
|
-
*/
|
|
77
|
-
onTimeUp?: Function
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export interface AtCountdownState {
|
|
81
|
-
_day: number
|
|
82
|
-
_hours: number
|
|
83
|
-
_minutes: number
|
|
84
|
-
_seconds: number
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface AtCountdownItemProps extends AtComponent {
|
|
88
|
-
num: number
|
|
89
|
-
separator: string
|
|
90
|
-
isCard?: boolean
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
declare const AtCountDown: ComponentClass<AtCountDownProps>
|
|
94
|
-
|
|
95
|
-
export default AtCountDown
|
package/types/curtain.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 AtCurtainProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* 是否开启
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
isOpened?: boolean
|
|
12
|
-
/**
|
|
13
|
-
* 关闭图标位置
|
|
14
|
-
* 'top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right'
|
|
15
|
-
* @default 'bottom'
|
|
16
|
-
*/
|
|
17
|
-
closeBtnPosition?: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right'
|
|
18
|
-
/**
|
|
19
|
-
* 点击关闭按钮触发事件
|
|
20
|
-
*/
|
|
21
|
-
onClose: CommonEventFunction
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare const AtCurtain: ComponentClass<AtCurtainProps>
|
|
25
|
-
|
|
26
|
-
export default AtCurtain
|
package/types/divider.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, ComponentClass } from 'react'
|
|
2
|
-
import AtComponent from './base'
|
|
3
|
-
|
|
4
|
-
export interface AtDividerProps extends AtComponent {
|
|
5
|
-
/**
|
|
6
|
-
* 分隔符文字
|
|
7
|
-
*/
|
|
8
|
-
content?: string
|
|
9
|
-
/**
|
|
10
|
-
* 分隔符高度,会自动转 rem,rpx
|
|
11
|
-
* @default 112
|
|
12
|
-
*/
|
|
13
|
-
height?: number | string
|
|
14
|
-
/**
|
|
15
|
-
* 文字颜色
|
|
16
|
-
* @default #6190E8
|
|
17
|
-
*/
|
|
18
|
-
fontColor?: string
|
|
19
|
-
/**
|
|
20
|
-
* 文字大小,会自动转 rem,rpx
|
|
21
|
-
* @default 32
|
|
22
|
-
*/
|
|
23
|
-
fontSize?: number | string
|
|
24
|
-
/**
|
|
25
|
-
* 分割线颜色
|
|
26
|
-
* @default #CCC
|
|
27
|
-
*/
|
|
28
|
-
lineColor?: string
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare const AtDivider: ComponentClass<AtDividerProps>
|
|
32
|
-
|
|
33
|
-
export default AtDivider
|