File tree Expand file tree Collapse file tree 6 files changed +21
-29
lines changed
src/BootstrapBlazor/Attributes Expand file tree Collapse file tree 6 files changed +21
-29
lines changed Original file line number Diff line number Diff line change 66namespace BootstrapBlazor . Components ;
77
88/// <summary>
9- /// 构造函数
9+ /// Constructor
1010/// </summary>
1111/// <param name="path"></param>
1212class BootstrapModuleAutoLoaderAttribute ( string ? path = null ) : JSModuleAutoLoaderAttribute ( path )
1313{
1414 /// <summary>
15- /// 获得/设置 模块名称 自动使用 modules 文件夹下脚本
15+ /// Gets or sets the module name. Automatically uses scripts from the modules folder.
1616 /// </summary>
1717 public string ? ModuleName { get ; set ; }
1818}
Original file line number Diff line number Diff line change @@ -8,27 +8,27 @@ namespace BootstrapBlazor.Components;
88/// <summary>
99/// JSModuleAutoLoaderAttribute class
1010/// </summary>
11- /// <param name="path"></param>
11+ /// <param name="path">The path to the JavaScript module </param>
1212[ AttributeUsage ( AttributeTargets . Class ) ]
1313public class JSModuleAutoLoaderAttribute ( string ? path = null ) : Attribute
1414{
1515 /// <summary>
16- /// 获得 Name 属性
16+ /// Gets the path property
1717 /// </summary>
1818 public string ? Path { get ; } = path ;
1919
2020 /// <summary>
21- /// Represents a reference to a JavaScript object Default value false
21+ /// Represents a reference to a JavaScript object. Default value is false.
2222 /// </summary>
2323 public bool JSObjectReference { get ; set ; }
2424
2525 /// <summary>
26- /// 获得/设置 是否自动调用 init 默认 true
26+ /// Gets or sets whether to automatically invoke init. Default is true.
2727 /// </summary>
2828 public bool AutoInvokeInit { get ; set ; } = true ;
2929
3030 /// <summary>
31- /// 获得/设置 是否自动调用 dispose 默认 true
31+ /// Gets or sets whether to automatically invoke dispose. Default is true.
3232 /// </summary>
3333 public bool AutoInvokeDispose { get ; set ; } = true ;
3434}
Original file line number Diff line number Diff line change 66namespace BootstrapBlazor . Components ;
77
88/// <summary>
9- /// 可为空布尔类型转换器
9+ /// Nullable boolean type converter
1010/// </summary>
1111[ AttributeUsage ( AttributeTargets . Property ) ]
1212public class NullableBoolItemsAttribute : Attribute
1313{
1414 /// <summary>
15- /// 获得/设置 空值显示文本
15+ /// Gets or sets the display text for null value
1616 /// </summary>
1717 public string ? NullValueDisplayText { get ; set ; }
1818
1919 /// <summary>
20- /// 获得/设置 True 值显示文本
20+ /// Gets or sets the display text for true value
2121 /// </summary>
2222 public string ? TrueValueDisplayText { get ; set ; }
2323
2424 /// <summary>
25- /// 获得/设置 False 值显示文本
25+ /// Gets or sets the display text for false value
2626 /// </summary>
2727 public string ? FalseValueDisplayText { get ; set ; }
2828}
Original file line number Diff line number Diff line change 66namespace BootstrapBlazor . Components ;
77
88/// <summary>
9- /// PlaceHolderAttribute 占位符标签类
9+ /// PlaceHolderAttribute class used to define a placeholder for a property.
1010/// </summary>
11+ /// <param name="placeholder">The placeholder text.</param>
1112[ AttributeUsage ( AttributeTargets . Property ) ]
12- public class PlaceHolderAttribute : Attribute
13+ public class PlaceHolderAttribute ( string placeholder ) : Attribute
1314{
1415 /// <summary>
15- /// 获得 Text 属性
16+ /// Gets the placeholder text.
1617 /// </summary>
17- public string Text { get ; }
18-
19- /// <summary>
20- /// 构造函数
21- /// </summary>
22- /// <param name="placeholder"></param>
23- public PlaceHolderAttribute ( string placeholder )
24- {
25- Text = placeholder ;
26- }
18+ public string Text { get ; } = placeholder ;
2719}
Original file line number Diff line number Diff line change 66namespace BootstrapBlazor . Components ;
77
88/// <summary>
9- /// TabItem 标签页配置属性类
9+ /// TabItem configuration attribute class
1010/// </summary>
1111[ AttributeUsage ( AttributeTargets . Class ) ]
1212public class TabItemOptionAttribute : Attribute
1313{
1414 /// <summary>
15- /// 获得/设置 文本文字
15+ /// Gets or sets the text of the tab item.
1616 /// </summary>
1717 public string ? Text { get ; set ; }
1818
1919 /// <summary>
20- /// 获得/设置 当前 TabItem 是否可关闭 默认为 true 可关闭
20+ /// Gets or sets whether the current TabItem is closable. Default is true.
2121 /// </summary>
2222 public bool Closable { get ; set ; } = true ;
2323
2424 /// <summary>
25- /// 获得/设置 图标字符串
25+ /// Gets or sets the icon string.
2626 /// </summary>
2727 public string ? Icon { get ; set ; }
2828}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ namespace BootstrapBlazor.Components;
5656public class TableMetadataForAttribute ( Type dataType ) : Attribute
5757{
5858 /// <summary>
59- /// The target model/data type
59+ /// Gets the target model/data type
6060 /// </summary>
6161 public Type DataType => dataType ;
6262}
You can’t perform that action at this time.
0 commit comments