Name refactor
parent
6db38a3992
commit
4bf42de44b
|
@ -4,7 +4,7 @@
|
||||||
<li role="presentation" v-for="(tab, i) of tabs" :key="tab.header || i" :class="['p-unselectable-text', {'p-highlight': (tab.d_active), 'p-disabled': tab.disabled}]">
|
<li role="presentation" v-for="(tab, i) of tabs" :key="tab.header || i" :class="['p-unselectable-text', {'p-highlight': (tab.d_active), 'p-disabled': tab.disabled}]">
|
||||||
<a role="tab" @click="onTabClick($event, tab)" @keydown="onTabKeydown($event, tab)" :tabindex="tab.disabled ? null : '0'">
|
<a role="tab" @click="onTabClick($event, tab)" @keydown="onTabKeydown($event, tab)" :tabindex="tab.disabled ? null : '0'">
|
||||||
<span class="p-tabview-title" v-if="tab.header">{{tab.header}}</span>
|
<span class="p-tabview-title" v-if="tab.header">{{tab.header}}</span>
|
||||||
<TabHeaderSlot :tab="tab" v-if="tab.$scopedSlots.header" />
|
<TabPanelHeaderSlot :tab="tab" v-if="tab.$scopedSlots.header" />
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const TabHeaderSlot = {
|
const TabPanelHeaderSlot = {
|
||||||
functional: true,
|
functional: true,
|
||||||
props: {
|
props: {
|
||||||
tab: {
|
tab: {
|
||||||
|
@ -79,7 +79,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
'TabHeaderSlot': TabHeaderSlot
|
'TabPanelHeaderSlot': TabPanelHeaderSlot
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue