Fix: Tabs

This commit is contained in:
JimhHan 2021-03-26 10:15:33 +08:00
parent 1d65a3ac9c
commit f02ba69afb
No known key found for this signature in database
GPG Key ID: 48D5D7CF95157AC5

View File

@ -17,7 +17,7 @@
</button>
</div>
</nav>
<div :id="tag + '-context'" class="tab-content">
<div :id="contentTag" class="tab-content">
<slot />
</div>
</div>
@ -50,6 +50,9 @@ export default Vue.extend({
computed: {
tag: function() {
return "tabs-" + this.title;
},
contentTag: function() {
return "tabs-" + this.title + "-content";
}
}
});