Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文档里这段描述不对 #3846

Open
lovelyJason opened this issue May 15, 2024 · 0 comments
Open

文档里这段描述不对 #3846

lovelyJason opened this issue May 15, 2024 · 0 comments

Comments

@lovelyJason
Copy link

image

Describe the bug

文档里这段描述不对,经我测试,反而是expandedRowRender能用能正常显示好吧,expandColumnTitle不能用,一用就报错,并且他是和expandedRowRender同时都使用了就会报错

image

Reproduction

      <BasicTable @register="registerTable">
        <template #bodyCell="{ column, record }">
          <template v-if="column.key === 'action'"> 123</template>
        </template>
        <template #expandedRowRender="{ record }">
          <div class="px-4 py-1 text-gray-800 bg-gray-400">
            <p>邮件内容: </p>
            <p v-for="item in record.emailCustomTemplateLanguages" :key="item.languageName">
              <span>{{ item.body }}</span>
            </p>
          </div>
        </template>
        <template #expandColumnTitle>
          <span style="color: red">More</span>
        </template>
      </BasicTable>

System Info

  • Operating System: windows10
  • Node version: v18.18.0
  • pnpm version: 8.15.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant