avue 自定义按钮位置大全
新增弹框底部按钮</template> -->` <!-- 导入数据 --><!-- <template slot="menuForm"><el-uploadstyle="display: inline-block; margin-left: 10px"ref="upload":limit="1"action="/api/blade_basic
·
新增弹框底部按钮
<template slot="menuForm">
<el-upload
style="display: inline-block; margin-left: 10px"
ref="upload"
:limit="1"
action="/api/blade_basic/company/import-company"
:data="{ isCovered: 1 }"
:on-success="uploadSuccess"
:on-progress="uploadprogress"
>
<el-button type="success" size="small" icon="el-icon-plus"
>导入数据
</el-button>
</el-upload>
</template> `
列表 列表按钮
<template slot-scope="scope" slot="menu">
<el-button
type="text"
icon="el-icon-view"
size="small"
@click.stop="handleEdit(scope.row)"
>审核</el-button
>
</template>
slot=“xq” 是prop的值
<template slot="xq" slot-scope="scope">
<!-- <el-tag @click="addSchool(scope.row)">新增</el-tag> -->
<el-tag @click="lookSchool(scope.row)" style="margin-left:10px">查看</el-tag>
</template>
更多推荐
已为社区贡献11条内容
所有评论(0)