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

🐛[BUG] EditableProTable 中的 valueType checkbox 不生效 #7797

Closed
vaynevayne opened this issue Oct 19, 2023 · 6 comments
Closed

🐛[BUG] EditableProTable 中的 valueType checkbox 不生效 #7797

vaynevayne opened this issue Oct 19, 2023 · 6 comments

Comments

@vaynevayne
Copy link

{
   title: '限时玩法',
   dataIndex: 'timeLimitedPlay',
   key: 'timeLimitedPlay',
   valueType: 'checkbox',
 }
image
@kungege
Copy link
Contributor

kungege commented Oct 19, 2023

@vaynevayne 数据字典没有配置

@vaynevayne
Copy link
Author

单独的 checkbox 怎么会要配置?
另外 valueEnum: { true: '未解决', closed: '已解决', },
效果不对啊
image

@kungege
Copy link
Contributor

kungege commented Oct 20, 2023

单独的 checkbox 怎么会要配置? 另外 valueEnum: { true: '未解决', closed: '已解决', }, 效果不对啊 image

复选框不就是这样吗?不太明白你的意思

@sunsmeil
Copy link

单独的 checkbox 怎么会要配置? 另外 valueEnum: { true: '未解决', closed: '已解决', }, 效果不对啊 image

复选框不就是这样吗?不太明白你的意思

可以 valueEnum: { true: ' ' }, 这样配置。 选中的就是数组, 没有选中的是空数组。 然后做数据转换就可以

@vaynevayne
Copy link
Author

有问题 和解决问题 这是两个问题,你不能说问题能解决, 就不去解决真正的问题

@chenshuai2144 chenshuai2144 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2023
@chenshuai2144
Copy link
Contributor

renderTexr 自己转化下,转成别的数据结构,拿 boolean 当 key 也太有想象力

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

4 participants