Vue.component('inner-tabs', {
template: '
',
props: ["tabs","activeidx","namespce"],
data: function() {
return {
url: ""
}
},
methods: {
load: function(tab, index) {
// top.GlobalEventBus.$emit("active-inner-tabs."+this.namespce, tab)
this.url = tab.href
this.activeidx = index
},
activeTab: function(index) {
// this.activeidx = index
// this.url = this.tabs[this.activeidx].href
// this.load(this.tabs[index], index)
}
},
mounted: function() {
},
watch: {
activeidx: function(idx) {
this.url = this.tabs[idx].href
}
}
})