Refactor #3965 - Cosmetics
parent
86eb1cb8a6
commit
868412582d
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div :class="cx('root')" v-bind="ptm('root')">
|
||||
<div v-for="(tab, i) of tabs" :key="getKey(tab, i)" :class="cx('tab.root', { tab, index: i })" v-bind="getTabPT(tab, 'root', i)" :data-pc-index="i" :data-p-active="isTabActive(i)">
|
||||
<div v-for="(tab, i) of tabs" :key="getKey(tab, i)" :class="cx('tab.root', { tab, index: i })" v-bind="getTabPT(tab, 'root', i)" data-pc-name="accordiontab" :data-pc-index="i" :data-p-active="isTabActive(i)">
|
||||
<div
|
||||
:style="getTabProp(tab, 'headerStyle')"
|
||||
:class="[cx('tab.header', { tab, index: i }), getTabProp(tab, 'headerClass')]"
|
||||
|
@ -96,7 +96,6 @@ export default {
|
|||
},
|
||||
getTabPT(tab, key, index) {
|
||||
const tabMetaData = {
|
||||
name: 'accordiontab',
|
||||
props: tab.props,
|
||||
parent: {
|
||||
props: this.$props,
|
||||
|
|
|
@ -17,7 +17,6 @@ export declare type AccordionTabPassThroughOptionType = AccordionTabPassThroughA
|
|||
* Custom passthrough(pt) option method.
|
||||
*/
|
||||
export interface AccordionTabPassThroughMethodOptions {
|
||||
name?: string | undefined;
|
||||
props: AccordionTabProps;
|
||||
parent: AccordionPassThroughOptions;
|
||||
context: AccordionTabContext;
|
||||
|
|
|
@ -43,7 +43,7 @@ export default {
|
|||
const self = this.getOptionValue(obj, key, params);
|
||||
const globalPT = this.getOptionValue(this.defaultPT, key, params);
|
||||
const merged = mergeProps(self, globalPT, {
|
||||
...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.convertToFlatCase(params['name'] || this.$.type.name) }),
|
||||
...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.convertToFlatCase(this.$.type.name) }),
|
||||
[`${datasetPrefix}section`]: ObjectUtils.convertToFlatCase(key)
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue