mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [watermark] correct fontWeight type definition (#23641)
This commit is contained in:
@@ -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 |
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user