primevue-mirror/components/lib/speeddial/BaseSpeedDial.vue

89 lines
1.9 KiB
Vue
Raw Normal View History

2023-05-30 14:55:13 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import SpeedDialStyle from 'primevue/speeddial/style';
2023-05-30 14:55:13 +00:00
export default {
name: 'BaseSpeedDial',
extends: BaseComponent,
props: {
model: null,
visible: {
type: Boolean,
default: false
},
direction: {
type: String,
default: 'up'
},
transitionDelay: {
type: Number,
default: 30
},
type: {
type: String,
default: 'linear'
},
radius: {
type: Number,
default: 0
},
mask: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
},
hideOnClickOutside: {
type: Boolean,
default: true
},
buttonClass: null,
maskStyle: null,
maskClass: null,
showIcon: {
type: String,
default: undefined
},
hideIcon: {
type: String,
default: undefined
},
rotateAnimation: {
type: Boolean,
default: true
},
tooltipOptions: null,
style: null,
class: null,
2024-04-09 11:24:04 +00:00
buttonProps: {
type: Object,
default() {
return { rounded: true };
}
},
actionButtonProps: {
type: Object,
default() {
return { severity: 'secondary', text: true, rounded: true, size: 'small' };
}
},
ariaLabelledby: {
2023-05-30 14:55:13 +00:00
type: String,
default: null
},
ariaLabel: {
2023-05-30 14:55:13 +00:00
type: String,
default: null
}
},
style: SpeedDialStyle,
2023-05-30 14:55:13 +00:00
provide() {
return {
$parentInstance: this
};
}
};
</script>