222
schangxiang@126.com
2025-05-21 8e4170267e8e5dc0c6b340b7ed119460324e2799
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { defineComponent } from 'vue'
import { injectStore } from '../../core/store'
 
export default defineComponent({
  name: 'Theme',
  props: [
    'ellipse',
    'polygon',
    'outline',
    'edgeAdjust',
    'text',
    'snapline',
    'line',
    'anchorLine',
    'arrow',
    'edgeText',
    'bezier',
    'polyline',
    'baseEdge',
    'nodeText',
    'anchor',
  ],
  setup(props, { attrs }) {
    const { theme } = injectStore()
    theme.value = { ...theme.value, ...attrs, ...props }
    return () => null
  },
})