primevue-mirror/components/lib/accordion/BaseAccordion.vue

46 lines
945 B
Vue
Raw Normal View History

2023-05-23 23:40:14 +00:00
<script>
import AccordionStyle from 'primevue/accordion/style';
2023-05-23 23:40:14 +00:00
import BaseComponent from 'primevue/basecomponent';
export default {
name: 'BaseAccordion',
extends: BaseComponent,
props: {
multiple: {
type: Boolean,
default: false
},
activeIndex: {
type: [Number, Array],
default: null
},
lazy: {
type: Boolean,
default: false
},
expandIcon: {
type: String,
default: undefined
},
collapseIcon: {
type: String,
default: undefined
},
tabindex: {
type: Number,
default: 0
},
selectOnFocus: {
type: Boolean,
default: false
}
},
style: AccordionStyle,
provide() {
return {
$parentInstance: this
};
2023-05-23 23:40:14 +00:00
}
};
</script>