Fixed #5643 - Reimplement: Accordion

This commit is contained in:
mertsincan 2024-04-24 23:42:28 +01:00
parent 6cbb5e0993
commit 10f530f7b1
30 changed files with 1049 additions and 243 deletions

View file

@ -6,18 +6,26 @@ export default {
name: 'BaseAccordion',
extends: BaseComponent,
props: {
value: {
type: [String, Array],
default: undefined
},
multiple: {
type: Boolean,
default: false
},
activeIndex: {
type: [Number, Array],
default: null
},
lazy: {
type: Boolean,
default: false
},
tabindex: {
type: Number,
default: 0
},
selectOnFocus: {
type: Boolean,
default: false
},
expandIcon: {
type: String,
default: undefined
@ -26,18 +34,16 @@ export default {
type: String,
default: undefined
},
tabindex: {
type: Number,
default: 0
},
selectOnFocus: {
type: Boolean,
default: false
// @deprecated since v4.
activeIndex: {
type: [Number, Array],
default: null
}
},
style: AccordionStyle,
provide() {
return {
$pcAccordion: this,
$parentInstance: this
};
}