添加模糊搜索

基于url表达式的模糊搜索
This commit is contained in:
CortexCore
2023-07-19 01:15:17 +08:00
parent f380713718
commit d8d5b3366e
8 changed files with 69 additions and 8 deletions

View File

@@ -48,8 +48,13 @@ public partial class IDIS_RegisterWeaver : FormWeaverResource
data.Handle = handleEdit.Text;
data.Format = field.Type;
data.Name = field.Name;
data.Value = field.DefaultValue;
valueEdit.TextChanged += x => data.Value = x;
//valueEdit.TextChanged += x => data.Value = x;
valueEdit.TextChanged += newValue =>
{
data.Value = string.IsNullOrEmpty(newValue) ? field.DefaultValue : newValue;
};
}
public override string GetContent()

View File

@@ -119,7 +119,6 @@ public partial class IDIS_TemplateWeaver : FormWeaverResource
}
private void AddFields()
{
if (templateBuilder.CurrentTemplate is null) return;
var current = templateBuilder.CurrentTemplate.Fields.ToList();
current.Add(new IDIS_TemplateForm()
{