问题描述:在开发过程中会使用到VDistpicker地区插件,但是如果el-form标签中使用VDistpicker地区插件时,经常会出现页面布局错位等现象。
解决办法:在el-form标签里面使用el-row标签去包裹el-col标签
代码示例:
<el-dialog :title="title" :visible.sync="open" width="850px">
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-row>
<el-col :span="24">
<el-form-item label="区域" prop="area">
<v-distpicker
:province="this.placeholders.province"
:city="this.placeholders.city"
:area="this.placeholders.area"
@selected="selectArea"
:disabled="true"
></v-distpicker>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="cancel">返 回</el-button>
</div>
</el-dialog>