primevue-mirror/components/lib/splitbutton/BaseSplitButton.vue

95 lines
1.9 KiB
Vue
Raw Normal View History

2023-05-30 14:17:32 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import SplitButtonStyle from 'primevue/splitbutton/style';
2023-05-30 14:17:32 +00:00
export default {
name: 'BaseSplitButton',
extends: BaseComponent,
props: {
label: {
type: String,
default: null
},
icon: {
type: String,
default: null
},
model: {
type: Array,
default: null
},
autoZIndex: {
type: Boolean,
default: true
},
baseZIndex: {
type: Number,
default: 0
},
appendTo: {
type: [String, Object],
2023-05-30 14:17:32 +00:00
default: 'body'
},
disabled: {
type: Boolean,
default: false
},
class: {
type: null,
default: null
},
style: {
type: null,
default: null
},
buttonProps: {
type: null,
default: null
},
menuButtonProps: {
type: null,
default: null
},
menuButtonIcon: {
type: String,
default: undefined
},
severity: {
type: String,
default: null
},
raised: {
type: Boolean,
default: false
},
rounded: {
type: Boolean,
default: false
},
text: {
type: Boolean,
default: false
},
outlined: {
type: Boolean,
default: false
},
size: {
type: String,
default: null
},
plain: {
type: Boolean,
default: false
}
},
style: SplitButtonStyle,
2023-05-30 14:17:32 +00:00
provide() {
return {
$pcSplitButton: this,
2023-05-30 14:17:32 +00:00
$parentInstance: this
};
}
};
</script>