ant-design-vue/components/comment/demo/nested.md

2.2 KiB

#### 嵌套评论 评论可以嵌套。 #### Nested comments Comments can be nested.
<template>
  <a-comment>
    <template slot="actions">
      <span>Reply to</span>
    </template>
    <template slot="author">
      <a>Han Solo</a>
    </template>
    <template slot="avatar">
      <a-avatar
        src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"
        alt="Han Solo"
      />
    </template>
    <p slot="content">We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).</p>
    <a-comment>
      <template slot="actions">
        <span>Reply to</span>
      </template>
      <template slot="author">
        <a>Han Solo</a>
      </template>
      <template slot="avatar">
        <a-avatar
          src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"
          alt="Han Solo"
        />
      </template>
      <p slot="content">We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).</p>
      <a-comment>
        <template slot="actions">
          <span>Reply to</span>
        </template>
        <template slot="author">
          <a>Han Solo</a>
        </template>
        <template slot="avatar">
          <a-avatar
            src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"
            alt="Han Solo"
          />
        </template>
        <p slot="content">We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).</p>
      </a-comment>
      <a-comment>
        <template slot="actions">
          <span>Reply to</span>
        </template>
        <template slot="author">
          <a>Han Solo</a>
        </template>
        <template slot="avatar">
          <a-avatar
            src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"
            alt="Han Solo"
          />
        </template>
        <p slot="content">We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).</p>
      </a-comment>
    </a-comment>
  </a-comment>
</template>