Skip to content

Commit 1f0a4c8

Browse files
author
Zhicheng WANG
committed
fix: padding 由填充改译为衬距
1 parent a23e250 commit 1f0a4c8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/cdk/tree/tree.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ For best accessibility, `cdkTreeNodeToggle` should be on a button element and ha
147147

148148
#### Padding (Flat tree only)
149149

150-
#### 填充(仅限扁平树)
150+
#### 衬距(仅限扁平树)
151151

152152
The cdkTreeNodePadding can be placed in a flat tree's node template to display the level
153153
information of a flat tree node.
@@ -163,7 +163,7 @@ information of a flat tree node.
163163
Nested tree does not need this padding since padding can be easily added to the hierarchy structure
164164
in DOM.
165165

166-
嵌套树不需要这种填充,因为 `padding` 可以很容易地添加到 DOM 中的层次结构上。
166+
嵌套树不需要这种衬距,因为 `padding` 可以很容易地添加到 DOM 中的层次结构上。
167167

168168
#### Conditional template
169169

src/material/menu/menu-trigger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER = {
6666
/**
6767
* Default top padding of the menu panel.
6868
*
69-
* 菜单面板的默认顶部填充
69+
* 菜单面板的默认顶部衬距
7070
*
7171
*/
7272
export const MENU_PANEL_TOP_PADDING = 8;

src/material/tree/tree.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Additional features can be built on top of the tree by adding behavior inside no
8282
(e.g., padding and toggle). Interactions that affect the
8383
rendered data (such as expand/collapse) should be propagated through the table's data source.
8484

85-
`<mat-tree>` 本身只关心树形结构的渲染工作。通过在节点模板内添加行为(比如填充 `padding` 和切换 `toggle`),可以在标准树的基础上构建附加功能。
85+
`<mat-tree>` 本身只关心树形结构的渲染工作。通过在节点模板内添加行为(比如衬距 `padding` 和切换 `toggle`),可以在标准树的基础上构建附加功能。
8686
那些能影响渲染数据的交互(比如展开/折叠)应该能通过表格的数据源进行传播。
8787

8888
### TreeControl
@@ -117,7 +117,7 @@ The toggle can be placed anywhere in the tree node, and is only toggled by `clic
117117

118118
### Padding (Flat tree only)
119119

120-
### 填充(只对扁平树)
120+
### 衬距(只对扁平树)
121121

122122
The `matTreeNodePadding` can be placed in a flat tree's node template to display the `level`
123123
information of a flat tree node.
@@ -127,7 +127,7 @@ information of a flat tree node.
127127
Nested tree does not need this padding since padding can be easily added to the hierarchy
128128
structure in DOM.
129129

130-
嵌套树不需要进行填充,因为 DOM 中的层次结构就能很容易地加上它。
130+
嵌套树不需要进行衬距,因为 DOM 中的层次结构就能很容易地加上它。
131131

132132
### Accessibility
133133

0 commit comments

Comments
 (0)