Convert Figma logo to code with AI

lanux logoVue-Admin

基于Vue2、element ui、vue-cli、vuex、vue-router、axios 、echarts后台管理系统demo. 权限管理,用户管理,菜单管理。无限级菜单,下拉树形选择框

1,314
415
1,314
15

Top Related Projects

:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin

Vuestic Admin is an open-source, ready-to-use admin template suite designed for rapid development, easy maintenance, and high accessibility. Built on Vuestic UI, Vue 3, Vite, Pinia, and Tailwind CSS. Maintained by Epicmax (@epicmaxco).

🎉 vue admin,vue3 admin,vue3.0 admin,vue后台管理,vue-admin,vue3.0-admin,admin,vue-admin,vue-element-admin,ant-design,vab admin pro,vab admin plus,vue admin plus,vue admin pro

Vue 2.0 admin management system template based on iView

12,560

An elegant dashboard

A modern vue admin panel built with Vue3, Shadcn UI, Vite, TypeScript, and Monorepo. It's fast!

Quick Overview

Vue-Admin is a comprehensive admin dashboard template built with Vue.js. It provides a modern, responsive interface for managing various aspects of web applications, featuring a clean design and a wide range of pre-built components and layouts.

Pros

  • Rich set of UI components and layouts for rapid development
  • Responsive design that works well on desktop and mobile devices
  • Integration with popular Vue.js libraries like Vuex and Vue Router
  • Customizable themes and styles

Cons

  • Limited documentation, which may make it challenging for beginners
  • Some components may require additional configuration or customization
  • Not actively maintained, with the last update being several years ago
  • Potential compatibility issues with newer versions of Vue.js and related libraries

Code Examples

<!-- Example of using a custom component -->
<template>
  <v-card>
    <v-card-title>User Profile</v-card-title>
    <v-card-text>
      <v-text-field v-model="user.name" label="Name"></v-text-field>
      <v-text-field v-model="user.email" label="Email"></v-text-field>
    </v-card-text>
    <v-card-actions>
      <v-btn color="primary" @click="saveProfile">Save</v-btn>
    </v-card-actions>
  </v-card>
</template>

<script>
export default {
  data() {
    return {
      user: {
        name: '',
        email: ''
      }
    }
  },
  methods: {
    saveProfile() {
      // Logic to save user profile
    }
  }
}
</script>
<!-- Example of using the built-in layout system -->
<template>
  <v-app>
    <v-navigation-drawer v-model="drawer" app>
      <!-- Sidebar content -->
    </v-navigation-drawer>
    <v-app-bar app>
      <!-- Top bar content -->
    </v-app-bar>
    <v-main>
      <!-- Main content -->
      <router-view></router-view>
    </v-main>
    <v-footer app>
      <!-- Footer content -->
    </v-footer>
  </v-app>
</template>

<script>
export default {
  data() {
    return {
      drawer: true
    }
  }
}
</script>

Getting Started

  1. Clone the repository:

    git clone https://github.com/lanux/Vue-Admin.git
    
  2. Install dependencies:

    cd Vue-Admin
    npm install
    
  3. Run the development server:

    npm run dev
    
  4. Open your browser and navigate to http://localhost:8080 to view the admin dashboard.

Competitor Comparisons

:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin

Pros of vue-element-admin

  • More comprehensive and feature-rich, offering a wide range of pre-built components and layouts
  • Actively maintained with frequent updates and a large community of contributors
  • Extensive documentation and examples, making it easier for developers to get started

Cons of vue-element-admin

  • Larger codebase and more complex structure, which may be overwhelming for simpler projects
  • Higher learning curve due to the extensive features and customization options
  • Potentially slower initial load times due to the inclusion of many components

Code Comparison

Vue-Admin:

import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello
    }
  ]
})

vue-element-admin:

import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

import Layout from '@/layout'

export const constantRoutes = [
  {
    path: '/redirect',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '/redirect/:path(.*)',
        component: () => import('@/views/redirect/index')
      }
    ]
  }
]

