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,197 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-action-sheet__content {
|
|
4
|
+
color: var(--o-action-sheet-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
5
|
+
border-top-left-radius: var(--o-action-sheet-border-radius,var(--o-radius-extraLarge,24rpx));
|
|
6
|
+
border-top-right-radius: var(--o-action-sheet-border-radius,var(--o-radius-extraLarge,24rpx));
|
|
7
|
+
background-color: var(--o-bg-color-container,var(--o-font-white-1,#fff));
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.o-action-sheet__content:focus {
|
|
12
|
+
outline: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.o-action-sheet--grid {
|
|
16
|
+
padding-top: var(--o-spacer,16rpx);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.o-action-sheet--grid .o-action-sheet__description::after {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.o-action-sheet--left .o-action-sheet__description {
|
|
24
|
+
text-align: left;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.o-action-sheet--left .o-action-sheet__list-item-content,
|
|
28
|
+
.o-action-sheet--left .o-action-sheet__list-item-desc {
|
|
29
|
+
justify-content: start;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.o-action-sheet--left .o-action-sheet__list-item-icon--suffix {
|
|
33
|
+
margin-left: auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.o-action-sheet__grid {
|
|
37
|
+
padding-bottom: var(--o-spacer,16rpx);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.o-action-sheet__grid--swiper {
|
|
41
|
+
padding-bottom: var(--o-spacer-3,48rpx);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.o-action-sheet__description {
|
|
45
|
+
color: var(--o-action-sheet-description-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
46
|
+
font: var(--o-action-sheet-description-font,var(--o-font-body-medium,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial)));
|
|
47
|
+
text-align: center;
|
|
48
|
+
padding: var(--o-spacer-1,24rpx) var(--o-spacer-2,32rpx);
|
|
49
|
+
position: relative;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.o-action-sheet__description:focus {
|
|
53
|
+
outline: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.o-action-sheet__description::after {
|
|
57
|
+
content: '';
|
|
58
|
+
display: block;
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: unset;
|
|
61
|
+
bottom: 0;
|
|
62
|
+
left: unset;
|
|
63
|
+
right: unset;
|
|
64
|
+
background-color: var(--o-action-sheet-border-color,var(--o-component-stroke,var(--o-gray-color-3,#dddddd)));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.o-action-sheet__description::after {
|
|
68
|
+
height: 1px;
|
|
69
|
+
left: 0;
|
|
70
|
+
right: 0;
|
|
71
|
+
transform: scaleY(.5);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.o-action-sheet__list-item {
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
padding: var(--o-spacer-2,32rpx);
|
|
77
|
+
display: flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.o-action-sheet__list-item:not(:last-child) {
|
|
83
|
+
position: relative;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.o-action-sheet__list-item:not(:last-child)::after {
|
|
87
|
+
content: '';
|
|
88
|
+
display: block;
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: unset;
|
|
91
|
+
bottom: 0;
|
|
92
|
+
left: unset;
|
|
93
|
+
right: unset;
|
|
94
|
+
background-color: var(--o-action-sheet-border-color,var(--o-component-stroke,var(--o-gray-color-3,#dddddd)));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.o-action-sheet__list-item:not(:last-child)::after {
|
|
98
|
+
height: 1px;
|
|
99
|
+
left: 0;
|
|
100
|
+
right: 0;
|
|
101
|
+
transform: scaleY(.5);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.o-action-sheet__list-item:focus {
|
|
105
|
+
outline: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.o-action-sheet__list-item--disabled {
|
|
109
|
+
color: var(--o-action-sheet-disabled-color,var(--o-text-color-disabled,var(--o-font-gray-4,rgba(0,0,0,.26))));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.o-action-sheet__list-item-content,
|
|
113
|
+
.o-action-sheet__list-item-desc {
|
|
114
|
+
width: 100%;
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.o-action-sheet__list-item-text {
|
|
121
|
+
font: var(--o-font-body-large,32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.o-action-sheet__list-item-desc {
|
|
125
|
+
font: var(--o-font-body-small,24rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
126
|
+
color: var(--o-action-sheet-description-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
127
|
+
margin-top: var(--o-spacer,16rpx);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.o-action-sheet__list-item-desc,
|
|
131
|
+
.o-action-sheet__list-item-text {
|
|
132
|
+
word-wrap: normal;
|
|
133
|
+
white-space: nowrap;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
text-overflow: ellipsis;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.o-action-sheet__list-item-icon {
|
|
139
|
+
font-size: 48rpx;
|
|
140
|
+
margin-right: var(--o-spacer,16rpx);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.o-action-sheet__list-item-icon--suffix {
|
|
144
|
+
margin-right: 0;
|
|
145
|
+
margin-left: var(--o-spacer,16rpx);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.o-action-sheet__swiper-wrap {
|
|
149
|
+
margin-top: calc(var(--o-spacer,16rpx)/ 2);
|
|
150
|
+
position: relative;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.o-action-sheet__footer {
|
|
154
|
+
background-color: var(--o-bg-color-container,var(--o-font-white-1,#fff));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.o-action-sheet__gap-list {
|
|
158
|
+
height: 16rpx;
|
|
159
|
+
background-color: var(--o-action-sheet-gap-color,var(--o-bg-color-page,var(--o-gray-color-1,#eeeeee)));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.o-action-sheet__gap-grid {
|
|
163
|
+
height: 1rpx;
|
|
164
|
+
background-color: var(--o-action-sheet-border-color,var(--o-component-stroke,var(--o-gray-color-3,#dddddd)));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.o-action-sheet__cancel {
|
|
168
|
+
padding: var(--o-spacer-1,24rpx) var(--o-spacer-2,32rpx);
|
|
169
|
+
font: var(--o-font-body-large,32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
170
|
+
color: var(--o-action-sheet-cancel-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.o-action-sheet__dots {
|
|
177
|
+
position: absolute;
|
|
178
|
+
left: 50%;
|
|
179
|
+
bottom: var(--o-spacer-2,32rpx);
|
|
180
|
+
transform: translateX(-50%);
|
|
181
|
+
display: flex;
|
|
182
|
+
flex-direction: row;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.o-action-sheet__dots-item {
|
|
186
|
+
width: var(--o-action-sheet-dot-size,16rpx);
|
|
187
|
+
height: var(--o-action-sheet-dot-size,16rpx);
|
|
188
|
+
background-color: var(--o-action-sheet-dot-color,var(--o-text-color-disabled,var(--o-font-gray-4,rgba(0,0,0,.26))));
|
|
189
|
+
border-radius: var(--o-radius-circle,50%);
|
|
190
|
+
margin: 0 var(--o-spacer,16rpx);
|
|
191
|
+
transition: all .4s ease-in;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.o-action-sheet__dots-item.o-is-active {
|
|
195
|
+
background-color: var(--o-action-sheet-dot-active-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
196
|
+
}
|
|
197
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{show,close,ActionSheetTheme}from"./show";export{ActionSheetTheme};export default{show:e=>show(e),close:e=>close(e)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={align:{type:String,value:"center"},cancelText:{type:String,value:""},count:{type:Number,value:8},description:{type:String,value:""},items:{type:Array,required:!0},popupProps:{type:Object,value:{}},showCancel:{type:Boolean,value:!0},showOverlay:{type:Boolean,value:!0},theme:{type:String,value:"list"},usingCustomNavbar:{type:Boolean,value:!1},visible:{type:Boolean,value:null},defaultVisible:{type:Boolean,value:!1}};export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest}from"../common/tslib";import{getInstance}from"../common/utils";export var ActionSheetTheme;!function(t){t.List="list",t.Grid="grid"}(ActionSheetTheme||(ActionSheetTheme={}));export const show=function(t){const e=Object.assign({},t),{context:o,selector:n="#o-action-sheet"}=e,c=__rest(e,["context","selector"]),s=getInstance(o,n);if(s)return s.show(Object.assign({},c)),s;console.error("Composant introuvable : vérifiez selector et context")};export const close=function(t){const{context:e,selector:o="#o-action-sheet"}=Object.assign({},t),n=getInstance(e,o);n&&n.close()};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<wxs src="../action-sheet.wxs" module="_this"/><template name="grid"><block wx:if="{{gridThemeItems.length === 1}}"><o-grid align="center" o-class="{{classPrefix}}__grid" column="{{count / 2}}" class="{{classPrefix}}__single-wrap"><o-grid-item o-class="{{classPrefix}}__grid-item" class="{{classPrefix}}__square" wx:for="{{gridThemeItems[0]}}" wx:key="index" bind:tap="onSelect" data-index="{{index}}" icon="{{ { color: item.color, ..._this.getIconData(item.icon) } }}" text="{{item.label || ''}}" description="{{item.description || ''}}" image="{{item.image || ''}}" style="--o-grid-item-text-color: {{item.color}}"></o-grid-item></o-grid></block><block wx:elif="{{gridThemeItems.length > 1}}"><view class="{{classPrefix}}__swiper-wrap"><swiper style="height: 456rpx" autoplay="{{false}}" current="{{currentSwiperIndex}}" bindchange="onSwiperChange"><swiper-item wx:for="{{gridThemeItems}}" wx:key="index"><o-grid align="center" o-class="{{classPrefix}}__grid {{classPrefix}}__grid--swiper" column="{{count / 2}}"><o-grid-item o-class="{{classPrefix}}__grid-item" class="{{classPrefix}}__square" wx:for="{{item}}" wx:key="index" data-index="{{index}}" bind:tap="onSelect" icon="{{ { color: item.color, ..._this.getIconData(item.icon) } }}" text="{{item.label || ''}}" description="{{item.description || ''}}" image="{{item.image || ''}}" style="--o-grid-item-text-color: {{item.color}}"></o-grid-item></o-grid></swiper-item></swiper><view class="{{classPrefix}}__nav"><view class="{{classPrefix}}__dots"><view wx:for="{{gridThemeItems.length}}" wx:key="index" class="{{classPrefix}}__dots-item {{index === currentSwiperIndex ? prefix + '-is-active' : ''}}"/></view></view></view></block></template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__decorate}from"../common/tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import avatarProps from"./props";import{calcIcon,systemInfo}from"../common/utils";const{prefix:prefix}=config,name=`${prefix}-avatar`;let Avatar=class extends SuperComponent{constructor(){super(...arguments),this.options={multipleSlots:!0},this.externalClasses=[`${prefix}-class`,`${prefix}-class-image`,`${prefix}-class-icon`,`${prefix}-class-alt`,`${prefix}-class-content`],this.properties=avatarProps,this.data={prefix:prefix,classPrefix:name,isShow:!0,isImgExist:!0,zIndex:0,windowWidth:systemInfo.windowWidth},this.relations={"../avatar-group/avatar-group":{type:"ancestor",linked(t){this.parent=t,this.setData({shape:this.data.shape||t.data.shape||"circle",size:this.data.size||t.data.size,bordered:!0})}}},this.observers={icon(t){this.setData({_icon:calcIcon(t)})},image(t){t&&this.setData({isImgExist:!0})}},this.methods={hide(){this.setData({isShow:!1})},onLoadError(t){this.setData({isImgExist:!this.properties.hideOnLoadFailed}),this.triggerEvent("error",t.detail)}}}};Avatar=__decorate([wxComponent()],Avatar);export default Avatar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"shared","usingComponents":{"o-icon":"../icon/icon","o-badge":"../badge/badge","o-image":"../image/image"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<import src="../common/template/icon.wxml"/><wxs src="../common/utils.wxs" module="_"/><wxs src="./avatar.wxs" module="_this"/><view class="{{classPrefix}}__wrapper class {{prefix}}-class" style="{{_._style([_this.getStyles(isShow), style, customStyle])}}"><o-badge color="{{badgeProps.color || ''}}" content="{{badgeProps.content || ''}}" count="{{badgeProps.count || 0}}" dot="{{badgeProps.dot || false}}" max-count="{{badgeProps.maxCount || 99}}" offset="{{badgeProps.offset || []}}" shape="{{badgeProps.shape || 'circle'}}" show-zero="{{badgeProps.showZero || false}}" size="{{badgeProps.size || 'medium'}}" o-class="{{badgeProps.oClass}}" o-class-content="{{badgeProps.oClassContent}}" o-class-count="{{badgeProps.oClassCount}}"><view class="{{_this.getClass(classPrefix, size || 'medium', shape, bordered)}} {{prefix}}-class-image" style="{{_this.getSize(size, windowWidth)}}" aria-label="{{ ariaLabel || alt ||'Photo de profil'}}" aria-role="{{ ariaRole || 'img'}}" aria-hidden="{{ ariaHidden }}"><o-image wx:if="{{image && isImgExist}}" o-class="{{prefix}}-image {{classPrefix}}__image" o-class-load="{{classPrefix}}__image-alt {{prefix}}-class-alt" style="{{imageProps && imageProps.style || ''}}" src="{{image}}" mode="{{imageProps && imageProps.mode || 'aspectFill'}}" lazy="{{imageProps && imageProps.lazy || false}}" loading="{{imageProps && imageProps.loading || 'default'}}" shape="{{imageProps && imageProps.shape || 'round'}}" webp="{{imageProps && imageProps.webp || false}}" error="{{imageProps && imageProps.error || alt || 'default'}}" bind:error="onLoadError"/><template wx:elif="{{_.isNoEmptyObj(_icon)}}" is="icon" data="{{oClass: classPrefix + '__icon ' + prefix + '-class-icon', ..._icon}}"/><view wx:else class="{{classPrefix}}__text {{prefix}}-class-content"><slot/></view></view></o-badge></view>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
getClass: function (classPrefix, size, shape, bordered) {
|
|
3
|
+
var hasPx = (size || '').indexOf('px') > -1;
|
|
4
|
+
var borderSize = hasPx ? 'medium' : size;
|
|
5
|
+
var classNames = [
|
|
6
|
+
classPrefix,
|
|
7
|
+
classPrefix + (shape === 'round' ? '--round' : '--circle'),
|
|
8
|
+
bordered ? classPrefix + '--border' + ' ' + classPrefix + '--border-' + borderSize : '',
|
|
9
|
+
hasPx ? '' : classPrefix + '--' + size,
|
|
10
|
+
];
|
|
11
|
+
return classNames.join(' ');
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
getSize: function (size = 'medium', windowWidth) {
|
|
15
|
+
var res = getRegExp('^([0-9]+)(px|rpx)$').exec(size);
|
|
16
|
+
|
|
17
|
+
if (res && res.length >= 3) {
|
|
18
|
+
var px = res[1];
|
|
19
|
+
if (res[2] === 'rpx') {
|
|
20
|
+
px = Math.floor((windowWidth * res[1]) / 750);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return 'width:' + size + ';height:' + size + ';font-size:' + ((px / 8) * 3 + 2) + 'px';
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
getStyles: function (isShow) {
|
|
28
|
+
return isShow ? '' : 'display: none;';
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-avatar {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
background-color: var(--o-avatar-bg-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
9
|
+
color: var(--o-avatar-content-color,#fff);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.o-avatar__wrapper {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
position: relative;
|
|
15
|
+
vertical-align: top;
|
|
16
|
+
margin-left: var(--o-avatar-margin-left,0);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.o-avatar--large {
|
|
20
|
+
width: var(--o-avatar-large-width,128rpx);
|
|
21
|
+
height: var(--o-avatar-large-width,128rpx);
|
|
22
|
+
font-size: var(--o-avatar-text-large-font-size,var(--o-font-size-xl,40rpx));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.o-avatar--large .o-avatar__icon {
|
|
26
|
+
font-size: var(--o-avatar-icon-large-font-size,64rpx);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.o-avatar--medium {
|
|
30
|
+
width: var(--o-avatar-medium-width,96rpx);
|
|
31
|
+
height: var(--o-avatar-medium-width,96rpx);
|
|
32
|
+
font-size: var(--o-avatar-text-medium-font-size,var(--o-font-size-m,32rpx));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.o-avatar--medium .o-avatar__icon {
|
|
36
|
+
font-size: var(--o-avatar-icon-medium-font-size,48rpx);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.o-avatar--small {
|
|
40
|
+
width: var(--o-avatar-small-width,80rpx);
|
|
41
|
+
height: var(--o-avatar-small-width,80rpx);
|
|
42
|
+
font-size: var(--o-avatar-text-small-font-size,var(--o-font-size-base,28rpx));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.o-avatar--small .o-avatar__icon {
|
|
46
|
+
font-size: var(--o-avatar-icon-small-font-size,var(--o-font-size-xl,40rpx));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.o-avatar .o-image,
|
|
50
|
+
.o-avatar__image {
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.o-avatar .o-image-alt,
|
|
56
|
+
.o-avatar__image-alt {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
padding: var(--o-spacer,16rpx);
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.o-avatar--circle {
|
|
65
|
+
border-radius: var(--o-avatar-circle-border-radius,var(--o-radius-circle,50%));
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.o-avatar--round {
|
|
70
|
+
border-radius: var(--o-avatar-round-border-radius,var(--o-radius-default,12rpx));
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.o-avatar__icon,
|
|
75
|
+
.o-avatar__text {
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.o-avatar__icon:empty,
|
|
84
|
+
.o-avatar__text:empty {
|
|
85
|
+
width: 0;
|
|
86
|
+
height: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.o-avatar--border {
|
|
90
|
+
border-color: var(--o-avatar-border-color,#fff);
|
|
91
|
+
border-style: solid;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.o-avatar--border-small {
|
|
95
|
+
border-width: var(--o-avatar-border-width-small,2rpx);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.o-avatar--border-medium {
|
|
99
|
+
border-width: var(--o-avatar-border-width-medium,4rpx);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.o-avatar--border-large {
|
|
103
|
+
border-width: var(--o-avatar-border-width-large,6rpx);
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./avatar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={alt:{type:String,value:""},badgeProps:{type:Object},bordered:{type:Boolean,value:!1},hideOnLoadFailed:{type:Boolean,value:!1},icon:{type:null},image:{type:String,value:""},imageProps:{type:Object},shape:{type:String},size:{type:String,value:""}};export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__decorate}from"../common/tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import avatarGroupProps from"./props";const{prefix:prefix}=config,name=`${prefix}-avatar-group`;let AvatarGroup=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`,`${prefix}-class-content`,`${prefix}-class-image`],this.properties=avatarGroupProps,this.data={prefix:prefix,classPrefix:name,hasChild:!0,length:0,className:""},this.options={multipleSlots:!0},this.relations={"../avatar/avatar":{type:"descendant"}},this.lifetimes={attached(){this.setClass()},ready(){this.setData({length:this.$children.length}),this.handleMax()}},this.observers={"cascading, size"(){this.setClass()}},this.methods={setClass(){const{cascading:e,size:t}=this.properties,s=e.split("-")[0],a=[name,`${prefix}-class`,`${name}-offset-${s}`,`${name}-offset-${s}-${t.indexOf("px")>-1?"medium":t||"medium"}`];this.setData({className:a.join(" ")})},handleMax(){const{max:e}=this.data,t=this.$children.length;if(!e||e>t)return;this.$children.splice(e,t-e).forEach(e=>{e.hide()})},onCollapsedItemClick(e){this.triggerEvent("collapsed-item-click",e.detail)}}}};AvatarGroup=__decorate([wxComponent()],AvatarGroup);export default AvatarGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"shared","usingComponents":{"o-avatar":"../avatar/avatar"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<wxs src="../common/utils.wxs" module="_"/><view style="{{_._style([style, customStyle])}}" class="{{className}} class"><slot/><view class="{{classPrefix}}__collapse--slot"><slot name="collapse-avatar"/></view><view class="{{classPrefix}}__collapse--default" wx:if="{{max && (max < length)}}" bindtap="onCollapsedItemClick"><o-avatar o-class-image="{{prefix}}-avatar--border {{prefix}}-avatar--border-{{size}} {{prefix}}-class-image" o-class-content="{{prefix}}-class-content" size="{{size}}" shape="{{shape}}" icon="{{ collapseAvatar ? '' : 'user-add'}}" aria-role="none">{{collapseAvatar}}</o-avatar></view></view>
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-avatar-group {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
flex-wrap: wrap;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.o-avatar-group-offset-left .o-avatar__wrapper,
|
|
10
|
+
.o-avatar-group-offset-right .o-avatar__wrapper {
|
|
11
|
+
padding: var(--o-avatar-group-line-spacing,calc(var(--o-spacer,16rpx)/ 4)) 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.o-avatar-group-offset-left-small,
|
|
15
|
+
.o-avatar-group-offset-right-small {
|
|
16
|
+
--o-avatar-margin-left: var(--o-avatar-group-margin-left-small, calc(-1 * var(--o-spacer, 16rpx)));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.o-avatar-group-offset-left-medium,
|
|
20
|
+
.o-avatar-group-offset-right-medium {
|
|
21
|
+
--o-avatar-margin-left: var(--o-avatar-group-margin-left-medium, calc(-1 * var(--o-spacer, 16rpx)));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.o-avatar-group-offset-left-large,
|
|
25
|
+
.o-avatar-group-offset-right-large {
|
|
26
|
+
--o-avatar-margin-left: var(--o-avatar-group-margin-left-large, calc(-1 * var(--o-spacer, 16rpx)));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(1) {
|
|
30
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 1);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(2) {
|
|
34
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 2);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(3) {
|
|
38
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 3);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(4) {
|
|
42
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 4);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(5) {
|
|
46
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 5);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(6) {
|
|
50
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 6);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(7) {
|
|
54
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 7);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(8) {
|
|
58
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 8);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(9) {
|
|
62
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 9);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(10) {
|
|
66
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 10);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(11) {
|
|
70
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 11);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(12) {
|
|
74
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 12);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(13) {
|
|
78
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 13);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(14) {
|
|
82
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 14);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(15) {
|
|
86
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 15);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(16) {
|
|
90
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 16);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(17) {
|
|
94
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 17);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(18) {
|
|
98
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 18);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(19) {
|
|
102
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 19);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(20) {
|
|
106
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 20);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(21) {
|
|
110
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 21);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(22) {
|
|
114
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 22);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(23) {
|
|
118
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 23);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(24) {
|
|
122
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 24);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(25) {
|
|
126
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 25);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(26) {
|
|
130
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 26);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(27) {
|
|
134
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 27);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(28) {
|
|
138
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 28);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(29) {
|
|
142
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 29);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(30) {
|
|
146
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 30);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(31) {
|
|
150
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 31);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(32) {
|
|
154
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 32);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(33) {
|
|
158
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 33);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(34) {
|
|
162
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 34);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(35) {
|
|
166
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 35);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(36) {
|
|
170
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 36);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(37) {
|
|
174
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 37);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(38) {
|
|
178
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 38);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(39) {
|
|
182
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 39);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(40) {
|
|
186
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 40);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(41) {
|
|
190
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 41);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(42) {
|
|
194
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 42);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(43) {
|
|
198
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 43);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(44) {
|
|
202
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 44);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(45) {
|
|
206
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 45);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(46) {
|
|
210
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 46);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(47) {
|
|
214
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 47);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(48) {
|
|
218
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 48);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(49) {
|
|
222
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 49);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.o-avatar-group-offset-left .o-avatar__wrapper:nth-child(50) {
|
|
226
|
+
z-index: calc(var(--o-avatar-group-init-z-index,50) - 50);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.o-avatar-group__collapse--default,
|
|
230
|
+
.o-avatar-group__collapse--slot {
|
|
231
|
+
z-index: 0;
|
|
232
|
+
font-weight: 600;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.o-avatar-group__collapse--slot {
|
|
236
|
+
float: left;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.o-avatar-group__collapse--slot:not(:empty)+.o-avatar-group__collapse--default {
|
|
240
|
+
display: none;
|
|
241
|
+
float: left;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.o-avatar-group__collapse--slot:empty+.o-avatar-group__collapse--default {
|
|
245
|
+
display: block;
|
|
246
|
+
float: left;
|
|
247
|
+
}
|
|
248
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./avatar-group";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={cascading:{type:String,value:"left-up"},collapseAvatar:{type:String},max:{type:Number},shape:{type:String},size:{type:String,value:""}};export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__decorate}from"../common/tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import props from"./props";import{calcIcon}from"../common/utils";const{prefix:prefix}=config,name=`${prefix}-back-top`;let BackTop=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`,`${prefix}-class-icon`,`${prefix}-class-text`],this.options={multipleSlots:!0},this.properties=props,this.relations={"../pull-down-refresh/pull-down-refresh":{type:"ancestor"}},this.data={prefix:prefix,classPrefix:name,_icon:null,hidden:!0},this.observers={icon(){this.setIcon()},scrollTop(o){const{visibilityHeight:t}=this.properties;this.setData({hidden:o<t})}},this.lifetimes={ready(){const{icon:o}=this.properties;this.setIcon(o)}},this.methods={setIcon(o){this.setData({_icon:calcIcon(o,"backtop")})},toTop(){var o;this.triggerEvent("to-top"),this.$parent?(null===(o=this.$parent)||void 0===o||o.setScrollTop(0),this.setData({hidden:!0})):wx.pageScrollTo({scrollTop:0,duration:300})}}}};BackTop=__decorate([wxComponent()],BackTop);export default BackTop;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"o-icon":"../icon/icon"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<import src="../common/template/icon.wxml"/><wxs src="../common/utils.wxs" module="_"/><view style="{{_._style([style, customStyle])}}" class="class {{prefix}}-class {{_.cls(classPrefix, [['fixed', fixed], theme])}}" bindtap="toTop" aria-role="button" hidden="{{hidden}}"><view class="{{classPrefix}}__icon" aria-hidden><slot name="icon"/><template wx:if="{{_icon}}" is="icon" data="{{oClass: prefix + '-class-icon', ..._icon }}"/></view><view wx:if="{{!!text}}" class="{{classPrefix}}__text--{{theme}} {{prefix}}-class-text">{{text}}</view><slot/></view>
|