From 87d0d770a0b85a9e146023d74ca3f3d737b686c6 Mon Sep 17 00:00:00 2001 From: bhuh12 Date: Sat, 7 Sep 2019 17:43:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor(iframe):=20=E7=A7=BB=E9=99=A4=20openIf?= =?UTF-8?q?rameTab,=20closeIframeTab,=20refreshIframeTab=20=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE: 弃用 openIframeTab, closeIframeTab, refreshIframeTab 方法 --- package.json | 2 +- src/components/RouterTab/iframe.js | 20 -------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/package.json b/package.json index 118c308b..783cf774 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-router-tab", - "version": "0.2.2", + "version": "1.0.0-alpha", "description": "Vue.js tab components, based on Vue Router", "keywords": [ "vue", diff --git a/src/components/RouterTab/iframe.js b/src/components/RouterTab/iframe.js index 66ce4e75..8f6d9494 100644 --- a/src/components/RouterTab/iframe.js +++ b/src/components/RouterTab/iframe.js @@ -1,5 +1,3 @@ -import { warn, messages } from '../../util/warn' - // iframe 页签 export default { data () { @@ -42,24 +40,6 @@ export default { this.refresh(path, false) }, - // todo: 废弃 - openIframeTab (...args) { - this.openIframe(...args) - warn(false, messages.renamed('openIframe')) - }, - - // todo: 废弃 - closeIframeTab (...args) { - this.closeIframe(...args) - warn(false, messages.renamed('closeIframe')) - }, - - // todo: 废弃 - refreshIframeTab (...args) { - this.refreshIframe(...args) - warn(false, messages.renamed('refreshIframe')) - }, - // 根据 url 获取 iframe 节点 getIframeEl (url) { const name = this.iframeNamePrefix + url