Merge pull request #4361 from LanFeusT23/unstyled-test-fix

Issue 4360 - Fixed unstyled config for BaseComponent
pull/4353/head^2
Bahadır 2023-08-31 13:03:14 +03:00 committed by GitHub
commit 0cfe81f9ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ export default {
return this._getPT(this.$config?.pt, undefined, (value) => this._getOptionValue(value, this.$name, { ...this.$params }) || ObjectUtils.getItemValue(value, { ...this.$params }));
},
isUnstyled() {
return this.unstyled !== undefined ? this.unstyled : this.$config.unstyled;
return this.unstyled !== undefined ? this.unstyled : this.$config?.unstyled;
},
$params() {
return { instance: this, props: this.$props, state: this.$data, parentInstance: this.$parentInstance };