Skip to content

Commit d7aff09

Browse files
author
Zhicheng WANG
committed
fix: 滑竿改为滑杆
1 parent ba71909 commit d7aff09

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/material/slider/slider.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ By default the minimum value of the slider is `0`, the maximum value is `100`, a
1717
in increments of `1`. These values can be changed by setting the `min`, `max`, and `step` attributes
1818
respectively. The initial value is set to the minimum value unless otherwise specified.
1919

20-
默认情况下,滑竿(slider)的最小值是 `0`,最大值是 `100`,滑块(thumb)移动时的增量是 `1`
20+
默认情况下,滑杆(slider)的最小值是 `0`,最大值是 `100`,滑块(thumb)移动时的增量是 `1`
2121
这些值可以通过设置 `min``max``step` 属性进行修改。除非另行指定,否则其初始值就等于最小值。
2222

2323
```html
@@ -32,7 +32,7 @@ By default sliders are horizontal with the minimum value on the left and the max
3232
right. The `vertical` attribute can be added to a slider to make it vertical with the minimum value
3333
on bottom and the maximum value on top.
3434

35-
默认情况下,滑竿是水平放置的,其最小值在左侧,最大值在右侧。可以给滑竿添加 `vertical` 属性,来让它变成垂直的,其最小值在底部,而最大值在顶部。
35+
默认情况下,滑杆是水平放置的,其最小值在左侧,最大值在右侧。可以给滑杆添加 `vertical` 属性,来让它变成垂直的,其最小值在底部,而最大值在顶部。
3636

3737
```html
3838
<mat-slider vertical></mat-slider>
@@ -44,7 +44,7 @@ on the left, while an inverted vertical slider will have the minimum value on to
4444
value on bottom.
4545

4646
还可以指定 `invert` 属性,来翻转坐标轴(滑块会沿着它移动)。
47-
翻转后的水平滑竿,其最小值在右侧,而最大值在左侧;翻转后的垂直滑竿,其最小值在上部,而最大值在底部。
47+
翻转后的水平滑杆,其最小值在右侧,而最大值在左侧;翻转后的垂直滑杆,其最小值在上部,而最大值在底部。
4848

4949
```html
5050
<mat-slider invert></mat-slider>
@@ -57,13 +57,13 @@ value on bottom.
5757
By default, the exact selected value of a slider is not visible to the user. However, this value can
5858
be added to the thumb by adding the `thumbLabel` attribute.
5959

60-
默认情况下,滑竿所选的精确值不会显示给用户。不过,可以通过 `thumbLabel` 属性来把这个值显示在滑块上。
60+
默认情况下,滑杆所选的精确值不会显示给用户。不过,可以通过 `thumbLabel` 属性来把这个值显示在滑块上。
6161

6262
The [Material Design spec](https://material.io/design/components/sliders.html#discrete-slider) recommends using the
6363
`thumbLabel` attribute (along with `tickInterval="1"`) only for sliders that are used to display a
6464
discrete value (such as a 1-5 rating).
6565

66-
[Material Design 规范](https://material.io/design/components/sliders.html#discrete-slider)建议只为那些用来显示离散值(比如 1~5 的打分值)的滑竿使用 `thumbLabel` 属性(同时设置 `tickInterval="1"`)。
66+
[Material Design 规范](https://material.io/design/components/sliders.html#discrete-slider)建议只为那些用来显示离散值(比如 1~5 的打分值)的滑杆使用 `thumbLabel` 属性(同时设置 `tickInterval="1"`)。
6767

6868
```html
6969
<mat-slider thumbLabel tickInterval="1"></mat-slider>
@@ -91,7 +91,7 @@ By default, sliders do not show tick marks along the thumb track. This can be en
9191
of steps between ticks. For example a `tickInterval` of `3` with a `step` of `4` will draw
9292
tick marks at every `3` steps, which is the same as every `12` values.
9393

