primevue-mirror/components/lib/basecomponent/style/BaseComponentStyle.js

9 lines
365 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
import { useStyle } from 'primevue/usestyle';
export default BaseStyle.extend({
name: 'common',
2024-01-02 10:18:28 +00:00
loadGlobalStyle: (globalCSS, options = {}) => useStyle(globalCSS, { name: 'global', ...options }),
loadGlobalTheme: (globalTheme, options = {}) => useStyle(globalTheme, { name: 'global-style', ...options })
});