mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Theming API: Improve performance
This commit is contained in:
parent
d0d0a38598
commit
45521ea6af
28 changed files with 193 additions and 141 deletions
|
@ -1,8 +1,5 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
import { useStyle } from 'primevue/usestyle';
|
||||
|
||||
export default BaseStyle.extend({
|
||||
name: 'common',
|
||||
loadGlobalStyle: (globalCSS, options = {}) => useStyle(globalCSS, { name: 'global', ...options }),
|
||||
loadGlobalTheme: (globalTheme, options = {}) => useStyle(globalTheme, { name: 'global-style', ...options })
|
||||
name: 'common'
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue