Commit 123f20d3 by luyt

add:gltablebutton文档调整

1 parent fd13739a
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
<!-- <content> --> <!-- <content> -->
<GLTable ref="liveRoomRef" :tableParams="tableParams" :tableData="tableData">
<GLTable ref="liveRoomRef" :tableParams="tableParams" :tableData="tableData">
<span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope"> <span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- test 更多操作 --> <!-- test 更多操作 -->
...@@ -7,6 +8,8 @@ ...@@ -7,6 +8,8 @@
</span> </span>
</GLTable> </GLTable>
<el-button type="warning" @click="toggleShow(1)">显示代码</el-button> <el-button type="warning" @click="toggleShow(1)">显示代码</el-button>
```js {mixin:true} ```js {mixin:true}
...@@ -128,7 +131,7 @@ ...@@ -128,7 +131,7 @@
} }
}, },
{ {
type: 'GLButton', type: 'el-button',
name: row => { name: row => {
return '新增2' return '新增2'
}, },
...@@ -267,6 +270,7 @@ ...@@ -267,6 +270,7 @@
}, },
attrs: { attrs: {
type: 'text', type: 'text',
// GLButton需要传递 fn
fn:'1-1-1-1' fn:'1-1-1-1'
}, },
listeners: { listeners: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!