概述
目录
Props (接口)
单位属性
单位属性是对基本属性的扩展。
单位属性主要目的是对没有写明单位的属性赋缺省单位。
单位属性覆盖原始属性,其它属性在单位属性上进行扩展。
例如
width: 5;
等于
width: 5px;
包含的属性名 - backgroundSize - borderBottomWidth - borderLeftWidth - borderRadius - borderRightWidth, - borderTopWidth - borderWidth - bottom - fontSize - left - letterSpacing - margin - marginTop - marginBottom - marginLeft - marginRight - padding - paddingTop - paddingBottom - paddingLeft - paddingRight - right - top - flexBasis
例如 ```css width: 5; ``` 等于 ```css width: 5px; ```
包含的属性名 - width - height - maxWidth - minWidth - maxHeight - minHeight
例如 ```css width: 0.5; ``` 等于 ```css width: 50%; ```
包含的属性名 - transitionDuration - transitionDelay - animationDuration - animationDelay
例如 ```css transitiondelay: 500; ``` 等于 ```css transitiondelay: 500ms; ```
签名
interface Props {}
v0.2.0 中添加
BaseRule (类型)
签名
export type BaseRule = _Rule<{}, {}, BaseProps, {}>
v0.2.0 中添加
Rule (类型)
签名
export type Rule = ExtendRule<BaseRule, UnitNumberProps, {}>
v0.2.0 中添加
rule (常量)
签名
export const rule: Rule = ...
v0.2.0 中添加
ruleModule (常量)
签名
export const ruleModule: RuleModule<Rule> = ...
v0.2.0 中添加