Use v-show for API
parent
61dc1a7dd3
commit
2685655b51
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<ul class="doc-tabmenu">
|
<ul class="doc-tabmenu">
|
||||||
<li :class="{ 'doc-tabmenu-active': tab === 0 }">
|
<li :class="{ 'doc-tabmenu-active': tab === 0 }">
|
||||||
<button type="button" @click="tab = 0">COMPONENT</button>
|
<button type="button" @click="tab = 0">FEATURES</button>
|
||||||
</li>
|
</li>
|
||||||
<li :class="{ 'doc-tabmenu-active': tab === 1 }">
|
<li :class="{ 'doc-tabmenu-active': tab === 1 }">
|
||||||
<button type="button" @click="tab = 1">API</button>
|
<button type="button" @click="tab = 1">API</button>
|
||||||
|
@ -15,8 +15,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="doc-tabpanels">
|
<div class="doc-tabpanels">
|
||||||
<template v-if="tab === 0">
|
<div v-show="tab === 0" class="doc-tabpanel">
|
||||||
<div class="doc-tabpanel">
|
|
||||||
<div class="doc-main">
|
<div class="doc-main">
|
||||||
<div class="doc-intro">
|
<div class="doc-intro">
|
||||||
<h1>{{ header }}</h1>
|
<h1>{{ header }}</h1>
|
||||||
|
@ -26,13 +25,10 @@
|
||||||
</div>
|
</div>
|
||||||
<DocSectionNav :docs="componentDocs" />
|
<DocSectionNav :docs="componentDocs" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
|
||||||
|
|
||||||
<template v-else-if="tab === 1">
|
<div v-show="tab === 1" class="doc-tabpanel">
|
||||||
<div class="doc-tabpanel">
|
|
||||||
<DocApiSection :doc="apiDocs" :header="header" />
|
<DocApiSection :doc="apiDocs" :header="header" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue