mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-11 02:16:34 +08:00
重新设计了创建连线时的逻辑,能够预览连接成功后的外观样式
This commit is contained in:
@@ -2,25 +2,22 @@ using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using Serein.Library;
|
||||
using Serein.NodeFlow.Model;
|
||||
using Serein.Workbench.Avalonia.Api;
|
||||
using Serein.Workbench.Avalonia.Custom.Node.ViewModels;
|
||||
|
||||
namespace Serein.Workbench.Avalonia.Custom.Node.Views;
|
||||
|
||||
public partial class ActionNodeView : UserControl, INodeControl
|
||||
public partial class ActionNodeView : NodeControlBase
|
||||
{
|
||||
private ActionNodeViewModel _vm;
|
||||
|
||||
|
||||
public ActionNodeView()
|
||||
{
|
||||
InitializeComponent();
|
||||
_vm = App.GetService<ActionNodeViewModel>();
|
||||
DataContext = _vm;
|
||||
//_vm = App.GetService<ActionNodeViewModel>();
|
||||
//DataContext = _vm;
|
||||
}
|
||||
|
||||
NodeModelBase INodeControl.NodeModelBase => _vm.NodeModelBase ?? throw new System.NotImplementedException(); // ¶¯×÷½Úµã
|
||||
|
||||
void INodeControl.SetNodeModel(NodeModelBase nodeModel) // ¶¯×÷½Úµã
|
||||
{
|
||||
_vm.NodeModelBase = nodeModel;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user