mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #4530 - Export styles of all components
This commit is contained in:
parent
7b6d458067
commit
dc2913e887
463 changed files with 10696 additions and 9670 deletions
|
@ -1,21 +1,6 @@
|
|||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
|
||||
const classes = {
|
||||
root: 'p-dataview-layout-options p-selectbutton p-buttonset',
|
||||
listButton: ({ props }) => [
|
||||
'p-button p-button-icon-only',
|
||||
{
|
||||
'p-highlight': props.modelValue === 'list'
|
||||
}
|
||||
],
|
||||
gridButton: ({ props }) => [
|
||||
'p-button p-button-icon-only',
|
||||
{
|
||||
'p-highlight': props.modelValue === 'grid'
|
||||
}
|
||||
]
|
||||
};
|
||||
import DataViewLayoutOptionsStyle from 'primevue/dataviewlayoutoptions/style';
|
||||
|
||||
export default {
|
||||
name: 'BaseDataViewLayoutOptions',
|
||||
|
@ -23,9 +8,7 @@ export default {
|
|||
props: {
|
||||
modelValue: String
|
||||
},
|
||||
css: {
|
||||
classes
|
||||
},
|
||||
style: DataViewLayoutOptionsStyle,
|
||||
provide() {
|
||||
return {
|
||||
$parentInstance: this
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"main": "./dataviewlayoutoptions.cjs.js",
|
||||
"module": "./dataviewlayoutoptions.esm.js",
|
||||
"unpkg": "./dataviewlayoutoptions.min.js",
|
||||
"types": "./DataViewLayoutOptions.d.ts",
|
||||
"browser": {
|
||||
"./sfc": "./DataViewLayoutOptions.vue"
|
||||
}
|
||||
}
|
||||
"main": "./dataviewlayoutoptions.cjs.js",
|
||||
"module": "./dataviewlayoutoptions.esm.js",
|
||||
"unpkg": "./dataviewlayoutoptions.min.js",
|
||||
"types": "./DataViewLayoutOptions.d.ts",
|
||||
"browser": {
|
||||
"./sfc": "./DataViewLayoutOptions.vue"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const classes = {
|
||||
root: 'p-dataview-layout-options p-selectbutton p-buttonset',
|
||||
listButton: ({ props }) => [
|
||||
'p-button p-button-icon-only',
|
||||
{
|
||||
'p-highlight': props.modelValue === 'list'
|
||||
}
|
||||
],
|
||||
gridButton: ({ props }) => [
|
||||
'p-button p-button-icon-only',
|
||||
{
|
||||
'p-highlight': props.modelValue === 'grid'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default BaseStyle.extend({
|
||||
name: 'dataviewlayoutoptions',
|
||||
classes,
|
||||
loadStyle: () => {}
|
||||
});
|
5
components/lib/dataviewlayoutoptions/style/package.json
Normal file
5
components/lib/dataviewlayoutoptions/style/package.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"main": "./dataviewlayoutoptionsstyle.cjs.js",
|
||||
"module": "./dataviewlayoutoptionsstyle.esm.js",
|
||||
"unpkg": "./dataviewlayoutoptionsstyle.min.js"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue