From 8d2bcbfc8f21888448e24a907c0eb8e60e0867a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Tue, 23 Jun 2020 16:25:46 +0800 Subject: [PATCH] Table add event @on-expand-tree --- src/components/table/table.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 552a18f5..dc71545e 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -846,6 +846,7 @@ data._isShowChildren = !data._isShowChildren; this.updateDataStatus(rowKey, '_showChildren', data._isShowChildren); + this.$emit('on-expand-tree', rowKey, data._isShowChildren); }, /** * @description 当修改某内置属性,如 _isShowChildren 时,因当将原 data 对应 _showChildren 也修改,否则修改 data 时,状态会重置