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

table template 模式二次封装 动态tempalte slot 不渲染 #1728

Closed
callmesoul opened this issue Jan 15, 2020 · 3 comments
Closed

table template 模式二次封装 动态tempalte slot 不渲染 #1728

callmesoul opened this issue Jan 15, 2020 · 3 comments
Labels

Comments

@callmesoul
Copy link

// v-table
<div class="v-table">
<a-table
          @change="handleTableChange"
          :columns="columns"
          :scopedSlots="$scopedSlots"
          :scroll="{ y: true }"
          :dataSource="datas"
          :loading="loading"
          :pagination="{ total: pagination.totalPages * pagination.offSize, defaultPageSize: pagination.offSize, current: pagination.offSet, pageSize: pagination.offSize, showSizeChanger: true, showQuickJumper: true, pageSizeOptions: $store.state.app.pageSizeOptions }">
</a-table>
</div>

use:

<v-table :columns="columns" :datas="datas" :loading="loading">
      <div slot="state" slot-scope="item"><a-switch checkedChildren="启用" unCheckedChildren="禁用" :loading="item.loading" :checked="item.state" @click="changeState(item)" /></div> //不渲染
  </v-table>

怎样才可以动态传过去又可以渲染自定义column呢?

@close-issue-app
Copy link

Your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!

@zkwolf
Copy link
Member

zkwolf commented Jan 15, 2020

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants