primevue-mirror/components/lib/splitter/style/SplitterStyle.js

18 lines
484 B
JavaScript

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ props }) => ['p-splitter p-component', 'p-splitter-' + props.layout],
gutter: 'p-splitter-gutter',
gutterHandler: 'p-splitter-gutter-handle'
};
const inlineStyles = {
root: ({ props }) => [{ display: 'flex', 'flex-wrap': 'nowrap' }, props.layout === 'vertical' ? { 'flex-direction': 'column' } : '']
};
export default BaseStyle.extend({
name: 'splitter',
classes,
inlineStyles
});