Skip to content

mms-div 分割线

简述

分割线,支持文字在左/中/右。

注意

注意: 请以 uni_modules/mms-unix 与本文为准;各端差异以 uni-app 与各平台官方文档为准。涉及隐私能力(相册、定位、剪贴板、手机号等)需在 manifest 与后台完成配置。

平台差异说明

App(vue)App(nvue)H5小程序

基本使用

uvue
<template>
	<view>
		<mms-div></mms-div>
	</view>
</template>

Props

参数说明类型默认值
backgroundColor分割线颜色string- (继承)
textColor文字颜色string#909399
fontSize文字大小,单位 rpxnumber28
height分割线高度string1rpx
contentPosition文字位置 left / center / rightstringcenter
text文字内容string''
textClass文字自定义类名string''

插槽

名称说明
default文字内容(替换 text)

示例

实线

uvue
<mms-div></mms-div>

带文字

uvue
<mms-div text="分割线"></mms-div>

文字居左

uvue
<mms-div text="分割线" content-position="left"></mms-div>

自定义颜色

uvue
<mms-div text="红色分割线" text-color="#f56c6c"></mms-div>

Released under the MIT License.