feat: 新增 public 预览配置项preview

This commit is contained in:
奔跑的面条
2023-02-15 14:24:56 +08:00
parent 5ee5c0fd58
commit 62c85cc0cf
6 changed files with 26 additions and 8 deletions
@@ -15,7 +15,6 @@ export const FontWeightObject = {
}
export const option = {
dataset: '让数字化看得见',
fontSize: 32,
fontColor: '#ffffff',
@@ -39,4 +38,5 @@ export default class Config extends PublicConfigClass implements CreateComponent
public attr = { ...chartInitConfig, w: 500, h: 70, zIndex: -1 }
public chartConfig = cloneDeep(TextBarrageConfig)
public option = cloneDeep(option)
public preview = { overFlowHidden: true }
}
+4
View File
@@ -114,6 +114,10 @@ export interface PublicConfigType {
// 动画
animations: string[]
}
preview?: {
// 预览超出隐藏
overFlowHidden?: boolean
}
filter?: string
status: StatusType
events: {
+4
View File
@@ -78,6 +78,10 @@ export class PublicConfigClass implements PublicConfigType {
// 动画
animations: []
}
// 预览
public preview = {
overFlowHidden: false
}
// 状态
public status = {
lock: false,