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/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
|
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
|