更新记录
1.0.4(2024-11-05) 下载此版本
修复文本框点击无效
1.0.3(2024-11-01) 下载此版本
添加了slot插槽 slot="front" 来进行首行缩进,展示置顶或一些标签
1.0.2(2024-06-12) 下载此版本
修改初次渲染高度不够第二次获取第一次高度的问题
查看更多平台兼容性
Vue2 | Vue3 |
---|---|
√ | √ |
App | 快应用 | 微信小程序 | 支付宝小程序 | 百度小程序 | 字节小程序 | QQ小程序 |
---|---|---|---|---|---|---|
app-vue app-nvue | √ | √ | √ | √ | √ | √ |
钉钉小程序 | 快手小程序 | 飞书小程序 | 京东小程序 | 鸿蒙元服务 |
---|---|---|---|---|
√ | √ | √ | √ | × |
H5-Safari | Android Browser | 微信浏览器(Android) | QQ浏览器(Android) | Chrome | IE | Edge | Firefox | PC-Safari |
---|---|---|---|---|---|---|---|---|
√ | √ | √ | √ | √ | √ | √ | √ | √ |
文本内容
cont: 支持富文本
默认富文本,设置true可换行
parse:{ type: Boolean, default:false },
行高
lineHeight:{ type: Number, default:44 },
行数
showRow:{ type: Number, default:4 },
查看更多文字
moreName:{ type: String, default:'查看更多' },
收起文字
packName:{ type: String, default:'收起' },
文字大小 rpx
fontSize:{ type: Number, default:28 },
展开位置 right/center
moreAddress:{ default:'right' }
默认展示状态
this.$refs.****.showContent()
插槽 首行缩进 slot="front"