mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-03 23:06:34 +08:00
如果方法入参如果有Description特性,则能够在节点悬浮窗口中显示
This commit is contained in:
@@ -86,6 +86,12 @@ namespace Serein.Library
|
||||
[PropertyInfo(IsNotification = true)]
|
||||
private string _name ;
|
||||
|
||||
/// <summary>
|
||||
/// 入参注释
|
||||
/// </summary>
|
||||
[PropertyInfo]
|
||||
private string _description;
|
||||
|
||||
/// <summary>
|
||||
/// 自定义的方法入参数据
|
||||
/// </summary>
|
||||
@@ -179,7 +185,7 @@ namespace Serein.Library
|
||||
DataValue = string.IsNullOrEmpty(DataValue) ? string.Empty : DataValue,
|
||||
Items = this.Items?.Select(it => it).ToArray(),
|
||||
IsParams = this.IsParams,
|
||||
|
||||
Description = this.Description,
|
||||
};
|
||||
return pd;
|
||||
}
|
||||
@@ -326,7 +332,7 @@ namespace Serein.Library
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"[{this.Index}] {this.Name} : {this.DataType?.FullName}";
|
||||
return $"[{this.Index}] {(string.IsNullOrWhiteSpace(this.Description) ? string.Empty : $"({this.Description})")}{this.Name} : {this.DataType?.FullName}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user