更新记录
v1.0.0(2020-07-07)
下载此版本
- 单级评论列表展示;
- 支持点赞,删除功能。
平台兼容性
1. 使用方法:
<!--
@param: commentList展示的评论列表数据
@method: clickPraise 点赞评论
@method: clickDelete 删除父级评论
-->
<five-commentlist :commentList="commentList" @clickPraise="clickPraiseSig" @clickDelete="clickDeleteSig"></five-commentlist>
2. commentList数据格式参照如下:
[{
"COMMENT_TIME": "2020-07-07 10:33:29",
"FIRSTNICKNAME": "网友1271622",
"IS_PRAISE": null,
"TAG":"",
"COMMENT": "",
"PRAISE_NUM": 0,
"CANDELETE": 1,
"HEADIMGURL": "http://img2.imgtn.bdimg.com/it/u=2659658743,1944621503&fm=26&gp=0.jpg",
"SECONDNICKNAME": null
},
{
"COMMENT_TIME": "2020-07-07 10:32:52",
"FIRSTNICKNAME": "网友3778839",
"IS_PRAISE": null,
"TAG":"",
"COMMENT": "",
"PRAISE_NUM": 0,
"CANDELETE": 0,
"HEADIMGURL": "http://pic1.zhimg.com/50/v2-e88c0426c1ccc429dbedea3d01e5fac2_hd.jpg",
"PARENTID": "1",
"SECONDNICKNAME": null
}
]