The code comparison shows that vue-element-admin has a more complex routing structure with nested routes and dynamic imports, while Vue-Admin has a simpler approach to routing.

Vuestic Admin is an open-source, ready-to-use admin template suite designed for rapid development, easy maintenance, and high accessibility. Built on Vuestic UI, Vue 3, Vite, Pinia, and Tailwind CSS. Maintained by Epicmax (@epicmaxco).

Pros of vuestic-admin

  • More comprehensive UI components and pre-built pages
  • Better documentation and community support
  • Regular updates and active maintenance

Cons of vuestic-admin

  • Larger bundle size due to more features
  • Steeper learning curve for beginners
  • Less flexibility for customization compared to Vue-Admin

Code Comparison

vuestic-admin:

<va-card>
  <va-card-title>{{ title }}</va-card-title>
  <va-card-content>{{ content }}</va-card-content>
</va-card>

Vue-Admin:

<el-card>
  <div slot="header">{{ title }}</div>
  <div>{{ content }}</div>
</el-card>

The code comparison shows that vuestic-admin uses custom components (va-card), while Vue-Admin relies on Element UI components (el-card). This reflects the different approaches of the two projects, with vuestic-admin offering a more tailored solution and Vue-Admin providing a more flexible foundation.

Both projects serve as Vue.js admin templates, but vuestic-admin offers a more feature-rich and polished experience out of the box. Vue-Admin, on the other hand, provides a simpler starting point that may be easier to customize for specific needs. The choice between the two depends on the project requirements, development team expertise, and desired level of customization.

🎉 vue admin,vue3 admin,vue3.0 admin,vue后台管理,vue-admin,vue3.0-admin,admin,vue-admin,vue-element-admin,ant-design,vab admin pro,vab admin plus,vue admin plus,vue admin pro

Pros of vue-admin-better

  • More active development with recent updates and commits
  • Larger community with more stars and forks on GitHub
  • Comprehensive documentation and examples available

Cons of vue-admin-better

  • Steeper learning curve due to more complex features
  • Potentially heavier and slower performance for simpler projects
  • May require more configuration and setup time

Code Comparison

Vue-Admin:

<template>
  <div class="app-wrapper">
    <sidebar class="sidebar-container"></sidebar>
    <div class="main-container">
      <navbar></navbar>
      <app-main></app-main>
    </div>
  </div>
</template>

vue-admin-better:

<template>
  <el-container class="layout-container-demo">
    <el-aside width="200px">
      <el-menu :default-openeds="['1', '3']">
        <!-- Menu items -->
      </el-menu>
    </el-aside>
    <el-container>
      <el-header style="text-align: right; font-size: 12px">
        <!-- Header content -->
      </el-header>
      <el-main>
        <!-- Main content -->
      </el-main>
    </el-container>
  </el-container>
</template>

The code comparison shows that vue-admin-better uses Element UI components more extensively, providing a more structured and feature-rich layout out of the box. Vue-Admin, on the other hand, has a simpler structure that may be easier to customize for specific needs.

Vue 2.0 admin management system template based on iView

Pros of iview-admin

  • More comprehensive and feature-rich admin template
  • Better documentation and community support
  • Regular updates and maintenance

Cons of iview-admin

  • Steeper learning curve due to its complexity
  • Potentially heavier and slower performance for simpler projects

Code Comparison

Vue-Admin:

<template>
  <div class="layout">
    <Layout>
      <Sider :style="{position: 'fixed', height: '100vh', left: 0, overflow: 'auto'}">
        <!-- Sider content -->
      </Sider>
      <!-- Main content -->
    </Layout>
  </div>
</template>

iview-admin:

<template>
  <Layout class="main" :class="{'hide-text': spanLeft < 5}">
    <Sider :width="spanLeft > 0 ? 200 : 60" :style="{background: '#fff'}">
      <side-menu :active-name="$route.name" :collapsed="spanLeft < 5" @on-select="turnToPage"></side-menu>
    </Sider>
    <!-- Main content -->
  </Layout>
</template>

