taro-ui 3.3.1 → 3.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/component.d.ts +10 -0
- package/dist/common/component.js +32 -0
- package/dist/common/component.js.map +1 -0
- package/dist/common/utils.d.ts +41 -0
- package/dist/common/utils.js +203 -0
- package/dist/common/utils.js.map +1 -0
- package/dist/components/accordion/index.d.ts +14 -0
- package/dist/components/accordion/index.js +121 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/action-sheet/body/index.d.ts +5 -0
- package/dist/components/action-sheet/body/index.js +13 -0
- package/dist/components/action-sheet/body/index.js.map +1 -0
- package/dist/components/action-sheet/body/item/index.d.ts +9 -0
- package/dist/components/action-sheet/body/item/index.js +25 -0
- package/dist/components/action-sheet/body/item/index.js.map +1 -0
- package/dist/components/action-sheet/footer/index.d.ts +9 -0
- package/dist/components/action-sheet/footer/index.js +28 -0
- package/dist/components/action-sheet/footer/index.js.map +1 -0
- package/dist/components/action-sheet/header/index.d.ts +5 -0
- package/dist/components/action-sheet/header/index.js +16 -0
- package/dist/components/action-sheet/header/index.js.map +1 -0
- package/dist/components/action-sheet/index.d.ts +14 -0
- package/dist/components/action-sheet/index.js +76 -0
- package/dist/components/action-sheet/index.js.map +1 -0
- package/dist/components/activity-indicator/index.d.ts +8 -0
- package/dist/components/activity-indicator/index.js +39 -0
- package/dist/components/activity-indicator/index.js.map +1 -0
- package/dist/components/avatar/index.d.ts +9 -0
- package/dist/components/avatar/index.js +68 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/index.d.ts +10 -0
- package/dist/components/badge/index.js +51 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/button/index.d.ts +15 -0
- package/dist/components/button/index.js +177 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/calendar/body/index.d.ts +26 -0
- package/dist/components/calendar/body/index.js +289 -0
- package/dist/components/calendar/body/index.js.map +1 -0
- package/dist/components/calendar/common/constant.d.ts +3 -0
- package/dist/components/calendar/common/constant.js +9 -0
- package/dist/components/calendar/common/constant.js.map +1 -0
- package/dist/components/calendar/common/helper.d.ts +4 -0
- package/dist/components/calendar/common/helper.js +84 -0
- package/dist/components/calendar/common/helper.js.map +1 -0
- package/dist/components/calendar/common/plugins.d.ts +11 -0
- package/dist/components/calendar/common/plugins.js +55 -0
- package/dist/components/calendar/common/plugins.js.map +1 -0
- package/dist/components/calendar/controller/index.d.ts +5 -0
- package/dist/components/calendar/controller/index.js +51 -0
- package/dist/components/calendar/controller/index.js.map +1 -0
- package/dist/components/calendar/index.d.ts +20 -0
- package/dist/components/calendar/index.js +244 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/calendar/ui/date-list/index.d.ts +12 -0
- package/dist/components/calendar/ui/date-list/index.js +54 -0
- package/dist/components/calendar/ui/date-list/index.js.map +1 -0
- package/dist/components/calendar/ui/day-list/index.d.ts +4 -0
- package/dist/components/calendar/ui/day-list/index.js +11 -0
- package/dist/components/calendar/ui/day-list/index.js.map +1 -0
- package/dist/components/card/index.d.ts +9 -0
- package/dist/components/card/index.js +80 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +9 -0
- package/dist/components/checkbox/index.js +59 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/countdown/index.d.ts +20 -0
- package/dist/components/countdown/index.js +152 -0
- package/dist/components/countdown/index.js.map +1 -0
- package/dist/components/countdown/item/index.d.ts +9 -0
- package/dist/components/countdown/item/index.js +24 -0
- package/dist/components/countdown/item/index.js.map +1 -0
- package/dist/components/curtain/index.d.ts +10 -0
- package/dist/components/curtain/index.js +62 -0
- package/dist/components/curtain/index.js.map +1 -0
- package/dist/components/divider/index.d.ts +8 -0
- package/dist/components/divider/index.js +57 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/index.d.ts +16 -0
- package/dist/components/drawer/index.js +114 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/fab/index.d.ts +9 -0
- package/dist/components/fab/index.js +29 -0
- package/dist/components/fab/index.js.map +1 -0
- package/dist/components/flex/index.d.ts +7 -0
- package/dist/components/flex/index.js +41 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/flex/item/index.d.ts +7 -0
- package/dist/components/flex/item/index.js +34 -0
- package/dist/components/flex/item/index.js.map +1 -0
- package/dist/components/float-layout/index.d.ts +13 -0
- package/dist/components/float-layout/index.js +104 -0
- package/dist/components/float-layout/index.js.map +1 -0
- package/dist/components/form/index.d.ts +10 -0
- package/dist/components/form/index.js +43 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/grid/index.d.ts +9 -0
- package/dist/components/grid/index.js +101 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/icon/index.d.ts +9 -0
- package/dist/components/icon/index.js +54 -0
- package/dist/components/icon/index.js.map +1 -0
- package/dist/components/image-picker/index.d.ts +11 -0
- package/dist/components/image-picker/index.js +164 -0
- package/dist/components/image-picker/index.js.map +1 -0
- package/dist/components/indexes/index.d.ts +29 -0
- package/dist/components/indexes/index.js +272 -0
- package/dist/components/indexes/index.js.map +1 -0
- package/dist/components/input/index.d.ts +17 -0
- package/dist/components/input/index.js +232 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input-number/index.d.ts +13 -0
- package/dist/components/input-number/index.js +193 -0
- package/dist/components/input-number/index.js.map +1 -0
- package/dist/components/list/index.d.ts +8 -0
- package/dist/components/list/index.js +26 -0
- package/dist/components/list/index.js.map +1 -0
- package/dist/components/list/item/index.d.ts +11 -0
- package/dist/components/list/item/index.js +152 -0
- package/dist/components/list/item/index.js.map +1 -0
- package/dist/components/load-more/index.d.ts +9 -0
- package/dist/components/load-more/index.js +72 -0
- package/dist/components/load-more/index.js.map +1 -0
- package/dist/components/loading/index.d.ts +12 -0
- package/dist/components/loading/index.js +32 -0
- package/dist/components/loading/index.js.map +1 -0
- package/dist/components/message/index.d.ts +15 -0
- package/dist/components/message/index.js +78 -0
- package/dist/components/message/index.js.map +1 -0
- package/dist/components/modal/action/index.d.ts +8 -0
- package/dist/components/modal/action/index.js +26 -0
- package/dist/components/modal/action/index.js.map +1 -0
- package/dist/components/modal/content/index.d.ts +5 -0
- package/dist/components/modal/content/index.js +13 -0
- package/dist/components/modal/content/index.js.map +1 -0
- package/dist/components/modal/header/index.d.ts +5 -0
- package/dist/components/modal/header/index.js +13 -0
- package/dist/components/modal/header/index.js.map +1 -0
- package/dist/components/modal/index.d.ts +15 -0
- package/dist/components/modal/index.js +106 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/nav-bar/index.d.ts +12 -0
- package/dist/components/nav-bar/index.js +217 -0
- package/dist/components/nav-bar/index.js.map +1 -0
- package/dist/components/noticebar/index.d.ts +16 -0
- package/dist/components/noticebar/index.js +186 -0
- package/dist/components/noticebar/index.js.map +1 -0
- package/dist/components/pagination/index.d.ts +12 -0
- package/dist/components/pagination/index.js +146 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/progress/index.d.ts +7 -0
- package/dist/components/progress/index.js +53 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/radio/index.d.ts +9 -0
- package/dist/components/radio/index.js +54 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/range/index.d.ts +22 -0
- package/dist/components/range/index.js +207 -0
- package/dist/components/range/index.js.map +1 -0
- package/dist/components/rate/index.d.ts +9 -0
- package/dist/components/rate/index.js +82 -0
- package/dist/components/rate/index.js.map +1 -0
- package/dist/components/search-bar/index.d.ts +16 -0
- package/dist/components/search-bar/index.js +176 -0
- package/dist/components/search-bar/index.js.map +1 -0
- package/dist/components/segmented-control/index.d.ts +9 -0
- package/dist/components/segmented-control/index.js +84 -0
- package/dist/components/segmented-control/index.js.map +1 -0
- package/dist/components/slider/index.d.ts +13 -0
- package/dist/components/slider/index.js +115 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/steps/index.d.ts +9 -0
- package/dist/components/steps/index.js +67 -0
- package/dist/components/steps/index.js.map +1 -0
- package/dist/components/swipe-action/index.d.ts +27 -0
- package/dist/components/swipe-action/index.js +220 -0
- package/dist/components/swipe-action/index.js.map +1 -0
- package/dist/components/swipe-action/options/index.d.ts +5 -0
- package/dist/components/swipe-action/options/index.js +24 -0
- package/dist/components/swipe-action/options/index.js.map +1 -0
- package/dist/components/switch/index.d.ts +9 -0
- package/dist/components/switch/index.js +59 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/tab-bar/index.d.ts +9 -0
- package/dist/components/tab-bar/index.js +170 -0
- package/dist/components/tab-bar/index.js.map +1 -0
- package/dist/components/tabs/index.d.ts +24 -0
- package/dist/components/tabs/index.js +219 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs-pane/index.d.ts +8 -0
- package/dist/components/tabs-pane/index.js +43 -0
- package/dist/components/tabs-pane/index.js.map +1 -0
- package/dist/components/tag/index.d.ts +9 -0
- package/dist/components/tag/index.js +75 -0
- package/dist/components/tag/index.js.map +1 -0
- package/dist/components/textarea/index.d.ts +13 -0
- package/dist/components/textarea/index.js +141 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/timeline/index.d.ts +8 -0
- package/dist/components/timeline/index.js +76 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/toast/img.json +8 -0
- package/dist/components/toast/index.d.ts +16 -0
- package/dist/components/toast/index.js +124 -0
- package/dist/components/toast/index.js.map +1 -0
- package/{lib/index.js → dist/index.d.ts} +0 -2
- package/dist/index.esm.js +6020 -8272
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6104 -8332
- package/dist/index.js.map +1 -1
- package/dist/style/components/grid.scss +2 -2
- package/dist/style/components/index.scss +48 -48
- package/dist/style/components/list.scss +2 -2
- package/dist/style/index.css +11754 -0
- package/dist/style/index.css.map +1 -0
- package/dist/style/mixins/index.scss +13 -13
- package/dist/style/mixins/libs/shade.scss +4 -2
- package/dist/style/mixins/libs/tint.scss +4 -2
- package/dist/style/variables/default.scss +1 -1
- package/package.json +56 -33
- 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/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/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/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/lib/common/component.js +0 -33
- package/lib/common/component.js.map +0 -1
- package/lib/common/utils.js +0 -226
- package/lib/common/utils.js.map +0 -1
- package/lib/components/accordion/index.js +0 -116
- package/lib/components/accordion/index.js.map +0 -1
- package/lib/components/action-sheet/body/index.js +0 -10
- package/lib/components/action-sheet/body/index.js.map +0 -1
- package/lib/components/action-sheet/body/item/index.js +0 -22
- package/lib/components/action-sheet/body/item/index.js.map +0 -1
- package/lib/components/action-sheet/footer/index.js +0 -22
- package/lib/components/action-sheet/footer/index.js.map +0 -1
- package/lib/components/action-sheet/header/index.js +0 -10
- package/lib/components/action-sheet/header/index.js.map +0 -1
- package/lib/components/action-sheet/index.js +0 -71
- package/lib/components/action-sheet/index.js.map +0 -1
- package/lib/components/activity-indicator/index.js +0 -35
- package/lib/components/activity-indicator/index.js.map +0 -1
- package/lib/components/avatar/index.js +0 -64
- package/lib/components/avatar/index.js.map +0 -1
- package/lib/components/badge/index.js +0 -42
- package/lib/components/badge/index.js.map +0 -1
- package/lib/components/button/index.js +0 -125
- package/lib/components/button/index.js.map +0 -1
- package/lib/components/calendar/body/index.js +0 -193
- package/lib/components/calendar/body/index.js.map +0 -1
- package/lib/components/calendar/common/constant.js +0 -4
- package/lib/components/calendar/common/constant.js.map +0 -1
- package/lib/components/calendar/common/helper.js +0 -83
- package/lib/components/calendar/common/helper.js.map +0 -1
- package/lib/components/calendar/common/plugins.js +0 -71
- package/lib/components/calendar/common/plugins.js.map +0 -1
- package/lib/components/calendar/controller/index.js +0 -30
- package/lib/components/calendar/controller/index.js.map +0 -1
- package/lib/components/calendar/index.js +0 -207
- package/lib/components/calendar/index.js.map +0 -1
- package/lib/components/calendar/ui/date-list/index.js +0 -43
- package/lib/components/calendar/ui/date-list/index.js.map +0 -1
- package/lib/components/calendar/ui/day-list/index.js +0 -16
- package/lib/components/calendar/ui/day-list/index.js.map +0 -1
- package/lib/components/card/index.js +0 -59
- package/lib/components/card/index.js.map +0 -1
- package/lib/components/checkbox/index.js +0 -55
- package/lib/components/checkbox/index.js.map +0 -1
- package/lib/components/countdown/index.js +0 -137
- package/lib/components/countdown/index.js.map +0 -1
- package/lib/components/countdown/item/index.js +0 -24
- package/lib/components/countdown/item/index.js.map +0 -1
- package/lib/components/curtain/index.js +0 -45
- package/lib/components/curtain/index.js.map +0 -1
- package/lib/components/divider/index.js +0 -40
- package/lib/components/divider/index.js.map +0 -1
- package/lib/components/drawer/index.js +0 -93
- package/lib/components/drawer/index.js.map +0 -1
- package/lib/components/fab/index.js +0 -26
- package/lib/components/fab/index.js.map +0 -1
- package/lib/components/flex/index.js +0 -38
- package/lib/components/flex/index.js.map +0 -1
- package/lib/components/flex/item/index.js +0 -31
- package/lib/components/flex/item/index.js.map +0 -1
- package/lib/components/float-layout/index.js +0 -76
- package/lib/components/float-layout/index.js.map +0 -1
- package/lib/components/form/index.js +0 -30
- package/lib/components/form/index.js.map +0 -1
- package/lib/components/grid/index.js +0 -71
- package/lib/components/grid/index.js.map +0 -1
- package/lib/components/icon/index.js +0 -37
- package/lib/components/icon/index.js.map +0 -1
- package/lib/components/image-picker/index.js +0 -138
- package/lib/components/image-picker/index.js.map +0 -1
- package/lib/components/indexes/index.js +0 -215
- package/lib/components/indexes/index.js.map +0 -1
- package/lib/components/input/index.js +0 -168
- package/lib/components/input/index.js.map +0 -1
- package/lib/components/input-number/index.js +0 -165
- package/lib/components/input-number/index.js.map +0 -1
- package/lib/components/list/index.js +0 -19
- package/lib/components/list/index.js.map +0 -1
- package/lib/components/list/item/index.js +0 -105
- package/lib/components/list/item/index.js.map +0 -1
- package/lib/components/load-more/index.js +0 -48
- package/lib/components/load-more/index.js.map +0 -1
- package/lib/components/loading/index.js +0 -32
- package/lib/components/loading/index.js.map +0 -1
- package/lib/components/message/index.js +0 -69
- package/lib/components/message/index.js.map +0 -1
- package/lib/components/modal/action/index.js +0 -20
- package/lib/components/modal/action/index.js.map +0 -1
- package/lib/components/modal/content/index.js +0 -10
- package/lib/components/modal/content/index.js.map +0 -1
- package/lib/components/modal/header/index.js +0 -10
- package/lib/components/modal/header/index.js.map +0 -1
- package/lib/components/modal/index.js +0 -97
- package/lib/components/modal/index.js.map +0 -1
- package/lib/components/nav-bar/index.js +0 -105
- package/lib/components/nav-bar/index.js.map +0 -1
- package/lib/components/noticebar/index.js +0 -163
- package/lib/components/noticebar/index.js.map +0 -1
- package/lib/components/pagination/index.js +0 -115
- package/lib/components/pagination/index.js.map +0 -1
- package/lib/components/progress/index.js +0 -45
- package/lib/components/progress/index.js.map +0 -1
- package/lib/components/radio/index.js +0 -43
- package/lib/components/radio/index.js.map +0 -1
- package/lib/components/range/index.js +0 -152
- package/lib/components/range/index.js.map +0 -1
- package/lib/components/rate/index.js +0 -56
- package/lib/components/rate/index.js.map +0 -1
- package/lib/components/search-bar/index.js +0 -121
- package/lib/components/search-bar/index.js.map +0 -1
- package/lib/components/segmented-control/index.js +0 -59
- package/lib/components/segmented-control/index.js.map +0 -1
- package/lib/components/slider/index.js +0 -77
- package/lib/components/slider/index.js.map +0 -1
- package/lib/components/steps/index.js +0 -50
- package/lib/components/steps/index.js.map +0 -1
- package/lib/components/swipe-action/index.js +0 -171
- package/lib/components/swipe-action/index.js.map +0 -1
- package/lib/components/swipe-action/options/index.js +0 -10
- package/lib/components/swipe-action/options/index.js.map +0 -1
- package/lib/components/switch/index.js +0 -48
- package/lib/components/switch/index.js.map +0 -1
- package/lib/components/tab-bar/index.js +0 -96
- package/lib/components/tab-bar/index.js.map +0 -1
- package/lib/components/tabs/index.js +0 -190
- package/lib/components/tabs/index.js.map +0 -1
- package/lib/components/tabs-pane/index.js +0 -30
- package/lib/components/tabs-pane/index.js.map +0 -1
- package/lib/components/tag/index.js +0 -55
- package/lib/components/tag/index.js.map +0 -1
- package/lib/components/textarea/index.js +0 -95
- package/lib/components/textarea/index.js.map +0 -1
- package/lib/components/timeline/index.js +0 -53
- package/lib/components/timeline/index.js.map +0 -1
- package/lib/components/toast/img.json +0 -5
- package/lib/components/toast/index.js +0 -117
- package/lib/components/toast/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- 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/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
|
package/types/input.d.ts
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
import { BaseEventOrig, ITouchEvent } from '@tarojs/components/types/common'
|
|
3
|
-
import { InputProps } from '@tarojs/components/types/Input'
|
|
4
|
-
import AtComponent from './base'
|
|
5
|
-
|
|
6
|
-
declare type OmitInputProps = Omit<
|
|
7
|
-
InputProps,
|
|
8
|
-
| 'className'
|
|
9
|
-
| 'type'
|
|
10
|
-
| 'onBlur'
|
|
11
|
-
| 'onFocus'
|
|
12
|
-
| 'onChange'
|
|
13
|
-
| 'onConfirm'
|
|
14
|
-
| 'onKeyboardHeightChange'
|
|
15
|
-
>
|
|
16
|
-
|
|
17
|
-
declare type InputFunction<T extends string | number, U = any, R = void> = (
|
|
18
|
-
value: T,
|
|
19
|
-
event?: BaseEventOrig<U>
|
|
20
|
-
) => R
|
|
21
|
-
|
|
22
|
-
declare type InputBaseEventDetail = {
|
|
23
|
-
/** 输入值 */
|
|
24
|
-
value: string | number
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export declare type InputEventDetail = InputBaseEventDetail & {
|
|
28
|
-
/** 光标位置 */
|
|
29
|
-
cursor: number
|
|
30
|
-
/** 键值 */
|
|
31
|
-
keyCode: number
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export declare type FocusEventDetail = InputBaseEventDetail & {
|
|
35
|
-
/** 键盘高度 */
|
|
36
|
-
height: number
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export declare type BlurEventDetail = InputBaseEventDetail
|
|
40
|
-
|
|
41
|
-
export declare type ConfirmEventDetail = InputBaseEventDetail
|
|
42
|
-
|
|
43
|
-
export declare type KeyboardHeightEventDetail = {
|
|
44
|
-
/** 键盘高度 */
|
|
45
|
-
height: number
|
|
46
|
-
/** 持续时间 */
|
|
47
|
-
duration: number
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface AtInputProps extends AtComponent, OmitInputProps {
|
|
51
|
-
/**
|
|
52
|
-
* 输入框的唯一标识,有传入点击 title 会聚焦输入框
|
|
53
|
-
*/
|
|
54
|
-
name: string
|
|
55
|
-
/**
|
|
56
|
-
* 输入框左侧标题,若传入为空,则不显示标题
|
|
57
|
-
*/
|
|
58
|
-
title?: string
|
|
59
|
-
/**
|
|
60
|
-
* 输入框类型
|
|
61
|
-
* @defalut 'text'
|
|
62
|
-
*/
|
|
63
|
-
type?: 'text' | 'number' | 'password' | 'phone' | 'idcard' | 'digit'
|
|
64
|
-
/**
|
|
65
|
-
* 是否出现错误
|
|
66
|
-
* @default false
|
|
67
|
-
*/
|
|
68
|
-
error?: boolean
|
|
69
|
-
/**
|
|
70
|
-
* 是否显示清除按钮,需要传入 onChange 事件来改变 value
|
|
71
|
-
* @default false
|
|
72
|
-
*/
|
|
73
|
-
clear?: boolean
|
|
74
|
-
/**
|
|
75
|
-
* 是否显示下划线边框
|
|
76
|
-
* @default true
|
|
77
|
-
*/
|
|
78
|
-
border?: boolean
|
|
79
|
-
/**
|
|
80
|
-
* 是否禁止输入,禁止点击按钮
|
|
81
|
-
* @default false
|
|
82
|
-
*/
|
|
83
|
-
disabled?: boolean
|
|
84
|
-
/**
|
|
85
|
-
* 占位符
|
|
86
|
-
*/
|
|
87
|
-
placeholder?: string
|
|
88
|
-
/**
|
|
89
|
-
* 指定 placeholder 的样式,只在小程序有效
|
|
90
|
-
*/
|
|
91
|
-
placeholderStyle?: string
|
|
92
|
-
/**
|
|
93
|
-
* 指定 placeholder 的样式类,只在小程序有效
|
|
94
|
-
*/
|
|
95
|
-
placeholderClass?: string
|
|
96
|
-
/**
|
|
97
|
-
* 是否可编辑
|
|
98
|
-
* @default true
|
|
99
|
-
*/
|
|
100
|
-
editable?: boolean
|
|
101
|
-
/**
|
|
102
|
-
* 键盘弹起时,是否自动上推页面
|
|
103
|
-
* @default false
|
|
104
|
-
*/
|
|
105
|
-
adjustPosition?: boolean
|
|
106
|
-
/**
|
|
107
|
-
* 是否自动聚焦
|
|
108
|
-
* @default false
|
|
109
|
-
*/
|
|
110
|
-
autoFocus?: boolean
|
|
111
|
-
/**
|
|
112
|
-
* 是否聚焦
|
|
113
|
-
* @default false
|
|
114
|
-
*/
|
|
115
|
-
focus?: boolean
|
|
116
|
-
/**
|
|
117
|
-
* 是否必填
|
|
118
|
-
* @default false
|
|
119
|
-
*/
|
|
120
|
-
required?: boolean
|
|
121
|
-
/**
|
|
122
|
-
* 最大输入长度
|
|
123
|
-
* @type {number}
|
|
124
|
-
* @default 140
|
|
125
|
-
*/
|
|
126
|
-
maxLength?: number
|
|
127
|
-
/**
|
|
128
|
-
* 输入框失去焦点时触发的事件,v2.0.3 版本可以获取 event 参数
|
|
129
|
-
*/
|
|
130
|
-
onBlur?: InputFunction<string | number, BlurEventDetail>
|
|
131
|
-
/**
|
|
132
|
-
* 输入框被选中时触发的事件,v2.0.3 版本可以获取 event 参数
|
|
133
|
-
*/
|
|
134
|
-
onFocus?: InputFunction<string | number, FocusEventDetail>
|
|
135
|
-
/**
|
|
136
|
-
* 输入框值改变时触发的事件,开发者需要通过 onChange 事件来更新 value 值变化,onChange 函数必填。
|
|
137
|
-
* 小程序中,如果想改变 value 的值,需要 return value 从而改变输入框的当前值, v2.0.3 版本可以获取 event 参数
|
|
138
|
-
*/
|
|
139
|
-
onChange?: InputFunction<string | number, InputEventDetail, any>
|
|
140
|
-
/**
|
|
141
|
-
* 点击完成按钮时触发,v2.0.3 版本可以获取 event 参数
|
|
142
|
-
*/
|
|
143
|
-
onConfirm?: InputFunction<string | number, ConfirmEventDetail>
|
|
144
|
-
/**
|
|
145
|
-
* 当 editable 为 false 时,点击组件触发的事件,v2.3.3 版本可以获取 event 参数
|
|
146
|
-
*/
|
|
147
|
-
onClick?: (event?: ITouchEvent) => void
|
|
148
|
-
/**
|
|
149
|
-
* 键盘高度发生变化的时候触发此事件
|
|
150
|
-
*/
|
|
151
|
-
onKeyboardHeightChange?: (
|
|
152
|
-
event?: BaseEventOrig<KeyboardHeightEventDetail>
|
|
153
|
-
) => void
|
|
154
|
-
/**
|
|
155
|
-
* 点击错误按钮触发的事件,v2.3.3 版本可以获取 event 参数
|
|
156
|
-
*/
|
|
157
|
-
onErrorClick?: (event?: ITouchEvent) => void
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
declare const AtInput: ComponentClass<AtInputProps>
|
|
161
|
-
|
|
162
|
-
export default AtInput
|
package/types/list.d.ts
DELETED
|
@@ -1,84 +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 AtListProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* 是否有边框
|
|
9
|
-
* @default true
|
|
10
|
-
*/
|
|
11
|
-
hasBorder?: boolean
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface AtListItemProps extends AtComponent {
|
|
15
|
-
/**
|
|
16
|
-
* 是否有边框
|
|
17
|
-
*/
|
|
18
|
-
hasBorder?: boolean
|
|
19
|
-
/**
|
|
20
|
-
* 是否禁用
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
disabled?: boolean
|
|
24
|
-
/**
|
|
25
|
-
* 元素的描述信息
|
|
26
|
-
*/
|
|
27
|
-
note?: JSX.Element | string
|
|
28
|
-
/**
|
|
29
|
-
* 元素的标题
|
|
30
|
-
*/
|
|
31
|
-
title?: JSX.Element | string
|
|
32
|
-
/**
|
|
33
|
-
* 元素的主要缩略图
|
|
34
|
-
*/
|
|
35
|
-
thumb?: string
|
|
36
|
-
/**
|
|
37
|
-
* 额外信息是否开关
|
|
38
|
-
*/
|
|
39
|
-
isSwitch?: boolean
|
|
40
|
-
/**
|
|
41
|
-
* 额外信息的文本
|
|
42
|
-
*/
|
|
43
|
-
extraText?: JSX.Element | string
|
|
44
|
-
/**
|
|
45
|
-
* 额外信息的缩略图
|
|
46
|
-
*/
|
|
47
|
-
extraThumb?: string
|
|
48
|
-
/**
|
|
49
|
-
* 额外信息开关的值
|
|
50
|
-
*/
|
|
51
|
-
switchIsCheck?: boolean
|
|
52
|
-
/**
|
|
53
|
-
* 开关的颜色
|
|
54
|
-
*/
|
|
55
|
-
switchColor?: string
|
|
56
|
-
/**
|
|
57
|
-
* icon 信息
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
|
-
iconInfo?: AtIconBaseProps
|
|
61
|
-
/**
|
|
62
|
-
* 自定义 icon
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
|
-
icon?: JSX.Element
|
|
66
|
-
/**
|
|
67
|
-
* 箭头的方向
|
|
68
|
-
*/
|
|
69
|
-
arrow?: 'up' | 'down' | 'right'
|
|
70
|
-
/**
|
|
71
|
-
* 用户点击元素触发的事件
|
|
72
|
-
*/
|
|
73
|
-
onClick?: CommonEventFunction
|
|
74
|
-
/**
|
|
75
|
-
* 用户点击切换 Switch 时触发
|
|
76
|
-
*/
|
|
77
|
-
onSwitchChange?: CommonEventFunction
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export const AtList: ComponentClass<AtListProps>
|
|
81
|
-
|
|
82
|
-
declare const AtListItem: ComponentClass<AtListItemProps>
|
|
83
|
-
|
|
84
|
-
export default AtListItem
|
package/types/load-more.d.ts
DELETED
|
@@ -1,43 +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 AtLoadMoreProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* noMore 状态显示文案样式
|
|
9
|
-
*/
|
|
10
|
-
noMoreTextStyle?: string | React.CSSProperties,
|
|
11
|
-
/**
|
|
12
|
-
* more 状态按钮样式
|
|
13
|
-
*/
|
|
14
|
-
moreBtnStyle?: string | React.CSSProperties,
|
|
15
|
-
/**
|
|
16
|
-
* 组件状态,more 状态显示查看更多按钮,loading 状态显示加载状态,noMore 显示无更多数据
|
|
17
|
-
* @default 'more'
|
|
18
|
-
*/
|
|
19
|
-
status?: 'more' | 'loading' | 'noMore'
|
|
20
|
-
/**
|
|
21
|
-
* loading 状态显示文案
|
|
22
|
-
* @default '加载中'
|
|
23
|
-
*/
|
|
24
|
-
loadingText?: string
|
|
25
|
-
/**
|
|
26
|
-
* more 状态显示文案
|
|
27
|
-
* @default '查看更多'
|
|
28
|
-
*/
|
|
29
|
-
moreText?: string
|
|
30
|
-
/**
|
|
31
|
-
* noMore 状态显示文案
|
|
32
|
-
* @default '没有更多'
|
|
33
|
-
*/
|
|
34
|
-
noMoreText?: string
|
|
35
|
-
/**
|
|
36
|
-
* more 状态点击触发的事件
|
|
37
|
-
*/
|
|
38
|
-
onClick?: CommonEventFunction
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
declare const AtLoadMore: ComponentClass<AtLoadMoreProps>
|
|
42
|
-
|
|
43
|
-
export default AtLoadMore
|
package/types/message.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
|
|
3
|
-
import AtComponent from './base'
|
|
4
|
-
|
|
5
|
-
export type AtMessageProps = AtComponent
|
|
6
|
-
|
|
7
|
-
export interface AtMessageState {
|
|
8
|
-
_isOpened: boolean
|
|
9
|
-
_message: string
|
|
10
|
-
_type: 'info' | 'success' | 'error' | 'warning'
|
|
11
|
-
_duration: number
|
|
12
|
-
_height?: number
|
|
13
|
-
translateY?: any
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
declare const AtMessage: ComponentClass<AtComponent>
|
|
17
|
-
|
|
18
|
-
interface Options {
|
|
19
|
-
/**
|
|
20
|
-
* 文本消息内容
|
|
21
|
-
*/
|
|
22
|
-
message: string
|
|
23
|
-
/**
|
|
24
|
-
* 消息类型
|
|
25
|
-
* @default 'info'
|
|
26
|
-
*/
|
|
27
|
-
type?: 'info' | 'success' | 'error' | 'warning'
|
|
28
|
-
/**
|
|
29
|
-
* 消息持续时间,单位 ms
|
|
30
|
-
* @default 3000
|
|
31
|
-
*/
|
|
32
|
-
duration?: number
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare function message(options: Options): void
|
|
36
|
-
|
|
37
|
-
declare module '@tarojs/taro' {
|
|
38
|
-
interface TaroStatic {
|
|
39
|
-
atMessage: (options: Options) => void
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { AtMessage, message }
|
package/types/modal.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
import { CommonEventFunction } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
import AtComponent from './base'
|
|
5
|
-
|
|
6
|
-
export interface AtModalProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* 元素的标题
|
|
9
|
-
*/
|
|
10
|
-
title?: string
|
|
11
|
-
/**
|
|
12
|
-
* 是否显示模态框
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
isOpened: boolean
|
|
16
|
-
/**
|
|
17
|
-
* 元素的内容
|
|
18
|
-
*/
|
|
19
|
-
content?: string
|
|
20
|
-
/**
|
|
21
|
-
* 点击浮层的时候时候自动关闭
|
|
22
|
-
* @default true
|
|
23
|
-
*/
|
|
24
|
-
closeOnClickOverlay?: boolean
|
|
25
|
-
/**
|
|
26
|
-
* 取消按钮的文本
|
|
27
|
-
*/
|
|
28
|
-
cancelText?: string
|
|
29
|
-
/**
|
|
30
|
-
* 确认按钮的文本
|
|
31
|
-
*/
|
|
32
|
-
confirmText?: string
|
|
33
|
-
/**
|
|
34
|
-
* 触发关闭时的事件
|
|
35
|
-
*/
|
|
36
|
-
onClose?: CommonEventFunction
|
|
37
|
-
/**
|
|
38
|
-
* 点击取消按钮触发的事件
|
|
39
|
-
*/
|
|
40
|
-
onCancel?: CommonEventFunction
|
|
41
|
-
/**
|
|
42
|
-
* 点击确认按钮触发的事件
|
|
43
|
-
*/
|
|
44
|
-
onConfirm?: CommonEventFunction
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface AtModalState {
|
|
48
|
-
_isOpened: boolean
|
|
49
|
-
isWEB: boolean
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface AtModalActionProps extends AtComponent {
|
|
53
|
-
isSimple: boolean
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export type AtModalContentProps = AtComponent
|
|
57
|
-
|
|
58
|
-
export type AtModalHeaderProps = AtComponent
|
|
59
|
-
|
|
60
|
-
declare const AtModal: ComponentClass<AtModalProps>
|
|
61
|
-
|
|
62
|
-
export default AtModal
|
package/types/nav-bar.d.ts
DELETED
|
@@ -1,65 +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 AtNavBarProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* 标题文字
|
|
9
|
-
*/
|
|
10
|
-
title?: string
|
|
11
|
-
/**
|
|
12
|
-
* 是否固定顶部
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
fixed?: boolean
|
|
16
|
-
/**
|
|
17
|
-
* 是否显示下划线
|
|
18
|
-
* @since v1.4.0
|
|
19
|
-
* @default true
|
|
20
|
-
*/
|
|
21
|
-
border?: boolean
|
|
22
|
-
/**
|
|
23
|
-
* 链接文字跟图标颜色,不包括标题
|
|
24
|
-
* @default #6190E8
|
|
25
|
-
*/
|
|
26
|
-
color?: string
|
|
27
|
-
/**
|
|
28
|
-
* 左边图标类型,图标类型请看 AtIcon 文档
|
|
29
|
-
* @default 'chevron-left'
|
|
30
|
-
*/
|
|
31
|
-
leftIconType?: string | AtIconBaseProps
|
|
32
|
-
/**
|
|
33
|
-
* 左边文字
|
|
34
|
-
*/
|
|
35
|
-
leftText?: string
|
|
36
|
-
/**
|
|
37
|
-
* 从右到左,第一个图标类型,图标类型请看 AtIcon 文档
|
|
38
|
-
*/
|
|
39
|
-
rightFirstIconType?: string | AtIconBaseProps
|
|
40
|
-
/**
|
|
41
|
-
* 从右到左第二个图标类型,图标类型请看 AtIcon 文档
|
|
42
|
-
*/
|
|
43
|
-
rightSecondIconType?: string | AtIconBaseProps
|
|
44
|
-
/**
|
|
45
|
-
* 左边第一个图标类型点击事件
|
|
46
|
-
*/
|
|
47
|
-
onClickLeftIcon?: CommonEventFunction
|
|
48
|
-
/**
|
|
49
|
-
* 从右到左第一个图标类型点击事件
|
|
50
|
-
*/
|
|
51
|
-
onClickRgIconSt?: CommonEventFunction
|
|
52
|
-
/**
|
|
53
|
-
* 从右到左第二个图标类型点击事件
|
|
54
|
-
*/
|
|
55
|
-
onClickRgIconNd?: CommonEventFunction
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* 标题点击事件
|
|
59
|
-
*/
|
|
60
|
-
onClickTitle?: CommonEventFunction
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare const AtNavBar: ComponentClass<AtNavBarProps>
|
|
64
|
-
|
|
65
|
-
export default AtNavBar
|
package/types/noticebar.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { ComponentClass } from 'react'
|
|
2
|
-
import { CommonEvent } from '@tarojs/components/types/common'
|
|
3
|
-
|
|
4
|
-
import AtComponent from './base'
|
|
5
|
-
|
|
6
|
-
export interface AtNoticeBarProps extends AtComponent {
|
|
7
|
-
/**
|
|
8
|
-
* 是否需要关闭按钮
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
close?: boolean
|
|
12
|
-
/**
|
|
13
|
-
* 内容是否单行
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
single?: boolean
|
|
17
|
-
/**
|
|
18
|
-
* 内容是否滚动(内容只能单行)
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
marquee?: boolean
|
|
22
|
-
/**
|
|
23
|
-
* 内容滚动速度 (默认速度100px/秒)
|
|
24
|
-
* @default 100
|
|
25
|
-
*/
|
|
26
|
-
speed?: number
|
|
27
|
-
/**
|
|
28
|
-
* “查看更多”链接文本
|
|
29
|
-
* @default '查看详情'
|
|
30
|
-
*/
|
|
31
|
-
moreText?: string
|
|
32
|
-
/**
|
|
33
|
-
* “查看更多”是否显示(内容只能单行)
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
showMore?: boolean
|
|
37
|
-
/**
|
|
38
|
-
* 内容前的 Icon 图标
|
|
39
|
-
*/
|
|
40
|
-
icon?: string
|
|
41
|
-
/**
|
|
42
|
-
* 关闭时触发
|
|
43
|
-
*/
|
|
44
|
-
onClose?: (event: CommonEvent) => void
|
|
45
|
-
/**
|
|
46
|
-
* 点击”查看更多“时触发
|
|
47
|
-
*/
|
|
48
|
-
onGotoMore?: (event: CommonEvent) => void
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface AtNoticeBarState {
|
|
52
|
-
show: boolean
|
|
53
|
-
animElemId: string
|
|
54
|
-
animationData: {
|
|
55
|
-
actions: object[]
|
|
56
|
-
}
|
|
57
|
-
dura: number
|
|
58
|
-
isWEAPP: boolean
|
|
59
|
-
isALIPAY: boolean
|
|
60
|
-
isWEB: boolean
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare const AtNoticeBar: ComponentClass<AtNoticeBarProps>
|
|
64
|
-
|
|
65
|
-
export default AtNoticeBar
|