isv-fiz-layout-algorithm

10.0.9 • Public • Published

Layout Algorithm

预定义的常量

可用的栅格列宽(px):

  • sm: 390
  • md: 590
  • lg: 790
  • xl: 1190

以上列宽在 fiz-layout-template 中定义。

工作流

ABS

  1. 从 ABS 页面信息(abs page json)开始
  2. 输入到解析器(parser/abs),输出标准模块信息(formal module json)
  3. 输入到布局转换算法(algorithm/level-n),输出标准布局信息(formal layout json)
  4. 输入到编译器(compiler/abs),输出新的 ABS 页面信息(abs page json with layout.map)

标准组件处理

  • 对于有特定标记的模块,将其识别为 FIZ 标准组件。
  • 对于标准组件中没定义 widths 的模块,提供一个默认 widths。
  • 对于标准组件中的部分模块,调整布局顺序。

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i isv-fiz-layout-algorithm

      Weekly Downloads

      1

      Version

      10.0.9

      License

      ISC

      Last publish

      Collaborators

      • smalldragonluo