mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-19 16:06:33 +08:00
运行环境新增了画布相关的属性
This commit is contained in:
50
Workbench/Models/TabModel.cs
Normal file
50
Workbench/Models/TabModel.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Serein.Workbench.ViewModels;
|
||||
using Serein.Workbench.Views;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Serein.Workbench.Models
|
||||
{
|
||||
public partial class FlowCanvasModel : ObservableObject
|
||||
{
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
var vm = (FlowCanvasViewModel)content.DataContext;
|
||||
return vm.Name;
|
||||
}
|
||||
set
|
||||
{
|
||||
var vm = (FlowCanvasViewModel)content.DataContext;
|
||||
vm.Name = value;
|
||||
OnPropertyChanged(nameof(Name));
|
||||
}
|
||||
}
|
||||
|
||||
[ObservableProperty]
|
||||
private bool _isSelected;
|
||||
[ObservableProperty]
|
||||
private bool _isEditing;
|
||||
[ObservableProperty]
|
||||
private FlowCanvasView content;
|
||||
|
||||
|
||||
public FlowCanvasModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user