Refactor #3965 - Cosmetics

pull/3997/head
mertsincan 2023-05-24 02:03:54 +01:00
parent 86eb1cb8a6
commit 868412582d
3 changed files with 2 additions and 4 deletions

View File

@ -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,

View File

@ -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;

View File

@ -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)
});