# 更新日志
# 1.2.11 (opens new window) (2021-12-20)
# Bug Fixes
- routerPage: 修复
this.$vnode.data.key
不存在时,动态页签无法更新 (4aa2e96 (opens new window)), closes #138 (opens new window)
# 1.2.10 (opens new window) (2021-12-17)
# Bug Fixes
- pageLeave: 页面实例不存在报错 (2a6265d (opens new window))
# 1.2.9 (opens new window) (2021-12-09)
# Bug Fixes
- routerpage: 修复非激活的页签
routeTab
更新会更改当前激活页签信息 (closes #135 (opens new window)) (ff017a4 (opens new window)) - TabItem: 修复 Vue Router
tag prop is deprecated
警告 (d969248 (opens new window)), closes #134 (opens new window)
# 1.2.8 (opens new window) (2021-11-05)
# Bug Fixes
- TabScroll: 修复错误
TypeError: Cannot read properties of undefined (reading 'clientWidth')
(9cf924c (opens new window)), closes #131 (opens new window)
# 1.2.7 (opens new window) (2021-06-03)
# Bug Fixes
- RouterAlive: 解决由于 Vue v2.6.13 版本 KeepAlive 精简了缓存组件的数据,导致移除缓存失败 (93f8418 (opens new window)), closes #121 (opens new window)
# 1.2.6 (opens new window) (2021-05-09)
# Bug Fixes
- DragSort: 修复双核浏览器兼容模式下拖拽排序失效 (78ecec3 (opens new window))
- PageLeave: 支持页签未缓存时离开提醒 (1d70e03 (opens new window)), closes #116 (opens new window)
# Features
- pageScroller: 页签切换保留滚动位置 (958a85d (opens new window)), closes #108 (opens new window)
- TabItem: 鼠标中键点击关闭页签项 (ef673b5 (opens new window)), closes #118 (opens new window)
- vetur: 为 Vetur 扩展提供组件语法提示 (c78a5b6 (opens new window))
# 1.2.5 (opens new window) (2021-03-26)
# Bug Fixes
- DragSort: 解决 Firefox 下页签拖拽排序后浏览器打开新的页签 (b5134cb (opens new window))
# 1.2.4 (opens new window) (2021-01-23)
# Bug Fixes
- routerAlive: 修复页面组件 dom 节点修改后热重载不生效 (85912a9 (opens new window))
# 1.2.3 (opens new window) (2021-01-09)
# Bug Fixes
- 使用 jsx 生成 TabItem 模板,解决 Vue 2.5.22 版本 TabItem 报错 (48c6065 (opens new window))
- scroll: 解决有些移动设备页签无法滚动 (06b12a2 (opens new window))
# Features
- lang: 根据浏览器语言自动识别组件语言 (67a3c26 (opens new window))
# 1.2.2 (opens new window) (2020-11-28)
# Bug Fixes
- iframe: 屏蔽 Base64 方式 XSS 攻击链接 (665b897 (opens new window))
- scroll: 解决页签滚动调整时未获取到当前页签报错 (61e3a95 (opens new window))
# 1.2.1 (opens new window) (2020-10-17)
# Bug Fixes
- iframe: 解决 vue-router 3.4.6 params 中的链接未解码导致 iframe 页签加载失败 (9ff5d16 (opens new window))
- RouteMatch: 解决匹配外部路由根路径
basePath
时出错 (f6073d3 (opens new window))
# 1.2.0 (opens new window) (2020-08-22)
# Bug Fixes
- contextmenu: 右键菜单优化 (0088b63 (opens new window))
- 解决浏览器历史前进后退和还原页签时没有 adjust 到当前页签位置 (66bf4c1 (opens new window))
- 解决缓存 key 为空时右键菜单不显示 (f9448de (opens new window))
# Code Refactoring
- lang: 语言配置由 language 修改为 lang (8866760 (opens new window))
# Features
- Nuxt 支持从页面 meta 配置页签 (02daa90 (opens new window))
- 新增配置项:
append
新页签插入位置 (458fc34 (opens new window)) - dragsort: 页签拖拽排序 (479bfcd (opens new window))
# Performance Improvements
- 新增 Nuxt Iframe 页面路由元配置 (706e7e6 (opens new window))
# BREAKING CHANGES
- lang: 组件语言配置由 language 修改为 lang
# 1.1.0 (opens new window) (2020-07-30)
# Code Refactoring
- 全局
$routerTab
修改为$tabs
(6edc214 (opens new window))
# Features
- contextmenu: 支持自定义右键菜单配置 (d475ebe (opens new window))
- beforePageLeave 支持浏览器
beforeunload
事件 (5d57e60 (opens new window))
# BREAKING CHANGES
- 全局访问 RouterTab 组件弃用
this.$routerTab
,修改为this.$tabs
beforePageLeave
弃用参数 resolve, reject,返回 promise 来允许或者阻止页签页面的离开
# 1.0.2 (opens new window) (2020-07-07)
# Performance Improvements
- pageLeave: 页面离开确认支持路由离开当前页签组件 (c53374b (opens new window))
- RouterAlive: 组件销毁后清理数据 (a621999 (opens new window))
# 1.0.1 (opens new window) (2020-06-29)
# Bug Fixes
- 解决页签关闭 close(null) 报错 (a87bcca (opens new window))
# Performance Improvements
- RouterAlive: 页面销毁后清理 cache,避免设置 max 后 keepAlive 销毁的组件无法清理 (db66372 (opens new window))
# 1.0.0 (opens new window) (2020-06-28)
# Code Refactoring
- 样式重构,移除左右页签滚动按钮 (a17543a (opens new window))
# Features
- RouterAlive: RouterAlive 组件使用 keep-alive + router-view 重构 (ac3a04d (opens new window))
- scroll: 添加页签滚动组件 (620d17e (opens new window))
# Performance Improvements
- 缓存的嵌套页面不更新使用 $forceUpdate 强制刷新 (a85a51e (opens new window))
- RouterAlive: 通过 $vnode.data.routerViewDepth 匹配页面路由索引。 (c0dce87 (opens new window))
# BREAKING CHANGES
- 组件节点 class 更改
- RouterAlive:
- close 方法多参数方式简化,只支持 close(path, to)
- 组件配置弃用:alive-id、router-view
- 路由 meta 配置 aliveId 更改为 key
- 弃用路由页面 _isRouterPage 标记
# 1.0.0-alpha.5 (opens new window) (2020-05-29)
# Features
- scroll: 鼠标滚轮滚动页签,移动端原生触摸滚动页签 (dd29942 (opens new window))
- slot: 新增 start:页签开始、end:页签结束 插槽 (34d8542 (opens new window))
# 1.0.0-alpha.4 (opens new window) (2020-04-10)
# Bug Fixes
- operate: 解决在嵌套路由下关闭或重置页签后重定向到当前页签失效 (6e27eaa (opens new window))
- restore: 解决刷新还原页签后标题丢失 (717c03f (opens new window))
# 1.0.0-alpha.3 (opens new window) (2020-03-19)
# Bug Fixes
- 解决默认页面路径为 '/' 时页签重置失败 (f50d3e8 (opens new window))
# Features
- tab: 路由元 meta 支持 closable 和 tabClass 配置 (b6c92fb (opens new window))
# BREAKING CHANGES
- tab: 页签插槽作用域变量更改
# 1.0.0-alpha.2 (opens new window) (2020-02-24)
# Bug Fixes
- 解决某些场景无法访问
this.$tabs
(f458763 (opens new window))
# 1.0.0-alpha.1 (opens new window) (2020-01-27)
# Code Refactoring
- iframe: 移除 openIframeTab, closeIframeTab, refreshIframeTab 方法 (87d0d77 (opens new window))
# Features
- style: 使用新的样式,css 模拟图标按钮 (c305603 (opens new window))
# BREAKING CHANGES
- iframe: 弃用 openIframeTab, closeIframeTab, refreshIframeTab 方法
# 0.2.9 (opens new window) (2019-11-20)
# Bug Fixes
- operate: 全新打开页签刷新旧页签时使用模糊匹配,避免路径不一致的旧页签无法强制刷新 (150f112 (opens new window))
# 0.2.8 (opens new window) (2019-11-15)
# Bug Fixes
- operate: 解决 IE11 下无法直接解构 arguments 导致的 close(path, to, match, force) 方式关闭页签出错 (acb7e7a (opens new window))
# Code Refactoring
- 实例属性 activedTab 更名为 activeTabId,添加计算属性 activeTab: 当前激活的页签 (4aea0b1 (opens new window))
# Features
- restore: 添加 restore-watch 参数,监听 restore 改变后自动还原页签 (d040b23 (opens new window))
# BREAKING CHANGES
- 实例属性 activedTab 更名为 activeTabId
# 0.2.7 (opens new window) (2019-10-28)
# Features
- restore: 浏览器刷新后还原页签 (710ba70 (opens new window))
# 0.2.6 (opens new window) (2019-10-15)
# Bug Fixes
- iframe: 防止通过 Iframe 页签 XSS 攻击 (3745813 (opens new window))
# 0.2.5 (opens new window) (2019-10-12)
# Bug Fixes
- operate: 解决关闭页签后跳转默认页 (d30e302 (opens new window))
# 0.2.4 (opens new window) (2019-09-30)
# Features
- operate: 添加 open 打开页签方法, close 方法参数优化,补充新增方法文档 (3bf8c0a (opens new window))
# 0.2.3 (opens new window) (2019-09-20)
# Features
- close: 页签 close 方法支持关闭后跳转指定页面 (cab0d35 (opens new window))
- reset: 添加 reset 方法重置 RouterTab 到默认状态 (95ef4df (opens new window))
# 0.2.2 (opens new window) (2019-09-07)
# Bug Fixes
- nest: 嵌套路由缓存导致页面不匹配时强制更新 (a21d507 (opens new window))
# 0.2.1 (opens new window) (2019-09-04)
# Features
- iframe: 添加 RouterTab 事件: iframe-mounted 和 iframe-loaded (40387df (opens new window))
# Performance Improvements
- router-alive: 组件销毁有清理缓存和组件数据 (ab4bfd4 (opens new window))
# 0.2.0 (opens new window) (2019-07-10)
# Features
- nest: 页签支持嵌套路由切换 (cda723d (opens new window)), closes #7 (opens new window)
# 0.1.10 (opens new window) (2019-07-10)
# Bug Fixes
- style: router-tab 添加最小高度 300px (f4971ed (opens new window)), closes #9 (opens new window)
- style: 去除 tab 滚动控制按钮的 element-ui 图标 class (1404a7f (opens new window)), closes #12 (opens new window)
# 0.1.9 (opens new window) (2019-07-10)
# Code Refactoring
- i18n: 更改语言配置 props i18n 为 language,i18n 为路由页签信息国际化预留 (80920f0 (opens new window))
# Features
- i18n: 支持路由页签国际化 (7fb6d50 (opens new window)), closes #6 (opens new window)
# BREAKING CHANGES
- i18n: 修改 props i18n 为 language
# 0.1.8 (opens new window) (2019-07-10)
# Bug Fixes
- contextmenu: 右键菜单过渡效果修复 (d97f172 (opens new window))
# Features
- iframe: Iframe 页签嵌入外部网站 (5d8d93b (opens new window)), closes #3 (opens new window)
# 0.1.7 (opens new window) (2019-07-10)
# Bug Fixes
- contextmenu: 解决 IE11 下右键菜单定位错误和页签头部高度问题 (cc4a521 (opens new window))
# 0.1.6 (opens new window) (2019-07-10)
# Features
- 内置 fullPath 页签规则,补充相关文档和 Demo (dc6a718 (opens new window))
# 0.1.5 (opens new window) (2019-07-10)
# 0.1.4 (opens new window) (2019-07-10)
# Performance Improvements
- style: 优化 routerTab 默认过渡效果 (b5053f0 (opens new window))
# 0.1.3 (opens new window) (2019-07-10)
# Bug Fixes
- 解决无法刷新和关闭相对路径的 location (6302203 (opens new window))
# 0.1.2 (opens new window) (2019-07-10)
# 0.1.1 (opens new window) (2019-07-10)
# Bug Fixes
- 当快速频繁切换页签时页面内容空白 (6b24430 (opens new window))
# Features
- 新增 close 和 refresh 针对路由操作,closeTab 和 refreshTab 针对页签 id 操作 (bb86e66 (opens new window))
- i18n: 国际化支持 (416af48 (opens new window))
- 添加 Router Tab 组件 (a2f444d (opens new window))
# Performance Improvements
- 使用 promise 代替 async 以减少组件打包体积 (fe5870b (opens new window))