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 表格]开启列配置功能时,又对列标题做自定义样式则会报错 Warn #3601

Closed
Menffy opened this issue Nov 13, 2023 · 4 comments

Comments

@Menffy
Copy link

Menffy commented Nov 13, 2023

tdesign-vue-next 版本

重现链接

No response

重现步骤

1、开启列配置功能
v-model:displayColumns="showColumns"
v-model:columnControllerVisible="columnControllerVisible"
:column-controller="{
dialogProps: {
preventScrollThrough: true,
width: 1200,
top: 200,
},
displayType: 'fixed-width',
}"
2、自定义列表题样式
<template #报备单ID>


报备单ID
<copy-button @copy-select="handleCopySelect('orderId')" @copy-total="handleCopyTotal('orderId')" />



<template #报备单ID>


报备单ID
<copy-button @copy-select="handleCopySelect('orderId')" @copy-total="handleCopyTotal('orderId')" />


期望结果

列配置弹窗里自动过滤掉标题附带的自定义组件,只显示文字或英文即可。

实际结果

image image

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Tasks

Preview Give feedback
No tasks being tracked yet.
Copy link
Contributor

👋 @Menffy,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@chaishi chaishi changed the title [Table 表格]开启列配置功能时,又对列标题做自定义样式则会报错 [Table 表格]开启列配置功能时,又对列标题做自定义样式则会报错 Warn Nov 13, 2023
@chaishi
Copy link
Collaborator

chaishi commented Nov 13, 2023

image

@chaishi
Copy link
Collaborator

chaishi commented Nov 13, 2023

https://stackblitz.com/edit/bfvdtv?file=package.json,src%2Fdemo.vue
辛苦在这个链接里面,复现一下你的问题

@chaishi
Copy link
Collaborator

chaishi commented Dec 15, 2023

没有回复,issue close。

截图中的问题提醒是指:组件不存在。
你可以尝试 import { Button } from 'tdesign-vue-next' 之后,再使用 () => 按钮

@chaishi chaishi closed this as completed Dec 15, 2023
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

2 participants