1.avue-crud顶部操作按钮插槽;
<template slot="menuLeft" slot-scope="{ size }">
<div class="left">
<div class="btn">
<el-button type="primary" size="small" @click="onBatchResend">批量重发</el-button>
</div>
<div class="numBox">
<div class="label">发送消息(次):
<span class="value">{{ successNum }}</span>
</div>
<div class="label">发送成功率(%):
<span class="value">{{ successPercent }}</span>
</div>
</div>
</div>
<Tabs :tabs="topTabs" @changeTab="changeTab" />
</template>
2.avue-crud列数据插槽;
<template slot-scope="{row}" slot="status">
<el-tag :type="row.status == '0' ? 'success' : 'danger'" size="mini">{{ row.status == '0' ? '已启用' : '未启用'
}}
</el-tag>
</template>
3.avue-crud行操作按钮插槽;
<template slot-scope="scope" slot="menu">
<el-button type="text" size="mini" @click="onResend(scope.row)">重发</el-button>
</template>