Skip to content

Commit ead6658

Browse files
committed
test 2
1 parent bbbe404 commit ead6658

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

cndocs/boxshadowvalue.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,36 +38,36 @@ title: BoxShadowValue 对象类型
3838

3939
### `blurRadius`
4040

41-
Represents the radius used in the [Guassian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
41+
表示用于 [高斯模糊](https://en.wikipedia.org/wiki/Gaussian_blur) 算法的半径。值越大,阴影越模糊。仅非负值有效。默认值为 0。
4242

43-
| Type | Optional |
43+
| 类型 | 可选 |
4444
| --------------- | -------- |
4545
| numer \| string | Yes |
4646

4747
### `spreadDistance`
4848

49-
How much larger or smaller the shadow grows or shrinks. A positive value will grow the shadow, a negative value will shrink the shadow.
49+
阴影扩展的距离。正值会使阴影变大,负值会使阴影变小。
5050

51-
| Type | Optional |
51+
| 类型 | 可选 |
5252
| --------------- | -------- |
5353
| numer \| string | Yes |
5454

5555
### `color`
5656

57-
The color of the shadow. The default is `black`.
57+
阴影的颜色。默认值为 `black`
5858

59-
| Type | Optional |
59+
| 类型 | 可选 |
6060
| -------------------- | -------- |
6161
| [color](./colors.md) | Yes |
6262

6363
### `inset`
6464

65-
Whether the shadow is inset or not. Inset shadows will appear around the inside of the element's border box as opposed to the outside.
65+
是否为内阴影。内阴影会出现在元素的边框盒内部,而不是外部。
6666

67-
| Type | Optional |
67+
| 类型 | 可选 |
6868
| ------- | -------- |
6969
| boolean | Yes |
7070

71-
## Used by
71+
## 由以下对象使用
7272

7373
- [`boxShadow`](./view-style-props.md#boxshadow)
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
id: boxshadowvalue
3-
title: BoxShadowValue Object Type
3+
title: BoxShadowValue 对象类型
44
---
55

6-
The `BoxShadowValue` object is taken by the [`boxShadow`](./view-style-props.md#boxshadow) style prop. It is comprised of 2-4 lengths, an optional color, and an optional `inset` boolean. These values collectively define the box shadow's color, position, size, and blurriness.
6+
`BoxShadowValue` 对象类型由 [`boxShadow`](./view-style-props.md#boxshadow) 样式属性所使用。它由 2-4 个长度、一个可选的颜色和一个可选的 `inset` 布尔值组成。这些值共同定义了盒阴影的颜色、位置、大小和模糊程度。
77

8-
## Example
8+
## 示例
99

1010
```js
1111
{
@@ -18,56 +18,56 @@ The `BoxShadowValue` object is taken by the [`boxShadow`](./view-style-props.md#
1818
}
1919
```
2020

21-
## Keys and values
21+
## 键和值
2222

2323
### `offsetX`
2424

25-
The offset on the x-axis. This can be positive or negative. A positive value indicates right and negative indicates left.
25+
在 x 轴上的偏移量。它可以是正数或负数。正数表示向右,负数表示向左。
2626

27-
| Type | Optional |
28-
| ---------------- | -------- |
29-
| number \| string | No |
27+
| 类型 | 可选 |
28+
| ---------------- | ---- |
29+
| number \| string | No |
3030

3131
### `offsetY`
3232

33-
The offset on the y-axis. This can be positive or negative. A positive value indicates up and negative indicates down.
33+
在 y 轴上的偏移量。它可以是正数或负数。正数表示向上,负数表示向下。
3434

35-
| Type | Optional |
36-
| ---------------- | -------- |
37-
| number \| string | No |
35+
| 类型 | 可选 |
36+
| ---------------- | ---- |
37+
| number \| string | No |
3838

3939
### `blurRadius`
4040

41-
Represents the radius used in the [Guassian blur](https://en.wikipedia.org/wiki/Gaussian_blur) algorithm. The larger the value the blurrier the shadow is. Only non-negative values are valid. The default is 0.
41+
表示用于 [高斯模糊](https://en.wikipedia.org/wiki/Gaussian_blur) 算法的半径。值越大,阴影越模糊。仅非负值有效。默认值为 0。
4242

43-
| Type | Optional |
44-
| --------------- | -------- |
45-
| numer \| string | Yes |
43+
| 类型 | 可选 |
44+
| --------------- | ---- |
45+
| numer \| string | Yes |
4646

4747
### `spreadDistance`
4848

49-
How much larger or smaller the shadow grows or shrinks. A positive value will grow the shadow, a negative value will shrink the shadow.
49+
阴影扩展的距离。正值会使阴影变大,负值会使阴影变小。
5050

51-
| Type | Optional |
52-
| --------------- | -------- |
53-
| numer \| string | Yes |
51+
| 类型 | 可选 |
52+
| --------------- | ---- |
53+
| numer \| string | Yes |
5454

5555
### `color`
5656

57-
The color of the shadow. The default is `black`.
57+
阴影的颜色。默认值为 `black`
5858

59-
| Type | Optional |
60-
| -------------------- | -------- |
61-
| [color](./colors.md) | Yes |
59+
| 类型 | 可选 |
60+
| -------------------- | ---- |
61+
| [color](./colors.md) | Yes |
6262

6363
### `inset`
6464

65-
Whether the shadow is inset or not. Inset shadows will appear around the inside of the element's border box as opposed to the outside.
65+
是否为内阴影。内阴影会出现在元素的边框盒内部,而不是外部。
6666

67-
| Type | Optional |
68-
| ------- | -------- |
69-
| boolean | Yes |
67+
| 类型 | 可选 |
68+
| ------- | ---- |
69+
| boolean | Yes |
7070

71-
## Used by
71+
## 由以下对象使用
7272

7373
- [`boxShadow`](./view-style-props.md#boxshadow)

0 commit comments

Comments
 (0)