1 line
1.9 KiB
Plaintext
1 line
1.9 KiB
Plaintext
<view class="container"><uni-card wx:if="{{a}}" u-s="{{['d']}}" u-i="fe61ca18-0" bind:__l="__l" u-p="{{a}}"><view class="header"><text class="uni-h6">使用间距辅助类对元素快速应用</text> <text class="uni-primary uni-px-3 uni-h6">margin</text><text class="uni-h6"> 或 </text><text class="uni-primary uni-px-3 uni-h6">padding</text> <text class="uni-h6">样式, 范围是从 0 到 16。</text></view><view class="header uni-mt-5"><text class="uni-h6">规则为</text> <text class="uni-primary uni-pl-3 uni-h6">uni-${property}${direction}-${size}</text></view><view class="uni-mt-5"><text class="uni-h6">各值的含义请参考文档</text></view></uni-card><uni-section wx:if="{{p}}" u-s="{{['d']}}" u-i="fe61ca18-1" bind:__l="__l" u-p="{{p}}"><view class="margin"><view class="{{['margin-item', 'uni-border-4-bg', b, c]}}"><view class="box uni-primary-bg"><text class="uni-white uni-body">通过下面的选项控制边距</text></view></view></view><view class="actions uni-mt-10"><text class="action-label">外边距</text><uni-data-checkbox wx:if="{{f}}" bindchange="{{d}}" u-i="fe61ca18-2,fe61ca18-1" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"></uni-data-checkbox></view><view class="actions uni-mt-3 uni-mb-10"><text class="action-label">外边距大小</text><uni-data-checkbox wx:if="{{i}}" bindchange="{{g}}" u-i="fe61ca18-3,fe61ca18-1" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></uni-data-checkbox></view><view class="actions"><text class="action-label">内边距</text><uni-data-checkbox wx:if="{{l}}" bindchange="{{j}}" u-i="fe61ca18-4,fe61ca18-1" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></uni-data-checkbox></view><view class="actions uni-mt-3 uni-mb-10"><text class="action-label">内边距大小</text><uni-data-checkbox wx:if="{{o}}" bindchange="{{m}}" u-i="fe61ca18-5,fe61ca18-1" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"></uni-data-checkbox></view></uni-section></view> |