更新记录
1.0.2(2024-06-12)
修改初次渲染高度不够第二次获取第一次高度的问题
1.0.1(2024-05-30)
更新初始高度
1.0.0(2024-05-30)
1.0.0
查看更多平台兼容性
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()