0.0.20 • Published 5 years ago

@retailwe/ui-comments-card v0.0.20

Weekly downloads
-
License
-
Repository
-
Last release
5 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

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago