Giter Club home page Giter Club logo

Comments (3)

alvin0216 avatar alvin0216 commented on May 18, 2024

评论功能:表的设计 commets: [ {xxx}, {xxx}, {xxx, replies: [{xxx}, {xxx}]}]
ok,在看前端实现:

  • 位置: components/web/comment
    • index : 评论框的实现,commentList 的控制都在这一层
    • list : 循环生成的评论框,处理好业务逻辑,父级评论和子级的回复等就可以了
  • 颜色匹配:先将拿到的列表按 userId 去分组,生成colorMap, 由于公用我就抽到 redux 进行管理了

from react-blog.

1207915357 avatar 1207915357 commented on May 18, 2024

谢谢大佬,你这个自动生成用户头像是用的什么组件啊

from react-blog.

alvin0216 avatar alvin0216 commented on May 18, 2024

谢谢大佬,你这个自动生成用户头像是用的什么组件啊

antd 的 Avatar。自动生成逻辑要自己处理

from react-blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.