Skip to content

Commit

Permalink
perf: 优化IconSelect图标选择器组件,提升用户体验
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed Oct 13, 2023
1 parent fc2d905 commit 3e040fc
Show file tree
Hide file tree
Showing 5 changed files with 2,646 additions and 702 deletions.
Loading

1 comment on commit 3e040fc

@xiaoxian521
Copy link
Member Author

@xiaoxian521 xiaoxian521 commented on 3e040fc Oct 13, 2023

Choose a reason for hiding this comment

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

优化点:

  1. 点击右侧图标,展开图标选择器后自动定位到所选图标页
image
  1. 搜索后,展示对应的分页,优化之前搜索后分页没效果
image
  1. tab切换时,之前选中的图标不变,只有重新选中新的图标才改变
image
  1. 每页都展示35个图标,让图标在选择器上完全展示,无需多余的滚动下拉操作,让用户一览而尽
image
  1. 如果用户默认什么都不传,组件会提供默认的搜索图标
image
  1. 添加清空操作按钮,点击后会清空已选中的图标和值
image

Please sign in to comment.