diff --git a/components/watermark/index.en-US.md b/components/watermark/index.en-US.md index e1b93801cf..1405f59bba 100644 --- a/components/watermark/index.en-US.md +++ b/components/watermark/index.en-US.md @@ -53,7 +53,7 @@ Common props ref:[Common props](/docs/react/common-props) | --- | --- | --- | --- | --- | | color | font color | [CanvasFillStrokeStyles.fillStyle](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) | rgba(0,0,0,.15) | | | fontSize | font size | number | 16 | | -| fontWeight | font weight | `normal` \| `light` \| `weight` \| number | normal | | +| fontWeight | font weight | `normal` \| `lighter` \| `bold` \| `bolder` \| number | normal | | | fontFamily | font family | string | sans-serif | | | fontStyle | font style | `none` \| `normal` \| `italic` \| `oblique` | normal | | | textAlign | specify the text alignment direction | [CanvasTextAlign](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) | `center` | 5.10.0 | diff --git a/components/watermark/index.tsx b/components/watermark/index.tsx index cc22e3be12..ed9330dc2a 100644 --- a/components/watermark/index.tsx +++ b/components/watermark/index.tsx @@ -24,7 +24,7 @@ export interface WatermarkProps { font?: { color?: CanvasFillStrokeStyles['fillStyle']; fontSize?: number | string; - fontWeight?: 'normal' | 'light' | 'weight' | number; + fontWeight?: 'normal' | 'lighter' | 'bold' | 'bolder' | number; fontStyle?: 'none' | 'normal' | 'italic' | 'oblique'; fontFamily?: string; textAlign?: CanvasTextAlign; diff --git a/components/watermark/index.zh-CN.md b/components/watermark/index.zh-CN.md index b0d7cc7a5c..a8fbaf5df4 100644 --- a/components/watermark/index.zh-CN.md +++ b/components/watermark/index.zh-CN.md @@ -54,7 +54,7 @@ tag: 5.1.0 | --- | --- | --- | --- | --- | | color | 字体颜色 | [CanvasFillStrokeStyles.fillStyle](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) | rgba(0,0,0,.15) | | | fontSize | 字体大小 | number | 16 | | -| fontWeight | 字体粗细 | `normal` \| `light` \| `weight` \| number | normal | | +| fontWeight | 字体粗细 | `normal` \| `lighter` \| `bold` \| `bolder` \| number | normal | | | fontFamily | 字体类型 | string | sans-serif | | | fontStyle | 字体样式 | `none` \| `normal` \| `italic` \| `oblique` | normal | | | textAlign | 指定文本对齐方向 | [CanvasTextAlign](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) | `center` | 5.10.0 |