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