pull/4239/head
mertsincan 2023-08-03 22:37:29 +03:00
parent 2e9a6978ce
commit dc0e806922
1 changed files with 8 additions and 4 deletions

View File

@ -454,10 +454,14 @@ export default {
const datasetPrefix = 'data-pc-'; const datasetPrefix = 'data-pc-';
const self = this._getPTClassValue(obj, key, params); const self = this._getPTClassValue(obj, key, params);
const globalPT = searchInDefaultPT ? (/./g.test(key) && !!params[key.split('.')[0]] ? this._getPTClassValue(this.globalPT, key, params) : this._getPTClassValue(this.defaultPT, key, params)) : undefined; const globalPT = searchInDefaultPT ? (/./g.test(key) && !!params[key.split('.')[0]] ? this._getPTClassValue(this.globalPT, key, params) : this._getPTClassValue(this.defaultPT, key, params)) : undefined;
const merged = mergeProps(self, globalPT, { const merged = mergeProps(
...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(this.$.type.name) }), self,
[`${datasetPrefix}section`]: ObjectUtils.toFlatCase(key) globalPT,
}); key !== 'transition' && {
...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(this.$.type.name) }),
[`${datasetPrefix}section`]: ObjectUtils.toFlatCase(key)
}
);
return merged; return merged;
/* /*