API Docs for: 1.3.1
Show:

layout Class

Module: Yo

Yo框架layout

Yo内置的布局方式

Item Index

Methods

yo-flex

(
  • $name
  • $box
  • $direction
)

构造弹性布局使用方法,可以是横向和纵向

使用方法,详见 Demo

Parameters:

  • $name String

    为新的扩展定义一个名称

  • $box String

    指定块级或者行级弹性盒

  • $direction String

    指定是水平或者垂直布局

yo-stacked

(
  • $name
  • $margin
)

构造独立区块布局

使用方法,详见 Demo

Parameters:

  • $name Defailt | String

    定义名称

  • $margin Defailt | Color

    定义外边距