1.5.1 • Published 4 months ago

@wines/white-space v1.5.1

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

@wines/white-space

WhiteSpace 上下留白

布局控件

使用指南

在 page.json 中引入组件

{
  "navigationBarTitleText": "wux-white-space",
  "usingComponents": {
    "wux-white-space": "@wines/white-space"
  }
}

示例

<view class="page">
  <view class="page__hd">
    <view class="page__title">WhiteSpace</view>
    <view class="page__desc">上下留白</view>
  </view>
  <view class="page__bd">
    <wux-white-space size="small" />
    <view class="placeholder">Wux</view>
    <wux-white-space size="default" />
    <view class="placeholder">Wux</view>
    <wux-white-space size="large" />
    <view class="placeholder">Wux</view>
    <wux-white-space body-style="height: 20px" />
    <view class="placeholder">Wux</view>
  </view>
</view>

API

WhiteSpace props

参数类型描述默认值
prefixClsstring自定义类名前缀wux-whitespace
sizestring上下留白的间距,可选值为 small、default、largedefault
bodyStylestring,object自定义样式-
bind:clickfunction点击事件-

WhiteSpace externalClasses

名称描述
wux-class根节点样式类
2.0.0-next.6

4 months ago

2.0.0-next.4

4 months ago

2.0.0-next.5

4 months ago

2.0.0-next.3

4 months ago

2.0.0-next.2

5 months ago

2.0.0-next.0

5 months ago

2.0.0-next.1

5 months ago

1.5.1

2 years ago

1.5.0

3 years ago

1.3.5

4 years ago

1.4.0

3 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago