mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-12 12:39:25 +08:00
完成mvvm模式下,画布、节点编辑的基本重构
This commit is contained in:
@@ -1,21 +1,27 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using Serein.Library;
|
||||
using Serein.Library.Api;
|
||||
using Serein.Workbench.Api;
|
||||
using Serein.Workbench.Node.View;
|
||||
using Serein.Workbench.Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace Serein.Workbench.ViewModels
|
||||
{
|
||||
public partial class FlowCanvasViewModel : ObservableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 画布当前选中的节点
|
||||
/// </summary>
|
||||
public NodeControlBase CurrentSelectNodeControl { get; set; }
|
||||
|
||||
public NodeControlBase CurrentSelectNode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 正在创建节点方法调用关系
|
||||
@@ -29,29 +35,13 @@ namespace Serein.Workbench.ViewModels
|
||||
[ObservableProperty]
|
||||
private bool _isConnectionArgSourceNode;
|
||||
|
||||
/// <summary>
|
||||
/// 画布显示名称
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private string _name;
|
||||
|
||||
/// <summary>
|
||||
/// 画布ID
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private string _canvasGuid;
|
||||
|
||||
/// <summary>
|
||||
/// 画布数据实体
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private FlowCanvasModel _model;
|
||||
private FlowCanvasDetails _model;
|
||||
|
||||
|
||||
|
||||
public FlowCanvasViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user