[Vuejs]-Element UI Button block

4👍

Keep in mind that vue dispatches the style/class prop to the parent element of your component.

So the following should work:

<el-button style="width: 100%">Default</el-button>

0👍

You can make it by adding a full-width column in it,
like so.

<el-row>
         <el-col :span="24">
             <el-button type="primary"> Your Button Here </el-button>
         </el-col>
 </el-row>
👤Rhenz

Leave a comment