Initial commit
This commit is contained in:
29
modeler/src/views/behaviour/graph/props.ts
Normal file
29
modeler/src/views/behaviour/graph/props.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* This file is part of the kernelstudio package.
|
||||
*
|
||||
* (c) 2014-2025 zlin <admin@kernelstudio.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE file
|
||||
* that was distributed with this source code.
|
||||
*/
|
||||
|
||||
import { Graph, Node } from '@antv/x6';
|
||||
import { type ExtractPropTypes, type PropType } from 'vue';
|
||||
import type { ModelElement } from './element';
|
||||
|
||||
export const elementProps = {
|
||||
node: {
|
||||
type: Object as PropType<Node>,
|
||||
required: true,
|
||||
},
|
||||
graph: {
|
||||
type: Object as PropType<Graph>,
|
||||
required: true,
|
||||
},
|
||||
element: {
|
||||
type: Object as PropType<ModelElement>,
|
||||
required: false,
|
||||
},
|
||||
};
|
||||
|
||||
export type ElementPropsType = ExtractPropTypes<typeof elementProps>
|
||||
Reference in New Issue
Block a user