云启企业微信侧边栏项目 安装组件 npm i cloudtrek-sidebar --save 引入组件 // main.js /** 整体引入 */ import cloudtrekSidebar from 'cloudtrek-sidebar' Vue.use(cloudtrekSidebar) /** 按需引入 */ import { Customer, Material, Words } from 'cloudtrek-sidebar' Vue.component(Customer) // 客户详情组件 Vue.component(Material) // 素材中心组件 Vue.component(Words) // 话术库组件 Prop传参 // 整体引入 <cloudtrekSidebar program="{ name: '话术库', key: 'cloudtrek }" sideName="words" /> // 引入素材 <Material programName="cloudtrek" /> // 引入话术 <Words programName="cloudtrek" /> // 引入客户详情 <Customer programName="cloudtrek" /> Build Setup # install dependencies npm install # serve with hot reload at localhost:8080 npm run serve # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report