mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +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,17 +1,6 @@
|
|||
<script>
|
||||
import BaseComponent from 'primevue/basecomponent';
|
||||
|
||||
const classes = {
|
||||
root: ({ props }) => ['p-selectbutton p-buttonset p-component', { 'p-disabled': props.disabled }],
|
||||
button: ({ instance, option }) => [
|
||||
'p-button p-component',
|
||||
{
|
||||
'p-highlight': instance.isSelected(option),
|
||||
'p-disabled': instance.isOptionDisabled(option)
|
||||
}
|
||||
],
|
||||
label: 'p-button-label'
|
||||
};
|
||||
import SelectButtonStyle from 'primevue/selectbutton/style';
|
||||
|
||||
export default {
|
||||
name: 'BaseSelectButton',
|
||||
|
@ -34,9 +23,7 @@ export default {
|
|||
default: null
|
||||
}
|
||||
},
|
||||
css: {
|
||||
classes
|
||||
},
|
||||
style: SelectButtonStyle,
|
||||
provide() {
|
||||
return {
|
||||
$parentInstance: this
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"main": "./selectbutton.cjs.js",
|
||||
"module": "./selectbutton.esm.js",
|
||||
"unpkg": "./selectbutton.min.js",
|
||||
"types": "./SelectButton.d.ts",
|
||||
"browser": {
|
||||
"./sfc": "./SelectButton.vue"
|
||||
}
|
||||
}
|
||||
"main": "./selectbutton.cjs.js",
|
||||
"module": "./selectbutton.esm.js",
|
||||
"unpkg": "./selectbutton.min.js",
|
||||
"types": "./SelectButton.d.ts",
|
||||
"browser": {
|
||||
"./sfc": "./SelectButton.vue"
|
||||
}
|
||||
}
|
||||
|
|
19
components/lib/selectbutton/style/SelectButtonStyle.js
Normal file
19
components/lib/selectbutton/style/SelectButtonStyle.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import BaseStyle from 'primevue/base/style';
|
||||
|
||||
const classes = {
|
||||
root: ({ props }) => ['p-selectbutton p-buttonset p-component', { 'p-disabled': props.disabled }],
|
||||
button: ({ instance, option }) => [
|
||||
'p-button p-component',
|
||||
{
|
||||
'p-highlight': instance.isSelected(option),
|
||||
'p-disabled': instance.isOptionDisabled(option)
|
||||
}
|
||||
],
|
||||
label: 'p-button-label'
|
||||
};
|
||||
|
||||
export default BaseStyle.extend({
|
||||
name: 'selectbutton',
|
||||
classes,
|
||||
loadStyle: () => {}
|
||||
});
|
5
components/lib/selectbutton/style/package.json
Normal file
5
components/lib/selectbutton/style/package.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"main": "./selectbuttonstyle.cjs.js",
|
||||
"module": "./selectbuttonstyle.esm.js",
|
||||
"unpkg": "./selectbuttonstyle.min.js"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue