Yao e4dfc9e48c
[new feature] Layout: 新增 layout 组件 (#43)
* change example dir

* Update README.md

更新预览教程

* 新增 layout 组件

* exclude example

* change .wxss -> .pcss

* 脚本目录更名为 scripts
2017-10-31 17:41:31 +08:00

34 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="container">
<view class="doc-title">LAYOUT</view>
<view class="zan-panel-title">基础用法</view>
<view class="doc-description">Layout 组件提供了24列栅格添加 zan-col-x 可以设置元素所占宽度</view>
<view class="zan-panel">
<view class="zan-row">
<view class="zan-col zan-col-8">
span: 8
</view>
<view class="zan-col zan-col-8">
span: 8
</view>
<view class="zan-col zan-col-8">
span: 8
</view>
</view>
</view>
<view class="zan-panel-title">offset</view>
<view class="doc-description">添加 zan-col-offset-x 类可以设置列的偏移宽度,计算方式与 span 相同</view>
<view class="zan-panel">
<view class="zan-row">
<view class="zan-col zan-col-4">span: 4</view>
<view class="zan-col zan-col-10 zan-col-offset-4">offset: 4, span: 10</view>
</view>
<view class="zan-row">
<view class="zan-col zan-col-12 zan-col-offset-12">offset: 12, span: 12</view>
</view>
</view>
</view>