mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增动画功能
This commit is contained in:
Vendored
+1
@@ -19,6 +19,7 @@ export interface PublicConfigType {
|
||||
id: string
|
||||
rename?: string
|
||||
attr: { x: number; y: number; w: number; h: number; zIndex: number }
|
||||
styles: { opacity: number, animations: string[] }
|
||||
setPosition: Function
|
||||
}
|
||||
export interface CreateComponentType extends PublicConfigType {
|
||||
|
||||
@@ -7,6 +7,11 @@ export class publicConfig implements PublicConfigType {
|
||||
public rename = undefined
|
||||
// 基本信息
|
||||
public attr = { x: 0, y: 0, w: 500, h: 300, zIndex: -1 }
|
||||
// 基本样式(动画,透明)
|
||||
public styles = {
|
||||
opacity: 1,
|
||||
animations: []
|
||||
}
|
||||
// 设置坐标
|
||||
public setPosition(x: number, y: number): void {
|
||||
this.attr.x = x
|
||||
|
||||
Reference in New Issue
Block a user