Unverified Commit c4e48688 by Sendya

chore: table a-swtich checked,record

parent de613635
......@@ -79,7 +79,6 @@ export default {
const subItem = [h('span', { slot: 'title' }, [this.renderIcon(h, menu.meta.icon), h('span', [menu.meta.title])])]
const itemArr = []
const pIndex_ = pIndex + '_' + index
console.log('menu', menu)
if (!menu.hideChildrenInMenu) {
menu.children.forEach(function (item, i) {
itemArr.push(this2_.renderItem(h, item, pIndex_, i))
......
......@@ -95,6 +95,7 @@
</div>
</template>
<template slot="action" slot-scope="text, record, index">
<a-switch checkedChildren="开" unCheckedChildren="关" @change="(checked) => switchChange(checked, record)"></a-switch>
<div class="editable-row-operations">
<span v-if="record.editable">
<a @click="() => save(record)">保存</a>
......@@ -220,6 +221,9 @@ export default {
cancel (row) {
row.editable = false
},
switchChange (checked, record) {
console.log('checked', checked, record)
},
onSelectChange (selectedRowKeys, selectedRows) {
this.selectedRowKeys = selectedRowKeys
......
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