maxit-cli 0.1.0
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/LICENSE +49 -0
- package/README.md +56 -0
- package/bin/maxit.js +75 -0
- package/lib/commands.js +142 -0
- package/lib/project.js +58 -0
- package/lib/registry.js +50 -0
- package/package.json +30 -0
- package/registry/components/action-sheet/action-sheet.js +1 -0
- package/registry/components/action-sheet/action-sheet.json +1 -0
- package/registry/components/action-sheet/action-sheet.wxml +1 -0
- package/registry/components/action-sheet/action-sheet.wxs +34 -0
- package/registry/components/action-sheet/action-sheet.wxss +197 -0
- package/registry/components/action-sheet/index.js +1 -0
- package/registry/components/action-sheet/props.js +1 -0
- package/registry/components/action-sheet/show.js +1 -0
- package/registry/components/action-sheet/template/grid.wxml +1 -0
- package/registry/components/avatar/avatar.js +1 -0
- package/registry/components/avatar/avatar.json +1 -0
- package/registry/components/avatar/avatar.wxml +1 -0
- package/registry/components/avatar/avatar.wxs +30 -0
- package/registry/components/avatar/avatar.wxss +105 -0
- package/registry/components/avatar/index.js +1 -0
- package/registry/components/avatar/props.js +1 -0
- package/registry/components/avatar-group/avatar-group.js +1 -0
- package/registry/components/avatar-group/avatar-group.json +1 -0
- package/registry/components/avatar-group/avatar-group.wxml +1 -0
- package/registry/components/avatar-group/avatar-group.wxss +248 -0
- package/registry/components/avatar-group/index.js +1 -0
- package/registry/components/avatar-group/props.js +1 -0
- package/registry/components/back-top/back-top.js +1 -0
- package/registry/components/back-top/back-top.json +1 -0
- package/registry/components/back-top/back-top.wxml +1 -0
- package/registry/components/back-top/back-top.wxss +77 -0
- package/registry/components/back-top/index.js +1 -0
- package/registry/components/back-top/props.js +1 -0
- package/registry/components/badge/badge.js +1 -0
- package/registry/components/badge/badge.json +1 -0
- package/registry/components/badge/badge.wxml +1 -0
- package/registry/components/badge/badge.wxs +64 -0
- package/registry/components/badge/badge.wxss +168 -0
- package/registry/components/badge/index.js +1 -0
- package/registry/components/badge/props.js +1 -0
- package/registry/components/balance-card/balance-card.js +34 -0
- package/registry/components/balance-card/balance-card.json +1 -0
- package/registry/components/balance-card/balance-card.wxml +33 -0
- package/registry/components/balance-card/balance-card.wxss +111 -0
- package/registry/components/balance-card/index.js +2 -0
- package/registry/components/balance-card/props.js +14 -0
- package/registry/components/balance-thumb-card/balance-thumb-card.js +39 -0
- package/registry/components/balance-thumb-card/balance-thumb-card.json +1 -0
- package/registry/components/balance-thumb-card/balance-thumb-card.wxml +26 -0
- package/registry/components/balance-thumb-card/balance-thumb-card.wxss +31 -0
- package/registry/components/balance-thumb-card/index.js +2 -0
- package/registry/components/balance-thumb-card/props.js +17 -0
- package/registry/components/bill-card/bill-card.js +23 -0
- package/registry/components/bill-card/bill-card.json +1 -0
- package/registry/components/bill-card/bill-card.wxml +30 -0
- package/registry/components/bill-card/bill-card.wxss +33 -0
- package/registry/components/bill-card/index.js +2 -0
- package/registry/components/bill-card/props.js +18 -0
- package/registry/components/button/button.js +1 -0
- package/registry/components/button/button.json +1 -0
- package/registry/components/button/button.wxml +1 -0
- package/registry/components/button/button.wxss +775 -0
- package/registry/components/button/index.js +1 -0
- package/registry/components/button/props.js +1 -0
- package/registry/components/calendar/calendar-header.wxml +1 -0
- package/registry/components/calendar/calendar.js +1 -0
- package/registry/components/calendar/calendar.json +1 -0
- package/registry/components/calendar/calendar.wxml +1 -0
- package/registry/components/calendar/calendar.wxs +44 -0
- package/registry/components/calendar/calendar.wxss +246 -0
- package/registry/components/calendar/index.js +1 -0
- package/registry/components/calendar/props.js +1 -0
- package/registry/components/calendar/template.wxml +1 -0
- package/registry/components/calendar/utils.js +1 -0
- package/registry/components/card/card.js +24 -0
- package/registry/components/card/card.json +1 -0
- package/registry/components/card/card.wxml +23 -0
- package/registry/components/card/card.wxss +103 -0
- package/registry/components/card/index.js +2 -0
- package/registry/components/card/props.js +16 -0
- package/registry/components/card-list/card-list.js +22 -0
- package/registry/components/card-list/card-list.json +1 -0
- package/registry/components/card-list/card-list.wxml +7 -0
- package/registry/components/card-list/card-list.wxss +30 -0
- package/registry/components/card-list/index.js +2 -0
- package/registry/components/card-list/props.js +16 -0
- package/registry/components/cascader/cascader.js +1 -0
- package/registry/components/cascader/cascader.json +1 -0
- package/registry/components/cascader/cascader.wxml +1 -0
- package/registry/components/cascader/cascader.wxss +178 -0
- package/registry/components/cascader/index.js +1 -0
- package/registry/components/cascader/props.js +1 -0
- package/registry/components/category-filter/category-filter.js +50 -0
- package/registry/components/category-filter/category-filter.json +1 -0
- package/registry/components/category-filter/category-filter.wxml +16 -0
- package/registry/components/category-filter/category-filter.wxss +47 -0
- package/registry/components/category-filter/index.js +2 -0
- package/registry/components/category-filter/props.js +10 -0
- package/registry/components/cell/cell.js +1 -0
- package/registry/components/cell/cell.json +1 -0
- package/registry/components/cell/cell.wxml +1 -0
- package/registry/components/cell/cell.wxss +136 -0
- package/registry/components/cell/index.js +1 -0
- package/registry/components/cell/props.js +1 -0
- package/registry/components/check-tag/check-tag.js +1 -0
- package/registry/components/check-tag/check-tag.json +1 -0
- package/registry/components/check-tag/check-tag.wxml +1 -0
- package/registry/components/check-tag/check-tag.wxss +275 -0
- package/registry/components/check-tag/index.js +1 -0
- package/registry/components/check-tag/props.js +1 -0
- package/registry/components/checkbox/checkbox.js +1 -0
- package/registry/components/checkbox/checkbox.json +1 -0
- package/registry/components/checkbox/checkbox.wxml +1 -0
- package/registry/components/checkbox/checkbox.wxss +230 -0
- package/registry/components/checkbox/index.js +1 -0
- package/registry/components/checkbox/props.js +1 -0
- package/registry/components/checkbox-group/checkbox-group.js +1 -0
- package/registry/components/checkbox-group/checkbox-group.json +1 -0
- package/registry/components/checkbox-group/checkbox-group.wxml +1 -0
- package/registry/components/checkbox-group/checkbox-group.wxss +7 -0
- package/registry/components/checkbox-group/index.js +1 -0
- package/registry/components/checkbox-group/props.js +1 -0
- package/registry/components/collapse/collapse.js +1 -0
- package/registry/components/collapse/collapse.json +1 -0
- package/registry/components/collapse/collapse.wxml +1 -0
- package/registry/components/collapse/collapse.wxss +8 -0
- package/registry/components/collapse/index.js +1 -0
- package/registry/components/collapse/props.js +1 -0
- package/registry/components/collapse-panel/collapse-panel.js +1 -0
- package/registry/components/collapse-panel/collapse-panel.json +1 -0
- package/registry/components/collapse-panel/collapse-panel.wxml +1 -0
- package/registry/components/collapse-panel/collapse-panel.wxss +186 -0
- package/registry/components/collapse-panel/index.js +1 -0
- package/registry/components/collapse-panel/props.js +1 -0
- package/registry/components/color-picker/color-picker.js +1 -0
- package/registry/components/color-picker/color-picker.json +1 -0
- package/registry/components/color-picker/color-picker.wxml +1 -0
- package/registry/components/color-picker/color-picker.wxss +312 -0
- package/registry/components/color-picker/constants.js +1 -0
- package/registry/components/color-picker/index.js +1 -0
- package/registry/components/color-picker/interfaces.js +1 -0
- package/registry/components/color-picker/props.js +1 -0
- package/registry/components/color-picker/template.wxml +1 -0
- package/registry/components/color-picker/utils.js +1 -0
- package/registry/components/common/bus.js +1 -0
- package/registry/components/common/config.js +1 -0
- package/registry/components/common/libs/tinycolor.js +1 -0
- package/registry/components/common/locale.js +20 -0
- package/registry/components/common/mixins/page-scroll.js +1 -0
- package/registry/components/common/mixins/touch.js +1 -0
- package/registry/components/common/mixins/transition.js +1 -0
- package/registry/components/common/mixins/using-config.js +24 -0
- package/registry/components/common/mixins/using-custom-navbar.js +1 -0
- package/registry/components/common/shared/calendar/index.js +1 -0
- package/registry/components/common/shared/color-picker/cmyk.js +1 -0
- package/registry/components/common/shared/color-picker/color.js +1 -0
- package/registry/components/common/shared/color-picker/gradient.js +1 -0
- package/registry/components/common/shared/color-picker/index.js +1 -0
- package/registry/components/common/shared/date.js +1 -0
- package/registry/components/common/shared/qrcode/qrcodegen.js +1 -0
- package/registry/components/common/shared/qrcode/utils.js +1 -0
- package/registry/components/common/src/control.js +1 -0
- package/registry/components/common/src/flatTool.js +1 -0
- package/registry/components/common/src/index.js +1 -0
- package/registry/components/common/src/instantiationDecorator.js +1 -0
- package/registry/components/common/src/superComponent.js +1 -0
- package/registry/components/common/style/card.wxss +245 -0
- package/registry/components/common/style/index.wxss +3 -0
- package/registry/components/common/style/tokens.wxss +233 -0
- package/registry/components/common/template/badge.wxml +1 -0
- package/registry/components/common/template/button.wxml +1 -0
- package/registry/components/common/template/icon.wxml +1 -0
- package/registry/components/common/template/image.wxml +1 -0
- package/registry/components/common/tslib.js +2 -0
- package/registry/components/common/typography/ellipsis.wxml +1 -0
- package/registry/components/common/typography/typography.wxs +49 -0
- package/registry/components/common/utils.js +1 -0
- package/registry/components/common/utils.wxs +149 -0
- package/registry/components/common/validator.js +1 -0
- package/registry/components/common/wechat.js +1 -0
- package/registry/components/consumption-card/consumption-card.js +23 -0
- package/registry/components/consumption-card/consumption-card.json +1 -0
- package/registry/components/consumption-card/consumption-card.wxml +16 -0
- package/registry/components/consumption-card/consumption-card.wxss +36 -0
- package/registry/components/consumption-card/index.js +2 -0
- package/registry/components/consumption-card/props.js +14 -0
- package/registry/components/contact-list/contact-list.js +60 -0
- package/registry/components/contact-list/contact-list.json +1 -0
- package/registry/components/contact-list/contact-list.wxml +24 -0
- package/registry/components/contact-list/contact-list.wxss +73 -0
- package/registry/components/contact-list/index.js +2 -0
- package/registry/components/contact-list/props.js +13 -0
- package/registry/components/description-tile/description-tile.js +22 -0
- package/registry/components/description-tile/description-tile.json +1 -0
- package/registry/components/description-tile/description-tile.wxml +11 -0
- package/registry/components/description-tile/description-tile.wxss +21 -0
- package/registry/components/description-tile/index.js +2 -0
- package/registry/components/description-tile/props.js +10 -0
- package/registry/components/details-card/details-card.js +38 -0
- package/registry/components/details-card/details-card.json +1 -0
- package/registry/components/details-card/details-card.wxml +37 -0
- package/registry/components/details-card/details-card.wxss +119 -0
- package/registry/components/details-card/index.js +2 -0
- package/registry/components/details-card/props.js +22 -0
- package/registry/components/dialog/dialog.js +1 -0
- package/registry/components/dialog/dialog.json +1 -0
- package/registry/components/dialog/dialog.wxml +1 -0
- package/registry/components/dialog/dialog.wxs +13 -0
- package/registry/components/dialog/dialog.wxss +123 -0
- package/registry/components/dialog/index.js +1 -0
- package/registry/components/dialog/props.js +1 -0
- package/registry/components/divider/divider.js +1 -0
- package/registry/components/divider/divider.json +1 -0
- package/registry/components/divider/divider.wxml +1 -0
- package/registry/components/divider/divider.wxss +69 -0
- package/registry/components/divider/index.js +1 -0
- package/registry/components/divider/props.js +1 -0
- package/registry/components/drawer/drawer.js +1 -0
- package/registry/components/drawer/drawer.json +1 -0
- package/registry/components/drawer/drawer.wxml +1 -0
- package/registry/components/drawer/drawer.wxss +75 -0
- package/registry/components/drawer/index.js +1 -0
- package/registry/components/drawer/props.js +1 -0
- package/registry/components/dropdown-item/dropdown-item.js +1 -0
- package/registry/components/dropdown-item/dropdown-item.json +1 -0
- package/registry/components/dropdown-item/dropdown-item.wxml +1 -0
- package/registry/components/dropdown-item/dropdown-item.wxss +116 -0
- package/registry/components/dropdown-item/index.js +1 -0
- package/registry/components/dropdown-item/index.wxs +9 -0
- package/registry/components/dropdown-item/props.js +1 -0
- package/registry/components/dropdown-menu/dropdown-menu.js +1 -0
- package/registry/components/dropdown-menu/dropdown-menu.json +1 -0
- package/registry/components/dropdown-menu/dropdown-menu.wxml +1 -0
- package/registry/components/dropdown-menu/dropdown-menu.wxss +72 -0
- package/registry/components/dropdown-menu/index.js +1 -0
- package/registry/components/dropdown-menu/props.js +1 -0
- package/registry/components/empty/empty.js +1 -0
- package/registry/components/empty/empty.json +1 -0
- package/registry/components/empty/empty.wxml +1 -0
- package/registry/components/empty/empty.wxss +28 -0
- package/registry/components/empty/index.js +1 -0
- package/registry/components/empty/props.js +1 -0
- package/registry/components/entry-card/entry-card.js +23 -0
- package/registry/components/entry-card/entry-card.json +1 -0
- package/registry/components/entry-card/entry-card.wxml +14 -0
- package/registry/components/entry-card/entry-card.wxss +30 -0
- package/registry/components/entry-card/index.js +2 -0
- package/registry/components/entry-card/props.js +11 -0
- package/registry/components/file-drop/file-drop.js +23 -0
- package/registry/components/file-drop/file-drop.json +1 -0
- package/registry/components/file-drop/file-drop.wxml +13 -0
- package/registry/components/file-drop/file-drop.wxss +35 -0
- package/registry/components/file-drop/index.js +2 -0
- package/registry/components/file-drop/props.js +9 -0
- package/registry/components/grid/grid.js +1 -0
- package/registry/components/grid/grid.json +1 -0
- package/registry/components/grid/grid.wxml +1 -0
- package/registry/components/grid/grid.wxss +18 -0
- package/registry/components/grid/index.js +1 -0
- package/registry/components/grid/props.js +1 -0
- package/registry/components/grid-item/grid-item.js +1 -0
- package/registry/components/grid-item/grid-item.json +1 -0
- package/registry/components/grid-item/grid-item.wxml +1 -0
- package/registry/components/grid-item/grid-item.wxss +130 -0
- package/registry/components/grid-item/index.js +1 -0
- package/registry/components/grid-item/props.js +1 -0
- package/registry/components/guide/content.wxml +1 -0
- package/registry/components/guide/guide.js +1 -0
- package/registry/components/guide/guide.json +1 -0
- package/registry/components/guide/guide.wxml +1 -0
- package/registry/components/guide/guide.wxss +79 -0
- package/registry/components/guide/index.js +1 -0
- package/registry/components/guide/props.js +1 -0
- package/registry/components/icon/icon.js +1 -0
- package/registry/components/icon/icon.json +1 -0
- package/registry/components/icon/icon.wxml +1 -0
- package/registry/components/icon/icon.wxss +2361 -0
- package/registry/components/icon/index.js +1 -0
- package/registry/components/icon/props.js +1 -0
- package/registry/components/image/image.js +1 -0
- package/registry/components/image/image.json +1 -0
- package/registry/components/image/image.wxml +1 -0
- package/registry/components/image/image.wxss +55 -0
- package/registry/components/image/index.js +1 -0
- package/registry/components/image/props.js +1 -0
- package/registry/components/image-viewer/image-viewer.js +1 -0
- package/registry/components/image-viewer/image-viewer.json +1 -0
- package/registry/components/image-viewer/image-viewer.wxml +1 -0
- package/registry/components/image-viewer/image-viewer.wxs +7 -0
- package/registry/components/image-viewer/image-viewer.wxss +90 -0
- package/registry/components/image-viewer/index.js +1 -0
- package/registry/components/image-viewer/props.js +1 -0
- package/registry/components/info-card/index.js +2 -0
- package/registry/components/info-card/info-card.js +22 -0
- package/registry/components/info-card/info-card.json +1 -0
- package/registry/components/info-card/info-card.wxml +14 -0
- package/registry/components/info-card/info-card.wxss +56 -0
- package/registry/components/info-card/props.js +11 -0
- package/registry/components/input/index.js +1 -0
- package/registry/components/input/input.js +1 -0
- package/registry/components/input/input.json +1 -0
- package/registry/components/input/input.wxml +1 -0
- package/registry/components/input/input.wxs +16 -0
- package/registry/components/input/input.wxss +313 -0
- package/registry/components/input/props.js +1 -0
- package/registry/components/insight-card/index.js +2 -0
- package/registry/components/insight-card/insight-card.js +19 -0
- package/registry/components/insight-card/insight-card.json +1 -0
- package/registry/components/insight-card/insight-card.wxml +17 -0
- package/registry/components/insight-card/insight-card.wxss +35 -0
- package/registry/components/insight-card/props.js +12 -0
- package/registry/components/link/index.js +1 -0
- package/registry/components/link/link.js +1 -0
- package/registry/components/link/link.json +1 -0
- package/registry/components/link/link.wxml +1 -0
- package/registry/components/link/link.wxss +155 -0
- package/registry/components/link/props.js +1 -0
- package/registry/components/list-item/index.js +2 -0
- package/registry/components/list-item/list-item.js +39 -0
- package/registry/components/list-item/list-item.json +1 -0
- package/registry/components/list-item/list-item.wxml +22 -0
- package/registry/components/list-item/list-item.wxss +110 -0
- package/registry/components/list-item/props.js +22 -0
- package/registry/components/loading/index.js +1 -0
- package/registry/components/loading/loading.js +1 -0
- package/registry/components/loading/loading.json +1 -0
- package/registry/components/loading/loading.wxml +1 -0
- package/registry/components/loading/loading.wxss +281 -0
- package/registry/components/loading/props.js +1 -0
- package/registry/components/main-card/index.js +2 -0
- package/registry/components/main-card/main-card.js +23 -0
- package/registry/components/main-card/main-card.json +1 -0
- package/registry/components/main-card/main-card.wxml +37 -0
- package/registry/components/main-card/main-card.wxss +63 -0
- package/registry/components/main-card/props.js +24 -0
- package/registry/components/media-card/index.js +2 -0
- package/registry/components/media-card/media-card.js +23 -0
- package/registry/components/media-card/media-card.json +1 -0
- package/registry/components/media-card/media-card.wxml +11 -0
- package/registry/components/media-card/media-card.wxss +51 -0
- package/registry/components/media-card/props.js +8 -0
- package/registry/components/message/index.js +1 -0
- package/registry/components/message/message.interface.js +1 -0
- package/registry/components/message/message.js +1 -0
- package/registry/components/message/message.json +1 -0
- package/registry/components/message/message.wxml +1 -0
- package/registry/components/message/message.wxss +2 -0
- package/registry/components/message/props.js +1 -0
- package/registry/components/message-item/index.js +1 -0
- package/registry/components/message-item/message-item.js +1 -0
- package/registry/components/message-item/message-item.json +1 -0
- package/registry/components/message-item/message-item.wxml +1 -0
- package/registry/components/message-item/message-item.wxs +31 -0
- package/registry/components/message-item/message-item.wxss +141 -0
- package/registry/components/navbar/index.js +1 -0
- package/registry/components/navbar/navbar.js +1 -0
- package/registry/components/navbar/navbar.json +1 -0
- package/registry/components/navbar/navbar.wxml +1 -0
- package/registry/components/navbar/navbar.wxss +126 -0
- package/registry/components/navbar/props.js +1 -0
- package/registry/components/notice-bar/index.js +1 -0
- package/registry/components/notice-bar/notice-bar.js +1 -0
- package/registry/components/notice-bar/notice-bar.json +1 -0
- package/registry/components/notice-bar/notice-bar.wxml +1 -0
- package/registry/components/notice-bar/notice-bar.wxss +95 -0
- package/registry/components/notice-bar/props.js +1 -0
- package/registry/components/notification-item/index.js +2 -0
- package/registry/components/notification-item/notification-item.js +35 -0
- package/registry/components/notification-item/notification-item.json +1 -0
- package/registry/components/notification-item/notification-item.wxml +14 -0
- package/registry/components/notification-item/notification-item.wxss +47 -0
- package/registry/components/notification-item/props.js +10 -0
- package/registry/components/offer-card/index.js +2 -0
- package/registry/components/offer-card/offer-card.js +22 -0
- package/registry/components/offer-card/offer-card.json +1 -0
- package/registry/components/offer-card/offer-card.wxml +33 -0
- package/registry/components/offer-card/offer-card.wxss +37 -0
- package/registry/components/offer-card/props.js +21 -0
- package/registry/components/om-card/index.js +2 -0
- package/registry/components/om-card/om-card.js +40 -0
- package/registry/components/om-card/om-card.json +1 -0
- package/registry/components/om-card/om-card.wxml +35 -0
- package/registry/components/om-card/om-card.wxss +90 -0
- package/registry/components/om-card/props.js +14 -0
- package/registry/components/overlay/index.js +1 -0
- package/registry/components/overlay/overlay.js +1 -0
- package/registry/components/overlay/overlay.json +1 -0
- package/registry/components/overlay/overlay.wxml +1 -0
- package/registry/components/overlay/overlay.wxss +22 -0
- package/registry/components/overlay/props.js +1 -0
- package/registry/components/paragraph/index.js +1 -0
- package/registry/components/paragraph/paragraph.js +1 -0
- package/registry/components/paragraph/paragraph.json +1 -0
- package/registry/components/paragraph/paragraph.wxml +1 -0
- package/registry/components/paragraph/paragraph.wxss +151 -0
- package/registry/components/paragraph/props.js +1 -0
- package/registry/components/picker/index.js +1 -0
- package/registry/components/picker/picker.js +1 -0
- package/registry/components/picker/picker.json +1 -0
- package/registry/components/picker/picker.wxml +1 -0
- package/registry/components/picker/picker.wxs +9 -0
- package/registry/components/picker/picker.wxss +84 -0
- package/registry/components/picker/props.js +1 -0
- package/registry/components/picker/template.wxml +1 -0
- package/registry/components/picker-item/index.js +1 -0
- package/registry/components/picker-item/picker-item.js +1 -0
- package/registry/components/picker-item/picker-item.json +1 -0
- package/registry/components/picker-item/picker-item.wxml +1 -0
- package/registry/components/picker-item/picker-item.wxss +41 -0
- package/registry/components/picker-item/props.js +1 -0
- package/registry/components/popover/index.js +1 -0
- package/registry/components/popover/popover.js +1 -0
- package/registry/components/popover/popover.json +1 -0
- package/registry/components/popover/popover.wxml +1 -0
- package/registry/components/popover/popover.wxss +336 -0
- package/registry/components/popover/props.js +1 -0
- package/registry/components/popup/index.js +1 -0
- package/registry/components/popup/popup.js +1 -0
- package/registry/components/popup/popup.json +1 -0
- package/registry/components/popup/popup.wxml +1 -0
- package/registry/components/popup/popup.wxs +21 -0
- package/registry/components/popup/popup.wxss +96 -0
- package/registry/components/popup/props.js +1 -0
- package/registry/components/post-item/index.js +2 -0
- package/registry/components/post-item/post-item.js +22 -0
- package/registry/components/post-item/post-item.json +1 -0
- package/registry/components/post-item/post-item.wxml +5 -0
- package/registry/components/post-item/post-item.wxss +37 -0
- package/registry/components/post-item/props.js +7 -0
- package/registry/components/progress/index.js +1 -0
- package/registry/components/progress/progress.js +1 -0
- package/registry/components/progress/progress.json +1 -0
- package/registry/components/progress/progress.wxml +1 -0
- package/registry/components/progress/progress.wxs +80 -0
- package/registry/components/progress/progress.wxss +161 -0
- package/registry/components/progress/props.js +1 -0
- package/registry/components/progress/utils.js +1 -0
- package/registry/components/purchase-card/index.js +2 -0
- package/registry/components/purchase-card/props.js +13 -0
- package/registry/components/purchase-card/purchase-card.js +40 -0
- package/registry/components/purchase-card/purchase-card.json +1 -0
- package/registry/components/purchase-card/purchase-card.wxml +22 -0
- package/registry/components/purchase-card/purchase-card.wxss +19 -0
- package/registry/components/qrcode/components/qrcode-canvas/props.js +1 -0
- package/registry/components/qrcode/components/qrcode-canvas/qrcode-canvas.js +1 -0
- package/registry/components/qrcode/components/qrcode-canvas/qrcode-canvas.json +1 -0
- package/registry/components/qrcode/components/qrcode-canvas/qrcode-canvas.wxml +1 -0
- package/registry/components/qrcode/components/qrcode-canvas/qrcode-canvas.wxss +10 -0
- package/registry/components/qrcode/components/qrcode-status/props.js +1 -0
- package/registry/components/qrcode/components/qrcode-status/qrcode-status.js +1 -0
- package/registry/components/qrcode/components/qrcode-status/qrcode-status.json +1 -0
- package/registry/components/qrcode/components/qrcode-status/qrcode-status.wxml +1 -0
- package/registry/components/qrcode/components/qrcode-status/qrcode-status.wxss +32 -0
- package/registry/components/qrcode/hooks/useQRCode.js +1 -0
- package/registry/components/qrcode/index.js +1 -0
- package/registry/components/qrcode/props.js +1 -0
- package/registry/components/qrcode/qrcode.js +1 -0
- package/registry/components/qrcode/qrcode.json +1 -0
- package/registry/components/qrcode/qrcode.wxml +1 -0
- package/registry/components/qrcode/qrcode.wxss +36 -0
- package/registry/components/quick-action/index.js +2 -0
- package/registry/components/quick-action/props.js +10 -0
- package/registry/components/quick-action/quick-action.js +22 -0
- package/registry/components/quick-action/quick-action.json +1 -0
- package/registry/components/quick-action/quick-action.wxml +15 -0
- package/registry/components/quick-action/quick-action.wxss +80 -0
- package/registry/components/radio/index.js +1 -0
- package/registry/components/radio/props.js +1 -0
- package/registry/components/radio/radio.js +1 -0
- package/registry/components/radio/radio.json +1 -0
- package/registry/components/radio/radio.wxml +1 -0
- package/registry/components/radio/radio.wxss +219 -0
- package/registry/components/radio-group/index.js +1 -0
- package/registry/components/radio-group/props.js +1 -0
- package/registry/components/radio-group/radio-group.js +1 -0
- package/registry/components/radio-group/radio-group.json +1 -0
- package/registry/components/radio-group/radio-group.wxml +1 -0
- package/registry/components/radio-group/radio-group.wxss +7 -0
- package/registry/components/rate/index.js +1 -0
- package/registry/components/rate/props.js +1 -0
- package/registry/components/rate/rate.js +1 -0
- package/registry/components/rate/rate.json +1 -0
- package/registry/components/rate/rate.wxml +1 -0
- package/registry/components/rate/rate.wxs +65 -0
- package/registry/components/rate/rate.wxss +99 -0
- package/registry/components/rating-card/index.js +2 -0
- package/registry/components/rating-card/props.js +12 -0
- package/registry/components/rating-card/rating-card.js +42 -0
- package/registry/components/rating-card/rating-card.json +1 -0
- package/registry/components/rating-card/rating-card.wxml +24 -0
- package/registry/components/rating-card/rating-card.wxss +49 -0
- package/registry/components/recap-card/index.js +2 -0
- package/registry/components/recap-card/props.js +21 -0
- package/registry/components/recap-card/recap-card.js +38 -0
- package/registry/components/recap-card/recap-card.json +1 -0
- package/registry/components/recap-card/recap-card.wxml +43 -0
- package/registry/components/recap-card/recap-card.wxss +60 -0
- package/registry/components/result/illustrations.js +2 -0
- package/registry/components/result/index.js +1 -0
- package/registry/components/result/props.js +1 -0
- package/registry/components/result/result.js +1 -0
- package/registry/components/result/result.json +1 -0
- package/registry/components/result/result.wxml +1 -0
- package/registry/components/result/result.wxss +97 -0
- package/registry/components/review-item/index.js +2 -0
- package/registry/components/review-item/props.js +13 -0
- package/registry/components/review-item/review-item.js +38 -0
- package/registry/components/review-item/review-item.json +1 -0
- package/registry/components/review-item/review-item.wxml +19 -0
- package/registry/components/review-item/review-item.wxss +65 -0
- package/registry/components/search/index.js +1 -0
- package/registry/components/search/props.js +1 -0
- package/registry/components/search/search.js +1 -0
- package/registry/components/search/search.json +1 -0
- package/registry/components/search/search.wxml +1 -0
- package/registry/components/search/search.wxs +6 -0
- package/registry/components/search/search.wxss +100 -0
- package/registry/components/section-title/index.js +2 -0
- package/registry/components/section-title/props.js +6 -0
- package/registry/components/section-title/section-title.js +22 -0
- package/registry/components/section-title/section-title.json +1 -0
- package/registry/components/section-title/section-title.wxml +6 -0
- package/registry/components/section-title/section-title.wxss +19 -0
- package/registry/components/segmented/index.js +1 -0
- package/registry/components/segmented/props.js +1 -0
- package/registry/components/segmented/segmented.js +1 -0
- package/registry/components/segmented/segmented.json +1 -0
- package/registry/components/segmented/segmented.wxml +1 -0
- package/registry/components/segmented/segmented.wxss +113 -0
- package/registry/components/selection-card/index.js +2 -0
- package/registry/components/selection-card/props.js +11 -0
- package/registry/components/selection-card/selection-card.js +25 -0
- package/registry/components/selection-card/selection-card.json +1 -0
- package/registry/components/selection-card/selection-card.wxml +7 -0
- package/registry/components/selection-card/selection-card.wxss +27 -0
- package/registry/components/shortcut-chip/index.js +2 -0
- package/registry/components/shortcut-chip/props.js +7 -0
- package/registry/components/shortcut-chip/shortcut-chip.js +24 -0
- package/registry/components/shortcut-chip/shortcut-chip.json +1 -0
- package/registry/components/shortcut-chip/shortcut-chip.wxml +4 -0
- package/registry/components/shortcut-chip/shortcut-chip.wxss +29 -0
- package/registry/components/skeleton/index.js +1 -0
- package/registry/components/skeleton/props.js +1 -0
- package/registry/components/skeleton/skeleton.js +1 -0
- package/registry/components/skeleton/skeleton.json +1 -0
- package/registry/components/skeleton/skeleton.wxml +1 -0
- package/registry/components/skeleton/skeleton.wxss +92 -0
- package/registry/components/slider/index.js +1 -0
- package/registry/components/slider/props.js +1 -0
- package/registry/components/slider/slider.js +1 -0
- package/registry/components/slider/slider.json +1 -0
- package/registry/components/slider/slider.wxml +1 -0
- package/registry/components/slider/slider.wxs +10 -0
- package/registry/components/slider/slider.wxss +287 -0
- package/registry/components/slider/tool.js +1 -0
- package/registry/components/step-item/index.js +1 -0
- package/registry/components/step-item/props.js +1 -0
- package/registry/components/step-item/step-item.js +1 -0
- package/registry/components/step-item/step-item.json +1 -0
- package/registry/components/step-item/step-item.wxml +1 -0
- package/registry/components/step-item/step-item.wxs +7 -0
- package/registry/components/step-item/step-item.wxss +226 -0
- package/registry/components/stepper/index.js +1 -0
- package/registry/components/stepper/props.js +1 -0
- package/registry/components/stepper/stepper.js +1 -0
- package/registry/components/stepper/stepper.json +1 -0
- package/registry/components/stepper/stepper.wxml +1 -0
- package/registry/components/stepper/stepper.wxss +130 -0
- package/registry/components/steps/index.js +1 -0
- package/registry/components/steps/props.js +1 -0
- package/registry/components/steps/steps.js +1 -0
- package/registry/components/steps/steps.json +1 -0
- package/registry/components/steps/steps.wxml +1 -0
- package/registry/components/steps/steps.wxss +27 -0
- package/registry/components/sticky/index.js +1 -0
- package/registry/components/sticky/props.js +1 -0
- package/registry/components/sticky/sticky.js +1 -0
- package/registry/components/sticky/sticky.json +1 -0
- package/registry/components/sticky/sticky.wxml +1 -0
- package/registry/components/sticky/sticky.wxss +6 -0
- package/registry/components/story-item/index.js +2 -0
- package/registry/components/story-item/props.js +8 -0
- package/registry/components/story-item/story-item.js +22 -0
- package/registry/components/story-item/story-item.json +1 -0
- package/registry/components/story-item/story-item.wxml +9 -0
- package/registry/components/story-item/story-item.wxss +43 -0
- package/registry/components/swipe-cell/index.js +1 -0
- package/registry/components/swipe-cell/props.js +1 -0
- package/registry/components/swipe-cell/swipe-cell.js +1 -0
- package/registry/components/swipe-cell/swipe-cell.json +1 -0
- package/registry/components/swipe-cell/swipe-cell.wxml +1 -0
- package/registry/components/swipe-cell/swipe-cell.wxs +185 -0
- package/registry/components/swipe-cell/swipe-cell.wxss +40 -0
- package/registry/components/swiper/index.js +1 -0
- package/registry/components/swiper/index.wxs +25 -0
- package/registry/components/swiper/props.js +1 -0
- package/registry/components/swiper/swiper.js +1 -0
- package/registry/components/swiper/swiper.json +1 -0
- package/registry/components/swiper/swiper.wxml +1 -0
- package/registry/components/swiper/swiper.wxss +28 -0
- package/registry/components/swiper-nav/index.js +1 -0
- package/registry/components/swiper-nav/props.js +1 -0
- package/registry/components/swiper-nav/swiper-nav.js +1 -0
- package/registry/components/swiper-nav/swiper-nav.json +1 -0
- package/registry/components/swiper-nav/swiper-nav.wxml +1 -0
- package/registry/components/swiper-nav/swiper-nav.wxss +155 -0
- package/registry/components/switch/index.js +1 -0
- package/registry/components/switch/props.js +1 -0
- package/registry/components/switch/switch.js +1 -0
- package/registry/components/switch/switch.json +1 -0
- package/registry/components/switch/switch.wxml +1 -0
- package/registry/components/switch/switch.wxss +169 -0
- package/registry/components/tab-bar/index.js +1 -0
- package/registry/components/tab-bar/props.js +1 -0
- package/registry/components/tab-bar/tab-bar.js +1 -0
- package/registry/components/tab-bar/tab-bar.json +1 -0
- package/registry/components/tab-bar/tab-bar.wxml +1 -0
- package/registry/components/tab-bar/tab-bar.wxss +50 -0
- package/registry/components/tab-bar-item/index.js +1 -0
- package/registry/components/tab-bar-item/props.js +1 -0
- package/registry/components/tab-bar-item/tab-bar-item.js +1 -0
- package/registry/components/tab-bar-item/tab-bar-item.json +1 -0
- package/registry/components/tab-bar-item/tab-bar-item.wxml +1 -0
- package/registry/components/tab-bar-item/tab-bar-item.wxss +177 -0
- package/registry/components/tab-panel/index.js +1 -0
- package/registry/components/tab-panel/props.js +1 -0
- package/registry/components/tab-panel/tab-panel.js +1 -0
- package/registry/components/tab-panel/tab-panel.json +1 -0
- package/registry/components/tab-panel/tab-panel.wxml +1 -0
- package/registry/components/tab-panel/tab-panel.wxss +20 -0
- package/registry/components/tabs/index.js +1 -0
- package/registry/components/tabs/props.js +1 -0
- package/registry/components/tabs/tabs.js +1 -0
- package/registry/components/tabs/tabs.json +1 -0
- package/registry/components/tabs/tabs.wxml +1 -0
- package/registry/components/tabs/tabs.wxs +30 -0
- package/registry/components/tabs/tabs.wxss +233 -0
- package/registry/components/tag/index.js +1 -0
- package/registry/components/tag/props.js +1 -0
- package/registry/components/tag/tag.js +1 -0
- package/registry/components/tag/tag.json +1 -0
- package/registry/components/tag/tag.wxml +1 -0
- package/registry/components/tag/tag.wxss +268 -0
- package/registry/components/text/index.js +1 -0
- package/registry/components/text/props.js +1 -0
- package/registry/components/text/text.js +1 -0
- package/registry/components/text/text.json +1 -0
- package/registry/components/text/text.wxml +1 -0
- package/registry/components/text/text.wxss +151 -0
- package/registry/components/textarea/index.js +1 -0
- package/registry/components/textarea/props.js +1 -0
- package/registry/components/textarea/textarea.js +1 -0
- package/registry/components/textarea/textarea.json +1 -0
- package/registry/components/textarea/textarea.wxml +1 -0
- package/registry/components/textarea/textarea.wxs +15 -0
- package/registry/components/textarea/textarea.wxss +151 -0
- package/registry/components/ticket/index.js +2 -0
- package/registry/components/ticket/props.js +19 -0
- package/registry/components/ticket/ticket.js +19 -0
- package/registry/components/ticket/ticket.json +1 -0
- package/registry/components/ticket/ticket.wxml +31 -0
- package/registry/components/ticket/ticket.wxss +57 -0
- package/registry/components/title/index.js +1 -0
- package/registry/components/title/props.js +1 -0
- package/registry/components/title/title.js +1 -0
- package/registry/components/title/title.json +1 -0
- package/registry/components/title/title.wxml +1 -0
- package/registry/components/title/title.wxss +151 -0
- package/registry/components/toast/index.js +1 -0
- package/registry/components/toast/props.js +1 -0
- package/registry/components/toast/toast.js +1 -0
- package/registry/components/toast/toast.json +1 -0
- package/registry/components/toast/toast.wxml +1 -0
- package/registry/components/toast/toast.wxss +87 -0
- package/registry/components/toggle-card/index.js +2 -0
- package/registry/components/toggle-card/props.js +7 -0
- package/registry/components/toggle-card/toggle-card.js +37 -0
- package/registry/components/toggle-card/toggle-card.json +1 -0
- package/registry/components/toggle-card/toggle-card.wxml +12 -0
- package/registry/components/toggle-card/toggle-card.wxss +11 -0
- package/registry/components/top-item/index.js +2 -0
- package/registry/components/top-item/props.js +10 -0
- package/registry/components/top-item/top-item.js +22 -0
- package/registry/components/top-item/top-item.json +1 -0
- package/registry/components/top-item/top-item.wxml +8 -0
- package/registry/components/top-item/top-item.wxss +37 -0
- package/registry/components/transaction-card/index.js +2 -0
- package/registry/components/transaction-card/props.js +25 -0
- package/registry/components/transaction-card/transaction-card.js +43 -0
- package/registry/components/transaction-card/transaction-card.json +1 -0
- package/registry/components/transaction-card/transaction-card.wxml +44 -0
- package/registry/components/transaction-card/transaction-card.wxss +45 -0
- package/registry/components/transfer-item/index.js +2 -0
- package/registry/components/transfer-item/props.js +18 -0
- package/registry/components/transfer-item/transfer-item.js +40 -0
- package/registry/components/transfer-item/transfer-item.json +1 -0
- package/registry/components/transfer-item/transfer-item.wxml +34 -0
- package/registry/components/transfer-item/transfer-item.wxss +66 -0
- package/registry/components/upload/drag.wxs +242 -0
- package/registry/components/upload/index.js +1 -0
- package/registry/components/upload/props.js +1 -0
- package/registry/components/upload/upload.js +1 -0
- package/registry/components/upload/upload.json +1 -0
- package/registry/components/upload/upload.wxml +1 -0
- package/registry/components/upload/upload.wxs +129 -0
- package/registry/components/upload/upload.wxss +354 -0
- package/registry/components/wheel-select/index.js +2 -0
- package/registry/components/wheel-select/props.js +8 -0
- package/registry/components/wheel-select/wheel-select.js +38 -0
- package/registry/components/wheel-select/wheel-select.json +1 -0
- package/registry/components/wheel-select/wheel-select.wxml +9 -0
- package/registry/components/wheel-select/wheel-select.wxss +22 -0
- package/registry/registry.json +1033 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-swiper-nav__dots,
|
|
4
|
+
.o-swiper-nav__dots-bar {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.o-swiper-nav__dots-bar-item,
|
|
10
|
+
.o-swiper-nav__dots-item {
|
|
11
|
+
width: var(--o-swiper-nav-dot-size,12rpx);
|
|
12
|
+
height: var(--o-swiper-nav-dot-size,12rpx);
|
|
13
|
+
background: var(--o-swiper-nav-dot-color,var(--o-font-white-2,rgba(255,255,255,.55)));
|
|
14
|
+
border-radius: var(--o-radius-circle,50%);
|
|
15
|
+
margin: 0 10rpx;
|
|
16
|
+
transition: all .4s ease-in;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.o-swiper-nav__dots-bar-item--vertical,
|
|
20
|
+
.o-swiper-nav__dots-item--vertical {
|
|
21
|
+
margin: 10rpx 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.o-swiper-nav__dots-bar-item--active,
|
|
25
|
+
.o-swiper-nav__dots-item--active {
|
|
26
|
+
background-color: var(--o-swiper-nav-dot-active-color,var(--o-text-color-anti,var(--o-font-white-1,#fff)));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.o-swiper-nav__dots-bar-item--vertical.o-swiper-nav__dots-bar-item--active {
|
|
30
|
+
width: var(--o-swiper-nav-dot-size,12rpx);
|
|
31
|
+
height: var(--o-swiper-nav-dots-bar-active-width,40rpx);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.o-swiper-nav__dots-bar-item--active {
|
|
35
|
+
width: var(--o-swiper-nav-dots-bar-active-width,40rpx);
|
|
36
|
+
border-radius: calc(var(--o-swiper-nav-dot-size,12rpx)/ 2);
|
|
37
|
+
background-color: var(--o-swiper-nav-dot-active-color,var(--o-text-color-anti,var(--o-font-white-1,#fff)));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.o-swiper-nav--left {
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: 24rpx;
|
|
43
|
+
top: 50%;
|
|
44
|
+
transform: translateY(-50%);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.o-swiper-nav--right {
|
|
48
|
+
position: absolute;
|
|
49
|
+
right: 24rpx;
|
|
50
|
+
top: 50%;
|
|
51
|
+
transform: translateY(-50%);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.o-swiper-nav--top-left {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 24rpx;
|
|
57
|
+
left: 24rpx;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.o-swiper-nav--top {
|
|
61
|
+
position: absolute;
|
|
62
|
+
left: 50%;
|
|
63
|
+
top: 24rpx;
|
|
64
|
+
transform: translateX(-50%);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.o-swiper-nav--top-right {
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 24rpx;
|
|
70
|
+
right: 24rpx;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.o-swiper-nav--bottom-left {
|
|
74
|
+
position: absolute;
|
|
75
|
+
left: 24rpx;
|
|
76
|
+
bottom: 24rpx;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.o-swiper-nav--bottom {
|
|
80
|
+
position: absolute;
|
|
81
|
+
left: 50%;
|
|
82
|
+
bottom: 24rpx;
|
|
83
|
+
transform: translateX(-50%);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.o-swiper-nav--bottom-right {
|
|
87
|
+
position: absolute;
|
|
88
|
+
right: 24rpx;
|
|
89
|
+
bottom: 24rpx;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.o-swiper-nav--vertical {
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.o-swiper-nav__fraction {
|
|
97
|
+
padding: 0 var(--o-spacer,16rpx);
|
|
98
|
+
height: var(--o-swiper-nav-fraction-height,48rpx);
|
|
99
|
+
border-radius: calc(var(--o-swiper-nav-fraction-height,48rpx)/ 2);
|
|
100
|
+
background: var(--o-swiper-nav-fraction-bg-color,var(--o-font-gray-3,#8d8d8d));
|
|
101
|
+
color: var(--o-swiper-nav-fraction-color,var(--o-text-color-anti,var(--o-font-white-1,#fff)));
|
|
102
|
+
font: var(--o-swiper-nav-fraction-font,var(--o-font-body-small,24rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial)));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.o-swiper-nav__btn {
|
|
106
|
+
width: 100%;
|
|
107
|
+
position: absolute;
|
|
108
|
+
top: 50%;
|
|
109
|
+
transform: translateY(-50%);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.o-swiper-nav__btn--next,
|
|
113
|
+
.o-swiper-nav__btn--prev {
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: 50%;
|
|
116
|
+
transform: translateY(-50%);
|
|
117
|
+
width: var(--o-swiper-nav-btn-size,48rpx);
|
|
118
|
+
height: var(--o-swiper-nav-btn-size,48rpx);
|
|
119
|
+
border-radius: var(--o-radius-circle,50%);
|
|
120
|
+
background: var(--o-swiper-nav-btn-bg-color,var(--o-font-gray-3,#8d8d8d));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.o-swiper-nav__btn--next::after,
|
|
124
|
+
.o-swiper-nav__btn--prev::after {
|
|
125
|
+
position: absolute;
|
|
126
|
+
left: 50%;
|
|
127
|
+
top: 50%;
|
|
128
|
+
display: block;
|
|
129
|
+
content: '';
|
|
130
|
+
width: 12rpx;
|
|
131
|
+
height: 12rpx;
|
|
132
|
+
border-color: var(--o-swiper-nav-btn-color,var(--o-text-color-anti,var(--o-font-white-1,#fff)));
|
|
133
|
+
border-style: solid;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.o-swiper-nav__btn--prev {
|
|
137
|
+
left: 30rpx;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.o-swiper-nav__btn--prev::after {
|
|
141
|
+
margin-left: calc(var(--o-spacer,16rpx)/ 4);
|
|
142
|
+
border-width: 2rpx 0 0 2rpx;
|
|
143
|
+
transform: translate(-50%,-50%) rotateZ(-45deg);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.o-swiper-nav__btn--next {
|
|
147
|
+
right: 30rpx;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.o-swiper-nav__btn--next::after {
|
|
151
|
+
margin-left: calc(-1 * var(--o-spacer,16rpx)/ 4);
|
|
152
|
+
border-width: 2rpx 2rpx 0 0;
|
|
153
|
+
transform: translate(-50%,-50%) rotateZ(45deg);
|
|
154
|
+
}
|
|
155
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./switch";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={customValue:{type:Array,value:[!0,!1]},disabled:{type:null,value:void 0},icon:{type:Array,value:[]},label:{type:Array,value:[]},loading:{type:Boolean,value:!1},size:{type:String,value:"medium"},value:{type:null,value:null},defaultValue:{type:null,value:null}};export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__decorate}from"../common/tslib";import{wxComponent,SuperComponent}from"../common/src/index";import config from"../common/config";import props from"./props";const{prefix:prefix}=config,name=`${prefix}-switch`;let Switch=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`,`${prefix}-class-label`,`${prefix}-class-body`,`${prefix}-class-dot`],this.behaviors=["wx://form-field"],this.properties=props,this.data={prefix:prefix,classPrefix:name,checked:!1},this.controlledProps=[{key:"value",event:"change"}],this.observers={value(e){const[t]=this.data.customValue;this.setData({checked:e===t})}},this.methods={handleSwitch(){const{loading:e,disabled:t,value:s,customValue:o}=this.data,[i,r]=o;e||t||this._trigger("change",{value:s===i?r:i})}}}};Switch=__decorate([wxComponent()],Switch);export default Switch;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"o-icon":"../icon/icon","o-loading":"../loading/loading"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<wxs src="../common/utils.wxs" module="_"/><view style="{{_._style([style, customStyle])}}" class="class {{ prefix }}-class {{classPrefix}}" bind:tap="handleSwitch" aria-checked="{{checked}}" aria-disabled="{{disabled}}" aria-role="switch"><view class="{{_.cls(classPrefix + '__body', [['checked', checked], ['disabled', disabled || loading], size])}} {{prefix}}-class-body"><view class="{{_.cls(classPrefix + '__dot', [['checked', checked], ['disabled', disabled || loading], ['plain', label.length != 2 && icon.length != 2 && !loading], size])}} {{prefix}}-class-dot" aria-hidden="{{true}}"><view wx:if="{{label}}" class="{{_.cls(classPrefix + '__label', [['checked', checked], ['disabled', disabled], size])}} {{prefix}}-class-label"><o-loading wx:if="{{loading}}" class="{{classPrefix}}__loading" size="32rpx"/><text wx:elif="{{label.length == 2}}">{{checked ? label[0] : label[1]}}</text><o-icon wx:elif="{{icon.length == 2}}" name="{{checked ? icon[0] : icon[1]}}" o-class="{{_.cls(classPrefix + '__icon', [['checked', checked], size])}}"/></view></view></view></view>
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-switch {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.o-switch__label {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
bottom: 0;
|
|
14
|
+
width: 100%;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
flex-wrap: nowrap;
|
|
19
|
+
font-size: var(--o-switch-label-font-size,var(--o-font-size-base,28rpx));
|
|
20
|
+
color: var(--o-switch-label-color,var(--o-bg-color-secondarycontainer-active,var(--o-gray-color-4,#dddddd)));
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.o-switch__label--checked {
|
|
25
|
+
color: var(--o-switch-label-checked-color,var(--o-switch-checked-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00))));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.o-switch__label--disabled {
|
|
29
|
+
color: var(--o-switch-unchecked-disabled-color,var(--o-bg-color-component-disabled,var(--o-gray-color-2,#eee)));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.o-switch__label--checked.o-switch__label--disabled {
|
|
33
|
+
color: var(--o-switch-checked-disabled-color,var(--o-brand-color-disabled,var(--o-primary-color-3,#f9c599)));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.o-switch__label--large {
|
|
37
|
+
font-size: var(--o-switch-label-large-font-size,var(--o-font-size-m,32rpx));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.o-switch__label--small {
|
|
41
|
+
font-size: var(--o-switch-label-small-font-size,var(--o-font-size-s,24rpx));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.o-switch__label:empty {
|
|
45
|
+
display: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.o-switch__icon {
|
|
49
|
+
font-size: var(--o-switch-icon-size,40rpx);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.o-switch__icon--large {
|
|
53
|
+
font-size: var(--o-switch-icon-large-size,48rpx);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.o-switch__icon--small {
|
|
57
|
+
font-size: var(--o-switch-icon-small-size,32rpx);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.o-switch__loading {
|
|
61
|
+
--o-loading-color: var(--o-switch-loading-color, var(--o-brand-color, var(--o-primary-color-7, #f16e00)));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.o-switch__body {
|
|
65
|
+
vertical-align: middle;
|
|
66
|
+
width: var(--o-switch-width,90rpx);
|
|
67
|
+
height: var(--o-switch-height,56rpx);
|
|
68
|
+
border-radius: var(--o-switch-radius,calc(var(--o-switch-height,56rpx)/ 2));
|
|
69
|
+
background-color: var(--o-switch-unchecked-color,var(--o-bg-color-secondarycontainer-active,var(--o-gray-color-4,#dddddd)));
|
|
70
|
+
position: relative;
|
|
71
|
+
transition: all .3s ease;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.o-switch__body--checked {
|
|
76
|
+
background-color: var(--o-switch-checked-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.o-switch__body--disabled {
|
|
80
|
+
background-color: var(--o-switch-unchecked-disabled-color,var(--o-bg-color-component-disabled,var(--o-gray-color-2,#eee)));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.o-switch__body--checked.o-switch__body--disabled {
|
|
84
|
+
background-color: var(--o-switch-checked-disabled-color,var(--o-brand-color-disabled,var(--o-primary-color-3,#f9c599)));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.o-switch__body--large {
|
|
88
|
+
width: var(--o-switch-large-width,104rpx);
|
|
89
|
+
height: var(--o-switch-large-height,64rpx);
|
|
90
|
+
border-radius: var(--o-switch-large-radius,calc(var(--o-switch-large-height,64rpx)/ 2));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.o-switch__body--small {
|
|
94
|
+
width: var(--o-switch-small-width,78rpx);
|
|
95
|
+
height: var(--o-switch-small-height,48rpx);
|
|
96
|
+
border-radius: var(--o-switch-small-radius,calc(var(--o-switch-small-height,48rpx)/ 2));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.o-switch__dot {
|
|
100
|
+
position: absolute;
|
|
101
|
+
left: var(--o-switch-dot-horizontal-margin,6rpx);
|
|
102
|
+
top: 50%;
|
|
103
|
+
width: var(--o-switch-dot-size,44rpx);
|
|
104
|
+
height: var(--o-switch-dot-size,44rpx);
|
|
105
|
+
border-radius: var(--o-radius-circle,50%);
|
|
106
|
+
background-color: var(--o-text-color-anti,var(--o-font-white-1,#fff));
|
|
107
|
+
transition: all .3s;
|
|
108
|
+
transform: translateY(-50%);
|
|
109
|
+
box-shadow: var(--o-switch-dot-shadow,var(--o-shadow-1,0 1px 10px rgba(0,0,0,.05),0 4px 5px rgba(0,0,0,.08),0 2px 4px -1px rgba(0,0,0,.12)));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.o-switch__dot--disabled {
|
|
113
|
+
background-color: var(--o-switch-dot-disabled-color,var(--o-font-white-1,#fff));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.o-switch__dot--large {
|
|
117
|
+
width: var(--o-switch-dot-large-size,52rpx);
|
|
118
|
+
height: var(--o-switch-dot-large-size,52rpx);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.o-switch__dot--small {
|
|
122
|
+
width: var(--o-switch-dot-small-size,36rpx);
|
|
123
|
+
height: var(--o-switch-dot-small-size,36rpx);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.o-switch__dot--checked {
|
|
127
|
+
left: calc(var(--o-switch-width,90rpx) - var(--o-switch-dot-size,44rpx) - var(--o-switch-dot-horizontal-margin,6rpx));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.o-switch__dot--large.o-switch__dot--checked {
|
|
131
|
+
left: calc(var(--o-switch-large-width,104rpx) - var(--o-switch-dot-large-size,52rpx) - var(--o-switch-dot-horizontal-margin,6rpx));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.o-switch__dot--small.o-switch__dot--checked {
|
|
135
|
+
left: calc(var(--o-switch-small-width,78rpx) - var(--o-switch-dot-small-size,36rpx) - var(--o-switch-dot-horizontal-margin,6rpx));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.o-switch__dot--plain:not(.o-switch__dot--checked) {
|
|
139
|
+
width: var(--o-switch-dot-plain-size,36rpx);
|
|
140
|
+
height: var(--o-switch-dot-plain-size,36rpx);
|
|
141
|
+
left: var(--o-switch-dot-plain-horizontal-margin,10rpx);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.o-switch__dot--large.o-switch__dot--plain:not(.o-switch__dot--checked) {
|
|
145
|
+
width: var(--o-switch-dot-plain-large-size,44rpx);
|
|
146
|
+
height: var(--o-switch-dot-plain-large-size,44rpx);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.o-switch__dot--small.o-switch__dot--plain:not(.o-switch__dot--checked) {
|
|
150
|
+
width: var(--o-switch-dot-plain-small-size,28rpx);
|
|
151
|
+
height: var(--o-switch-dot-plain-small-size,28rpx);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.o-switch__body:not(.o-switch__body--checked) {
|
|
155
|
+
box-shadow: inset 0 0 0 var(--o-switch-unchecked-border-width,4rpx) var(--o-switch-unchecked-border-color,#8d8d8d);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.o-switch__dot {
|
|
159
|
+
box-shadow: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.o-switch__dot--checked {
|
|
163
|
+
background-color: var(--o-switch-checked-dot-color,#fff);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.o-switch__dot--plain:not(.o-switch__dot--checked) {
|
|
167
|
+
background-color: var(--o-switch-unchecked-dot-color,#8d8d8d);
|
|
168
|
+
}
|
|
169
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./tab-bar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={bordered:{type:Boolean,value:!0},fixed:{type:Boolean,value:!0},placeholder:{type:Boolean,value:!1},safeAreaInsetBottom:{type:Boolean,value:!0},shape:{type:String,value:"normal"},split:{type:Boolean,value:!0},theme:{type:String,value:"normal"},value:{type:null,value:null},defaultValue:{type:null},zIndex:{type:Number,value:1}};export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__decorate}from"../common/tslib";import{wxComponent,SuperComponent}from"../common/src/index";import config from"../common/config";import props from"./props";import{getRect}from"../common/utils";import{getWindowInfo}from"../common/wechat";const{prefix:prefix}=config,classPrefix=`${prefix}-tab-bar`;function getSafeAreaBottom(){try{const e=getWindowInfo();if(e&&e.safeArea&&"number"==typeof e.screenHeight)return Math.max(0,e.screenHeight-e.safeArea.bottom)}catch(e){}return 0}let Tabbar=class extends SuperComponent{constructor(){super(...arguments),this.relations={"../tab-bar-item/tab-bar-item":{type:"descendant"}},this.externalClasses=[`${prefix}-class`],this.backupValue=-1,this.data={prefix:prefix,classPrefix:classPrefix,placeholderHeight:56,safeAreaBottomHeight:0,safeAreaBottomReady:!1},this.properties=props,this.controlledProps=[{key:"value",event:"change"}],this.observers={value(){this.updateChildren()},"fixed, placeholder, shape, safeAreaInsetBottom"(){this.setPlaceholderHeight()},safeAreaInsetBottom(){this.setSafeAreaBottomHeight()}},this.lifetimes={ready(){this.showChildren(),this.setSafeAreaBottomHeight()}},this.methods={setSafeAreaBottomHeight(){this.properties.safeAreaInsetBottom?wx.nextTick(()=>{const e=getSafeAreaBottom();this.setData({safeAreaBottomHeight:e,safeAreaBottomReady:!0},()=>{this.setPlaceholderHeight()})}):(this.data.safeAreaBottomReady||0!==this.data.safeAreaBottomHeight)&&this.setData({safeAreaBottomHeight:0,safeAreaBottomReady:!1})},setPlaceholderHeight(){this.properties.fixed&&this.properties.placeholder&&wx.nextTick(()=>{getRect(this,`.${classPrefix}`).then(e=>{let{height:t}=e;"round"===this.properties.shape&&this.properties.safeAreaInsetBottom&&(t+=getSafeAreaBottom()),this.setData({placeholderHeight:t})})})},showChildren(){const{value:e}=this.data;this.$children.forEach(t=>{t.setData({crowded:this.$children.length>3}),t.properties.value===e&&t.showSpread()})},updateChildren(){const{value:e}=this.data;this.$children.forEach(t=>{t.checkActive(e)})},updateValue(e){this._trigger("change",{value:e})},changeOtherSpread(e){this.$children.forEach(t=>{t.properties.value!==e&&t.closeSpread()})},initName(){return this.backupValue+=1}}}};Tabbar=__decorate([wxComponent()],Tabbar);export default Tabbar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<wxs src="../common/utils.wxs" module="_"/><view wx:if="{{fixed && placeholder}}" class="{{classPrefix}}__placeholder" style="height: {{ placeholderHeight }}px;"/><view style="{{_._style(['z-index: ' + zIndex, safeAreaBottomReady ? '--safe-area-inset-bottom: ' + safeAreaBottomHeight + 'px' : '', style, customStyle])}}" class="{{_.cls(classPrefix, [['border', bordered], ['fixed', fixed], ['safe', safeAreaInsetBottom], shape])}} class {{prefix}}-class" aria-role="tablist"><slot/></view>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-tab-bar {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-wrap: nowrap;
|
|
6
|
+
align-items: center;
|
|
7
|
+
position: relative;
|
|
8
|
+
background-color: var(--o-tab-bar-bg-color,var(--o-bg-color-container,var(--o-font-white-1,#fff)));
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
pointer-events: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.o-tab-bar--normal.o-tab-bar--border::before {
|
|
14
|
+
z-index: 1;
|
|
15
|
+
position: absolute;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
content: ' ';
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
right: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
top: 0;
|
|
22
|
+
border-top: 1px solid var(--o-tab-bar-border-color,var(--o-border-level-1-color,var(--o-gray-color-3,#dddddd)));
|
|
23
|
+
transform: scaleY(.5);
|
|
24
|
+
transform-origin: 0 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.o-tab-bar--fixed {
|
|
28
|
+
position: fixed;
|
|
29
|
+
left: 0;
|
|
30
|
+
bottom: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.o-tab-bar--normal.o-tab-bar--safe {
|
|
35
|
+
padding-bottom: constant(safe-area-inset-bottom);
|
|
36
|
+
padding-bottom: var(--safe-area-inset-bottom,env(safe-area-inset-bottom));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.o-tab-bar--round {
|
|
40
|
+
margin-left: var(--o-spacer-2,32rpx);
|
|
41
|
+
margin-right: var(--o-spacer-2,32rpx);
|
|
42
|
+
border-radius: var(--o-radius-round,999px);
|
|
43
|
+
box-shadow: var(--o-tab-bar-round-shadow,var(--o-shadow-3,0 6px 30px 5px rgba(0,0,0,.05),0 16px 24px 2px rgba(0,0,0,.04),0 8px 10px -5px rgba(0,0,0,.08)));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.o-tab-bar--fixed.o-tab-bar--round.o-tab-bar--safe {
|
|
47
|
+
bottom: constant(safe-area-inset-bottom);
|
|
48
|
+
bottom: var(--safe-area-inset-bottom,env(safe-area-inset-bottom));
|
|
49
|
+
}
|
|
50
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./tab-bar-item";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={badgeProps:{type:Object},icon:{type:null},linkType:{type:String,value:"redirectTo"},subTabBar:{type:Array},url:{type:String,value:""},value:{type:null}};export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter,__decorate}from"../common/tslib";import{wxComponent,SuperComponent}from"../common/src/index";import config from"../common/config";import props from"./props";import{getRect,calcIcon}from"../common/utils";const{prefix:prefix}=config,classPrefix=`${prefix}-tab-bar-item`;let TabBarItem=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`],this.parent=null,this.relations={"../tab-bar/tab-bar":{type:"ancestor",linked(t){const{theme:e,split:a,shape:s}=t.data;this.setData({theme:e,split:a,shape:s,currentName:this.properties.value?this.properties.value:t.initName()}),t.updateChildren()}}},this.options={multipleSlots:!0},this.data={prefix:prefix,classPrefix:classPrefix,isSpread:!1,isChecked:!1,hasChildren:!1,currentName:"",split:!0,iconOnly:!1,theme:"",crowded:!1,shape:"normal"},this.properties=props,this.observers={subTabBar(t){this.setData({hasChildren:t.length>0})},icon(t){this.setData({_icon:calcIcon(t)})}},this.lifetimes={attached(){return __awaiter(this,void 0,void 0,function*(){const t=yield getRect(this,`.${classPrefix}__text`);this.setData({iconOnly:0===t.height})})}},this.methods={showSpread(){this.setData({isSpread:!0})},toggle(){const{currentName:t,hasChildren:e,isSpread:a,url:s,linkType:i}=this.data;e&&this.setData({isSpread:!a}),this.$parent.updateValue(t),this.$parent.changeOtherSpread(t),s&&wx[i]&&wx[i]({url:s})},selectChild(t){const{value:e}=t.target.dataset;this.$parent.updateValue(e),this.setData({isSpread:!1})},checkActive(t){const{currentName:e,subTabBar:a}=this.data,s=(null==a?void 0:a.some(e=>e.value===t))||e===t;this.setData({isChecked:s})},closeSpread(){this.setData({isSpread:!1})}}}};TabBarItem=__decorate([wxComponent()],TabBarItem);export default TabBarItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"o-icon":"../icon/icon","o-badge":"../badge/badge"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<import src="../common/template/icon.wxml"/><wxs src="../common/utils.wxs" module="_"/><view style="{{_._style([style, customStyle])}}" class="{{_.cls(classPrefix, [['split', split], ['crowded', crowded], shape])}} class {{prefix}}-class"><view class="{{_.cls(classPrefix + '__content', [['checked', isChecked], theme])}}" hover-class="{{classPrefix}}__content--active" hover-stay-time="{{200}}" bindtap="toggle" aria-selected="{{(!hasChildren || !isSpread) && isChecked ? true : false}}" aria-expanded="{{hasChildren && isSpread ? true : ''}}" aria-role="{{hasChildren ? 'button' : 'tab'}}" aria-label="{{ ariaLabel || (badgeProps.dot || badgeProps.count ? _.getBadgeAriaLabel({ ...badgeProps }) : '') }}"><view class="{{classPrefix}}__icon" style="height: {{iconOnly ? 24 : 20}}px" aria-hidden="{{ badgeProps.dot || badgeProps.count }}"><o-badge wx:if="{{badgeProps.dot || badgeProps.count}}" color="{{badgeProps.color || ''}}" content="{{badgeProps.content || ''}}" count="{{badgeProps.count || 0}}" dot="{{badgeProps.dot || false}}" max-count="{{badgeProps.maxCount || 99}}" offset="{{badgeProps.offset || [0,0]}}" shape="{{badgeProps.shape || 'circle'}}" size="{{badgeProps.size || 'medium'}}" visible="{{badgeProps.visible}}" o-class-count="{{prefix + '-badge-class'}}"><template is="icon" data="{{ size: iconOnly ? 24 : 20, ..._icon }}"/></o-badge><template wx:elif="{{!!icon}}" is="icon" data="{{ ariaHidden: !iconOnly, size: iconOnly ? 24 : 20, ..._icon }}"/><slot name="icon"/></view><view class="{{_.cls(classPrefix + '__text', [['small', !!icon]])}}"><o-icon wx:if="{{hasChildren}}" name="view-list" size="32rpx" o-class="{{classPrefix}}__icon-menu"/><slot/></view></view><view class="{{classPrefix}}__spread" wx:if="{{hasChildren && isSpread}}"><view class="{{classPrefix}}__spread-item" hover-class="{{classPrefix}}__spread-item--active" hover-stay-time="{{200}}" wx:for="{{subTabBar}}" wx:for-item="child" wx:for-index="index" wx:key="value" bind:tap="selectChild" data-value="{{child.value || index}}" aria-role="tab"><view class="{{classPrefix}}__spread-item-split" wx:if="{{index !== 0}}"/><view class="{{classPrefix}}__spread-item-text" data-value="{{child.value || index}}">{{ child.label }}</view></view></view></view>
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
flex: 1;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.o-tab-bar-item {
|
|
8
|
+
flex: 1;
|
|
9
|
+
height: var(--o-tab-bar-height,80rpx);
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
user-select: none;
|
|
12
|
+
position: relative;
|
|
13
|
+
margin: var(--o-spacer,16rpx) 0;
|
|
14
|
+
padding: 0 var(--o-spacer-1,24rpx);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.o-tab-bar-item--split+.o-tab-bar-item--split::before {
|
|
18
|
+
position: absolute;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
content: ' ';
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
top: 0;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
border-left: 1px solid var(--o-tab-bar-border-color,var(--o-border-color,var(--o-gray-color-3,#dddddd)));
|
|
26
|
+
transform: scaleX(.5);
|
|
27
|
+
top: 16rpx;
|
|
28
|
+
bottom: 16rpx;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.o-tab-bar-item--crowded {
|
|
32
|
+
padding: 0 var(--o-spacer,16rpx);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.o-tab-bar-item--round {
|
|
36
|
+
border-radius: var(--o-radius-round,999px);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.o-tab-bar-item__content {
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
border-radius: 16rpx;
|
|
47
|
+
color: var(--o-tab-bar-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.o-tab-bar-item__content--checked .o-tab-bar-item__icon,
|
|
51
|
+
.o-tab-bar-item__content--checked .o-tab-bar-item__text {
|
|
52
|
+
color: var(--o-tab-bar-active-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
53
|
+
font-weight: 600;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.o-tab-bar-item__content--tag {
|
|
57
|
+
border-radius: var(--o-radius-round,999px);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.o-tab-bar-item__content--tag.o-tab-bar-item__content--checked {
|
|
61
|
+
background-color: var(--o-tab-bar-active-bg,var(--o-brand-color-light,var(--o-primary-color-1,#fef3eb)));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.o-tab-bar-item__icon {
|
|
65
|
+
display: contents;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.o-tab-bar-item__icon:empty {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.o-tab-bar-item__text {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
font: var(--o-font-body-large,32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.o-tab-bar-item__text--small {
|
|
79
|
+
font: var(--o-font-body-extraSmall,20rpx / 32rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.o-tab-bar-item__icon-menu {
|
|
83
|
+
margin-right: calc(var(--o-spacer,16rpx)/ 2);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.o-tab-bar-item__spread {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 0;
|
|
89
|
+
left: 7%;
|
|
90
|
+
width: 86%;
|
|
91
|
+
background-color: var(--o-tab-bar-bg-color,var(--o-bg-color-container,var(--o-font-white-1,#fff)));
|
|
92
|
+
transform: translate3d(0,calc(-100% - 32rpx),0);
|
|
93
|
+
z-index: 1;
|
|
94
|
+
border-radius: var(--o-radius-default,12rpx);
|
|
95
|
+
color: var(--o-tab-bar-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
96
|
+
box-shadow: var(--o-tab-bar-spread-shadow,var(--o-shadow-3,0 6px 30px 5px rgba(0,0,0,.05),0 16px 24px 2px rgba(0,0,0,.04),0 8px 10px -5px rgba(0,0,0,.08)));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.o-tab-bar-item__spread::before {
|
|
100
|
+
display: block;
|
|
101
|
+
content: '';
|
|
102
|
+
position: absolute;
|
|
103
|
+
bottom: 0;
|
|
104
|
+
left: 50%;
|
|
105
|
+
width: 0;
|
|
106
|
+
height: 0;
|
|
107
|
+
border: 16rpx solid transparent;
|
|
108
|
+
border-top: 16rpx solid var(--o-tab-bar-bg-color,var(--o-bg-color-container,var(--o-font-white-1,#fff)));
|
|
109
|
+
transform: translate3d(-50%,32rpx,0);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.o-tab-bar-item__spread-item {
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 96rpx;
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: flex-start;
|
|
118
|
+
position: relative;
|
|
119
|
+
flex-direction: column;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.o-tab-bar-item__spread-item--active {
|
|
123
|
+
background-color: var(--o-tab-bar-hover-bg-color,rgba(0,0,0,.05));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.o-tab-bar-item__spread-item-split {
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
content: ' ';
|
|
129
|
+
pointer-events: none;
|
|
130
|
+
background-color: var(--o-tab-bar-spread-border-color,var(--o-border-color,var(--o-gray-color-3,#dddddd)));
|
|
131
|
+
width: 80%;
|
|
132
|
+
height: 1px;
|
|
133
|
+
transform: translateY(.5);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.o-tab-bar-item__spread-item-text {
|
|
137
|
+
padding-top: var(--o-spacer-1,24rpx);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.o-tab-bar-item {
|
|
141
|
+
height: var(--o-tab-bar-height,160rpx);
|
|
142
|
+
margin: 0;
|
|
143
|
+
padding: 0 8rpx;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.o-tab-bar-item__content {
|
|
147
|
+
color: var(--o-tab-bar-color,var(--o-scheme-on-surface-variant,#444748));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.o-tab-bar-item__icon:not(:empty) {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex: none;
|
|
153
|
+
align-items: center;
|
|
154
|
+
justify-content: center;
|
|
155
|
+
width: var(--o-tab-bar-indicator-width,128rpx);
|
|
156
|
+
height: var(--o-tab-bar-indicator-height,64rpx) !important;
|
|
157
|
+
border-radius: 999px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.o-tab-bar-item__icon:not(:empty)+.o-tab-bar-item__text {
|
|
161
|
+
margin-top: 8rpx;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.o-tab-bar-item__content--checked .o-tab-bar-item__icon:not(:empty) {
|
|
165
|
+
background-color: var(--o-tab-bar-indicator-bg,var(--o-scheme-surface-variant,#eeeeee));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.o-tab-bar-item__text,
|
|
169
|
+
.o-tab-bar-item__text--small {
|
|
170
|
+
font: var(--o-tab-bar-label-font,500 24rpx / 32rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.o-tab-bar-item__content--checked .o-tab-bar-item__text {
|
|
174
|
+
color: var(--o-tab-bar-active-text-color,var(--o-scheme-on-surface-variant,#444748));
|
|
175
|
+
font-weight: 500;
|
|
176
|
+
}
|
|
177
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./tab-panel";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={badgeProps:{type:Object},disabled:{type:Boolean,value:!1},icon:{type:null},label:{type:String,value:""},lazy:{type:Boolean,value:!1},panel:{type:String},value:{type:null}};export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__decorate}from"../common/tslib";import{SuperComponent,wxComponent}from"../common/src/index";import props from"./props";import config from"../common/config";const{prefix:prefix}=config,name=`${prefix}-tab-panel`;let TabPanel=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`],this.relations={"../tabs/tabs":{type:"ancestor"}},this.options={multipleSlots:!0},this.properties=props,this.data={prefix:prefix,classPrefix:name,active:!1,hide:!0,id:"",hasActivated:!1},this.observers={"label, badgeProps, disabled, icon, panel, value, lazy"(){this.update()}}}setId(e){this.setData({id:e})}getComputedName(){return null!=this.properties.value?`${this.properties.value}`:`${this.index}`}update(){var e;null===(e=this.$parent)||void 0===e||e.updateTabs()}render(e,t){this.initialized=this.initialized||e,e&&!this.data.hasActivated&&this.setData({hasActivated:!0}),this.setData({active:e,hide:!t.data.animation&&!e})}};TabPanel=__decorate([wxComponent()],TabPanel);export default TabPanel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<wxs src="../common/utils.wxs" module="_"/><view wx:if="{{!lazy || hasActivated}}" class="class {{prefix}}-class {{classPrefix}} {{active ? classPrefix + '--active': classPrefix + '--inactive'}}" style="{{_._style([style, customStyle, (hide ? 'display: none;' : '')])}}" id="{{id}}" aria-role="tabpanel"><view wx:if="{{panel}}">{{panel}}</view><slot/><slot name="panel"/></view>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-tab-panel {
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
-webkit-overflow-scrolling: touch;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.o-tab-panel--active {
|
|
13
|
+
height: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.o-tab-panel--inactive {
|
|
17
|
+
height: 0;
|
|
18
|
+
overflow: visible;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./tabs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={animation:{type:Object},bottomLineMode:{type:String,value:"full"},showBottomLine:{type:Boolean,value:!0},spaceEvenly:{type:Boolean,value:!0},split:{type:Boolean,value:!0},sticky:{type:Boolean,value:!1},stickyProps:{type:Object},swipeable:{type:Boolean,value:!0},theme:{type:String,value:"line"},value:{type:null,value:null},defaultValue:{type:null}};export default props;
|