Refactor #3965 - For AutoComplete & Dropdown

pull/3997/head
Tuğçe Küçükoğlu 2023-05-25 11:54:40 +03:00
parent 7e7d87335f
commit b2106de80b
2 changed files with 4 additions and 1 deletions

View File

@ -61,6 +61,9 @@ export default {
return this.getPTValue(obj, key, params);
},
cx(key = '', params = {}) {
console.log(key);
console.log(!this.isUnstyled ? this.getOptionValue(this.$options.css && this.$options.css.classes, key, { instance: this, props: this.$props, state: this.$data, ...params }) : undefined);
return !this.isUnstyled ? this.getOptionValue(this.$options.css && this.$options.css.classes, key, { instance: this, props: this.$props, state: this.$data, ...params }) : undefined;
},
cxo(obj = {}, key = '', params = {}) {

View File

@ -97,7 +97,7 @@ input.p-dropdown-label {
`;
const inlineStyles = {
root: { position: 'relative' }
root: ({ props }) => ({ position: props.appendTo === 'self' ? 'relative' : undefined })
};
const classes = {