From website: Go to Visual Studio Code Marketplace, and search 'Element UI Snippets', then click the install button.
From VS Code: click extensions sidebar, and search 'Element UI Snippets', then click the install button.
Special Instruction
For the components like el-table which need children components to be its content, use v-for to loop to generate the children components.
Snippets List
All the Element UI tags below, ignore the closure and more detailed information. Such as elr to <el-radio>, actually that represents <el-radio v-model="${1}" label="${2}">$3</el-radio>
The sinppets' order follows the order of the components of Guide on Element UI official website basically.
Totally 108 snippets. Will add more if necessary.
Only work in .vue file for now.
Basic Part
No.
Trigger Key
Element Tag
1.
elrow
<el-row>
2.
elcol
<el-col>
3.
elhc
hidden-xs-only,hidden-sm-only,etc
4.
elcon
<el-container>
5.
elas
<el-aside>
6.
elhe
<el-header>
7.
elma
<el-main>
8.
elfo
<el-footer>
9.
elcb
#409EFF
10.
elcs
#67C23A
11.
elcw
#E6A23C
12.
elcd
#F56C6C
13.
elci
#909399
14.
elcpt
#303133
15.
elcrt
#606266
16.
elcst
#909399
17.
elcht
#C0C4CC
18.
elcbb
#DCDFE6
19.
elclb
#E4E7ED
20.
elclrb
#EBEEF5
21.
elelb
#DCDFE6
22.
eltypo
font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;