0.0.20 • Published 3 years ago

@retailwe/ui-comments-card v0.0.20

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

商品评论卡片

引入

"usingComponents": {
  "comments-card": "@retailwe/comments-card/index"
}

代码演示

<wr-comments-card
    commentScore="{{item.commentScore}}"
    userName="{{item.userName}}"
    commentImageUrls="{{item.commentImageUrls}}"
    commentContent="{{item.commentContent}}"
    commentTime="{{item.commentTime}}"
    userHeadUrl="{{item.userHeadUrl}}"
></wr-comments-card>

入参

参数说明类型默认值是否必要
commentScore评分Array[]
userName发表人名称String''
commentImageUrls评论图片Array[]
commentContent评论内容String‘’
commentTime评论时间string''
userHeadUrl发表人头像地址String
hideWordCount多少字符隐藏Number240
autoPreview是否开启相册默认展示缩略图Boolean

slot

name说明默认值
specInfo商品规格

Events

事件是否必要说明
showPreview点击缩略图时返回该图所在评论图组中的索引index

外部样式类

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

3 years ago

0.0.19

4 years ago

0.0.18

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