mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-12 09:18:19 +03:00
Fix tabs
This commit is contained in:
@@ -19,18 +19,13 @@ export default defineComponent({
|
||||
},
|
||||
},
|
||||
data() {
|
||||
let tag = this.title;
|
||||
return {
|
||||
tabID: "",
|
||||
labelID: "",
|
||||
tabID: tag,
|
||||
labelID: tag + "-" + "label",
|
||||
};
|
||||
},
|
||||
beforeMount() {
|
||||
let tag = "tab-" + Math.random().toString(36).substring(2);
|
||||
this.tabID = tag;
|
||||
this.labelID = tag + "-" + "label";
|
||||
|
||||
// Since Vue 3.0, we have no access to $children.
|
||||
// So we need another approach to register our child components.
|
||||
this.$parent.$data.children.push(this);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user