props.js 683 B

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