From 97328951060bbc0b733089710800ec0ff37ff216 Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Wed, 18 Dec 2024 20:45:58 +0800 Subject: [PATCH 1/9] =?UTF-8?q?doc:=20=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Filters/LookupFilter.razor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs index 5b9e33c4c8d..a5d4a8d07ec 100644 --- a/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs @@ -96,9 +96,9 @@ protected override async Task OnParametersSetAsync() await base.OnParametersSetAsync(); var items = new List - { - new("", Localizer["EnumFilter.AllText"].Value) - }; + { + new("", Localizer["EnumFilter.AllText"].Value) + }; if (Lookup != null) { items.AddRange(Lookup); From 55b4fe302011c949417b33cc1c178b80cf2d1765 Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Thu, 19 Dec 2024 08:49:01 +0800 Subject: [PATCH 2/9] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=20GetTooltip?= =?UTF-8?q?Text=20=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/Table/TablesWrap.razor | 2 +- .../Components/Samples/Table/TablesWrap.razor.cs | 4 +--- .../Attributes/AutoGenerateColumnAttribute.cs | 7 +++++++ src/BootstrapBlazor/Components/Table/ITableColumn.cs | 7 +++++++ .../Components/Table/InternalTableColumn.cs | 10 ++++++++++ src/BootstrapBlazor/Components/Table/TableColumn.cs | 8 ++++++++ .../Extensions/ITableColumnExtensions.cs | 8 ++++---- test/UnitTest/Attributes/AutoGenerateClassTest.cs | 4 ++-- test/UnitTest/Extensions/ITableColumnExtensionsTest.cs | 4 ++-- 9 files changed, 42 insertions(+), 12 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor b/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor index 25058f8a333..8addf587309 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor @@ -71,7 +71,7 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor.cs index fc25a6ebe16..de947538ed5 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor.cs @@ -38,10 +38,8 @@ private Task> OnQueryAsync(QueryPageOptions options) return Task.FromResult(new QueryData() { Items = items, TotalCount = total, IsSorted = true, IsFiltered = true, IsSearch = true }); } - private async Task GetTooltipTextCallback(object? v) + private static string? GetTooltipText(object? v) { - await Task.Delay(0); - var ret = string.Empty; if (v is Foo foo) { diff --git a/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs b/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs index 4f4d105913a..f8abcf4bee2 100644 --- a/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs +++ b/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs @@ -203,8 +203,15 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu /// /// /// + [Obsolete("已弃用,请使用同步方法 GetTooltipText;Deprecated, please use the synchronous method GetTooltipText")] + [ExcludeFromCodeCoverage] Func>? ITableColumn.GetTooltipTextCallback { get; set; } + /// + /// + /// + Func? ITableColumn.GetTooltipText { get; set; } + /// /// /// diff --git a/src/BootstrapBlazor/Components/Table/ITableColumn.cs b/src/BootstrapBlazor/Components/Table/ITableColumn.cs index ab4eb4561eb..9092c601fdf 100644 --- a/src/BootstrapBlazor/Components/Table/ITableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/ITableColumn.cs @@ -143,8 +143,15 @@ public interface ITableColumn : IEditorItem /// /// 获得/设置 鼠标悬停提示自定义内容回调委托 默认 null 使用当前值 /// + [Obsolete("已弃用,请使用同步方法 GetTooltipText;Deprecated, please use the synchronous method GetTooltipText")] + [ExcludeFromCodeCoverage] Func>? GetTooltipTextCallback { get; set; } + /// + /// 获得/设置 鼠标悬停提示自定义内容回调委托 默认 null 使用当前值 + /// + Func? GetTooltipText { get; set; } + /// /// 获得/设置 单元格回调方法 /// diff --git a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs index e5e574d86fe..6bdfbdb0a2b 100644 --- a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs @@ -133,8 +133,18 @@ class InternalTableColumn(string fieldName, Type fieldType, string? fieldText = public bool? ShowTips { get; set; } + /// + /// + /// + [Obsolete("已弃用,请使用同步方法 GetTooltipText;Deprecated, please use the synchronous method GetTooltipText")] + [ExcludeFromCodeCoverage] public Func>? GetTooltipTextCallback { get; set; } + /// + /// + /// + public Func? GetTooltipText { get; set; } + public Type PropertyType { get; } = fieldType; [ExcludeFromCodeCoverage] diff --git a/src/BootstrapBlazor/Components/Table/TableColumn.cs b/src/BootstrapBlazor/Components/Table/TableColumn.cs index 217091be838..76828c83a74 100644 --- a/src/BootstrapBlazor/Components/Table/TableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/TableColumn.cs @@ -269,8 +269,16 @@ public class TableColumn : BootstrapComponentBase, ITableColumn /// /// [Parameter] + [Obsolete("已弃用,请使用同步方法 GetTooltipText;Deprecated, please use the synchronous method GetTooltipText")] + [ExcludeFromCodeCoverage] public Func>? GetTooltipTextCallback { get; set; } + /// + /// + /// + [Parameter] + public Func? GetTooltipText { get; set; } + /// /// 获得/设置 列 td 自定义样式 默认为 null 未设置 /// diff --git a/src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs b/src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs index 5e6c3538d9a..d19db18bba5 100644 --- a/src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs +++ b/src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs @@ -105,7 +105,7 @@ private static void CopyValue(this ITableColumn col, ITableColumn dest) if (col.IsVisibleWhenEdit.HasValue) dest.IsVisibleWhenEdit = col.IsVisibleWhenEdit; if (col.IsReadonlyWhenAdd.HasValue) dest.IsReadonlyWhenAdd = col.IsReadonlyWhenAdd; if (col.IsReadonlyWhenEdit.HasValue) dest.IsReadonlyWhenEdit = col.IsReadonlyWhenEdit; - if (col.GetTooltipTextCallback != null) dest.GetTooltipTextCallback = col.GetTooltipTextCallback; + if (col.GetTooltipText != null) dest.GetTooltipText = col.GetTooltipText; if (col.CustomSearch != null) dest.CustomSearch = col.CustomSearch; if (col.ToolboxTemplate != null) dest.ToolboxTemplate = col.ToolboxTemplate; if (col.IsRequiredWhenAdd.HasValue) dest.IsRequiredWhenAdd = col.IsRequiredWhenAdd; @@ -238,14 +238,14 @@ internal static RenderFragment RenderColor(this ITableColumn col, TItem i builder.CloseElement(); }; - private static RenderFragment RenderTooltip(this ITableColumn col, string? text, TItem item) => async pb => + private static RenderFragment RenderTooltip(this ITableColumn col, string? text, TItem item) => pb => { if (col.GetShowTips()) { var tooltipText = text; - if (col.GetTooltipTextCallback != null) + if (col.GetTooltipText != null) { - tooltipText = await col.GetTooltipTextCallback(item); + tooltipText = col.GetTooltipText(item); } pb.OpenComponent(0); pb.AddAttribute(1, nameof(Tooltip.Title), tooltipText); diff --git a/test/UnitTest/Attributes/AutoGenerateClassTest.cs b/test/UnitTest/Attributes/AutoGenerateClassTest.cs index f77ed200a4d..686ed3b0686 100644 --- a/test/UnitTest/Attributes/AutoGenerateClassTest.cs +++ b/test/UnitTest/Attributes/AutoGenerateClassTest.cs @@ -156,8 +156,8 @@ public void AutoGenerateColumn_Ok() attrInterface.IsReadonlyWhenEdit = true; Assert.True(attrInterface.IsReadonlyWhenEdit); - attrInterface.GetTooltipTextCallback = _ => Task.FromResult((string?)"Test"); - Assert.NotNull(attrInterface.GetTooltipTextCallback); + attrInterface.GetTooltipText = _ => "Test"; + Assert.NotNull(attrInterface.GetTooltipText); attrInterface.CustomSearch = (_, _) => new SearchFilterAction("test", "test"); Assert.NotNull(attrInterface.CustomSearch); diff --git a/test/UnitTest/Extensions/ITableColumnExtensionsTest.cs b/test/UnitTest/Extensions/ITableColumnExtensionsTest.cs index 91de55e0d53..e86cd17dd30 100644 --- a/test/UnitTest/Extensions/ITableColumnExtensionsTest.cs +++ b/test/UnitTest/Extensions/ITableColumnExtensionsTest.cs @@ -106,7 +106,7 @@ public void CopyValue_Ok() Step = "0.01", Order = -1, IsMarkupString = true, - GetTooltipTextCallback = _ => Task.FromResult(null), + GetTooltipText = _ => null, CustomSearch = (_, _) => new SearchFilterAction("test", "test"), Required = true, @@ -169,7 +169,7 @@ public void CopyValue_Ok() Assert.True(col.ShowCopyColumn); Assert.Equal("0.01", col.Step); Assert.Equal(-1, col.Order); - Assert.NotNull(col.GetTooltipTextCallback); + Assert.NotNull(col.GetTooltipText); Assert.True(col.IsMarkupString); Assert.NotNull(col.CustomSearch); From be8512240fd06ffabebbeac2b0bf0bce293c694f Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Thu, 19 Dec 2024 09:21:26 +0800 Subject: [PATCH 3/9] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/Table/TablesWrap.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor.cs index de947538ed5..594dca8afdc 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Table/TablesWrap.razor.cs @@ -43,7 +43,7 @@ private Task> OnQueryAsync(QueryPageOptions options) var ret = string.Empty; if (v is Foo foo) { - ret = $"{foo.Name}-{DateTime.Now}"; + ret = $"{foo.Name}-{foo.Address}"; } return ret; } From acb9b24ee9ebd172807cd176d46fd221d71994fb Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Thu, 19 Dec 2024 09:21:36 +0800 Subject: [PATCH 4/9] =?UTF-8?q?test:=20=E6=9B=B4=E6=96=B0=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/UnitTest/Components/TableTest.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/UnitTest/Components/TableTest.cs b/test/UnitTest/Components/TableTest.cs index b7d68df963d..0f388620498 100644 --- a/test/UnitTest/Components/TableTest.cs +++ b/test/UnitTest/Components/TableTest.cs @@ -4916,7 +4916,7 @@ public void ShowTips_Ok(bool markup) } [Fact] - public void GetTooltipTextCallback_Ok() + public void GetTooltipText_Ok() { var localizer = Context.Services.GetRequiredService>(); var items = Foo.GenerateFoo(localizer, 2); @@ -4934,9 +4934,8 @@ public void GetTooltipTextCallback_Ok() builder.AddAttribute(3, "Editable", true); builder.AddAttribute(7, "Text", "test"); builder.AddAttribute(9, "ShowTips", true); - builder.AddAttribute(10, "GetTooltipTextCallback", new Func>(async v => + builder.AddAttribute(10, "GetTooltipText", new Func(v => { - await Task.Delay(0); return "test-tips-callback"; })); builder.CloseComponent(); From f86fcc52020f5fd1307d2f2c879efb7630a442c9 Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Thu, 19 Dec 2024 09:25:12 +0800 Subject: [PATCH 5/9] =?UTF-8?q?refactor:=20=E6=B6=88=E9=99=A4=E8=AD=A6?= =?UTF-8?q?=E5=91=8A=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/UnitTest/Components/TableTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/UnitTest/Components/TableTest.cs b/test/UnitTest/Components/TableTest.cs index 0f388620498..376f1aa22b2 100644 --- a/test/UnitTest/Components/TableTest.cs +++ b/test/UnitTest/Components/TableTest.cs @@ -1823,7 +1823,7 @@ public void Column_IsFixedDetailColumn() class MockTableColumn : AutoGenerateColumnAttribute { - public new string GetFieldName() => "Test"; + public static new string GetFieldName() => "Test"; } [Fact] From 5b2e42d208465dec1a7cb24775bfe24985b487c4 Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Thu, 19 Dec 2024 09:33:05 +0800 Subject: [PATCH 6/9] =?UTF-8?q?test:=20=E6=8F=90=E9=AB=98=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=A6=86=E7=9B=96=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/UnitTest/Components/TableColumnTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/UnitTest/Components/TableColumnTest.cs b/test/UnitTest/Components/TableColumnTest.cs index a4b48452c31..e98861997a3 100644 --- a/test/UnitTest/Components/TableColumnTest.cs +++ b/test/UnitTest/Components/TableColumnTest.cs @@ -77,7 +77,7 @@ public void InternalTableColumn_Ok() SetValue("HeaderTextTooltip", "Test"); SetValue("HeaderTextEllipsis", true); SetValue("IsMarkupString", true); - SetValue("GetTooltipTextCallback", new Func>(_ => Task.FromResult((string?)""))); + SetValue("GetTooltipText", new Func(_ => "")); SetValue("CustomSearch", new Func((_, _) => new SearchFilterAction("test", "test"))); SetValue("Required", true); From defebe610836c20020de6742a3c1a613719f13da Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Thu, 19 Dec 2024 09:35:19 +0800 Subject: [PATCH 7/9] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/UnitTest/Utils/UtilityTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/UnitTest/Utils/UtilityTest.cs b/test/UnitTest/Utils/UtilityTest.cs index fb29fd4c948..c8de533fd4c 100644 --- a/test/UnitTest/Utils/UtilityTest.cs +++ b/test/UnitTest/Utils/UtilityTest.cs @@ -114,7 +114,7 @@ public void GetSortListFunc_Ok() [Fact] public void GetPlaceHolder_Ok() { - var ph = Utility.GetPlaceHolder(typeof(Foo), "Name"); + var ph = Utility.GetPlaceHolder("Name"); Assert.Equal("不可为空", ph); // 动态类型 @@ -353,7 +353,7 @@ public void GetDisplayName_Ok() dn = Utility.GetDisplayName(nameof(TestEnum.Address)); Assert.Equal("Test-Enum-Address", dn); - dn = Utility.GetDisplayName(typeof(Nullable), nameof(TestEnum.Name)); + dn = Utility.GetDisplayName(nameof(TestEnum.Name)); Assert.Equal("Test-Enum-Name", dn); } From 1e7f634dd3a4912e265389565a448446bbdc1fc1 Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Thu, 19 Dec 2024 09:35:30 +0800 Subject: [PATCH 8/9] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/Locales/en-US.json | 2 +- src/BootstrapBlazor.Server/Locales/zh-CN.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index 5e1703492b5..26f452c2375 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -5265,7 +5265,7 @@ "TablesWrapDataResizingTips1": "You can drag the window size, and the address column will be automatically omitted if the window is too small", "TablesWrapDataResizingTips2": "Enable text ellipsis by setting TextEllipsis", "TablesWrapDataResizingTips3": "Note: It is recommended to use Width to set the column width. If the column width is not set, it will automatically use 200px width inside", - "TablesWrapDataResizingTips4": "After the text in the cell is omitted, you can use the ShowTips property to control whether to display all the text on mouse hover, the default is false, You can customize the display content of Tooltip by setting the GetTooltipTextCallback callback method", + "TablesWrapDataResizingTips4": "After the text in the cell is omitted, you can use the ShowTips property to control whether to display all the text on mouse hover, the default is false, You can customize the display content of Tooltip by setting the GetTooltipText callback method", "TablesWrapDataResizingTips5": "Drag the address column, the cell display content will automatically increase and decrease", "TablesWrapCustomCellTitle": "Custom in-cell typography", "TablesWrapCustomCellIntro": "Use templates for special layout of in-cell data", diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index 90ab5c6286b..9e8cd9b5dc9 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -5265,7 +5265,7 @@ "TablesWrapDataResizingTips1": "可以拖动窗口大小,窗口过小时 地址 列自动进行省略处理", "TablesWrapDataResizingTips2": "通过设置 TextEllipsis 来开启文本超长省略功能", "TablesWrapDataResizingTips3": "注意:推荐使用 Width 对列宽度进行设置,如未设置列宽内部自动使用 200px 宽度", - "TablesWrapDataResizingTips4": "单元格内文本被省略后,可以通过 ShowTips 属性来控制鼠标悬停是否显示全部文本,默认为 false,通过设置 GetTooltipTextCallback 回调方法可以自定义 Tooltip 显示内容", + "TablesWrapDataResizingTips4": "单元格内文本被省略后,可以通过 ShowTips 属性来控制鼠标悬停是否显示全部文本,默认为 false,通过设置 GetTooltipText 回调方法可以自定义 Tooltip 显示内容", "TablesWrapDataResizingTips5": "拖动地址列,单元格显示内容自动增加与减少", "TablesWrapCustomCellTitle": "自定义单元格内排版", "TablesWrapCustomCellIntro": "使用模板对单元格内数据进行特殊布局", From f64568156e95ee1caa2a127f615f32ed1df914bd Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Thu, 19 Dec 2024 09:36:38 +0800 Subject: [PATCH 9/9] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/Locales/zh-CN.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index 9e8cd9b5dc9..717d5cd4020 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -5265,7 +5265,7 @@ "TablesWrapDataResizingTips1": "可以拖动窗口大小,窗口过小时 地址 列自动进行省略处理", "TablesWrapDataResizingTips2": "通过设置 TextEllipsis 来开启文本超长省略功能", "TablesWrapDataResizingTips3": "注意:推荐使用 Width 对列宽度进行设置,如未设置列宽内部自动使用 200px 宽度", - "TablesWrapDataResizingTips4": "单元格内文本被省略后,可以通过 ShowTips 属性来控制鼠标悬停是否显示全部文本,默认为 false,通过设置 GetTooltipText 回调方法可以自定义 Tooltip 显示内容", + "TablesWrapDataResizingTips4": "单元格内文本被省略后,可以通过 ShowTips 属性来控制鼠标悬停是否显示全部文本,默认为 false,通过设置 GetTooltipText 回调方法可以自定义 Tooltip 显示内容;注意异步方法 GetTooltipTextCallback 已弃用请勿使用", "TablesWrapDataResizingTips5": "拖动地址列,单元格显示内容自动增加与减少", "TablesWrapCustomCellTitle": "自定义单元格内排版", "TablesWrapCustomCellIntro": "使用模板对单元格内数据进行特殊布局",