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

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

parent c3a22ea3
......@@ -8,7 +8,7 @@
v-on="$listeners"
>
<div slot="body">
<!-- <dyncFormComponent
<!-- <dyncFormComponent
@searchSubmit='query'
type='queryArea'
:formParms='searchForm'
......@@ -96,7 +96,7 @@ export default {
}
},
methods: {
handleClick(item) {
handleClick(row, item) {
const { click } = item
switch (click) {
case 'addRow':
......
......@@ -733,7 +733,7 @@ export default {
if (type === 'string' && click.startsWith('$')) {
const item_ = Object.assign({}, item) // 拷贝一份item
item_.click = item_.click.substr(1)
this.$emit('handleClick', row, item,bindEntity)
this.$emit('handleClick', row, item, bindEntity)
} else if (type === 'function') {
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