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

相关推荐
疏狂难除3 分钟前
【Tauri2】013——前端Window Event与创建Window
前端·javascript·rust·react·tauri2
yanyu-yaya27 分钟前
@progress/kendo-react-dropdowns <ComboBox>组件报错,解决
前端·javascript·react.js
小破孩呦32 分钟前
动态循环表单+动态判断表单类型+动态判断表单是否必填方法
前端·javascript·html
ElasticPDF-新国产PDF编辑器1 小时前
React PDF Annotation plugin library online API examples
前端·react.js·pdf
爱看书的小沐1 小时前
【小沐学Web3D】three.js 加载三维模型(React Three Fiber)
javascript·react.js·webgl·three.js·opengl·web3d·reactthreefiber
Eva2156651 小时前
Flask+Vue构建图书管理系统及Echarts组件的使用
vue.js·flask·echarts
Bruce_Liuxiaowei2 小时前
构建macOS命令速查手册:基于Flask的轻量级Web应用实践
前端·macos·flask
Python私教2 小时前
安装electron项目是为什么要执行postinstall script
前端·javascript·electron
shmily_yyA3 小时前
Nextjs15 实战 - React Notes之SidebarNoteList优化和Suspense的使用
前端·react.js·前端框架
知识分享小能手3 小时前
CSS3学习教程,从入门到精通, 化妆品网站 HTML5 + CSS3 完整项目(26)
前端·javascript·css·学习·css3·html5·媒体