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
|
@@ -50,27 +50,27 @@ export default class AtInputNumber extends React.Component<AtInputNumberProps> {
|
|
|
50
50
|
public static propTypes: InferProps<AtInputNumberProps>
|
|
51
51
|
|
|
52
52
|
state = {
|
|
53
|
-
width: null
|
|
53
|
+
width: null
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
widths = [] as number[]
|
|
57
57
|
|
|
58
58
|
private handleClick(clickType: 'minus' | 'plus', e: CommonEvent): void {
|
|
59
59
|
const { disabled, value, min = 0, max = 100, step = 1 } = this.props
|
|
60
|
-
const lowThanMin = clickType === 'minus' && value <= min
|
|
61
|
-
const overThanMax = clickType === 'plus' && value >= max
|
|
60
|
+
const lowThanMin = clickType === 'minus' && Number(value) <= min
|
|
61
|
+
const overThanMax = clickType === 'plus' && Number(value) >= max
|
|
62
62
|
if (lowThanMin || overThanMax || disabled) {
|
|
63
63
|
const deltaValue = clickType === 'minus' ? -step : step
|
|
64
64
|
const errorValue = addNum(Number(value), deltaValue)
|
|
65
65
|
if (disabled) {
|
|
66
66
|
this.handleError({
|
|
67
67
|
type: 'DISABLED',
|
|
68
|
-
errorValue
|
|
68
|
+
errorValue
|
|
69
69
|
})
|
|
70
70
|
} else {
|
|
71
71
|
this.handleError({
|
|
72
72
|
type: lowThanMin ? 'LOW' : 'OVER',
|
|
73
|
-
errorValue
|
|
73
|
+
errorValue
|
|
74
74
|
})
|
|
75
75
|
}
|
|
76
76
|
return
|
|
@@ -85,18 +85,18 @@ export default class AtInputNumber extends React.Component<AtInputNumberProps> {
|
|
|
85
85
|
const { max = 100, min = 0 } = this.props
|
|
86
86
|
let resultValue = value === '' ? min : value
|
|
87
87
|
// 此处不能使用 Math.max,会是字符串变数字,并丢失 .
|
|
88
|
-
if (resultValue > max) {
|
|
88
|
+
if (Number(resultValue) > max) {
|
|
89
89
|
resultValue = max
|
|
90
90
|
this.handleError({
|
|
91
91
|
type: 'OVER',
|
|
92
|
-
errorValue: resultValue
|
|
92
|
+
errorValue: resultValue
|
|
93
93
|
})
|
|
94
94
|
}
|
|
95
|
-
if (resultValue < min) {
|
|
95
|
+
if (Number(resultValue) < min) {
|
|
96
96
|
resultValue = min
|
|
97
97
|
this.handleError({
|
|
98
98
|
type: 'LOW',
|
|
99
|
-
errorValue: resultValue
|
|
99
|
+
errorValue: resultValue
|
|
100
100
|
})
|
|
101
101
|
}
|
|
102
102
|
if (resultValue && !Number(resultValue)) {
|
|
@@ -104,7 +104,7 @@ export default class AtInputNumber extends React.Component<AtInputNumberProps> {
|
|
|
104
104
|
|
|
105
105
|
this.handleError({
|
|
106
106
|
type: 'OVER',
|
|
107
|
-
errorValue: resultValue
|
|
107
|
+
errorValue: resultValue
|
|
108
108
|
})
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -139,7 +139,7 @@ export default class AtInputNumber extends React.Component<AtInputNumberProps> {
|
|
|
139
139
|
const widths = type === 'input' ? this.widths : this.widths.reverse()
|
|
140
140
|
const [btnWidth, inputWidth] = widths
|
|
141
141
|
this.setState({
|
|
142
|
-
width: btnWidth * 2 + inputWidth + 2
|
|
142
|
+
width: btnWidth * 2 + inputWidth + 2
|
|
143
143
|
})
|
|
144
144
|
}
|
|
145
145
|
// console.log('event.nativeEvent.layout', event.nativeEvent.layout)
|
|
@@ -156,7 +156,7 @@ export default class AtInputNumber extends React.Component<AtInputNumberProps> {
|
|
|
156
156
|
min = 0,
|
|
157
157
|
max = 100,
|
|
158
158
|
size,
|
|
159
|
-
disabledInput
|
|
159
|
+
disabledInput
|
|
160
160
|
} = this.props
|
|
161
161
|
|
|
162
162
|
const inputStyle: any = {}
|
|
@@ -169,13 +169,13 @@ export default class AtInputNumber extends React.Component<AtInputNumberProps> {
|
|
|
169
169
|
rootStyle.width = this.state.width
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
const inputValue = Number(this.handleValue(value))
|
|
172
|
+
const inputValue = Number(this.handleValue(value ?? ''))
|
|
173
173
|
const rootCls = classNames(
|
|
174
174
|
'at-input-number',
|
|
175
175
|
{
|
|
176
|
-
'at-input-number--lg': size === 'large'
|
|
176
|
+
'at-input-number--lg': size === 'large'
|
|
177
177
|
},
|
|
178
|
-
className
|
|
178
|
+
className
|
|
179
179
|
)
|
|
180
180
|
const minusBtnCls = classNames('at-input-number__btn')
|
|
181
181
|
const plusBtnCls = classNames('at-input-number__btn')
|
|
@@ -194,7 +194,7 @@ export default class AtInputNumber extends React.Component<AtInputNumberProps> {
|
|
|
194
194
|
value='subtract'
|
|
195
195
|
className={classNames({
|
|
196
196
|
'at-input-number__btn-subtract': true,
|
|
197
|
-
'at-input-number--disabled': minusDisabled
|
|
197
|
+
'at-input-number--disabled': minusDisabled
|
|
198
198
|
})}
|
|
199
199
|
/>
|
|
200
200
|
</View>
|
|
@@ -216,7 +216,7 @@ export default class AtInputNumber extends React.Component<AtInputNumberProps> {
|
|
|
216
216
|
value='add'
|
|
217
217
|
className={classNames({
|
|
218
218
|
'at-input-number__btn-add': true,
|
|
219
|
-
'at-input-number--disabled': addDisabled
|
|
219
|
+
'at-input-number--disabled': addDisabled
|
|
220
220
|
})}
|
|
221
221
|
/>
|
|
222
222
|
</View>
|
|
@@ -238,7 +238,7 @@ AtInputNumber.defaultProps = {
|
|
|
238
238
|
step: 1,
|
|
239
239
|
size: 'normal',
|
|
240
240
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
241
|
-
onChange: (): void => {}
|
|
241
|
+
onChange: (): void => {}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
AtInputNumber.propTypes = {
|
|
@@ -255,5 +255,5 @@ AtInputNumber.propTypes = {
|
|
|
255
255
|
disabledInput: PropTypes.bool,
|
|
256
256
|
onChange: PropTypes.func,
|
|
257
257
|
onBlur: PropTypes.func,
|
|
258
|
-
onErrorInput: PropTypes.func
|
|
258
|
+
onErrorInput: PropTypes.func
|
|
259
259
|
}
|
|
@@ -108,7 +108,7 @@ export default class AtMessage extends React.Component<
|
|
|
108
108
|
<Animated.View
|
|
109
109
|
className={rootCls}
|
|
110
110
|
onLayout={this.onLayout.bind(this)}
|
|
111
|
-
style={Object.assign({}, customStyle, {
|
|
111
|
+
style={Object.assign({}, customStyle as object, {
|
|
112
112
|
transform: [{ translateY }]
|
|
113
113
|
})}
|
|
114
114
|
>
|
|
@@ -19,13 +19,15 @@ export default class AtSwipeAction extends React.Component<
|
|
|
19
19
|
public constructor(props: AtSwipeActionProps) {
|
|
20
20
|
super(props)
|
|
21
21
|
const { isOpened, maxDistance } = props
|
|
22
|
-
this.maxOffsetSize = maxDistance
|
|
22
|
+
this.maxOffsetSize = maxDistance || 0
|
|
23
23
|
this.state = {
|
|
24
24
|
componentId: uuid(),
|
|
25
25
|
// eslint-disable-next-line no-extra-boolean-cast
|
|
26
26
|
offsetSize: !!isOpened ? -this.maxOffsetSize : 0,
|
|
27
27
|
_isOpened: !!isOpened,
|
|
28
|
-
needAnimation: false
|
|
28
|
+
needAnimation: false,
|
|
29
|
+
eleWidth: 0,
|
|
30
|
+
maxOffsetSize: this.maxOffsetSize
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
|
|
@@ -25,16 +25,18 @@ export default class AtSwipeAction extends React.Component<
|
|
|
25
25
|
public constructor(props: AtSwipeActionProps) {
|
|
26
26
|
super(props)
|
|
27
27
|
const { isOpened, maxDistance, areaWidth } = props
|
|
28
|
-
this.maxOffsetSize = maxDistance
|
|
28
|
+
this.maxOffsetSize = maxDistance || 0
|
|
29
29
|
this.state = {
|
|
30
30
|
componentId: uuid(),
|
|
31
31
|
// eslint-disable-next-line no-extra-boolean-cast
|
|
32
32
|
offsetSize: !!isOpened ? -this.maxOffsetSize : 0,
|
|
33
33
|
_isOpened: !!isOpened,
|
|
34
|
-
needAnimation: false
|
|
34
|
+
needAnimation: false,
|
|
35
|
+
eleWidth: this.eleWidth,
|
|
36
|
+
maxOffsetSize: this.maxOffsetSize
|
|
35
37
|
}
|
|
36
38
|
this.moveX = this.state.offsetSize
|
|
37
|
-
this.eleWidth = areaWidth
|
|
39
|
+
this.eleWidth = areaWidth || 0
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
public UNSAFE_componentWillReceiveProps(nextProps: AtSwipeActionProps): void {
|
|
@@ -106,8 +108,7 @@ export default class AtSwipeAction extends React.Component<
|
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
onTouchEnd = e => {
|
|
109
|
-
|
|
110
|
-
if (Math.abs(this.moveX) < maxOffsetSize / 2) {
|
|
111
|
+
if (Math.abs(this.moveX) < this.maxOffsetSize / 2) {
|
|
111
112
|
this._reset(false)
|
|
112
113
|
this.handleClosed(e)
|
|
113
114
|
} else {
|
|
@@ -89,7 +89,7 @@ export default class AtTabBar extends React.Component<AtTabBarProps> {
|
|
|
89
89
|
'at-tab-bar__item--active': current === i
|
|
90
90
|
})}
|
|
91
91
|
style={current === i ? selectedStyle : defaultStyle}
|
|
92
|
-
key={
|
|
92
|
+
key={`tab-bar-${i}`}
|
|
93
93
|
onClick={this.handleClick.bind(this, i)}
|
|
94
94
|
>
|
|
95
95
|
<View>
|
|
@@ -27,7 +27,7 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
|
|
|
27
27
|
this.state = {
|
|
28
28
|
_scrollLeft: 0,
|
|
29
29
|
_scrollTop: 0,
|
|
30
|
-
_scrollIntoView: ''
|
|
30
|
+
_scrollIntoView: ''
|
|
31
31
|
}
|
|
32
32
|
this._tabId = isTest() ? 'tabs-AOTU2018' : uuid()
|
|
33
33
|
// 触摸时的原点
|
|
@@ -52,7 +52,7 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
|
|
|
52
52
|
case Taro.ENV_TYPE.SWAN: {
|
|
53
53
|
const index = Math.max(idx - 1, 0)
|
|
54
54
|
this.setState({
|
|
55
|
-
_scrollIntoView: `tab${this._tabId}${index}
|
|
55
|
+
_scrollIntoView: `tab${this._tabId}${index}`
|
|
56
56
|
})
|
|
57
57
|
break
|
|
58
58
|
}
|
|
@@ -62,7 +62,7 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
|
|
|
62
62
|
prevTabItem &&
|
|
63
63
|
this.setState({
|
|
64
64
|
_scrollTop: prevTabItem.offsetTop,
|
|
65
|
-
_scrollLeft: prevTabItem.offsetLeft
|
|
65
|
+
_scrollLeft: prevTabItem.offsetLeft
|
|
66
66
|
})
|
|
67
67
|
break
|
|
68
68
|
}
|
|
@@ -79,7 +79,7 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
|
|
|
79
79
|
current--
|
|
80
80
|
}
|
|
81
81
|
this.setState({
|
|
82
|
-
_scrollLeft: width
|
|
82
|
+
_scrollLeft: width
|
|
83
83
|
})
|
|
84
84
|
}
|
|
85
85
|
if (scrollY) {
|
|
@@ -90,7 +90,7 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
|
|
|
90
90
|
current--
|
|
91
91
|
}
|
|
92
92
|
this.setState({
|
|
93
|
-
_scrollTop: height
|
|
93
|
+
_scrollTop: height
|
|
94
94
|
})
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -124,7 +124,7 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
|
|
|
124
124
|
const { swipeable, tabDirection, current, tabList } = this.props
|
|
125
125
|
if (!swipeable || tabDirection === 'vertical') return
|
|
126
126
|
|
|
127
|
-
const touchMove = e.nativeEvent.pageX
|
|
127
|
+
const touchMove = (e as any).nativeEvent.pageX
|
|
128
128
|
const moveDistance = touchMove - this._touchDot
|
|
129
129
|
const maxIndex = tabList.length
|
|
130
130
|
if (
|
|
@@ -195,14 +195,14 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
|
|
|
195
195
|
// animated,
|
|
196
196
|
tabList,
|
|
197
197
|
scroll,
|
|
198
|
-
current
|
|
198
|
+
current
|
|
199
199
|
} = this.props
|
|
200
200
|
const { _scrollLeft, _scrollTop, _scrollIntoView } = this.state
|
|
201
201
|
|
|
202
|
-
const heightStyle = { height:
|
|
202
|
+
const heightStyle = height ? { height: parseInt(height) } : {}
|
|
203
203
|
const underlineStyle = {
|
|
204
204
|
height: tabDirection === 'vertical' ? `${tabList.length * 100}%` : 1,
|
|
205
|
-
width: tabDirection === 'horizontal' ? `${tabList.length * 100}%` : 1
|
|
205
|
+
width: tabDirection === 'horizontal' ? `${tabList.length * 100}%` : 1
|
|
206
206
|
}
|
|
207
207
|
const bodyStyle: React.CSSProperties = {}
|
|
208
208
|
// let transformStyle = [{ translateY: '' }]
|
|
@@ -223,7 +223,7 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
|
|
|
223
223
|
'at-tabs__item': true,
|
|
224
224
|
'at-tabs__item--active': current === idx,
|
|
225
225
|
[`at-tabs__item--${tabDirection}`]: true,
|
|
226
|
-
[`at-tabs__item--${tabDirection}--active`]: current === idx
|
|
226
|
+
[`at-tabs__item--${tabDirection}--active`]: current === idx
|
|
227
227
|
})
|
|
228
228
|
|
|
229
229
|
return (
|
|
@@ -251,9 +251,9 @@ export default class AtTabs extends React.Component<AtTabsProps, AtTabsState> {
|
|
|
251
251
|
'at-tabs': true,
|
|
252
252
|
'at-tabs--scroll': scroll,
|
|
253
253
|
[`at-tabs--${tabDirection}`]: true,
|
|
254
|
-
[`at-tabs--${ENV}`]: true
|
|
254
|
+
[`at-tabs--${ENV}`]: true
|
|
255
255
|
},
|
|
256
|
-
className
|
|
256
|
+
className
|
|
257
257
|
)
|
|
258
258
|
const scrollX = tabDirection === 'horizontal'
|
|
259
259
|
const scrollY = tabDirection === 'vertical'
|
|
@@ -308,7 +308,7 @@ AtTabs.defaultProps = {
|
|
|
308
308
|
animated: true,
|
|
309
309
|
tabList: [],
|
|
310
310
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
311
|
-
onClick: (): void => {}
|
|
311
|
+
onClick: (): void => {}
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
AtTabs.propTypes = {
|
|
@@ -321,5 +321,5 @@ AtTabs.propTypes = {
|
|
|
321
321
|
scroll: PropTypes.bool,
|
|
322
322
|
animated: PropTypes.bool,
|
|
323
323
|
tabList: PropTypes.array,
|
|
324
|
-
onClick: PropTypes.func
|
|
324
|
+
onClick: PropTypes.func
|
|
325
325
|
}
|
|
@@ -78,7 +78,7 @@ export default class AtTextarea extends React.Component<AtTextareaProps> {
|
|
|
78
78
|
}
|
|
79
79
|
const rootCls = classNames('at-textarea', `at-textarea--${ENV}`, className)
|
|
80
80
|
|
|
81
|
-
const sizeError = _maxLength < value.length
|
|
81
|
+
const sizeError = _maxLength < (value || '').length
|
|
82
82
|
const placeholderCls = classNames('placeholder', placeholderClass)
|
|
83
83
|
|
|
84
84
|
return (
|
|
@@ -111,7 +111,7 @@ export default class AtTextarea extends React.Component<AtTextareaProps> {
|
|
|
111
111
|
'at-textarea__counter--error': sizeError
|
|
112
112
|
})}
|
|
113
113
|
>
|
|
114
|
-
{`${value.length}/${_maxLength}`}
|
|
114
|
+
{`${(value || '').length}/${_maxLength}`}
|
|
115
115
|
</View>
|
|
116
116
|
)}
|
|
117
117
|
</View>
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
@import '../variables/default.scss';
|
|
2
|
-
@import '../mixins/index.scss';
|
|
3
|
-
|
|
4
|
-
.at-accordion {
|
|
5
|
-
&__header {
|
|
6
|
-
position: relative;
|
|
7
|
-
padding: $spacing-v-lg $spacing-h-lg;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
width: 100%;
|
|
11
|
-
min-height: $font-size-lg;
|
|
12
|
-
color: $color-text-base;
|
|
13
|
-
font-size: $font-size-lg;
|
|
14
|
-
// box-sizing: border-box;
|
|
15
|
-
@include hairline-bottom();
|
|
16
|
-
@include active;
|
|
17
|
-
|
|
18
|
-
&--noborder {
|
|
19
|
-
&::after {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&__info {
|
|
26
|
-
flex: 1;
|
|
27
|
-
text-align: left;
|
|
28
|
-
line-height: 1.6;
|
|
29
|
-
|
|
30
|
-
&__title {
|
|
31
|
-
// @include line;
|
|
32
|
-
|
|
33
|
-
color: inherit;
|
|
34
|
-
font-size: inherit;
|
|
35
|
-
line-height: $line-height-zh;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&__note {
|
|
39
|
-
// @include line;
|
|
40
|
-
|
|
41
|
-
color: $at-list-content-color;
|
|
42
|
-
font-size: $font-size-base;
|
|
43
|
-
line-height: $line-height-zh;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&__icon {
|
|
48
|
-
margin-right: 15px;
|
|
49
|
-
color: $color-text-base;
|
|
50
|
-
font-size: 48px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&__content {
|
|
54
|
-
position: relative;
|
|
55
|
-
width: 100%;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
// transition:: height 500ms $ease-in-sine;
|
|
58
|
-
@include hairline-top();
|
|
59
|
-
|
|
60
|
-
&--inactive {
|
|
61
|
-
position: absolute;
|
|
62
|
-
// visibility: hidden;
|
|
63
|
-
height: 0;
|
|
64
|
-
z-index: -10;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&__arrow {
|
|
69
|
-
color: $at-accordion-color-arrow;
|
|
70
|
-
font-size: 48px;
|
|
71
|
-
line-height: 1;
|
|
72
|
-
// transition:: transform 0.2s ease;
|
|
73
|
-
// transform-origin: center;
|
|
74
|
-
|
|
75
|
-
&--folded {
|
|
76
|
-
// transform: rotate(180deg);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
@import '../variables/default.scss';
|
|
2
|
-
@import '../mixins/index.scss';
|
|
3
|
-
|
|
4
|
-
$at-action-sheet-duration: 300ms;
|
|
5
|
-
|
|
6
|
-
.at-action-sheet {
|
|
7
|
-
// position: absolute;
|
|
8
|
-
// width: 100%;
|
|
9
|
-
// height: 100%;
|
|
10
|
-
// top: 0;
|
|
11
|
-
// left: 0;
|
|
12
|
-
// z-index: $zindex-action-sheet;
|
|
13
|
-
// visibility: hidden;
|
|
14
|
-
// transition: visibility $at-action-sheet-duration $timing-func;
|
|
15
|
-
|
|
16
|
-
/* elements */
|
|
17
|
-
// &__overlay {
|
|
18
|
-
// @include overlay;
|
|
19
|
-
|
|
20
|
-
// opacity: 0;
|
|
21
|
-
// transition: opacity $at-action-sheet-duration ease-in;
|
|
22
|
-
// }
|
|
23
|
-
|
|
24
|
-
&__container {
|
|
25
|
-
position: absolute;
|
|
26
|
-
// padding-bottom: constant(safe-area-inset-bottom);
|
|
27
|
-
// padding-bottom: env(safe-area-inset-bottom);
|
|
28
|
-
bottom: 0;
|
|
29
|
-
width: 100%;
|
|
30
|
-
text-align: center;
|
|
31
|
-
background-color: $color-white;
|
|
32
|
-
// transform: translate3d(0, 100%, 0);
|
|
33
|
-
// transition: transform $at-action-sheet-duration $timing-func;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&__header {
|
|
37
|
-
padding: $spacing-v-lg $spacing-h-lg;
|
|
38
|
-
color: $color-black-3;
|
|
39
|
-
font-size: $font-size-base;
|
|
40
|
-
text-align: center;
|
|
41
|
-
// line-height: $line-height-zh;
|
|
42
|
-
@include hairline-bottom();
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&__footer {
|
|
46
|
-
padding: $spacing-v-lg $spacing-h-lg;
|
|
47
|
-
font-size: $font-size-xl;
|
|
48
|
-
border-top-width: 12px;
|
|
49
|
-
border-style: solid;
|
|
50
|
-
text-align: center;
|
|
51
|
-
border-top-color: rgba($color: $color-border-base, $alpha: 0.3);
|
|
52
|
-
// @include active();
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&__body {
|
|
56
|
-
text-align: center;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&__item {
|
|
60
|
-
padding: $spacing-v-lg $spacing-h-lg;
|
|
61
|
-
font-size: $font-size-xl;
|
|
62
|
-
text-align: center;
|
|
63
|
-
// @include active();
|
|
64
|
-
// @include line(1);
|
|
65
|
-
@include hairline-bottom-relative();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* modifiers */
|
|
69
|
-
&--active {
|
|
70
|
-
// visibility: visible;
|
|
71
|
-
|
|
72
|
-
// .at-action-sheet__overlay {
|
|
73
|
-
// opacity: 1;
|
|
74
|
-
// }
|
|
75
|
-
|
|
76
|
-
// .at-action-sheet__container {
|
|
77
|
-
// transform: translate3d(0, 0, 0);
|
|
78
|
-
// }
|
|
79
|
-
}
|
|
80
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
@import '../variables/default.scss';
|
|
2
|
-
@import '../mixins/index.scss';
|
|
3
|
-
|
|
4
|
-
.at-activity-indicator {
|
|
5
|
-
@include display-flex();
|
|
6
|
-
opacity: 0;
|
|
7
|
-
|
|
8
|
-
/* elements */
|
|
9
|
-
&__body {
|
|
10
|
-
@include flex(0, 0, auto);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&__content {
|
|
14
|
-
@include flex(0, 0, auto);
|
|
15
|
-
@include align-self(center);
|
|
16
|
-
|
|
17
|
-
margin-left: $spacing-h-lg;
|
|
18
|
-
color: $at-activity-indicator-font-color;
|
|
19
|
-
font-size: $at-activity-indicator-font-size;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/* modifiers */
|
|
23
|
-
&--center {
|
|
24
|
-
@include absolute-center;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&--isopened {
|
|
28
|
-
opacity: 1;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
@import '../variables/default.scss';
|
|
2
|
-
@import '../mixins/index.scss';
|
|
3
|
-
|
|
4
|
-
.at-article {
|
|
5
|
-
/* #ifndef rn */
|
|
6
|
-
// word-break: break-all;
|
|
7
|
-
// word-wrap: break-word;
|
|
8
|
-
/* #endif */
|
|
9
|
-
// line-height: $line-height-zh;
|
|
10
|
-
|
|
11
|
-
/* elements */
|
|
12
|
-
&__h1,
|
|
13
|
-
&__h2,
|
|
14
|
-
&__h3 {
|
|
15
|
-
margin: 0 30px;
|
|
16
|
-
color: $color-grey-0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&__h1 {
|
|
20
|
-
margin-top: 30px;
|
|
21
|
-
font-size: 48px;
|
|
22
|
-
line-height: 72px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&__info {
|
|
26
|
-
margin: 0 30px;
|
|
27
|
-
color: $color-grey-3;
|
|
28
|
-
font-size: $font-size-base;
|
|
29
|
-
line-height: 42px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&__h2 {
|
|
33
|
-
margin-top: 30px;
|
|
34
|
-
font-size: $font-size-xxl;
|
|
35
|
-
line-height: 60px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&__h3 {
|
|
39
|
-
font-size: $font-size-lg;
|
|
40
|
-
line-height: 48px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__p {
|
|
44
|
-
margin: 25px 30px 0;
|
|
45
|
-
color: $color-grey-1;
|
|
46
|
-
font-size: $font-size-base;
|
|
47
|
-
line-height: 42px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&__img {
|
|
51
|
-
display: flex;
|
|
52
|
-
/* #ifndef rn */
|
|
53
|
-
// display: block;
|
|
54
|
-
/* #endif */
|
|
55
|
-
margin: 20px auto 0;
|
|
56
|
-
width: 690px;
|
|
57
|
-
border-radius: 4px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
@use "sass:math";
|
|
2
|
-
@import '../variables/default.scss';
|
|
3
|
-
@import '../mixins/index.scss';
|
|
4
|
-
|
|
5
|
-
.at-avatar {
|
|
6
|
-
width: $at-avatar-size-md;
|
|
7
|
-
height: $at-avatar-size-md;
|
|
8
|
-
color: $at-avatar-color;
|
|
9
|
-
font-size: math.div($at-avatar-size-md, 2.5);
|
|
10
|
-
line-height: $at-avatar-size-md;
|
|
11
|
-
text-align: center;
|
|
12
|
-
border-radius: $border-radius-md;
|
|
13
|
-
background: $at-avatar-bg-color;
|
|
14
|
-
/* #ifndef rn */
|
|
15
|
-
// box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.05);
|
|
16
|
-
/* #endif */
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
|
|
19
|
-
/* elements */
|
|
20
|
-
&__img {
|
|
21
|
-
width: 100%;
|
|
22
|
-
height: 100%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* modifiers */
|
|
26
|
-
&--large {
|
|
27
|
-
width: $at-avatar-size-lg;
|
|
28
|
-
height: $at-avatar-size-lg;
|
|
29
|
-
font-size: math.div($at-avatar-size-lg, 2.5);
|
|
30
|
-
line-height: $at-avatar-size-lg;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&--small {
|
|
34
|
-
width: $at-avatar-size-sm;
|
|
35
|
-
height: $at-avatar-size-sm;
|
|
36
|
-
font-size: math.div($at-avatar-size-sm, 2.5);
|
|
37
|
-
line-height: $at-avatar-size-sm;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&--circle {
|
|
41
|
-
/* #ifndef rn */
|
|
42
|
-
background-clip: border-box;
|
|
43
|
-
/* #endif */
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
@use "sass:math";
|
|
2
|
-
@import '../variables/default.scss';
|
|
3
|
-
@import '../mixins/index.scss';
|
|
4
|
-
|
|
5
|
-
$at-badge-border-radius: $at-badge-font-size * 0.7;
|
|
6
|
-
$at-badge-box-shadow: 0 4px 8px 0 rgba($color: $at-badge-bg-color, $alpha: 0.2);
|
|
7
|
-
|
|
8
|
-
.at-badge {
|
|
9
|
-
position: relative;
|
|
10
|
-
/* #ifdef rn */
|
|
11
|
-
// 行内样式自己的宽度,不撑满一行
|
|
12
|
-
align-self: flex-start;
|
|
13
|
-
/* #endif */
|
|
14
|
-
/* #ifndef rn */
|
|
15
|
-
// display: inline-block;
|
|
16
|
-
// vertical-align: middle;
|
|
17
|
-
/* #endif */
|
|
18
|
-
width: 100%;
|
|
19
|
-
|
|
20
|
-
/* elements */
|
|
21
|
-
&__dot {
|
|
22
|
-
position: absolute;
|
|
23
|
-
right: -16px;
|
|
24
|
-
top: -6px;
|
|
25
|
-
width: $at-badge-dot-size;
|
|
26
|
-
height: $at-badge-dot-size;
|
|
27
|
-
border-radius: math.div($at-badge-dot-size, 2);
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
background: $at-badge-bg;
|
|
30
|
-
/* #ifndef rn */
|
|
31
|
-
// box-shadow: $at-badge-box-shadow;
|
|
32
|
-
/* #endif */
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&__num {
|
|
36
|
-
position: absolute;
|
|
37
|
-
top: -$at-badge-border-radius;
|
|
38
|
-
right: -16PX;
|
|
39
|
-
padding: 0 $spacing-h-sm;
|
|
40
|
-
color: $at-badge-color;
|
|
41
|
-
font-size: $at-badge-font-size;
|
|
42
|
-
border-radius: $at-badge-border-radius $at-badge-border-radius $at-badge-border-radius 0;
|
|
43
|
-
background: $at-badge-bg;
|
|
44
|
-
line-height: $at-badge-font-size * 1.4;
|
|
45
|
-
/* #ifndef rn */
|
|
46
|
-
// box-shadow: $at-badge-box-shadow;
|
|
47
|
-
// transform: translate(50%, 0);
|
|
48
|
-
/* #endif */
|
|
49
|
-
overflow: hidden;
|
|
50
|
-
z-index: 1;
|
|
51
|
-
}
|
|
52
|
-
}
|