[RadioData] RadioData的key能否设置成布尔类型
HaroldLoui opened this issue · 1 comments
HaroldLoui commented
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
某些场景下,某个字段可能是个布尔值,比如菜单是否显示等等...
What does the proposed API look like?
像这样:
// 是否显示
const showTypes: RadioData[] = [
{ key: false, label: "否" },
{ key: true, label: "是" },
];
idux-bot commented
Translation of this issue:
[] Whether the key of Radiodata can be set into Boer type
- I have searched the [isSues] (https://github.com/iduxfe/idux/isSues) of this repository and believe that this is not a duplicate.
What proplem does this feature solver?
In some scenarios, a certain field may be a Boolean value, such as whether the menu is displayed, etc.
What does the proposed api look like?
like this:
// 是否显示
const showTypes: RadioData[] = [
{ key: false, label: "否" },
{ key: true, label: "是" },
];