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,287 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-slider {
|
|
4
|
+
width: 100%;
|
|
5
|
+
font: var(--o-font-body-medium,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.o-slider--disabled .o-slider__dot-value,
|
|
11
|
+
.o-slider--disabled .o-slider__range-extreme,
|
|
12
|
+
.o-slider--disabled .o-slider__scale-desc,
|
|
13
|
+
.o-slider--disabled .o-slider__value {
|
|
14
|
+
color: var(--o-slider-disabled-text-color,var(--o-text-color-disabled,var(--o-font-gray-4,rgba(0,0,0,.26))));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.o-slider--disabled .o-slider__dot {
|
|
18
|
+
background-color: var(--o-slider-dot-disabled-bg-color,#fff);
|
|
19
|
+
border-color: var(--o-slider-dot-disabled-border-color,#eeeeee);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.o-slider--top {
|
|
23
|
+
padding-top: 40rpx;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.o-slider__line {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 0;
|
|
29
|
+
height: var(--o-slider-bar-height,8rpx);
|
|
30
|
+
border-radius: calc(var(--o-slider-bar-height,8rpx)/ 2);
|
|
31
|
+
background-color: var(--o-slider-active-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.o-slider__line--disabled {
|
|
35
|
+
background-color: var(--o-slider-disabled-color,var(--o-brand-color-disabled,var(--o-primary-color-3,#f9c599)));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.o-slider__line--capsule {
|
|
39
|
+
height: var(--o-slider-capsule-line-heihgt,36rpx);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.o-slider__line--capsule.o-slider__line--single {
|
|
43
|
+
border-top-left-radius: calc(var(--o-slider-capsule-line-heihgt,36rpx)/ 2);
|
|
44
|
+
border-bottom-left-radius: calc(var(--o-slider-capsule-line-heihgt,36rpx)/ 2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.o-slider__dot {
|
|
48
|
+
border-radius: var(--o-radius-circle,50%);
|
|
49
|
+
border: 2rpx solid var(--o-slider-dot-color,var(--o-component-border,var(--o-gray-color-4,#dddddd)));
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 50%;
|
|
52
|
+
right: 0;
|
|
53
|
+
transform: translate3d(50%,-50%,0);
|
|
54
|
+
z-index: 2;
|
|
55
|
+
background-color: var(--o-slider-dot-bg-color,#fff);
|
|
56
|
+
width: var(--o-slider-dot-size,40rpx);
|
|
57
|
+
height: var(--o-slider-dot-size,40rpx);
|
|
58
|
+
box-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));
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.o-slider__dot--left {
|
|
63
|
+
left: 0;
|
|
64
|
+
transform: translate3d(-50%,-50%,0);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.o-slider__dot-value {
|
|
68
|
+
position: relative;
|
|
69
|
+
left: 50%;
|
|
70
|
+
transform: translateX(-50%);
|
|
71
|
+
top: -52rpx;
|
|
72
|
+
text-align: center;
|
|
73
|
+
width: 96rpx;
|
|
74
|
+
height: 44rpx;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.o-slider__dot-value,
|
|
78
|
+
.o-slider__range-extreme,
|
|
79
|
+
.o-slider__value {
|
|
80
|
+
color: var(--o-slider-text-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.o-slider__dot-value--sr-only,
|
|
84
|
+
.o-slider__range-extreme--sr-only,
|
|
85
|
+
.o-slider__value--sr-only {
|
|
86
|
+
position: absolute;
|
|
87
|
+
width: 1px;
|
|
88
|
+
height: 1px;
|
|
89
|
+
padding: 0;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
clip: rect(0,0,0,0);
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
clip-path: inset(50%);
|
|
94
|
+
border: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.o-slider__dot-slider {
|
|
98
|
+
width: 100%;
|
|
99
|
+
height: 100%;
|
|
100
|
+
position: absolute;
|
|
101
|
+
left: 0;
|
|
102
|
+
top: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.o-slider__value--min {
|
|
106
|
+
margin-left: var(--o-spacer-2,32rpx);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.o-slider__value--max {
|
|
110
|
+
margin-right: var(--o-spacer-2,32rpx);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.o-slider__bar {
|
|
114
|
+
margin: var(--o-spacer,16rpx) var(--o-spacer-2,32rpx);
|
|
115
|
+
flex: 10;
|
|
116
|
+
background-clip: content-box;
|
|
117
|
+
height: var(--o-slider-bar-height,8rpx);
|
|
118
|
+
border-radius: calc(var(--o-slider-bar-height,8rpx)/ 2);
|
|
119
|
+
position: relative;
|
|
120
|
+
background-color: var(--o-slider-default-color,var(--o-bg-color-component,var(--o-gray-color-3,#dddddd)));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.o-slider__bar--capsule {
|
|
124
|
+
height: var(--o-slider-capsule-bar-heihgt,48rpx);
|
|
125
|
+
border-radius: calc(var(--o-slider-capsule-bar-heihgt,48rpx)/ 2);
|
|
126
|
+
background-color: var(--o-slider-capsule-bar-color,var(--o-bg-color-component,var(--o-gray-color-3,#dddddd)));
|
|
127
|
+
border: 6rpx solid var(--o-slider-capsule-bar-color,var(--o-bg-color-component,var(--o-gray-color-3,#dddddd)));
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.o-slider__bar--marks {
|
|
132
|
+
background-color: var(--o-slider-default-color,var(--o-bg-color-component,var(--o-gray-color-3,#dddddd)));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.o-slider__bar--disabled {
|
|
136
|
+
background-color: var(--o-slider-default-color,var(--o-bg-color-component-disabled,var(--o-gray-color-2,#eee)));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.o-slider__range-extreme--min {
|
|
140
|
+
margin-left: var(--o-spacer-2,32rpx);
|
|
141
|
+
text-align: left;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.o-slider__range-extreme--max {
|
|
145
|
+
margin-right: var(--o-spacer-2,32rpx);
|
|
146
|
+
text-align: right;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.o-slider__scale-item {
|
|
150
|
+
background-color: var(--o-slider-default-color,var(--o-bg-color-component,var(--o-gray-color-3,#dddddd)));
|
|
151
|
+
width: var(--o-slider-bar-height,8rpx);
|
|
152
|
+
height: 16rpx;
|
|
153
|
+
width: 16rpx;
|
|
154
|
+
border-radius: var(--o-radius-circle,50%);
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: 50%;
|
|
157
|
+
margin-top: calc(-1 * var(--o-spacer,16rpx)/ 2);
|
|
158
|
+
z-index: 1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.o-slider__scale-item--active {
|
|
162
|
+
background-color: var(--o-slider-active-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.o-slider__scale-item--disabled {
|
|
166
|
+
background-color: var(--o-slider-default-color,var(--o-bg-color-component-disabled,var(--o-gray-color-2,#eee)));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.o-slider__scale-item--active.o-slider__scale-item--disabled {
|
|
170
|
+
background-color: var(--o-slider-disabled-color,var(--o-brand-color-disabled,var(--o-primary-color-3,#f9c599)));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.o-slider__scale-item--capsule {
|
|
174
|
+
height: var(--o-slider-capsule-line-heihgt,36rpx);
|
|
175
|
+
width: 4rpx;
|
|
176
|
+
border-radius: 0;
|
|
177
|
+
background-color: var(--o-slider-capsule-bar-color,var(--o-bg-color-component,var(--o-gray-color-3,#dddddd)));
|
|
178
|
+
margin-top: calc(-.5 * var(--o-slider-capsule-line-heihgt,36rpx));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.o-slider__scale-item--hidden {
|
|
182
|
+
background-color: transparent;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.o-slider__scale-desc {
|
|
186
|
+
position: absolute;
|
|
187
|
+
left: 50%;
|
|
188
|
+
color: var(--o-slider-text-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
189
|
+
transform: translateX(-50%);
|
|
190
|
+
bottom: 32rpx;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.o-slider__scale-desc--capsule {
|
|
194
|
+
bottom: 46rpx;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.o-slider--vertical {
|
|
198
|
+
--o-slider-bar-height: 400rpx;
|
|
199
|
+
height: var(--o-slider-bar-height,8rpx);
|
|
200
|
+
justify-content: center;
|
|
201
|
+
position: relative;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.o-slider--vertical .o-slider__bar {
|
|
205
|
+
flex: none;
|
|
206
|
+
height: 100%;
|
|
207
|
+
width: var(--o-slider-bar-width,8rpx);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.o-slider--vertical .o-slider__bar--capsule {
|
|
211
|
+
width: var(--o-slider-capsule-bar-width,48rpx);
|
|
212
|
+
border-radius: calc(var(--o-slider-capsule-bar-width,48rpx)/ 2);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.o-slider--vertical .o-slider__line {
|
|
216
|
+
width: 100%;
|
|
217
|
+
height: unset;
|
|
218
|
+
left: 0;
|
|
219
|
+
border-radius: calc(var(--o-slider-bar-width,8rpx)/ 2);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.o-slider--vertical .o-slider__line--capsule.o-slider__line--single {
|
|
223
|
+
border-top-left-radius: calc(var(--o-slider-capsule-line-heihgt,36rpx)/ 2);
|
|
224
|
+
border-top-right-radius: calc(var(--o-slider-capsule-line-heihgt,36rpx)/ 2);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.o-slider--vertical .o-slider__dot {
|
|
228
|
+
left: 50%;
|
|
229
|
+
top: 100%;
|
|
230
|
+
transform: translate(-50%,-50%);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.o-slider--vertical .o-slider__dot--left {
|
|
234
|
+
top: 0;
|
|
235
|
+
transform: translate(-50%,-50%);
|
|
236
|
+
left: 50%;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.o-slider--vertical .o-slider__dot--right {
|
|
240
|
+
left: 50%;
|
|
241
|
+
transform: translate(-50%,-50%);
|
|
242
|
+
top: 100%;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.o-slider--vertical .o-slider__dot-value {
|
|
246
|
+
left: 54rpx;
|
|
247
|
+
top: 50%;
|
|
248
|
+
transform: translate(0,-50%);
|
|
249
|
+
width: auto;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.o-slider--vertical .o-slider__range-extreme {
|
|
253
|
+
position: absolute;
|
|
254
|
+
left: 50%;
|
|
255
|
+
transform: translateX(-50%);
|
|
256
|
+
margin: 0;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.o-slider--vertical .o-slider__range-extreme--min {
|
|
260
|
+
top: 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.o-slider--vertical .o-slider__range-extreme--max {
|
|
264
|
+
bottom: 0;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.o-slider--vertical .o-slider__scale-item {
|
|
268
|
+
left: 50%;
|
|
269
|
+
margin-top: 0;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.o-slider--vertical .o-slider__scale-item--capsule {
|
|
273
|
+
height: 4rpx;
|
|
274
|
+
width: var(--o-slider-capsule-line-heihgt,36rpx);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.o-slider--vertical .o-slider__scale-desc {
|
|
278
|
+
top: 50%;
|
|
279
|
+
transform: translateY(-50%);
|
|
280
|
+
bottom: unset;
|
|
281
|
+
left: 38rpx;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.o-slider--vertical .o-slider__scale-desc--capsule {
|
|
285
|
+
left: 52rpx;
|
|
286
|
+
}
|
|
287
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const trimSingleValue=(r,e,i)=>r<e?e:r>i?i:r;export const trimValue=(r,e)=>{const{min:i,max:t,range:n}=e;return n&&Array.isArray(r)?(r[0]=trimSingleValue(r[0],i,t),r[1]=trimSingleValue(r[1],i,t),r[0]<=r[1]?r:[r[1],r[0]]):n?[i,t]:n?void 0:trimSingleValue(r,i,t)};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./step-item";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={content:{type:String,value:""},extra:{type:String},icon:{type:String},status:{type:String,value:"default"},title:{type:String,value:""}};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}-steps-item`;let StepItem=class extends SuperComponent{constructor(){super(...arguments),this.options={multipleSlots:!0},this.relations={"../steps/steps":{type:"ancestor"}},this.externalClasses=[`${prefix}-class`,`${prefix}-class-content`,`${prefix}-class-title`,`${prefix}-class-description`,`${prefix}-class-extra`],this.properties=props,this.data={classPrefix:name,prefix:prefix,index:0,isDot:!1,curStatus:"",layout:"vertical",isLastChild:!1,sequence:"positive"},this.observers={status(t){const{curStatus:e}=this.data;""!==e&&t!==e&&this.setData({curStatus:t})}},this.methods={updateStatus({current:t,currentStatus:e,index:s,theme:i,layout:o,items:r,sequence:a}){let p=this.data.status;"default"===p&&(s<Number(t)?p="finish":s===Number(t)&&(p=e)),this.setData({curStatus:p,index:s,isDot:"dot"===i,layout:o,theme:i,sequence:a,isLastChild:s===("positive"===a?r.length-1:0)})},onTap(){this.$parent.handleClick(this.data.index)}}}};StepItem=__decorate([wxComponent()],StepItem);export default StepItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"o-icon":"../icon/icon"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<wxs src="../common/utils.wxs" module="_"/><wxs src="./step-item.wxs" module="t"/><view style="{{_._style([style, customStyle])}}" class="{{_.cls(classPrefix, [layout, ['readonly', readonly]])}} class {{prefix}}-class" bind:tap="onTap" aria-role="{{ariaRole || readonly ? 'option' : 'button'}}" aria-label="{{ariaLabel || t.getAriaLabel(index, title, content)}}" aria-current="{{curStatus == 'process'? 'step': ''}}"><view class="{{_.cls(classPrefix + '__anchor', [layout])}}" aria-hidden="true"><view wx:if="{{isDot}}" class="{{_.cls(classPrefix + '__dot', [curStatus])}}"/><view wx:elif="{{icon}}" class="{{_.cls(classPrefix + '__icon', [curStatus])}}"><slot wx:if="{{icon == 'slot'}}" name="icon"/><o-icon wx:else name="{{icon}}" size="44rpx"/></view><view wx:else class="{{_.cls(classPrefix + '__circle', [curStatus])}}"><o-icon wx:if="{{curStatus == 'finish'}}" name="check"/><o-icon wx:elif="{{curStatus == 'error'}}" name="close"/><block wx:else>{{index + 1}}</block></view></view><view class="{{_.cls(classPrefix + '__content', [layout, ['last', isLastChild]])}} {{prefix}}-class-content" aria-hidden="true"><slot/><view class="{{_.cls(classPrefix + '__title', [curStatus, layout])}} {{prefix}}-class-title"><block wx:if="{{title}}">{{ title }}</block><slot name="title"/><slot wx:if="{{layout === 'vertical'}}" name="title-right"/></view><view class="{{_.cls(classPrefix + '__description', [layout])}} {{prefix}}-class-description"><block wx:if="{{content}}">{{ content }}</block><slot name="content"/></view><view class="{{_.cls(classPrefix + '__extra', [layout])}} {{prefix}}-class-extra"><slot name="extra"/></view></view><view wx:if="{{!isLastChild}}" class="{{_.cls(classPrefix + '__line', [curStatus, layout, theme, sequence])}}" aria-hidden="true"/></view>
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-steps-item {
|
|
4
|
+
flex: 1;
|
|
5
|
+
vertical-align: top;
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.o-steps-item__circle--default {
|
|
11
|
+
color: var(--o-step-item-default-circle-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
12
|
+
background-color: var(--o-step-item-default-circle-bg,var(--o-bg-color-secondarycontainer,var(--o-gray-color-1,#eeeeee)));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.o-steps-item__title--default {
|
|
16
|
+
color: var(--o-step-item-default-title-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.o-steps-item__icon--default {
|
|
20
|
+
color: var(--o-step-item-default-icon-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.o-steps-item__dot--default {
|
|
24
|
+
border-color: var(--o-step-item-default-dot-border-color,var(--o-component-border,var(--o-gray-color-4,#dddddd)));
|
|
25
|
+
background-color: var(--o-step-item-default-dot-border-color,var(--o-component-border,var(--o-gray-color-4,#dddddd)));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.o-steps-item__circle--process {
|
|
29
|
+
color: var(--o-step-item-process-circle-color,#000);
|
|
30
|
+
background-color: var(--o-step-item-process-circle-bg,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.o-steps-item__title--process {
|
|
34
|
+
color: var(--o-step-item-process-title-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.o-steps-item__icon--process {
|
|
38
|
+
color: var(--o-step-item-process-icon-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.o-steps-item__dot--process {
|
|
42
|
+
border-color: var(--o-step-item-process-dot-border-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
43
|
+
background-color: var(--o-step-item-process-dot-border-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.o-steps-item__circle--finish {
|
|
47
|
+
color: var(--o-step-item-finish-circle-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
48
|
+
background-color: var(--o-step-item-finish-circle-bg,var(--o-brand-color-light,var(--o-primary-color-1,#fef3eb)));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.o-steps-item__title--finish {
|
|
52
|
+
color: var(--o-step-item-finish-title-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.o-steps-item__icon--finish {
|
|
56
|
+
color: var(--o-step-item-finish-icon-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.o-steps-item__dot--finish {
|
|
60
|
+
border-color: var(--o-step-item-finish-dot-border-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
61
|
+
background-color: var(--o-step-item-finish-dot-border-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.o-steps-item__circle--error {
|
|
65
|
+
color: var(--o-step-item-error-circle-color,var(--o-error-color,var(--o-error-color-6,#cd3c14)));
|
|
66
|
+
background-color: var(--o-step-item-error-circle-bg,var(--o-error-color-1,#f9dedc));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.o-steps-item__title--error {
|
|
70
|
+
color: var(--o-step-item-error-title-color,var(--o-error-color,var(--o-error-color-6,#cd3c14)));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.o-steps-item__icon--error {
|
|
74
|
+
color: var(--o-step-item-error-icon-color,var(--o-error-color,var(--o-error-color-6,#cd3c14)));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.o-steps-item__dot--error {
|
|
78
|
+
border-color: var(--o-step-item-error-dot-border-color,var(--o-error-color,var(--o-error-color-6,#cd3c14)));
|
|
79
|
+
background-color: var(--o-step-item-error-dot-border-color,var(--o-error-color,var(--o-error-color-6,#cd3c14)));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.o-steps-item--horizontal {
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
align-items: center;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.o-steps-item--vertical {
|
|
89
|
+
margin-bottom: var(--o-spacer,16rpx);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.o-steps-item__anchor {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.o-steps-item__anchor--vertical {
|
|
99
|
+
width: var(--o-step-item-circle-size,44rpx);
|
|
100
|
+
height: var(--o-step-item-circle-size,44rpx);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.o-steps-item__circle {
|
|
104
|
+
display: flex;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
align-items: center;
|
|
107
|
+
width: var(--o-step-item-circle-size,44rpx);
|
|
108
|
+
height: var(--o-step-item-circle-size,44rpx);
|
|
109
|
+
text-align: center;
|
|
110
|
+
border-radius: var(--o-radius-circle,50%);
|
|
111
|
+
font: var(--o-step-item-circle-text-font,var(--o-font-body-medium,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial)));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.o-steps-item__icon {
|
|
115
|
+
z-index: 1;
|
|
116
|
+
vertical-align: top;
|
|
117
|
+
font-size: var(--o-font-size-base,28rpx);
|
|
118
|
+
position: relative;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.o-steps-item__dot {
|
|
122
|
+
width: var(--o-step-item-dot-size,16rpx);
|
|
123
|
+
height: var(--o-step-item-dot-size,16rpx);
|
|
124
|
+
border-radius: var(--o-radius-circle,50%);
|
|
125
|
+
border-width: 1px;
|
|
126
|
+
border-style: solid;
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.o-steps-item__content {
|
|
131
|
+
text-align: center;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.o-steps-item__content--horizontal {
|
|
135
|
+
max-width: 80px;
|
|
136
|
+
margin-top: var(--o-spacer,16rpx);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.o-steps-item__content--vertical {
|
|
140
|
+
margin-left: var(--o-spacer,16rpx);
|
|
141
|
+
flex: 1;
|
|
142
|
+
padding-bottom: var(--o-spacer-2,32rpx);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.o-steps-item__content--vertical.o-steps-item__content--last {
|
|
146
|
+
padding-bottom: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.o-steps-item__title {
|
|
150
|
+
position: relative;
|
|
151
|
+
font: var(--o-font-body-medium,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.o-steps-item__title--process {
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.o-steps-item__title--vertical {
|
|
159
|
+
text-align: left;
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: space-between;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.o-steps-item__title+.o-steps-item__description:not(:empty) {
|
|
166
|
+
margin-top: calc(var(--o-spacer,16rpx)/ 2);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.o-steps-item__description {
|
|
170
|
+
color: var(--o-step-item-description-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
171
|
+
font: var(--o-font-body-small,24rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.o-steps-item__description--vertical {
|
|
175
|
+
text-align: left;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.o-steps-item__extra:not(:empty) {
|
|
179
|
+
margin-top: var(--o-spacer,16rpx);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.o-steps-item__line {
|
|
183
|
+
background-color: var(--o-step-item-line-color,var(--o-component-border,var(--o-gray-color-4,#dddddd)));
|
|
184
|
+
content: '';
|
|
185
|
+
display: block;
|
|
186
|
+
position: absolute;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.o-steps-item__line--horizontal {
|
|
190
|
+
height: 1px;
|
|
191
|
+
transform: translateY(-50%);
|
|
192
|
+
width: calc(100% - 32rpx - var(--o-step-item-circle-size,44rpx));
|
|
193
|
+
top: calc(var(--o-step-item-circle-size,44rpx)/ 2 + 1px);
|
|
194
|
+
left: calc(50% + var(--o-step-item-circle-size,44rpx)/ 2 + 16rpx);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.o-steps-item__line--horizontal.o-steps-item__line--dot {
|
|
198
|
+
top: calc(var(--o-step-item-dot-size,16rpx)/ 2);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.o-steps-item__line--finish,
|
|
202
|
+
.o-steps-item__line--reverse.o-steps-item__line--process {
|
|
203
|
+
background-color: var(--o-step-item-finish-line-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.o-steps-item__line--vertical {
|
|
207
|
+
height: calc(100% - 32rpx - var(--o-step-item-circle-size,44rpx));
|
|
208
|
+
width: 1px;
|
|
209
|
+
transform: translateX(-50%);
|
|
210
|
+
left: calc(var(--o-step-item-circle-size,44rpx)/ 2);
|
|
211
|
+
top: calc(var(--o-step-item-circle-size,44rpx) + 16rpx);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.o-steps-item__line--vertical.o-steps-item__line--dot {
|
|
215
|
+
top: var(--o-step-item-circle-size,44rpx);
|
|
216
|
+
height: calc(100% - var(--o-step-item-circle-size,44rpx));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:host {
|
|
220
|
+
flex: 1;
|
|
221
|
+
vertical-align: top;
|
|
222
|
+
position: relative;
|
|
223
|
+
align-self: flex-start;
|
|
224
|
+
width: inherit;
|
|
225
|
+
}
|
|
226
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./stepper";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={disableInput:{type:Boolean,value:!1},disabled:{type:null,value:void 0},inputWidth:{type:Number},integer:{type:Boolean,value:!0},max:{type:Number,value:100},min:{type:Number,value:0},size:{type:String,value:"medium"},step:{type:Number,value:1},theme:{type:String,value:"normal"},value:{type:null,value:null},defaultValue:{type:null,value:0}};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";const{prefix:prefix}=config,name=`${prefix}-stepper`;let Stepper=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`,`${prefix}-class-input`,`${prefix}-class-minus`,`${prefix}-class-plus`],this.properties=Object.assign({},props),this.controlledProps=[{key:"value",event:"change"}],this.observers={value(e){this.preValue=Number(e),this.updateCurrentValue(this.format(this.preValue))}},this.data={currentValue:0,classPrefix:name,prefix:prefix},this.lifetimes={attached(){const{value:e,min:t}=this.properties;this.updateCurrentValue(e?Number(e):t)}},this.methods={isDisabled(e){const{min:t,max:r,disabled:s}=this.properties,{currentValue:i}=this.data;return!!s||("minus"===e&&i<=t||"plus"===e&&i>=r)},getLen(e){const t=e.toString();return-1===t.indexOf(".")?0:t.split(".")[1].length},add(e,t){const r=Math.max(this.getLen(e),this.getLen(t)),s=Math.pow(10,r),i=Math.round(e*s+t*s)/s;return r>0?i.toFixed(r):i},format(e){const{min:t,max:r,step:s}=this.properties,i=Math.max(this.getLen(s),this.getLen(String(e)));return Math.max(Math.min(r,e,Number.MAX_SAFE_INTEGER),t,Number.MIN_SAFE_INTEGER).toFixed(i)},setValue(e){const t=this.format(e),r=Number(t);this.updateCurrentValue(t),this.preValue!==r&&(this.preValue=r,this._trigger("change",{value:r}))},minusValue(){if(this.isDisabled("minus"))return this.triggerEvent("overlimit",{type:"minus"}),!1;const{currentValue:e,step:t}=this.data;this.setValue(this.add(e,-t))},plusValue(){if(this.isDisabled("plus"))return this.triggerEvent("overlimit",{type:"plus"}),!1;const{currentValue:e,step:t}=this.data;this.setValue(this.add(e,t))},filterIllegalChar(e){const t=String(e).replace(/[^0-9.]/g,""),r=t.indexOf(".");return this.properties.integer&&-1!==r?t.split(".")[0]:this.properties.integer||-1===r||r===t.lastIndexOf(".")?t:t.split(".",2).join(".")},updateCurrentValue(e){const t=Number(e);this.setData({currentValue:String(t)===String(e)?t:e})},handleFocus(e){const{value:t}=e.detail;this.triggerEvent("focus",{value:t})},handleInput(e){const{value:t}=e.detail;if(""===t)return;const r=this.filterIllegalChar(t);this.updateCurrentValue(r)},handleBlur(e){const{value:t}=e.detail,r=this.filterIllegalChar(t),s=this.format(r);this.setValue(s),this.triggerEvent("blur",{value:s})}}}};Stepper=__decorate([wxComponent()],Stepper);export default Stepper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"o-cell":"../cell/cell","o-icon":"../icon/icon"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<wxs src="../common/utils.wxs" module="_"/><view style="{{_._style([style, customStyle])}}" class="{{classPrefix}} {{classPrefix}}--{{size}} class {{prefix}}-class"><view class="{{classPrefix}}__minus {{classPrefix}}__minus--{{theme}} {{classPrefix}}__icon--{{size}} {{ disabled || disableMinus || currentValue <= min ? classPrefix + '--' + theme + '-disabled': ''}} {{prefix}}-class-minus" catchtap="minusValue" aria-label="{{'Diminuer de ' + step}}" aria-role="button" aria-disabled="{{disabled || disableMinus || currentValue <= min}}"><o-icon name="remove"/></view><view class="{{classPrefix}}__input--{{theme}} {{ disabled || disableInput ? classPrefix + '--' + theme + '-disabled': ''}}"><input style="{{inputWidth? 'width:' + inputWidth + 'px;': ''}}" class="{{classPrefix}}__input {{classPrefix}}__input--{{size}} {{prefix}}-class-input" disabled="{{ disabled || disableInput }}" type="{{ integer ? 'number' : 'digit' }}" value="{{ currentValue }}" catchinput="handleInput" catchfocus="handleFocus" catchblur="handleBlur"/></view><view class="{{classPrefix}}__plus {{classPrefix}}__plus--{{theme}} {{classPrefix}}__icon--{{size}} {{ disabled || disablePlus|| currentValue >= max ? classPrefix + '--' + theme + '-disabled': ''}} {{prefix}}-class-plus" catchtap="plusValue" aria-label="{{'Augmenter de ' + step}}" aria-role="button" aria-disabled="{{disabled || disablePlus|| currentValue >= max}}"><o-icon name="add"/></view></view>
|