1.效果展示
2.实例代码
<body>标签:
<div id=wrapper>
<button @click="disDrawer = true" >弹出抽屉</button>
<el-drawer
:title="标题"
:visible.sync="disDrawer"
size="50%">
<div class="form-center">
<div class="form-boder">
<el-row>
<el-col :span="6">
<span class="form-boder-title">字段1:</span>
<span>xxx</span>
</el-col>
<el-col :span="6">
<span class="form-boder-title">字段2:</span>
<span>xxx</span>
</el-col>
<el-col :span="6">
<span class="form-boder-title">字段3:</span>
<span>xxx</span>
</el-col>
<el-button @click="add" type="primary" size="mini" style="float: right;">新增</el-button>
</el-row>
<el-dialog title="新增" :visible.sync="dialogFormVisible" :append-to-body='true' :close-on-click-modal="false">
<el-form ref="addData" :model="dataForm" :rules="rules">
<el-form-item label="col1" prop="col1" >
<el-input type="text" placeholder="请输入col1" clearable v-model="dataForm.col1" style="width: 180px">
</el-form-item>
<el-form-item label="col2" prop="col2" >
<el-input type="text" placeholder="请输入col2" clearable v-model="dataForm.col2" style="width: 180px">
</el-input>
</el-form-item>
</el-form>
<div slot=