设计了流程接口节点,能够切换本节点数据、目标节点数据,目前还有数据来源相关操作没有实现

This commit is contained in:
fengjiayi
2025-05-28 23:19:00 +08:00
parent f7cae3493f
commit a5715be929
44 changed files with 1064 additions and 277 deletions

View File

@@ -4,10 +4,11 @@ using System.Runtime.CompilerServices;
using System.Windows.Controls;
using System.Windows.Data;
using System;
using CommunityToolkit.Mvvm.ComponentModel;
namespace Serein.Workbench.Node.ViewModel
{
public abstract class NodeControlViewModelBase
public abstract partial class NodeControlViewModelBase : ObservableObject
{
///// <summary>
@@ -21,30 +22,14 @@ namespace Serein.Workbench.Node.ViewModel
}
private bool isInterrupt;
private bool isReadonlyOnView = true;
///// <summary>
///// 控制中断状态的视觉效果
///// </summary>
public bool IsInterrupt
{
get => NodeModel.DebugSetting.IsInterrupt;
set
{
NodeModel.DebugSetting.IsInterrupt = value;
OnPropertyChanged();
}
}
/// <summary>
/// 工作台预览基本节点时,避免其中的文本框响应拖拽事件导致卡死
/// </summary>
public bool IsEnabledOnView { get => isReadonlyOnView; set
{
OnPropertyChanged(); isReadonlyOnView = value;
}
}
[ObservableProperty]
private bool isEnabledOnView = true;
public event PropertyChangedEventHandler? PropertyChanged;