Former-commit-id: ab8efad363a2f1602c451f896366f454f840d25f [formerly ab8efad363a2f1602c451f896366f454f840d25f [formerly ab8efad363a2f1602c451f896366f454f840d25f [formerly ab8efad363a2f1602c451f896366f454f840d25f [formerly c9b73d210e1a62667cb62b37ace4e9471ef90e87 [formerly adc99648f4a6320caf8ce8d257424c273119e39d]]]]]
Former-commit-id: aa172c69b22148896cc6e27c5599fe42a0afc2f7
Former-commit-id: 83ecac80bd8d0066cf16e991f7449e257f08d817
Former-commit-id: 91f38ffb3a34d4ed1b605c2507720945d2a62b0d [formerly 2433e6394eeff33d424d1dc853c9db30dd72885e]
Former-commit-id: dad524c86d20f6d9fc4822502a350a97f3235a08
Former-commit-id: 594e49eb23e82b6dd3174a2aeec69915d582dece
Former-commit-id: e84456f20504cbb9b663a9a231099ced8655ff0d
Former-commit-id: 2fb4d85611c343221b5e02bac54a1fcaa9e25a46
Former-commit-id: 2a2229b3f0540538280ecbaabe92fe3fe3d496dd
This commit is contained in:
孙昊翔
2018-12-25 09:58:50 +08:00
parent 9d4a9af5aa
commit 8dae631c72
3 changed files with 21 additions and 3 deletions

View File

@@ -2,7 +2,8 @@ export default `<template>
<div>
<d2-crud
:columns="columns"
:data="data"/>
:data="data"
@cell-data-change="cellDataChange"/>
</div>
</template>
@@ -73,6 +74,14 @@ export default {
}
]
}
},
methods: {
cellDataChange ({rowIndex, key, value, row}) {
console.log(rowIndex)
console.log(key)
console.log(value)
console.log(row)
}
}
}
</script>`