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

相关推荐
蟾宫曲5 小时前
在 Vue3 项目中实现计时器组件的使用(Vite+Vue3+Node+npm+Element-plus,附测试代码)
前端·npm·vue3·vite·element-plus·计时器
秋雨凉人心5 小时前
简单发布一个npm包
前端·javascript·webpack·npm·node.js
liuxin334455665 小时前
学籍管理系统:实现教育管理现代化
java·开发语言·前端·数据库·安全
qq13267029405 小时前
运行Zr.Admin项目(前端)
前端·vue2·zradmin前端·zradmin vue·运行zradmin·vue2版本zradmin
LCG元6 小时前
Vue.js组件开发-使用vue-pdf显示PDF
vue.js
魏时烟6 小时前
css文字折行以及双端对齐实现方式
前端·css
哥谭居民00017 小时前
将一个组件的propName属性与父组件中的variable变量进行双向绑定的vue3(组件传值)
javascript·vue.js·typescript·npm·node.js·css3
烟波人长安吖~7 小时前
【目标跟踪+人流计数+人流热图(Web界面)】基于YOLOV11+Vue+SpringBoot+Flask+MySQL
vue.js·pytorch·spring boot·深度学习·yolo·目标跟踪
踢足球的,程序猿7 小时前
Android native+html5的混合开发
javascript
2401_882726487 小时前
低代码配置式组态软件-BY组态
前端·物联网·低代码·前端框架·编辑器·web