From e86617f64a73dfba3f3f9cbff9cfd9b446a33cc4 Mon Sep 17 00:00:00 2001 From: Kobi Date: Thu, 12 Oct 2023 16:03:36 +0800 Subject: [PATCH] =?UTF-8?q?BI-134832=20feat:=20router=20view=E6=94=AF?= =?UTF-8?q?=E6=8C=81removeTab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/router/router.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/fineui/src/router/router.js b/packages/fineui/src/router/router.js index f58c8402b..8f19a7591 100644 --- a/packages/fineui/src/router/router.js +++ b/packages/fineui/src/router/router.js @@ -1,4 +1,4 @@ -import { nextTick, shortcut, Widget, isNotNull, each } from '@/core'; +import {nextTick, shortcut, Widget, isNotNull, each, any, isEqual} from '@/core'; import { Tab } from '@/base'; import { Router } from './0.router'; import { Fix } from '../fix'; @@ -3134,6 +3134,14 @@ export class RouterView extends Widget { }; } + removeTab(path) { + this.tab.removeTab(path); + } + + setSelect(path) { + this.tab.setSelect(path); + } + destroyed() { // BI.remove方法会把第二个参数当迭代器执行导致方法多执行一遍 cbs.splice(cbs.indexOf(this._callbackListener), 1);