diff --git a/components/comment/__tests__/__snapshots__/demo.test.js.snap b/components/comment/__tests__/__snapshots__/demo.test.js.snap index b619e1ed6..a7ecb2f19 100644 --- a/components/comment/__tests__/__snapshots__/demo.test.js.snap +++ b/components/comment/__tests__/__snapshots__/demo.test.js.snap @@ -124,7 +124,7 @@ exports[`renders ./components/comment/demo/nested.md correctly 1`] = ` -
+
Han Solo
@@ -141,7 +141,7 @@ exports[`renders ./components/comment/demo/nested.md correctly 1`] = `
-
+
Han Solo
diff --git a/components/comment/index.jsx b/components/comment/index.jsx index 7f8b4e437..39d698349 100644 --- a/components/comment/index.jsx +++ b/components/comment/index.jsx @@ -30,9 +30,7 @@ const Comment = { const actionList = actions.map((action, index) =>
  • {action}
  • ); return actionList; }, - renderNested(children) { - const { prefixCls } = this.$props; - + renderNested(prefixCls, children) { return
    {children}
    ; }, }, @@ -85,7 +83,7 @@ const Comment = { return (
    {comment} - {children ? this.renderNested(children) : null} + {children ? this.renderNested(prefixCls, children) : null}
    ); },