0.0.17 • Published 4 years ago

@retailwe/ui-loading-content v0.0.17

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

loading-content 加载状态,用于占位

引入

全局引入,在 miniprogram 根目录下的app.json中配置,局部引入,在需要引入的页面或组件的index.json中配置。

// app.json 或 index.json
"usingComponents": {
  "wr-loading-content": "@retailwe/ui-loading-content/index"
}

代码演示

基础用法,铺满父容器

<wr-loading-content>loading</wr-loading-content>

绝对定位,遮盖父容器的内容

注意: 需配合将父容器的 position 为 relative

<view
  style="width: 100%; height: 200rpx; background-color: yellow; position: relative;"
>
  容器内容
  <wr-loading-content position="absolute">loading</wr-loading-content>
</view>

绝对定位,遮盖窗口

<wr-loading-content position="fixed">loading</wr-loading-content>

API

loading-content Props

参数说明类型默认值版本
type类型,可选值circularspinnerstringcircular-
vertical文字是否显示在 loading 下方booleanfalse-
sizeloading 的大小string50rpx-
textSize文字的大小string24rpx-
colorloading 的颜色string#c8c9cc-

Slots

名称说明
-加载文案

loading-content 外部样式类

外部样式类

类名说明
wr-class根节点样式类
0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7-beta.1

4 years ago