|
6 | 6 | namespace BootstrapBlazor.Components; |
7 | 7 |
|
8 | 8 | /// <summary> |
9 | | -/// AutoGenerateColumn 标签基类,用于 <see cref="Table{TItem}"/> 标识自动生成列 |
| 9 | +/// Base class for AutoGenerateColumn attribute, used to mark auto-generated columns in <see cref="Table{TItem}"/> |
10 | 10 | /// </summary> |
11 | 11 | public abstract class AutoGenerateBaseAttribute : Attribute |
12 | 12 | { |
13 | 13 | /// <summary> |
14 | | - /// 获得/设置 当前列是否可编辑 默认为 true 当设置为 false 时自动生成编辑 UI 不生成此列 |
| 14 | + /// Gets or sets whether the current column is editable. Default is true. When set to false, the auto-generated edit UI will not generate this column. |
15 | 15 | /// </summary> |
16 | | - [Obsolete("已弃用,是否可编辑改用 Readonly 参数,是否可见改用 Ignore 参数; Deprecated If it is editable, use the Readonly parameter. If it is visible, use the Ignore parameter.")] |
| 16 | + [Obsolete("Deprecated. If it is editable, use the Readonly parameter. If it is visible, use the Ignore parameter.")] |
17 | 17 | [ExcludeFromCodeCoverage] |
18 | 18 | public bool Editable { get; set; } = true; |
19 | 19 |
|
20 | 20 | /// <summary> |
21 | | - /// 获得/设置 当前列是否渲染 默认为 false 当设置为 true 时 UI 不生成此列 |
| 21 | + /// Gets or sets whether the current column is rendered. Default is false. When set to true, the UI will not generate this column. |
22 | 22 | /// </summary> |
23 | 23 | public bool Ignore { get; set; } |
24 | 24 |
|
25 | 25 | /// <summary> |
26 | | - /// 获得/设置 当前编辑项是否只读 默认为 false |
| 26 | + /// Gets or sets whether the current edit item is read-only. Default is false. |
27 | 27 | /// </summary> |
28 | 28 | public bool Readonly { get; set; } |
29 | 29 |
|
30 | 30 | /// <summary> |
31 | | - /// 获得/设置 当前编辑项是否显示 默认为 true |
| 31 | + /// Gets or sets whether the current edit item is visible. Default is true. |
32 | 32 | /// </summary> |
33 | 33 | public bool Visible { get; set; } = true; |
34 | 34 |
|
35 | 35 | /// <summary> |
36 | | - /// 获得/设置 是否允许排序 默认为 false |
| 36 | + /// Gets or sets whether sorting is allowed. Default is false. |
37 | 37 | /// </summary> |
38 | 38 | public bool Sortable { get; set; } |
39 | 39 |
|
40 | 40 | /// <summary> |
41 | | - /// 获得/设置 是否允许过滤数据 默认为 false |
| 41 | + /// Gets or sets whether data filtering is allowed. Default is false. |
42 | 42 | /// </summary> |
43 | 43 | public bool Filterable { get; set; } |
44 | 44 |
|
45 | 45 | /// <summary> |
46 | | - /// 获得/设置 是否参与搜索 默认为 false |
| 46 | + /// Gets or sets whether the column participates in search. Default is false. |
47 | 47 | /// </summary> |
48 | 48 | public bool Searchable { get; set; } |
49 | 49 |
|
50 | 50 | /// <summary> |
51 | | - /// 获得/设置 本列是否允许换行 默认为 false |
| 51 | + /// Gets or sets whether text wrapping is allowed in this column. Default is false. |
52 | 52 | /// </summary> |
53 | 53 | public bool TextWrap { get; set; } |
54 | 54 |
|
55 | 55 | /// <summary> |
56 | | - /// 获得/设置 本列文本超出省略 默认为 false |
| 56 | + /// Gets or sets whether text overflow is ellipsis in this column. Default is false. |
57 | 57 | /// </summary> |
58 | 58 | public bool TextEllipsis { get; set; } |
59 | 59 |
|
60 | 60 | /// <summary> |
61 | | - /// 获得/设置 文字对齐方式 默认为 Alignment.None |
| 61 | + /// Gets or sets the text alignment. Default is Alignment.None. |
62 | 62 | /// </summary> |
63 | 63 | public Alignment Align { get; set; } |
64 | 64 |
|
65 | 65 | /// <summary> |
66 | | - /// 获得/设置 字段鼠标悬停提示 默认为 false |
| 66 | + /// Gets or sets whether to show tooltips on mouse hover. Default is false. |
67 | 67 | /// </summary> |
68 | 68 | public bool ShowTips { get; set; } |
69 | 69 |
|
70 | 70 | /// <summary> |
71 | | - /// 获得/设置 是否可以拷贝列 默认 false 不可以 |
| 71 | + /// Gets or sets whether the column can be copied. Default is false. |
72 | 72 | /// </summary> |
73 | 73 | public bool ShowCopyColumn { get; set; } |
74 | 74 | } |
0 commit comments