zhangwei
2024-09-29 94384dcf5066aa1a7b2e37874fe331e148bc9249
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { defineMixin } from '../../libs/vue'
import defProps from '../../libs/config/props.js'
export const props = defineMixin({
    props: {
        // 当前展开面板的name,非手风琴模式:[<string | number>],手风琴模式:string | number
        value: {
            type: [String, Number, Array, null],
            default: () => defProps.collapse.value
        },
        // 是否手风琴模式
        accordion: {
            type: Boolean,
            default: () => defProps.collapse.accordion
        },
        // 是否显示外边框
        border: {
            type: Boolean,
            default: () => defProps.collapse.border
        }
    }
})