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

动态标签 DynamicTags 支持 label-value 回显 #2576

Closed
Air-Cooled opened this issue Mar 8, 2022 · 6 comments
Closed

动态标签 DynamicTags 支持 label-value 回显 #2576

Air-Cooled opened this issue Mar 8, 2022 · 6 comments
Labels
feature request New feature or request priority: low

Comments

@Air-Cooled
Copy link

This function solves the problem (这个功能解决的问题)

这样动态标签 DynamicTags 的 input 插槽可以使用 Select 组件选择数据,结合支持单独指定每个 tag 的 type 或 color ,用户体验可能远优于 Select 显示形式

Expected API (期望的 API)

  1. input 插槽可以使用 Select 组件选择 label-value 数据
  2. 支持单独指定每个 tag 的 type 或 color
@github-actions github-actions bot added the feature request New feature or request label Mar 8, 2022
@Talljack
Copy link
Contributor

Talljack commented Mar 9, 2022

input现在可以使用select组件的,前提是数据结构匹配(不为数组
image

@Air-Cooled
Copy link
Author

确定你这样可用?选项的 label与value 值不一样时呢?
DynamicTags 可以像 Select 的多选一样吗?且没有输入框的限制
image

@Talljack
Copy link
Contributor

确定你这样可用?选项的 label与value 值不一样时呢? DynamicTags 可以像 Select 的多选一样吗?且没有输入框的限制 image

如果使用select确实会存在你这样的问题,label和value不知道显示哪个的问题以及不能多选的情况(这种应该被禁止

@07akioni
Copy link
Collaborator

确定你这样可用?选项的 label与value 值不一样时呢? DynamicTags 可以像 Select 的多选一样吗?且没有输入框的限制 image

Label 和 value 的值可以用 onCreate 去关联

@Air-Cooled
Copy link
Author

那不同的 Tab 如何显示不同的颜色呢?还是说 DynamicTags 不考虑可为每个标签设置不同颜色

@07akioni
Copy link
Collaborator

那不同的 Tab 如何显示不同的颜色呢?还是说 DynamicTags 不考虑可为每个标签设置不同颜色

会增加动态渲染的能力的,这块具体怎么做我还要再想想,因为现在是纯 string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request priority: low
Projects
None yet
Development

No branches or pull requests

3 participants