mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-28 12:06:34 +08:00
设计了流程接口节点,能够切换本节点数据、目标节点数据,目前还有数据来源相关操作没有实现
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user