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,313 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-input {
|
|
4
|
+
background-color: var(--o-input-bg-color,var(--o-bg-color-container,var(--o-font-white-1,#fff)));
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: var(--o-input-align-items,center);
|
|
7
|
+
flex: 1;
|
|
8
|
+
padding: var(--o-input-vertical-padding,var(--o-spacer-2,32rpx));
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.o-input--border {
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.o-input--border::after {
|
|
17
|
+
content: '';
|
|
18
|
+
display: block;
|
|
19
|
+
position: absolute;
|
|
20
|
+
top: unset;
|
|
21
|
+
bottom: 0;
|
|
22
|
+
left: unset;
|
|
23
|
+
right: unset;
|
|
24
|
+
background-color: var(--o-input-border-color,var(--o-component-stroke,var(--o-gray-color-3,#dddddd)));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.o-input--border::after {
|
|
28
|
+
height: 1px;
|
|
29
|
+
left: 0;
|
|
30
|
+
right: 0;
|
|
31
|
+
transform: scaleY(.5);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.o-input--border:after {
|
|
35
|
+
left: var(--o-input-border-left-space,var(--o-spacer-2,32rpx));
|
|
36
|
+
right: var(--o-input-border-right-space,0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.o-input--layout-vertical {
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: start;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.o-input__wrap--prefix {
|
|
45
|
+
display: flex;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.o-input__icon--prefix {
|
|
49
|
+
font-size: 48rpx;
|
|
50
|
+
color: var(--o-input-prefix-icon-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.o-input__label:not(:empty) {
|
|
54
|
+
min-width: var(--o-input-label-min-width,2em);
|
|
55
|
+
max-width: var(--o-input-label-max-width,5em);
|
|
56
|
+
font: var(--o-input-label-text-font,var(--o-font-body-large,32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial)));
|
|
57
|
+
color: var(--o-input-label-text-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
58
|
+
margin-right: var(--o-spacer-2,32rpx);
|
|
59
|
+
word-wrap: break-word;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.o-input--layout-vertical .o-input__label:not(:empty) {
|
|
63
|
+
font-size: var(--o-font-size-base,28rpx);
|
|
64
|
+
padding-bottom: calc(var(--o-spacer,16rpx)/ 2);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.o-input__icon--prefix:not(:empty)+.o-input__label:not(:empty) {
|
|
68
|
+
padding-left: calc(var(--o-spacer,16rpx)/ 2);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.o-input__label:not(:empty)+.o-input__wrap {
|
|
72
|
+
margin-left: var(--o-spacer-2,32rpx);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.o-input__icon--prefix:not(:empty)+.o-input__label:empty {
|
|
76
|
+
margin-right: var(--o-spacer-2,32rpx);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.o-input__wrap {
|
|
80
|
+
width: 100%;
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
flex-wrap: wrap;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
flex-shrink: 1;
|
|
86
|
+
flex: 1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.o-input__wrap .o-input__content {
|
|
90
|
+
display: flex;
|
|
91
|
+
width: 100%;
|
|
92
|
+
align-items: center;
|
|
93
|
+
font: var(--o-font-body-large,32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.o-input__wrap--clearable-icon,
|
|
97
|
+
.o-input__wrap--suffix,
|
|
98
|
+
.o-input__wrap--suffix-icon {
|
|
99
|
+
flex: 0 0 auto;
|
|
100
|
+
padding-left: var(--o-spacer-1,24rpx);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.o-input__wrap--clearable-icon:empty,
|
|
104
|
+
.o-input__wrap--suffix-icon:empty,
|
|
105
|
+
.o-input__wrap--suffix:empty {
|
|
106
|
+
display: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.o-input__wrap--clearable-icon,
|
|
110
|
+
.o-input__wrap--suffix-icon {
|
|
111
|
+
font-size: 48rpx;
|
|
112
|
+
color: var(--o-input-suffix-icon-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.o-input__wrap--suffix {
|
|
116
|
+
font-size: var(--o-font-size-m,32rpx);
|
|
117
|
+
color: var(--o-input-suffix-text-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.o-input__icon--prefix:empty,
|
|
121
|
+
.o-input__tips:empty,
|
|
122
|
+
.o-input__wrap--clearable-icon:empty,
|
|
123
|
+
.o-input__wrap--suffix-icon:empty,
|
|
124
|
+
.o-input__wrap--suffix:empty {
|
|
125
|
+
display: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.o-input__control {
|
|
129
|
+
display: block;
|
|
130
|
+
box-sizing: border-box;
|
|
131
|
+
width: 100%;
|
|
132
|
+
min-width: 0;
|
|
133
|
+
min-height: 48rpx;
|
|
134
|
+
margin: 0;
|
|
135
|
+
padding: 0;
|
|
136
|
+
color: var(--o-input-default-text-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
137
|
+
line-height: inherit;
|
|
138
|
+
background-color: transparent;
|
|
139
|
+
border: 0;
|
|
140
|
+
resize: none;
|
|
141
|
+
font-size: inherit;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.o-input__control--disabled {
|
|
145
|
+
color: var(--o-input-disabled-text-color,var(--o-text-color-disabled,var(--o-font-gray-4,rgba(0,0,0,.26))));
|
|
146
|
+
cursor: not-allowed;
|
|
147
|
+
opacity: 1;
|
|
148
|
+
-webkit-text-fill-color: currentColor;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.o-input__control--read-only {
|
|
152
|
+
cursor: default;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.o-input--left {
|
|
156
|
+
text-align: left;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.o-input--right {
|
|
160
|
+
text-align: right;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.o-input--center {
|
|
164
|
+
text-align: center;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.o-input__placeholder {
|
|
168
|
+
color: var(--o-input-placeholder-text-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
169
|
+
font: var(--o-input-placeholder-text-font,var(--o-font-body-large,32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial)));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.o-input__placeholder--disabled {
|
|
173
|
+
color: var(--o-input-disabled-text-color,var(--o-text-color-disabled,var(--o-font-gray-4,rgba(0,0,0,.26))));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.o-input__tips {
|
|
177
|
+
font: var(--o-font-body-small,24rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
178
|
+
padding-top: calc(var(--o-spacer,16rpx)/ 2);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.o-input--default+.o-input__tips {
|
|
182
|
+
color: var(--o-input-default-tips-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.o-input--success+.o-input__tips {
|
|
186
|
+
color: var(--o-input-success-tips-color,var(--o-success-color,var(--o-success-color-5,#028702)));
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.o-input--warning+.o-input__tips {
|
|
190
|
+
color: var(--o-input-warning-tips-color,var(--o-warning-color,var(--o-warning-color-5,#e37318)));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.o-input--error+.o-input__tips {
|
|
194
|
+
color: var(--o-input-error-tips-color,var(--o-error-color,var(--o-error-color-6,#cd3c14)));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.o-input--outlined {
|
|
198
|
+
position: relative;
|
|
199
|
+
box-sizing: border-box;
|
|
200
|
+
width: 100%;
|
|
201
|
+
margin: var(--o-input-outlined-label-offset,20rpx) 0 0;
|
|
202
|
+
overflow: visible;
|
|
203
|
+
border: var(--o-input-outlined-border-width,2rpx) solid var(--o-input-outlined-border-color,#dddddd);
|
|
204
|
+
border-radius: var(--o-input-outlined-radius,16rpx);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.o-input--outlined::after {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.o-input--outlined .o-input__label:not(:empty) {
|
|
212
|
+
position: absolute;
|
|
213
|
+
top: 0;
|
|
214
|
+
left: var(--o-input-outlined-label-left,24rpx);
|
|
215
|
+
transform: translateY(-50%);
|
|
216
|
+
min-width: 0;
|
|
217
|
+
max-width: calc(100% - 48rpx);
|
|
218
|
+
margin: 0;
|
|
219
|
+
padding: 0 12rpx;
|
|
220
|
+
background-color: var(--o-input-bg-color,var(--o-bg-color-container,var(--o-font-white-1,#fff)));
|
|
221
|
+
color: var(--o-input-outlined-label-color,var(--o-text-color-primary,#000));
|
|
222
|
+
white-space: nowrap;
|
|
223
|
+
overflow: hidden;
|
|
224
|
+
text-overflow: ellipsis;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.o-input--outlined .o-input__label:not(:empty)+.o-input__wrap {
|
|
228
|
+
margin-left: 0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.o-input--outlined .o-input__wrap--suffix-icon {
|
|
232
|
+
color: var(--o-input-outlined-suffix-icon-color,var(--o-text-color-primary,#000));
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.o-input--outlined.o-input--size-small {
|
|
236
|
+
padding: var(--o-input-small-padding,20rpx 24rpx);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.o-input--outlined.o-input--size-small .o-input__label:not(:empty) {
|
|
240
|
+
font: var(--o-input-small-label-font,24rpx / 36rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.o-input--outlined.o-input--size-small .o-input__content,
|
|
244
|
+
.o-input--outlined.o-input--size-small .o-input__placeholder {
|
|
245
|
+
font: var(--o-input-small-font,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.o-input--outlined.o-input--size-small .o-input__wrap--suffix-icon,
|
|
249
|
+
.o-input--outlined.o-input--size-small .o-input__wrap--clearable-icon {
|
|
250
|
+
font-size: 40rpx;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.o-input--outlined.o-input--size-medium {
|
|
254
|
+
padding: var(--o-input-medium-padding,32rpx 32rpx);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.o-input--outlined.o-input--size-medium .o-input__label:not(:empty) {
|
|
258
|
+
font: var(--o-input-medium-label-font,28rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.o-input--outlined.o-input--size-medium .o-input__content,
|
|
262
|
+
.o-input--outlined.o-input--size-medium .o-input__placeholder {
|
|
263
|
+
font: var(--o-input-medium-font,32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.o-input--outlined.o-input--size-medium .o-input__wrap--suffix-icon,
|
|
267
|
+
.o-input--outlined.o-input--size-medium .o-input__wrap--clearable-icon {
|
|
268
|
+
font-size: 48rpx;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.o-input--outlined.o-input--size-large {
|
|
272
|
+
padding: var(--o-input-large-padding,40rpx 32rpx);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.o-input--outlined.o-input--size-large .o-input__label:not(:empty) {
|
|
276
|
+
font: var(--o-input-large-label-font,32rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.o-input--outlined.o-input--size-large .o-input__content,
|
|
280
|
+
.o-input--outlined.o-input--size-large .o-input__placeholder {
|
|
281
|
+
font: var(--o-input-large-font,36rpx / 52rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.o-input--outlined.o-input--size-large .o-input__wrap--suffix-icon,
|
|
285
|
+
.o-input--outlined.o-input--size-large .o-input__wrap--clearable-icon {
|
|
286
|
+
font-size: 52rpx;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.o-input--outlined-error {
|
|
290
|
+
border-color: var(--o-error-color,#cd3c14);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.o-input--outlined-error .o-input__label:not(:empty) {
|
|
294
|
+
color: var(--o-error-color,#cd3c14);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.o-input--outlined-success {
|
|
298
|
+
border-color: var(--o-success-color,#028702);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.o-input--outlined-warning {
|
|
302
|
+
border-color: var(--o-warning-color,#e37318);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.o-input--outlined-default.o-input--focused {
|
|
306
|
+
border-color: var(--o-brand-color,#f16e00);
|
|
307
|
+
box-shadow: inset 0 0 0 calc(var(--o-input-outlined-focus-width,4rpx) - 2rpx) var(--o-brand-color,#f16e00);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.o-input--outlined-default.o-input--focused .o-input__label:not(:empty) {
|
|
311
|
+
color: var(--o-brand-color,#f16e00);
|
|
312
|
+
}
|
|
313
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={variant:{type:String,value:"outlined"},size:{type:String,value:"medium"},adjustPosition:{type:Boolean,value:!0},align:{type:String,value:"left"},allowInputOverMax:{type:Boolean,value:!1},alwaysEmbed:{type:Boolean,value:!1},autoFocus:{type:Boolean,value:!1},borderless:{type:Boolean,value:!1},clearTrigger:{type:String,value:"always"},clearable:{type:null,value:!1},confirmHold:{type:Boolean,value:!1},confirmType:{type:String,value:"done"},cursor:{type:Number,value:-1,required:!0},cursorColor:{type:String,value:"#f16e00"},cursorSpacing:{type:Number,value:0},disabled:{type:null,value:void 0},focus:{type:Boolean,value:!1},format:{type:null},holdKeyboard:{type:Boolean,value:!1},label:{type:String},layout:{type:String,value:"horizontal"},maxcharacter:{type:Number},maxlength:{type:Number,value:-1},placeholder:{type:String,value:void 0},placeholderClass:{type:String,value:"input-placeholder"},placeholderStyle:{type:String,value:"",required:!0},prefixIcon:{type:null},readonly:{type:null,value:void 0},safePasswordCertPath:{type:String,value:""},safePasswordCustomHash:{type:String,value:""},safePasswordLength:{type:Number},safePasswordNonce:{type:String,value:""},safePasswordSalt:{type:String,value:""},safePasswordTimeStamp:{type:Number},selectionEnd:{type:Number,value:-1},selectionStart:{type:Number,value:-1},status:{type:String,value:"default"},suffix:{type:String},suffixIcon:{type:null},tips:{type:String},type:{type:String,value:"text"},value:{type:null}};export default props;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __decorate } from '../common/tslib';
|
|
2
|
+
import { SuperComponent, wxComponent } from '../common/src/index';
|
|
3
|
+
import config from '../common/config';
|
|
4
|
+
import props from './props';
|
|
5
|
+
|
|
6
|
+
const { prefix } = config;
|
|
7
|
+
const name = `${prefix}-insight-card`;
|
|
8
|
+
|
|
9
|
+
let InsightCard = class InsightCard extends SuperComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.externalClasses = [`${prefix}-class`];
|
|
13
|
+
this.options = { multipleSlots: true };
|
|
14
|
+
this.properties = props;
|
|
15
|
+
this.data = { prefix, classPrefix: name };
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
InsightCard = __decorate([wxComponent()], InsightCard);
|
|
19
|
+
export default InsightCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"o-icon":"../icon/icon"}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<view class="o-surface o-surface--outlined o-insight-card class {{prefix}}-class" style="{{style}} {{customStyle}}">
|
|
2
|
+
<view class="o-pad">
|
|
3
|
+
<view class="o-insight-card__head">
|
|
4
|
+
<view><text class="o-insight-card__value">{{value}}</text><text class="o-amount__currency o-insight-card__unit">{{unit}}</text></view>
|
|
5
|
+
<view class="o-insight-card__title">{{title}}</view>
|
|
6
|
+
<view wx:if="{{trend}}" class="o-insight-card__trend {{trendUp ? 'o-insight-card__trend--up' : 'o-insight-card__trend--down'}}">
|
|
7
|
+
<o-icon name="{{trendUp ? 'arrow-up' : 'arrow-down'}}" /><text>{{trend}}</text><text class="o-txt-small"> {{trendText}}</text>
|
|
8
|
+
</view>
|
|
9
|
+
</view>
|
|
10
|
+
<block wx:if="{{rows.length}}">
|
|
11
|
+
<view class="o-hr" />
|
|
12
|
+
<view wx:for="{{rows}}" wx:key="index" class="o-kv">
|
|
13
|
+
<text class="o-kv__label">{{item.label}}</text><text class="o-kv__value">{{item.value}}</text>
|
|
14
|
+
</view>
|
|
15
|
+
</block>
|
|
16
|
+
</view>
|
|
17
|
+
</view>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
@import '../common/style/card.wxss';
|
|
3
|
+
|
|
4
|
+
/* Insight (Figma "Insights"): big orange value, title, trend versus last period, key/value lines. */
|
|
5
|
+
.o-insight-card__head {
|
|
6
|
+
text-align: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.o-insight-card__value,
|
|
10
|
+
.o-insight-card__unit {
|
|
11
|
+
color: var(--o-scheme-primary, #f16e00);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.o-insight-card__value {
|
|
15
|
+
font: var(--o-type-headline-small-custom1, 700 48rpx / 64rpx var(--o-font-family, Roboto, Arial));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.o-insight-card__title {
|
|
19
|
+
font: var(--o-type-title-medium, 500 32rpx / 48rpx var(--o-font-family, Roboto, Arial));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.o-insight-card__trend {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 4rpx;
|
|
26
|
+
font: var(--o-type-label-medium, 500 24rpx / 32rpx var(--o-font-family, Roboto, Arial));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.o-insight-card__trend--up {
|
|
30
|
+
color: var(--o-scheme-success, #028702);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.o-insight-card__trend--down {
|
|
34
|
+
color: var(--o-scheme-error, #cd3c14);
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// o-insight-card: Insight (Figma "Insights"): big orange value, title, trend versus last period, key/value lines.
|
|
2
|
+
const props = {
|
|
3
|
+
value: { type: String, value: '' },
|
|
4
|
+
unit: { type: String, value: '' },
|
|
5
|
+
title: { type: String, value: '' },
|
|
6
|
+
trend: { type: String, value: '' },
|
|
7
|
+
trendUp: { type: Boolean, value: true },
|
|
8
|
+
trendText: { type: String, value: '' },
|
|
9
|
+
// [{ label, value }]
|
|
10
|
+
rows: { type: Array, value: [] },
|
|
11
|
+
};
|
|
12
|
+
export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./link";
|
|
@@ -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}-link`;let Link=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`,`${prefix}-class-hover`,`${prefix}-class-prefix-icon`,`${prefix}-class-content`,`${prefix}-class-suffix-icon`],this.properties=props,this.options={multipleSlots:!0},this.data={prefix:prefix,classPrefix:name},this.observers={"theme, disabled, size, underline, navigatorProps"(){this.setClass()},prefixIcon(e){this.setData({_prefixIcon:calcIcon(e)})},suffixIcon(e){this.setData({_suffixIcon:calcIcon(e)})}},this.lifetimes={attached(){this.setClass()}},this.methods={setClass(){const{theme:e,size:s,underline:i,navigatorProps:t,disabled:o}=this.properties,n=[name,`${name}--${e}`,`${name}--${s}`],{url:r,appId:a,shortLink:p,target:c,openType:l}=null!=t?t:{},m=!(r||"miniProgram"===c&&(a||p));i&&n.push(`${name}--underline`),(t&&m&&!["navigateBack","exit"].includes(l)||o)&&n.push(`${name}--disabled`),this.setData({className:n.join(" ")})},onSuccess(e){this.triggerEvent("success",e)},onFail(e){this.triggerEvent("fail",e)},onComplete(e){this.triggerEvent("complete",e)}}}};Link=__decorate([wxComponent()],Link);export default Link;
|
|
@@ -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="_"/><navigator class="{{className}} class {{prefix}}-class" style="{{_._style([style, customStyle])}}" target="{{navigatorProps.target}}" url="{{ !disabled && navigatorProps.url}}" open-type="{{navigatorProps.openType || 'navigate'}}" delta="{{navigatorProps.delta}}" app-id="{{navigatorProps.appId}}" path="{{navigatorProps.path}}" extra-data="{{navigatorProps.extraData}}" version="{{navigatorProps.version}}" short-link="{{navigatorProps.shortLink}}" hover-class="{{ hover && !disabled && classPrefix + '--hover' }} {{prefix}}-class-hover {{navigatorProps.hoverClass}}" hover-stop-propagation="navigatorProps.hoverStopPropagation" hover-start-time="{{navigatorProps.hoverStartTime}}" hover-stay-time="{{navigatorProps.hoverStayTime}}" bindsuccess="onSuccess" bindfail="onFail" bindcomplete="onComplete" aria-disabled="{{disabled}}"><view class="{{classPrefix}}__prefix-icon {{prefix}}-class-prefix-icon"><slot name="prefix-icon"/><template wx:if="{{_prefixIcon}}" is="icon" data="{{oClass: prefix + '-class-prefix-icon', ariaHidden: true, ..._prefixIcon }}"/></view><view class="{{classPrefix}}__content {{prefix}}-class-content"><block wx:if="{{content}}">{{content}}</block><slot name="content"/><slot/></view><view class="{{classPrefix}}__suffix-icon {{prefix}}-class-suffix-icon"><slot name="suffix-icon"/><template wx:if="{{_suffixIcon}}" is="icon" data="{{oClass: prefix + '-class-suffix-icon', ariaHidden: true, ..._suffixIcon }}"/></view></navigator>
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-link--small .o-link__content {
|
|
4
|
+
font: var(--o-font-body-small,24rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.o-link--small .o-link__prefix-icon,
|
|
8
|
+
.o-link--small .o-link__suffix-icon {
|
|
9
|
+
font-size: var(--o-font-size-base,28rpx);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.o-link--medium .o-link__content {
|
|
13
|
+
font: var(--o-font-body-medium,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.o-link--medium .o-link__prefix-icon,
|
|
17
|
+
.o-link--medium .o-link__suffix-icon {
|
|
18
|
+
font-size: var(--o-font-size-m,32rpx);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.o-link--large .o-link__content {
|
|
22
|
+
font: var(--o-font-body-large,32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.o-link--large .o-link__prefix-icon,
|
|
26
|
+
.o-link--large .o-link__suffix-icon {
|
|
27
|
+
font-size: var(--o-font-size-l,36rpx);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.o-link--primary {
|
|
31
|
+
color: var(--o-link-primary-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.o-link--primary.o-link--underline::after {
|
|
35
|
+
border-color: var(--o-link-primary-color,var(--o-brand-color,var(--o-primary-color-7,#f16e00)));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.o-link--primary.o-link--disabled {
|
|
39
|
+
color: var(--o-link-primary-disabled-color,var(--o-brand-color-disabled,var(--o-primary-color-3,#f9c599)));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.o-link--primary.o-link--hover {
|
|
43
|
+
color: var(--o-link-primary-active-color,var(--o-brand-color-active,var(--o-primary-color-8,#cd5e00)));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.o-link--primary.o-link--hover.o-link--underline::after {
|
|
47
|
+
border-color: var(--o-link-primary-active-color,var(--o-brand-color-active,var(--o-primary-color-8,#cd5e00)));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.o-link--success {
|
|
51
|
+
color: var(--o-link-success-color,var(--o-success-color,var(--o-success-color-5,#028702)));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.o-link--success.o-link--underline::after {
|
|
55
|
+
border-color: var(--o-link-success-color,var(--o-success-color,var(--o-success-color-5,#028702)));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.o-link--success.o-link--disabled {
|
|
59
|
+
color: var(--o-link-success-disabled-color,var(--o-success-color-disabled,var(--o-success-color-3,#92dab2)));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.o-link--success.o-link--hover {
|
|
63
|
+
color: var(--o-link-success-active-color,var(--o-success-color-active,var(--o-success-color-6,#008858)));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.o-link--success.o-link--hover.o-link--underline::after {
|
|
67
|
+
border-color: var(--o-link-success-active-color,var(--o-success-color-active,var(--o-success-color-6,#008858)));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.o-link--warning {
|
|
71
|
+
color: var(--o-link-warning-color,var(--o-warning-color,var(--o-warning-color-5,#e37318)));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.o-link--warning.o-link--underline::after {
|
|
75
|
+
border-color: var(--o-link-warning-color,var(--o-warning-color,var(--o-warning-color-5,#e37318)));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.o-link--warning.o-link--disabled {
|
|
79
|
+
color: var(--o-link-warning-disabled-color,var(--o-warning-color-disabled,var(--o-warning-color-3,#ffb98c)));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.o-link--warning.o-link--hover {
|
|
83
|
+
color: var(--o-link-warning-active-color,var(--o-warning-color-active,var(--o-warning-color-6,#be5a00)));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.o-link--warning.o-link--hover.o-link--underline::after {
|
|
87
|
+
border-color: var(--o-link-warning-active-color,var(--o-warning-color-active,var(--o-warning-color-6,#be5a00)));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.o-link--default {
|
|
91
|
+
color: var(--o-link-default-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.o-link--default.o-link--underline::after {
|
|
95
|
+
border-color: var(--o-link-default-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.o-link--default.o-link--disabled {
|
|
99
|
+
color: var(--o-link-default-disabled-color,var(--o-text-color-disabled,var(--o-font-gray-4,rgba(0,0,0,.26))));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.o-link--default.o-link--hover {
|
|
103
|
+
color: var(--o-link-default-active-color,var(--o-brand-color-active,var(--o-primary-color-8,#cd5e00)));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.o-link--default.o-link--hover.o-link--underline::after {
|
|
107
|
+
border-color: var(--o-link-default-active-color,var(--o-brand-color-active,var(--o-primary-color-8,#cd5e00)));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.o-link--danger {
|
|
111
|
+
color: var(--o-link-danger-color,var(--o-error-color,var(--o-error-color-6,#cd3c14)));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.o-link--danger.o-link--underline::after {
|
|
115
|
+
border-color: var(--o-link-danger-color,var(--o-error-color,var(--o-error-color-6,#cd3c14)));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.o-link--danger.o-link--disabled {
|
|
119
|
+
color: var(--o-link-danger-disabled-color,var(--o-error-color-disabled,var(--o-error-color-3,#ffb9b0)));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.o-link--danger.o-link--hover {
|
|
123
|
+
color: var(--o-link-danger-active-color,var(--o-error-color-active,var(--o-error-color-7,#ad352f)));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.o-link--danger.o-link--hover.o-link--underline::after {
|
|
127
|
+
border-color: var(--o-link-danger-active-color,var(--o-error-color-active,var(--o-error-color-7,#ad352f)));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.o-link {
|
|
131
|
+
position: relative;
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
box-sizing: content-box;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.o-link--underline::after {
|
|
138
|
+
content: '';
|
|
139
|
+
position: absolute;
|
|
140
|
+
left: 0;
|
|
141
|
+
right: 0;
|
|
142
|
+
height: 0;
|
|
143
|
+
bottom: 0;
|
|
144
|
+
opacity: 1;
|
|
145
|
+
border-bottom: 2rpx solid #cd0be7;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.o-link__prefix-icon:not(:empty)+.o-link__content:not(:empty) {
|
|
149
|
+
padding-left: calc(var(--o-spacer,16rpx)/ 2);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.o-link__content:not(:empty)+.o-link__suffix-icon:not(:empty) {
|
|
153
|
+
padding-left: calc(var(--o-spacer,16rpx)/ 2);
|
|
154
|
+
}
|
|
155
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={content:{type:String},disabled:{type:Boolean,value:!1},hover:{type:Boolean},navigatorProps:{type:Object},prefixIcon:{type:null},size:{type:String,value:"medium"},suffixIcon:{type:null},theme:{type:String,value:"default"},underline:{type:Boolean}};export default props;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __decorate } from '../common/tslib';
|
|
2
|
+
import { SuperComponent, wxComponent } from '../common/src/index';
|
|
3
|
+
import config from '../common/config';
|
|
4
|
+
import props from './props';
|
|
5
|
+
|
|
6
|
+
const { prefix } = config;
|
|
7
|
+
const name = `${prefix}-list-item`;
|
|
8
|
+
|
|
9
|
+
// Recomputed when a property changes and once when attached
|
|
10
|
+
// (the runtime may skip observers for initial property values).
|
|
11
|
+
const observers = {
|
|
12
|
+
avatar(avatar) {
|
|
13
|
+
this.setData({ avatarIsImage: /^(https?:|data:|\/|wxfile:)/.test(avatar || '') });
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
let ListItem = class ListItem extends SuperComponent {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.externalClasses = [`${prefix}-class`];
|
|
21
|
+
this.options = { multipleSlots: true };
|
|
22
|
+
this.properties = props;
|
|
23
|
+
this.data = { prefix, classPrefix: name, avatarIsImage: false };
|
|
24
|
+
this.observers = observers;
|
|
25
|
+
this.lifetimes = {
|
|
26
|
+
attached() {
|
|
27
|
+
Object.keys(observers).forEach((key) => observers[key].call(this, this.properties[key]));
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
this.methods = {
|
|
31
|
+
onTap() {
|
|
32
|
+
if (this.properties.disabled) return;
|
|
33
|
+
this.triggerEvent('click');
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
ListItem = __decorate([wxComponent()], ListItem);
|
|
39
|
+
export default ListItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"o-icon":"../icon/icon","o-image":"../image/image"}}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<view class="{{classPrefix}} {{description ? classPrefix + '--multi' : ''}} {{divider ? classPrefix + '--divider' : ''}} {{disabled ? classPrefix + '--disabled' : ''}} class {{prefix}}-class" style="{{style}} {{customStyle}}" hover-class="{{disabled ? '' : classPrefix + '--hover'}}" hover-stay-time="{{100}}" bind:tap="onTap">
|
|
2
|
+
<view wx:if="{{leadingIcon || avatar || image || leading}}" class="{{classPrefix}}__leading">
|
|
3
|
+
<o-icon wx:if="{{leadingIcon}}" name="{{leadingIcon}}" o-class="{{classPrefix}}__icon" />
|
|
4
|
+
<view wx:elif="{{avatar}}" class="{{classPrefix}}__avatar">
|
|
5
|
+
<o-image wx:if="{{avatarIsImage}}" src="{{avatar}}" mode="aspectFill" width="40" height="40" shape="circle" />
|
|
6
|
+
<text wx:else>{{avatar}}</text>
|
|
7
|
+
</view>
|
|
8
|
+
<o-image wx:elif="{{image}}" src="{{image}}" mode="aspectFill" o-class="{{classPrefix}}__image" />
|
|
9
|
+
<slot name="leading" />
|
|
10
|
+
</view>
|
|
11
|
+
<view class="{{classPrefix}}__content">
|
|
12
|
+
<view wx:if="{{overline}}" class="{{classPrefix}}__overline">{{overline}}</view>
|
|
13
|
+
<view class="{{classPrefix}}__title">{{title}}<slot /></view>
|
|
14
|
+
<view wx:if="{{description}}" class="{{classPrefix}}__description">{{description}}</view>
|
|
15
|
+
<slot name="description" />
|
|
16
|
+
</view>
|
|
17
|
+
<view class="{{classPrefix}}__trailing">
|
|
18
|
+
<text wx:if="{{meta}}" class="{{classPrefix}}__meta">{{meta}}</text>
|
|
19
|
+
<slot name="trailing" />
|
|
20
|
+
<o-icon wx:if="{{trailingIcon || arrow}}" name="{{trailingIcon || 'chevron-right'}}" o-class="{{classPrefix}}__icon" />
|
|
21
|
+
</view>
|
|
22
|
+
</view>
|