update: pass store state as props to edge-renderer and edge
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
||||
import { Component, CSSProperties, DefineComponent } from 'vue'
|
||||
import { ArrowHeadType, ElementId, Position } from './flow'
|
||||
import { EdgeTextProps } from '~/types/components'
|
||||
import { EdgeTextProps } from './components'
|
||||
|
||||
export interface Edge<T = any> {
|
||||
id: ElementId
|
||||
@@ -15,8 +15,8 @@ export interface Edge<T = any> {
|
||||
label?:
|
||||
| string
|
||||
| {
|
||||
component: DefineComponent<EdgeTextProps>
|
||||
props?: EdgeTextProps
|
||||
component: DefineComponent<EdgeTextProps> | any
|
||||
props?: EdgeTextProps | any
|
||||
}
|
||||
labelStyle?: any
|
||||
labelShowBg?: boolean
|
||||
|
||||
Reference in New Issue
Block a user