前言
由于 Vue 3 不再支持 IE11,Element Plus 也不再支持 IE 浏览器。
一、安装
# NPM
$ npm install element-plus --save
# Yarn
$ yarn add element-plus
# pnpm
$ pnpm install element-plus
根据不同的 CDN 提供商有不同的引入方式, 我们在这里以
unpkg和jsDelivr举例。 你也可以使用其它的 CDN 供应商。
// unpkg
<head>
<!-- Import style -->
<link rel="stylesheet" href="//unpkg.com/element-plus/dist/index.css" />
<!-- Import Vue 3 -->
<script src="//unpkg.com/vue@3"></script>
<!-- Import component library -->
<script src="//unpkg.com/element-plus"></script>
</head>