config.ts 518 B

1234567891011121314151617181920212223
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. import type { Component } from 'vue'
  3. interface ObjectAttributesConfig {
  4. outer: string | Component
  5. wrapper: string | Component
  6. classes: {
  7. link?: string
  8. }
  9. }
  10. export const objectAttributesConfig: ObjectAttributesConfig = {
  11. outer: 'div',
  12. wrapper: 'section',
  13. classes: {},
  14. }
  15. export const setupObjectAttributes = (
  16. customConfig: Partial<ObjectAttributesConfig>,
  17. ) => {
  18. Object.assign(objectAttributesConfig, customConfig)
  19. }