Vue3 has been out for a while, and element has also updated its version to be compatible with vue3. Here is a brief introduction on how to use element-plus 1. Installationnpm install element-plus --save 2. Import in main.jsimport { createApp, Vue } from 'vue'; import ElementPlus from 'element-plus'; import 'element-plus/dist/index.css'; import App from './App.vue'; const app = createApp(App) app.use(ElementPlus) app.mount('#app') 3. UseHere we use the button <el-row> <el-button>Default button</el-button> <el-button type="primary">Primary button</el-button> <el-button type="success">Success button</el-button> <el-button type="info">Information button</el-button> <el-button type="warning">Warning button</el-button> <el-button type="danger">Danger button</el-button> </el-row> For details, please refer to the official documentation This is the end of this article about how to use element-plus in Vue3. For more information about how to use element-plus in Vue3, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: A brief analysis of the function calling process under the ARM architecture
>>: The magic of tbody tag speeds up the display of table content
Table of contents Install vim plugin manager Add ...
npx usage tutorial Tonight, when I was learning V...
1. Command Introduction The cal (calendar) comman...
In this article, we sorted out the startup proces...
1. What is the cardinality? Cardinality refers to...
How to check the file system type of a partition ...
There are three ways to start a springboot projec...
Disclaimer: Since the project requires the use of...
CSS plays a very important role in a web page. Wi...
1. Docker pull pulls the image When using $ docke...
Table of contents 1. Project folder structure 1. ...
The operating environment of this tutorial: Windo...
Many concepts in UI design may seem similar in wo...
Table of contents Installation Steps Environment ...
With the rise of mobile terminals such as iPad, p...