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

52 lines
1.1 KiB
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: {
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
}
},
style: AccordionStyle,
provide() {
return {
2024-04-24 22:42:28 +00:00
$pcAccordion: this,
$parentInstance: this
};
2023-05-23 23:40:14 +00:00
}
};
</script>