Commit a19dd062 by xue_wengang

按钮插槽

parent 77d26ccf
...@@ -834,6 +834,7 @@ ...@@ -834,6 +834,7 @@
" "
> >
<template slot-scope="scope"> <template slot-scope="scope">
<slot name="btnGroup" :scope="scope"></slot>
<span <span
@click="edit(scope)" @click="edit(scope)"
class="edit" class="edit"
......
...@@ -15,7 +15,21 @@ ...@@ -15,7 +15,21 @@
@editRole="editRole" @editRole="editRole"
@selectionChange="selectionChange" @selectionChange="selectionChange"
@handleSwitch="handleSwitch" @handleSwitch="handleSwitch"
></right-content> >
<!-- <template #btnGroup="scope">
<span
@click="editRole(scope.scope)"
class="edit"
style="margin-right: 16px"
>角色配置</span
>
<span @click="edit(scope.scope)" class="edit" style="margin-right: 16px"
>修改</span
>
<span @click="dele(scope.scope)" class="dele">删除</span>
</template> -->
</right-content
>
<el-dialog <el-dialog
title="角色管理" title="角色管理"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment