component
Vue component封装测试
Build Setup
安装
npm i yn-ui
引入
// main.js import Vue from 'vue'import App from './App.vue'import demoUI from 'yn-ui' Vue.use new Vue
使用
// app.vue <template> <div id="app"> <yn-side-layout :isShow="flg" @maskClick="maskClick"> <div slot="sideLeftMenu">left menu</div> <div slot="sideContent"> <i class="fa fa-list header-fa" @click="maskClick"> 侧滑案例演示</i> <yn-menu-nav :options="options" @menuNavChange="menuNavChange"></yn-menu-nav> <img src="./assets/logo.png"> <yn-bottom-nav :option="options1" v-on:footerNavChange="footerNavChange"></yn-bottom-nav> </div> </yn-side-layout> </div></template> <script> export default </script> <style lang="scss"> .header-fa </style>