The code comparison shows that iview-admin uses more advanced features and components, such as dynamic sider width and a custom side-menu component. Vue-Admin, on the other hand, has a simpler structure, which may be easier to understand and customize for beginners.

12,560

An elegant dashboard

Pros of d2-admin

  • More comprehensive documentation and examples
  • Active development with frequent updates
  • Larger community and ecosystem

Cons of d2-admin

  • Steeper learning curve due to more complex architecture
  • Potentially heavier and slower for simpler projects

Code Comparison

Vue-Admin:

<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

d2-admin:

<template>
  <div id="app">
    <router-view/>
    <d2-error-log-box/>
  </div>
</template>

<script>
import d2ErrorLogBox from './components/d2-error-log-box'
export default {
  name: 'App',
  components: { d2ErrorLogBox }
}
</script>

The code comparison shows that d2-admin includes additional components like error logging out of the box, which can be beneficial for larger projects but may be unnecessary for simpler applications.

Both projects provide solid foundations for building Vue.js admin interfaces, with d2-admin offering more features and complexity, while Vue-Admin focuses on simplicity and ease of use. The choice between them depends on the specific requirements of your project and your team's expertise with Vue.js.

A modern vue admin panel built with Vue3, Shadcn UI, Vite, TypeScript, and Monorepo. It's fast!

Pros of vue-vben-admin

  • More comprehensive and feature-rich admin template
  • Better TypeScript support and integration
  • Actively maintained with frequent updates

Cons of vue-vben-admin

  • Steeper learning curve due to its complexity
  • Potentially overkill for smaller projects
  • Heavier bundle size

Code Comparison

Vue-Admin (using Vue 2):

<template>
  <div id="app">
    <!-- Basic layout structure -->
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

vue-vben-admin (using Vue 3 and TypeScript):

<template>
  <ConfigProvider :locale="getAntdLocale">
    <AppProvider>
      <RouterView />
    </AppProvider>
  </ConfigProvider>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { AppProvider } from '/@/components/Application';
import { ConfigProvider } from 'ant-design-vue';
import { useLocale } from '/@/locales/useLocale';

export default defineComponent({
  name: 'App',
  components: { AppProvider, ConfigProvider },
  setup() {
    const { getAntdLocale } = useLocale();
    return { getAntdLocale };
  },
});
</script>

The code comparison shows that vue-vben-admin uses Vue 3 with TypeScript, offering more advanced features and type safety. It also incorporates additional components like ConfigProvider and AppProvider, demonstrating its more comprehensive approach to building admin interfaces.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

友情链接:【react-admin】持续更新 演示地址

演示地址

账号密码任意

Build Setup

npm install

# 修改文件内容/build/webpack.base.conf.js,将element-ui和vuex-router-sync版本替换成install后node_modules目录中当前版本,注意不能用软链
#      {
#        test: /\.js$/,
#        loader: 'babel-loader',
#        //exclude: /(node_modules|bower_components)/,
#        // 注意elementUI的源码使用ES6需要解析
#        include: [
#          resolve('src'),
#          resolve('test'),
#          resolve('/node_modules/.1.4.8@element-ui/src'),
#          resolve('/node_modules/.1.4.8@element-ui/packages'),
#          resolve('/node_modules/.4.3.0@vuex-router-sync')
#        ]
#      },


# serve with hot reload at localhost:9000
npm run dev
npm run build

npm run mock
  1. 启动mock服务 npm run mock
  2. 启动dev server npm run dev
  • 打包发布,修改根路径名

  1. 修改 ./Vue-Admin/config/index.js 参数:build.assetsPublicPath
//eg.  assetsPublicPath: '/Vue-Admin/'
assetsPublicPath: 'Your path name';
  1. 修改 ./Vue-Admin/src/api.js
// export const CONTEXT = './Vue-Admin';
export const CONTEXT = 'Your path name';
cnpm i json-server -D
cnpm i json-server -S
npm outdated:检查包是否已经过时,此命令会列出所有已经过时的包,可以及时进行包的更新
npm update moduleName:更新node模块
npm uninstall moudleName:卸载node模块

页面截图