From 675dff92c17cdfc7516e30e735778873dad3d744 Mon Sep 17 00:00:00 2001 From: John60676 Date: Fri, 18 Sep 2020 22:52:17 +0800 Subject: [PATCH] fix(vc-tabs): tabs vue warning (#2865) --- components/vc-tabs/src/TabPane.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/vc-tabs/src/TabPane.jsx b/components/vc-tabs/src/TabPane.jsx index e1742a3b4..640c8067c 100644 --- a/components/vc-tabs/src/TabPane.jsx +++ b/components/vc-tabs/src/TabPane.jsx @@ -17,7 +17,7 @@ export default { }, setup() { return { - _isActived: undefined, + isActived: undefined, sentinelContext: inject('sentinelContext', {}), }; }, @@ -25,14 +25,14 @@ export default { const { destroyInactiveTabPane, active, forceRender, rootPrefixCls } = this.$props; const children = getSlot(this); const placeholder = getComponent(this, 'placeholder'); - this._isActived = this._isActived || active; + this.isActived = this.isActived || active; const prefixCls = `${rootPrefixCls}-tabpane`; const cls = { [prefixCls]: 1, [`${prefixCls}-inactive`]: !active, [`${prefixCls}-active`]: active, }; - const isRender = destroyInactiveTabPane ? active : this._isActived; + const isRender = destroyInactiveTabPane ? active : this.isActived; const shouldRender = isRender || forceRender; const { sentinelStart,