Refactor #3965 - Update Base components

This commit is contained in:
Tuğçe Küçükoğlu 2023-05-30 14:06:57 +03:00
parent b6ec58de65
commit 751295c755
27 changed files with 279 additions and 377 deletions

View file

@ -192,7 +192,7 @@ const classes = {
hiddenLastFocusableEl: 'p-hidden-accessible p-hidden-focusable'
};
const { load: loadStyle, unload: unloadStyle } = useStyle(styles, { id: 'primevue_multiselect_style', manual: true });
const { load: loadStyle } = useStyle(styles, { id: 'primevue_multiselect_style', manual: true });
export default {
name: 'BaseMultiSelect',
@ -358,15 +358,13 @@ export default {
},
css: {
classes,
inlineStyles
inlineStyles,
loadStyle
},
watch: {
isUnstyled: {
immediate: true,
handler(newValue) {
!newValue && loadStyle();
}
}
provide() {
return {
$parentInstance: this
};
}
};
</script>