mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-07 02:00:47 +08:00
重新设计流程画布Canvas与节点Node的关联
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using Serein.Library;
|
||||
using Serein.Workbench.Node.View;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -9,6 +11,12 @@ namespace Serein.Workbench.ViewModels
|
||||
{
|
||||
public partial class FlowCanvasViewModel : ObservableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// 画布当前选中的节点
|
||||
/// </summary>
|
||||
public NodeControlBase CurrentSelectNodeControl { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 正在创建节点方法调用关系
|
||||
/// </summary>
|
||||
@@ -33,6 +41,12 @@ namespace Serein.Workbench.ViewModels
|
||||
[ObservableProperty]
|
||||
private string _canvasGuid;
|
||||
|
||||
/// <summary>
|
||||
/// 画布数据实体
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private FlowCanvasModel _model;
|
||||
|
||||
|
||||
|
||||
public FlowCanvasViewModel()
|
||||
|
||||
Reference in New Issue
Block a user