element-ui属性使用整理

在标签的属性前加:html

<el-row :gutter="10"><el-row>

若是属性类型为Number:vue

<el-col :xs="8" :sm="6" :md="4" :lg="3"><el-con>

若是属性类型为Object:  flex

<el-col :xs="{span:24,offset:0}"><el-col>

若是属性类型为string:  spa

<el-row type="flex"><el-row>

若是属性类型为boolean:code

<el-button :plain="true" :disabled="true">主要按钮</el-button>

若是报错:htm

<el-button plain disabled>主要按钮</el-button>

 

 

至于为什么有些属性须要带:有些不须要,blog

:大概是vue里面的v.bind,将这些组件的属性绑定上去,html原来标签属性不须要加:string

相关文章
相关标签/搜索