浏览代码

comment test

visuddhinanda 3 年之前
父节点
当前提交
eabfc5016f
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      dashboard/src/components/nut/Home.tsx

+ 18 - 0
dashboard/src/components/nut/Home.tsx

@@ -8,11 +8,29 @@ import MarkdownShow from "./MarkdownShow";
 import FontBox from "./FontBox";
 import FontBox from "./FontBox";
 import DemoForm from "./Form";
 import DemoForm from "./Form";
 import WbwTest from "./WbwTest";
 import WbwTest from "./WbwTest";
+import CommentList from "../comment/CommentList";
 
 
 const Widget = () => {
 const Widget = () => {
+  const data = Array(100)
+    .fill(4)
+    .map((item, id) => {
+      return {
+        id: "dd",
+        content: "评论内容",
+        title: "评论标题" + id,
+        user: {
+          id: "string",
+          nickName: "Visuddhinanda",
+          realName: "Visuddhinanda",
+          avatar: "",
+        },
+      };
+    });
   return (
   return (
     <div>
     <div>
       <h1>Home</h1>
       <h1>Home</h1>
+      <h2>comment</h2>
+      <CommentList data={data} />
       <h2>wbw</h2>
       <h2>wbw</h2>
       <WbwTest />
       <WbwTest />
       <h2>channel picker</h2>
       <h2>channel picker</h2>