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

支持多选 #28

Open
dongrentianyu opened this issue Apr 13, 2024 · 6 comments
Open

支持多选 #28

dongrentianyu opened this issue Apr 13, 2024 · 6 comments

Comments

@dongrentianyu
Copy link
Contributor

多选还是很常用的。但多选在形式上可能比较难处理。

@linonetwo
Copy link
Contributor

应该类似下拉列表吧,和单选差不多。然后在字段里存成空格分隔的

@dongrentianyu
Copy link
Contributor Author

差不多,但如果多选的选项里有带空格的话,那么就要用双中括号括起来。

@linonetwo
Copy link
Contributor

你要不试试用 "type": "array", 类型的 JSONSchema。我觉得 tw 可能会自动加中括号

@linonetwo
Copy link
Contributor

JSONSchema根节点还是 object,你可以给某个字段加 "type": "array",

@dongrentianyu
Copy link
Contributor Author

好像不太行,简单测试了一下,没搞出来。

@dongrentianyu
Copy link
Contributor Author

可能还是得插件层面做一下适配。

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

2 participants