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

feat: apply icon and width #WIK-16166 #17

Merged
merged 1 commit into from
Jul 25, 2024
Merged

feat: apply icon and width #WIK-16166 #17

merged 1 commit into from
Jul 25, 2024

Conversation

huanhuanwa
Copy link
Contributor

No description provided.

fields: fieldsValue.map(item=>{
return {
...item,
icon: item.icon || FieldsMap[item.type].icon,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果 item.icon 和 item.width 可能不存在,那么就需要加上 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不用加吧,不存在就使用FieldsMap[item.type] 中的了

@cmm-va cmm-va merged commit deafb13 into develop Jul 25, 2024
13 checks passed
@cmm-va cmm-va deleted the w/#WIK-16166 branch July 25, 2024 06:14
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

Successfully merging this pull request may close these issues.

3 participants