Former-commit-id: f4beefe1f777778b9d3271748e997476b37b335d [formerly f4beefe1f777778b9d3271748e997476b37b335d [formerly f4beefe1f777778b9d3271748e997476b37b335d [formerly f4beefe1f777778b9d3271748e997476b37b335d [formerly 615eb77a50556807780cc416ab14dcad1b773c8f [formerly f4c208f5d043f1dba590a5050e7cbc52e37c4c82]]]]]
Former-commit-id: 51207b22705c09fb6e9ddbf5759ea6cb03e86253
Former-commit-id: c16927ecbc2bb823e8b5686177e3c63cc89f8d18
Former-commit-id: 927289c443ca4baefd4bf022cc964152a4468c10 [formerly 4fb498623fe0979195368082b9fc428ccff6ca91]
Former-commit-id: 349c706eec638ee588c0403385c1cefd77b90bd3
Former-commit-id: e89ed866096a2efe9e8117bb202f3f973c91fc40
Former-commit-id: 9f977d211be26a3d2852abeeba3ce3cf5255419f
Former-commit-id: 23e8336f4caac10d7d46d1168fa396123a71b27b
Former-commit-id: db1799cd572609ca4e744c3f8b2a77865c83832b
This commit is contained in:
孙昊翔
2018-12-24 10:04:54 +08:00
parent d610c35262
commit 46ad024bdf
2 changed files with 22 additions and 2 deletions

View File

@@ -4,7 +4,8 @@ export default `<template>
:columns="columns"
:data="data"
:options="options"
:rowHandle="rowHandle"/>
:rowHandle="rowHandle"
@row-remove="handleRowRemove"/>
</div>
</template>
@@ -107,6 +108,15 @@ export default {
}
}
}
},
methods: {
handleRowRemove ({index, row}, done) {
this.$message({
message: '删除成功',
type: 'success'
})
done()
}
}
}
</script>`

View File

@@ -5,7 +5,8 @@
:columns="columns"
:data="data"
:options="options"
:rowHandle="rowHandle"/>
:rowHandle="rowHandle"
@row-remove="handleRowRemove"/>
<el-card shadow="never" class="d2-mb">
<d2-markdown :source="doc"/>
</el-card>
@@ -123,6 +124,15 @@ export default {
}
}
}
},
methods: {
handleRowRemove ({index, row}, done) {
this.$message({
message: '删除成功',
type: 'success'
})
done()
}
}
}
</script>