mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 修复文本设置链接时,字体样式丢失问题,并增加水平对齐配置
This commit is contained in:
@@ -5,22 +5,23 @@ import cloneDeep from 'lodash/cloneDeep'
|
||||
|
||||
export enum WritingModeEnum {
|
||||
HORIZONTAL = '水平',
|
||||
VERTICAL = '垂直',
|
||||
VERTICAL = '垂直'
|
||||
}
|
||||
|
||||
export const WritingModeObject = {
|
||||
[WritingModeEnum.HORIZONTAL]: 'horizontal-tb',
|
||||
[WritingModeEnum.VERTICAL]: 'vertical-rl',
|
||||
[WritingModeEnum.VERTICAL]: 'vertical-rl'
|
||||
}
|
||||
|
||||
export const option = {
|
||||
link:'',
|
||||
linkHead:'http://',
|
||||
link: '',
|
||||
linkHead: 'http://',
|
||||
dataset: '我是文本',
|
||||
fontSize: 20,
|
||||
fontColor: '#ffffff',
|
||||
paddingX: 10,
|
||||
paddingY: 10,
|
||||
textAlign: 'center', // 水平对齐方式
|
||||
|
||||
// 边框
|
||||
borderWidth: 0,
|
||||
@@ -30,11 +31,10 @@ export const option = {
|
||||
// 字间距
|
||||
letterSpacing: 5,
|
||||
writingMode: 'horizontal-tb',
|
||||
backgroundColor: '#00000000',
|
||||
backgroundColor: '#00000000'
|
||||
}
|
||||
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType
|
||||
{
|
||||
export default class Config extends PublicConfigClass implements CreateComponentType {
|
||||
public key = TextCommonConfig.key
|
||||
public chartConfig = cloneDeep(TextCommonConfig)
|
||||
public option = cloneDeep(option)
|
||||
|
||||
Reference in New Issue
Block a user