2023-05-23 23:40:14 +00:00
|
|
|
<script>
|
2023-10-02 10:46:09 +00:00
|
|
|
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: {
|
2024-04-24 22:42:28 +00:00
|
|
|
value: {
|
|
|
|
type: [String, Array],
|
|
|
|
default: undefined
|
|
|
|
},
|
2023-05-23 23:40:14 +00:00
|
|
|
multiple: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
|
|
|
lazy: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
2024-04-24 22:42:28 +00:00
|
|
|
tabindex: {
|
|
|
|
type: Number,
|
|
|
|
default: 0
|
|
|
|
},
|
|
|
|
selectOnFocus: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false
|
|
|
|
},
|
2023-05-23 23:40:14 +00:00
|
|
|
expandIcon: {
|
|
|
|
type: String,
|
|
|
|
default: undefined
|
|
|
|
},
|
|
|
|
collapseIcon: {
|
|
|
|
type: String,
|
|
|
|
default: undefined
|
|
|
|
},
|
2024-04-24 22:42:28 +00:00
|
|
|
// @deprecated since v4.
|
|
|
|
activeIndex: {
|
|
|
|
type: [Number, Array],
|
|
|
|
default: null
|
2023-05-23 23:40:14 +00:00
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: AccordionStyle,
|
2023-05-30 11:03:42 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
2024-04-24 22:42:28 +00:00
|
|
|
$pcAccordion: this,
|
2023-05-30 11:03:42 +00:00
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-23 23:40:14 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|