element-ui中el-dialog使⽤技巧
长脸男生发型设计项⽬需求需要在弹框的标题⾏添加下载按钮,⼀开始看官⽅⽂档,没有找到解决⽅法,官⽅的按钮都是放在弹框底部的,官⽅⽂档中有个slot,没看懂啥意思,但是解决的⽅法就是它
利⽤插巢slot给el-dialog弹框标题添加下载按钮
<el-dialog
v-dialogDrag英语冠军
top="25vh"
:visible.sync="dialogFormVisible"
append-to-bodygs什么意思
:clo-on-click-modal=fal
>
breathe again<div slot="title" class="header-title">
westbrook<span> {{this.tableTitle}} </span>
<download-excel :data="tableData" :fields="json_fields" :name="fileName">
<el-button type="primary" id="exportBtn" >导出</el-button>
</download-excel>
advancement</div>
</el-dialog>
因为英语利⽤插巢slot给el-dialog弹框标题添加图标及标题,弹框内嵌套表格
旗开得胜 英文版<el-dialog :title="title" :visible.sync="dialogVisible">
<div slot="title" class="header-title">
bnn<img :src="src" alt="">
<span>{{title}}</span>
</div>
<el-table :data="gridData" height="308">
<el-table-column property="date" label="⽇期" width="80" align="center"></el-table-column>
<el-table-column property="name" label="名称" width="120"></el-table-column>
<el-table-column property="address" label="地址" show-overflow-tooltip></el-table-column>
</el-table>
</el-dialog>henkel