Commit c2681e2b9a0af01f1af6484f3c0a3922560e264b
1 parent
b4d55494
Exists in
master
and in
2 other branches
fix: 修复表格编辑器传参
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
packages/table/editable.vue
| @@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
| 51 | @edit-confirm="value => onEditConfirm(value, row, column, $index)" | 51 | @edit-confirm="value => onEditConfirm(value, row, column, $index)" |
| 52 | > | 52 | > |
| 53 | <template v-if="$scopedSlots[`editor-${item.prop}`]" slot="editor"> | 53 | <template v-if="$scopedSlots[`editor-${item.prop}`]" slot="editor"> |
| 54 | - <slot :name="`editor-${item.prop}`" :value="row[column.property]" :onInput="value => onCellInput(value, row, column, $index)"></slot> | 54 | + <slot :name="`editor-${item.prop}`" :value="row[column.property]" :row="row" :index="$index" :onInput="value => onCellInput(value, row, column, $index)"></slot> |
| 55 | </template> | 55 | </template> |
| 56 | <template v-if="$scopedSlots[`cell-${item.prop}`]"> | 56 | <template v-if="$scopedSlots[`cell-${item.prop}`]"> |
| 57 | <slot :name="`cell-${item.prop}`" :value="row[column.property]" :row="row" :index="$index"></slot> | 57 | <slot :name="`cell-${item.prop}`" :value="row[column.property]" :row="row" :index="$index"></slot> |