Skip to content
On this page

Get Start

An import excel component based on element-plus

Install

sh
$ npm install element-excel-import

Full import

typescript
// main.ts
import { createApp } from 'vue'
import ImportView from 'element-import-excel'
import 'element-import-excel/dist/index.css'
import App from './App.vue'

const app = createApp(App)

app.use(ImportView)
app.mount('#app')

Page import

vue
<template>
    <import-view />
</template>

<script lang="ts" setup>
import { ImportView } from 'element-import-excel'
import 'element-import-excel/dist/index.css'
</script>