diff --git a/src/components/Table/TableFormatters/ConfirmOrIgnore.vue b/src/components/Table/TableFormatters/ConfirmOrIgnore.vue index 842590d32..382bd803d 100644 --- a/src/components/Table/TableFormatters/ConfirmOrIgnore.vue +++ b/src/components/Table/TableFormatters/ConfirmOrIgnore.vue @@ -1,14 +1,25 @@ @@ -22,7 +33,12 @@ export default { formatterArgsDefault: { type: Object, default() { - return {} + return { + confirm: ({ row, cellValue }) => { + }, + ignore: ({ row, cellValue }) => { + } + } } } }, @@ -46,17 +62,33 @@ export default { return this.cellValue } } + }, + methods: { + handleConfirm() { + this.formatterArgs.confirm({ row: this.row, cellValue: this.cellValue }) + }, + handleIgnore() { + this.formatterArgs.ignore({ row: this.row, cellValue: this.cellValue }) + } } } -