ElementUI Form:Upload 上传

ElementUI安装与使用指南

Upload 上传

点击下载learnelementuispringboot项目源码

效果图


el-upload.vue(Upload上传)页面效果图



el-upload.vue代码

bash 复制代码
import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import ElementUI from "@/views/ElementUI.vue";
import PagePath from "@/components/PagePath.vue";
import ElButton from "@/views/el-button.vue";
import ElLink from "@/views/el-link.vue";
import ElRadio from "@/views/el-radio.vue";
import ElRow_elCol from "@/views/el-row_el-col.vue";
import ElContainer from "@/views/el-container.vue";
import ElContainerExample from "@/views/el-container-example.vue";
import ElCheckbox from "@/views/el-checkbox.vue";
import ElInput from "@/views/el-input.vue";
import ElInputNumber from "@/views/el-input-number.vue";
import ElSwitch from "@/views/el-switch.vue";
import ElUpload from "@/views/el-upload.vue";

Vue.use(VueRouter)

const routes = [
  {
    path: PagePath.el_upload,
    name: 'el-upload',
    component: ElUpload
  },
  {
    path: PagePath.el_switch,
    name: 'el-switch',
    component: ElSwitch
  },
  {
    path: PagePath.el_input_number,
    name: 'el-input-number',
    component: ElInputNumber
  },
  {
    path: PagePath.el_input,
    name: 'el-input',
    component: ElInput
  },
  {
    path: PagePath.el_checkbox,
    name: 'el-checkbox',
    component: ElCheckbox
  },
  {
    path: PagePath.el_container_example,
    name: 'el-container-example',
    component: ElContainerExample
  },
  {
    path: PagePath.el_container,
    name: 'el-container',
    component: ElContainer
  },
  {
    path: PagePath.el_row_el_col,
    name: 'el-row_el-col',
    component: ElRow_elCol
  },
  {
    path: PagePath.el_radio,
    name: 'el-link',
    component: ElRadio
  },
  {
    path: PagePath.el_link,
    name: 'el-link',
    component: ElLink
  },
  {
    // path: '/el_button',
    // path: PagePath.data().el_button,
    path: PagePath.el_button,
    name: 'el-button',
    component: ElButton
  },
  {
    path: '/element_ui',
    name: 'element-ui',
    component: ElementUI
  },
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router

Attribute



Slot

Methods

相关推荐
ErMao1 分钟前
TypeScript的泛型工具集合
前端·javascript
涔溪12 分钟前
如何解决微前端架构中主应用和微应用的通信问题?
前端·架构
重铸码农荣光34 分钟前
深入理解 JavaScript 原型链:从 Promise.all 到动态原型的实战探索
前端·javascript·promise
进击的野人39 分钟前
深入理解 Async/Await:现代 JavaScript 异步编程的优雅解决方案
javascript·面试·ecmascript 6
我叫黑大帅41 分钟前
什么叫可迭代对象?为什么要用它?
前端·后端·python
颜渊呐42 分钟前
Vue3 + Less 实现动态圆角 TabBar:从代码到优化实践
前端·css
PineappleCoder1 小时前
pnpm 凭啥吊打 npm/Yarn?前端包管理的 “硬链接魔法”,破解三大痛点
前端·javascript·前端工程化
fruge1 小时前
前端文档自动化:用 VitePress 搭建团队技术文档(含自动部署)
运维·前端·自动化
CoolerWu2 小时前
TRAE SOLO实战成功展示&总结:一个所见即所得的笔记软体
前端·javascript
Cassie燁2 小时前
el-button源码解读1——为什么组件最外层套的是Vue内置组件Component
前端·vue.js