|
|
|
@ -156,6 +156,8 @@ export interface Textual { |
|
|
|
|
textColor?: string |
|
|
|
|
/** 字体大小 */ |
|
|
|
|
fontSize?: number |
|
|
|
|
/** 字体粗细 */ |
|
|
|
|
fontWeight?: 400|500|600|700|800|900 |
|
|
|
|
/** 文本方向 */ |
|
|
|
|
textAlign?: TextAlign |
|
|
|
|
/** 行高,行高比较特殊,需要转换单位 */ |
|
|
|
@ -210,6 +212,15 @@ export interface Decoration { |
|
|
|
|
gradient?: Gradient |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 盒子模型块级元素或行级块元素 |
|
|
|
|
* |
|
|
|
|
*/ |
|
|
|
|
export interface BoxBlock { |
|
|
|
|
display?: 'block' | 'inline-block' |
|
|
|
|
whiteSpace?: 'nowrap' | 'pre' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 空间分配策略 |
|
|
|
|
* |
|
|
|
@ -224,6 +235,8 @@ export interface Spatial { |
|
|
|
|
shrink?: number |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 盒子策略 |
|
|
|
|
* |
|
|
|
@ -281,7 +294,7 @@ export type ClipBehavior = |
|
|
|
|
* |
|
|
|
|
* 描述了视图的基本布局和外观表现。 |
|
|
|
|
*/ |
|
|
|
|
export interface Theme extends Textual, Flexible, Boxed, Decoration, Spatial, Flexible, Stacked { |
|
|
|
|
export interface Theme extends Textual, Flexible,BoxBlock, Boxed, Decoration, Spatial, Flexible, Stacked { |
|
|
|
|
/** |
|
|
|
|
* 是否强制开启弹性布局 |
|
|
|
|
* |
|
|
|
|