Refactor #3965 - For AutoComplete & Dropdown

This commit is contained in:
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); return this.getPTValue(obj, key, params);
}, },
cx(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; 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 = {}) { cxo(obj = {}, key = '', params = {}) {

View file

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