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
1. Solution 1.1 Describing the interface context-...
Table of contents 1. Where to write JavaScript 2....
1. Mental Journey When I was writing the cockpit ...
Question: What is the difference between int(1) a...
50 lines of code to change 5 skin colors, includi...
Priority The reason why placing the same conditio...
Last time we talked about some SQL query optimiza...
Preface A classmate is investigating MLSQL Stack&...
I just bought an Alibaba Cloud host and couldn’t ...
Table of contents 1. Introduction to FastDFS 1. I...
Note: This article has been translated by someone ...
Use CSS filter to write mouse over effect <div...
Table of contents Components - Timeline Custom no...
Download the official website Choose the version ...
Table of contents Network Information Modify the ...