Skip to content

Commit

Permalink
refactor(iframe): 移除 openIframeTab, closeIframeTab, refreshIframeTab 方法
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 弃用 openIframeTab, closeIframeTab, refreshIframeTab 方法
  • Loading branch information
bhuh12 committed Jan 19, 2020
2 parents dc8ed43 + 87d0d77 commit 445cfe5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-router-tab",
"version": "0.2.9",
"version": "1.0.0-alpha",
"description": "Vue.js tab components, based on Vue Router",
"keywords": [
"vue",
Expand Down
20 changes: 0 additions & 20 deletions src/components/RouterTab/iframe.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { warn, messages } from '../../util/warn'

// iframe 页签
export default {
data () {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 445cfe5

Please sign in to comment.