Skip to content

Commit

Permalink
Refactor #3965 - Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 24, 2023
1 parent 86eb1cb commit 8684125
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions components/lib/accordion/Accordion.vue
Original file line number Diff line number Diff line change
@@ -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')]"
Expand Down Expand Up @@ -96,7 +96,6 @@ export default {
},
getTabPT(tab, key, index) {
const tabMetaData = {
name: 'accordiontab',
props: tab.props,
parent: {
props: this.$props,
Expand Down
1 change: 0 additions & 1 deletion components/lib/accordiontab/AccordionTab.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/basecomponent/BaseComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});
Expand Down

0 comments on commit 8684125

Please sign in to comment.