feat: 新增文本字体加粗

This commit is contained in:
蒋承
2022-09-27 10:56:26 +08:00
parent e6da8d8b9f
commit 6bac8e10ba
3 changed files with 35 additions and 5 deletions
@@ -13,6 +13,16 @@ export const WritingModeObject = {
[WritingModeEnum.VERTICAL]: 'vertical-rl'
}
export enum FontWeightEnum {
NORMAL = '常规',
BOLD = '加粗',
}
export const FontWeightObject = {
[FontWeightEnum.NORMAL]: 'normal',
[FontWeightEnum.BOLD]: 'bold',
}
export const option = {
link: '',
linkHead: 'http://',
@@ -22,6 +32,7 @@ export const option = {
paddingX: 10,
paddingY: 10,
textAlign: 'center', // 水平对齐方式
fontWeight: 'normal',
// 边框
borderWidth: 0,