ElementUI之动态树+数据表格+分页->动态树,动态表格

  • 动态树
  • 动态表格

1.动态树

//src/components/LeftNav.vue



//src/router/index.js
import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import AppMain from '@/components/AppMain'
import LeftNav from '@/components/LeftNav'
import TopNav from '@/components/TopNav'
import Login from '@/views/Login'
import Register from '@/views/Register'
import AddBook from '@/views/book/AddBook'
import BookList from '@/views/book/BookList'
Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    },
    {
      path: '/AppMain',
      name: 'AppMain',
      component: AppMain,
      children: [{
          path: '/LeftNav',
          name: 'LeftNav',
          component: LeftNav
        },
        {
          path: '/TopNav',
          name: 'TopNav',
          component: TopNav
        },
        {
          path: '/book/AddBook',
          name: 'AddBook',
          component: AddBook
        },
        {
          path: '/book/BookList',
          name: 'BookList',
          component: BookList
        }]
    }
  ]

})
//src/src/view/book/AddBook





//src/src/view/book/BookList





ElementUI之动态树+数据表格+分页->动态树,动态表格_第1张图片

2.动态表格

 

//src/view/book/BookList.vue





//src/componants/AppMain.vue




ElementUI之动态树+数据表格+分页->动态树,动态表格_第2张图片

你可能感兴趣的:(elementui,vue.js,javascript)