fix(components): [watermark] correct fontWeight type definition (#23641)

This commit is contained in:
E66
2026-02-10 09:09:20 +08:00
committed by GitHub
parent 9ffd7ce279
commit a005d766e6
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ watermark/custom
| ----------------- | ------------- | ------------------------------------------------------------------------------------ | --------------- |
| color | font color | ^[string] | rgba(0,0,0,.15) |
| fontSize | font size | ^[number] / ^[string] | 16 |
| fontWeight | font weight | ^[enum]`'normal' \| 'light' \| 'weight' \| number` | normal |
| fontWeight | font weight | ^[enum]`'normal' \| 'bold' \| 'lighter' \| 'bolder' \| number` | normal |
| fontFamily | font family | ^[string] | sans-serif |
| fontGap ^(2.11.5) | font gap | ^[number] | 3 |
| fontStyle | font style | ^[enum]`'none' \| 'normal' \| 'italic' \| 'oblique'` | normal |

View File

@@ -6,7 +6,7 @@ import type Watermark from './watermark.vue'
export interface WatermarkFontType {
color?: string
fontSize?: number | string
fontWeight?: 'normal' | 'light' | 'weight' | number
fontWeight?: 'normal' | 'bold' | 'lighter' | 'bolder' | number
fontStyle?: 'none' | 'normal' | 'italic' | 'oblique'
fontFamily?: string
fontGap?: number