94-
默认情况下,滑竿不会在滑块的导轨(track)上显示刻度标记,不过可以使用 `tickInterval` 属性来启用它。`tickInterval` 的值应该是一个表示刻度之间步长的数字。比如 `tickInterval``3``step``4` 时,将会每隔 `3` 步画出一个标记,每 `12` 个值重复一轮。
94+
默认情况下,滑杆不会在滑块的导轨(track)上显示刻度标记,不过可以使用 `tickInterval` 属性来启用它。`tickInterval` 的值应该是一个表示刻度之间步长的数字。比如 `tickInterval``3``step``4` 时,将会每隔 `3` 步画出一个标记,每 `12` 个值重复一轮。
9595

9696
```html
9797
<mat-slider step="4" tickInterval="3"></mat-slider>
@@ -110,37 +110,37 @@ The slider will always show a tick at the beginning and end of the track. If the
110110
doesn't add up perfectly the last interval will be shortened or lengthened so that the tick can be
111111
shown at the end of the track.
112112

113-
滑竿始终会在导轨的起点和终点显示一个刻度。如果剩下的控件不够添加了,那么最后一个间距可能被缩短或拉长,以便让刻度显示在导轨的末尾。
113+
滑杆始终会在导轨的起点和终点显示一个刻度。如果剩下的控件不够添加了,那么最后一个间距可能被缩短或拉长,以便让刻度显示在导轨的末尾。
114114

115115
The [Material Design spec](https://material.io/design/components/sliders.html#discrete-slider) recommends using the
116116
`tickInterval` attribute (set to `1` along with the `thumbLabel` attribute) only for sliders that
117117
are used to display a discrete value (such as a 1-5 rating).
118118

119-
[Material Design 规范](https://material.io/design/components/sliders.html#discrete-slider) 建议只为那些用来显示离散值(比如 1~5 的打分值)的滑竿设置 `tickInterval` 属性(同时把 `thumbLabel` 属性设置为 `1`)。
119+
[Material Design 规范](https://material.io/design/components/sliders.html#discrete-slider) 建议只为那些用来显示离散值(比如 1~5 的打分值)的滑杆设置 `tickInterval` 属性(同时把 `thumbLabel` 属性设置为 `1`)。
120120

121121
### Keyboard interaction
122122

123123
### 键盘交互
124124

125125
The slider has the following keyboard bindings:
126126

127-
滑竿具有下列键盘绑定
127+
滑杆具有下列键盘绑定
128128

129129
| Key | Action |
130130
|-------------|------------------------------------------------------------------------------------|
131131
| 按键 | 操作 |
132132
| Right arrow | Increment the slider value by one step (decrements in RTL). |
133-
| 右方向键 | 滑竿的值增加一步(在 RTL 下则减小)。 |
133+
| 右方向键 | 滑杆的值增加一步(在 RTL 下则减小)。 |
134134
| Up arrow | Increment the slider value by one step. |
135-
| 上方向键 | 滑竿的值增加一步|
135+
| 上方向键 | 滑杆的值增加一步|
136136
| Left arrow | Decrement the slider value by one step (increments in RTL). |
137-
| 左方向键 | 滑竿的值减小一步(在 RTL 下则增加)。 |
137+
| 左方向键 | 滑杆的值减小一步(在 RTL 下则增加)。 |
138138
| Down arrow | Decrement the slider value by one step. |
139-
| 下方向键 | 滑竿的值减小一步|
139+
| 下方向键 | 滑杆的值减小一步|
140140
| Page up | Increment the slider value by 10 steps. |
141-
| 上翻页 | 滑竿的值增加 10 步。 |
141+
| 上翻页 | 滑杆的值增加 10 步。 |
142142
| Page down | Decrement the slider value by 10 steps. |
143-
| 下翻页 | 滑竿的值减小 10 步。 |
143+
| 下翻页 | 滑杆的值减小 10 步。 |
144144
| End | Set the value to the maximum possible. |
145145
| End | 设置为可能的最大值。 |
146146
| Home | Set the value to the minimum possible. |
@@ -153,4 +153,4 @@ The slider has the following keyboard bindings:
153153
Sliders without text or labels should be given a meaningful label via `aria-label` or
154154
`aria-labelledby`.
155155

156-
没有文本或标签的滑竿应该通过 `aria-label``aria-labelledby` 给出一个有意义的标签。
156+
没有文本或标签的滑杆应该通过 `aria-label``aria-labelledby` 给出一个有意义的标签。

0 commit comments

Comments
 (0)