微信小程序整合VantWeappUI框架

馋奶兔 提交于 2020-02-27 15:27:53

在全局app.json上贴入如下代码,前提是加入了编译好的Vant文件的dist文件夹

"usingComponents": {
            "van-button": "dist/button",
            "van-cell": "dist/cell",
            "van-cell-group": "dist/cell-group",
            "van-icon": "dist/icon",
            "van-image": "dist/image",
            "van-row": "dist/row",
            "van-col": "dist/col",
            "van-popup": "dist/popup",
            "van-transition": "dist/transition",
            "van-checkbox": "dist/checkbox",
            "van-checkbox-group": "dist/checkbox-group",
            "van-datetime-picker": "dist/datetime-picker",
            "van-field": "dist/field",
            "van-picker": "dist/picker",
            "van-radio": "dist/radio",
            "van-radio-group": "dist/radio-group",
            "van-rate": "dist/rate",
            "van-search": "dist/search",
            "van-slider": "dist/slider",
            "van-stepper": "dist/stepper",
            "van-switch": "dist/switch",
            "van-uploader": "dist/uploader",
            "van-action-sheet": "dist/action-sheet",
            "van-dialog": "dist/dialog",
            "van-dropdown-menu": "dist/dropdown-menu",
            "van-dropdown-item": "dist/dropdown-item",
            "van-loading": "dist/loading",
            "van-notify": "dist/notify",
            "van-overlay": "dist/overlay",
            "van-swipe-cell": "dist/swipe-cell",
            "van-toast": "dist/toast",
            "van-circle": "dist/circle",
            "van-collapse": "dist/collapse",
            "van-collapse-item": "dist/collapse-item",
            "van-count-down": "dist/count-down",
            "van-divider": "dist/divider",
            "van-notice-bar": "dist/notice-bar",
            "van-panel": "dist/panel",
            "van-progress": "dist/progress",
            "van-skeleton": "dist/skeleton",
            "van-steps": "dist/steps",
            "van-sticky": "dist/sticky",
            "van-tag": "dist/tag",
            "van-tree-select": "dist/tree-select",
            "van-grid": "dist/grid",
            "van-grid-item": "dist/grid-item",
            "van-index-bar": "dist/index-bar",
            "van-index-anchor": "dist/index-anchor",
            "van-sidebar": "dist/sidebar",
            "van-sidebar-item": "dist/sidebar-item",
            "van-nav-bar": "dist/nav-bar",
            "van-tab": "dist/tab",
            "van-tabs": "dist/tabs",
            "van-tabbar": "dist/tabbar",
            "van-tabbar-item": "dist/tabbar-item",
            "van-area": "dist/area",
            "van-card": "dist/card",
            "van-submit-bar": "dist/submit-bar",
            "van-goods-action": "dist/goods-action",
            "van-goods-action-icon": "dist/goods-action-icon",
            "van-goods-action-button": "dist/goods-action-button"
      }
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!