Commit a0114ca5 authored by 何虹's avatar 何虹 💬

表格行点击事件暴露参数更改

parent c3a22ea3
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
} }
}, },
methods: { methods: {
handleClick(item) { handleClick(row, item) {
const { click } = item const { click } = item
switch (click) { switch (click) {
case 'addRow': case 'addRow':
......
...@@ -733,7 +733,7 @@ export default { ...@@ -733,7 +733,7 @@ export default {
if (type === 'string' && click.startsWith('$')) { if (type === 'string' && click.startsWith('$')) {
const item_ = Object.assign({}, item) // 拷贝一份item const item_ = Object.assign({}, item) // 拷贝一份item
item_.click = item_.click.substr(1) item_.click = item_.click.substr(1)
this.$emit('handleClick', row, item,bindEntity) this.$emit('handleClick', row, item, bindEntity)
} else if (type === 'function') { } else if (type === 'function') {
click(row, item, bindEntity) click(row, item, bindEntity)
} }
......
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