设备树显示状态图标

This commit is contained in:
iioter 2022-08-23 16:29:10 +08:00
parent fa9476b554
commit 90eac18785
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,9 @@ namespace WalkingTec.Mvvm.TagHelpers.LayUI
[JsonPropertyName("title")]
public string Title { get; set; }
[JsonPropertyName("icon")]
public string Icon { get; set; }
[JsonPropertyName("id")]
public string Id { get; set; }

View File

@ -176,6 +176,7 @@ layui.use(['tree'],function(){{
{
Id = s.Value.ToString(),
Title = s.Text,
Icon = s.Icon,
Url = s.Url,
Expand = s.Expended,
Level = level,