示例仅供参考,请以真机为主

Loading 加载图标

cl-loading 加载数据时显示动效

参数

参数说明类型可选值默认值
color图标颜色string#409EFF
size图标尺寸number25
theme主题stringdefault / spin25

示例

<cl-loading />

<cl-loading theme="spin" />

Loading-mask 参数

参数说明类型可选值默认值
text提示文字string
loading是否加载中booleanfalse
fullscreen是否全屏booleanfalse
color字体颜色string#409EFF
background背景颜色stringrgba(255,255,255,0.7)

区域加载示例

在容器中加载数据时显示。

样式 space 须添加 position: relative

<view class="space">
	<cl-loading-mask loading />

	<cl-form>
		<cl-form-item label="昵称">
			<cl-input></cl-input>
		</cl-form-item>

		<cl-form-item label="性别">
			<cl-select></cl-select>
		</cl-form-item>
	</cl-form>
</view>

<style lang="scss" scoped>
	.space {
		font-size: 28rpx;
		width: 100%;
		background-color: #f7f7f7;
		position: relative;
	}
</style>
Last Updated: