From 51c17847ad76da72b1b54bfeba65484365b3496c Mon Sep 17 00:00:00 2001 From: Blue <878071627@qq.com> Date: Wed, 17 Jul 2024 07:49:06 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/WalkingTec.Mvvm.TagHelpers.LayUI/F?= =?UTF-8?q?orm/ComboBoxTagHelper.cs.=20=E6=B7=BB=E5=8A=A0255=E8=A1=8C?= =?UTF-8?q?=EF=BC=8CfilterMethod=20=E6=96=B9=E6=B3=95=E7=94=A8=E4=BA=8ECom?= =?UTF-8?q?bobox=E4=B8=8B=E6=8B=89=E6=A1=86=E5=BF=BD=E7=95=A5=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E5=86=99=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Blue <878071627@qq.com> --- .../Form/ComboBoxTagHelper.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/WalkingTec.Mvvm.TagHelpers.LayUI/Form/ComboBoxTagHelper.cs b/src/WalkingTec.Mvvm.TagHelpers.LayUI/Form/ComboBoxTagHelper.cs index 9990068d2..8304b67a2 100644 --- a/src/WalkingTec.Mvvm.TagHelpers.LayUI/Form/ComboBoxTagHelper.cs +++ b/src/WalkingTec.Mvvm.TagHelpers.LayUI/Form/ComboBoxTagHelper.cs @@ -252,6 +252,12 @@ var {Id} = xmSelect.render({{ {(THProgram._localizer["Sys.LayuiDateLan"] =="CN"? "language:'zn'," : "language:'en',")} autoRow: {AutoRow.ToString().ToLower()}, filterable: {EnableSearch.ToString().ToLower()}, + filterMethod: function(val, item, index, prop){{ + if(item.name.toLowerCase().indexOf(val.toLowerCase()) !=-1){{ + return true; + }} + return false; + }}, template({{ item, sels, name, value }}){{ if(item.icon !== undefined && item.icon != """"&& item.icon != null){{ return '' + item.name; -- Gitee