Vant Wepp 引入所有组件

app.json

"usingComponents": {
        "van-button": "@vant/weapp/button/index",
        "van-cell": "@vant/weapp/cell/index",
        "van-cell-group": "@vant/weapp/cell-group/index",
        "van-icon": "@vant/weapp/icon/index",
        "van-image": "@vant/weapp/image/index",
        "van-row": "@vant/weapp/row/index",
        "van-col": "@vant/weapp/col/index",
        "van-popup": "@vant/weapp/popup/index",
        "van-transition": "@vant/weapp/transition/index",
        "van-calendar": "@vant/weapp/calendar/index",
        "van-checkbox": "@vant/weapp/checkbox/index",
        "van-checkbox-group": "@vant/weapp/checkbox-group/index",
        "van-datetime-picker": "@vant/weapp/datetime-picker/index",
        "van-field": "@vant/weapp/field/index",
        "van-picker": "@vant/weapp/picker/index",
        "van-radio": "@vant/weapp/radio/index",
        "van-radio-group": "@vant/weapp/radio-group/index",
        "van-rate": "@vant/weapp/rate/index",
        "van-search": "@vant/weapp/search/index",
        "van-slider": "@vant/weapp/slider/index",
        "van-stepper": "@vant/weapp/stepper/index",
        "van-switch": "@vant/weapp/switch/index",
        "van-uploader": "@vant/weapp/uploader/index",
        "van-action-sheet": "@vant/weapp/action-sheet/index",
        "van-dialog": "@vant/weapp/dialog/index",
        "van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
        "van-dropdown-item": "@vant/weapp/dropdown-item/index",
        "van-loading": "@vant/weapp/loading/index",
        "van-notify": "@vant/weapp/notify/index",
        "van-overlay": "@vant/weapp/overlay/index",
        "van-swipe-cell": "@vant/weapp/swipe-cell/index",
        "van-toast": "@vant/weapp/toast/index",
        "van-circle": "@vant/weapp/circle/index",
        "van-collapse": "@vant/weapp/collapse/index",
        "van-collapse-item": "@vant/weapp/collapse-item/index",
        "van-count-down": "@vant/weapp/count-down/index",
        "van-divider": "@vant/weapp/divider/index",
        "van-empty": "@vant/weapp/empty/index",
        "van-notice-bar": "@vant/weapp/notice-bar/index",
        "van-panel": "@vant/weapp/panel/index",
        "van-progress": "@vant/weapp/progress/index",
        "van-skeleton": "@vant/weapp/skeleton/index",
        "van-steps": "@vant/weapp/steps/index",
        "van-sticky": "@vant/weapp/sticky/index",
        "van-tag": "@vant/weapp/tag/index",
        "van-tree-select": "@vant/weapp/tree-select/index",
        "van-grid": "@vant/weapp/grid/index",
        "van-grid-item": "@vant/weapp/grid-item/index",
        "van-index-bar": "@vant/weapp/index-bar/index",
        "van-index-anchor": "@vant/weapp/index-anchor/index",
        "van-sidebar": "@vant/weapp/sidebar/index",
        "van-sidebar-item": "@vant/weapp/sidebar-item/index",
        "van-nav-bar": "@vant/weapp/nav-bar/index",
        "van-tab": "@vant/weapp/tab/index",
        "van-tabs": "@vant/weapp/tabs/index",
        "van-tabbar": "@vant/weapp/tabbar/index",
        "van-tabbar-item": "@vant/weapp/tabbar-item/index",
        "van-area": "@vant/weapp/area/index",
        "van-card": "@vant/weapp/card/index",
        "van-submit-bar": "@vant/weapp/submit-bar/index",
        "van-goods-action": "@vant/weapp/goods-action/index",
        "van-goods-action-icon": "@vant/weapp/goods-action-icon/index",
        "van-goods-action-button": "@vant/weapp/goods-action-button/index"
    }
原文地址:https://www.cnblogs.com/deajax/p/13521719.html