vue-stack-tabs 0.1.33 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -315,6 +315,16 @@ export default () => {
315
315
  scroller.set(sId, { top: 0, left: 0 })
316
316
  }
317
317
  }
318
+ // use new url for renwTab like refresh tab
319
+ const renewTab = (tab: ITabData) => {
320
+ const currentTab = getTab(tab.id!)
321
+ for (const item of currentTab!.pages.list()) {
322
+ removeComponent(item.id)
323
+ markDeletableCache(item.id)
324
+ }
325
+ removeDeletableCache()
326
+ currentTab!.pages.clear()
327
+ }
318
328
  /**
319
329
  * if id is null , then remove all tab that deleted is true
320
330
  * @param id
@@ -659,6 +669,7 @@ export default () => {
659
669
  removeRightTabs,
660
670
  removeOtherTabs,
661
671
  hasTab,
672
+ renewTab,
662
673
  addPage,
663
674
  addComponent,
664
675
  getComponent,