Closed Lipraty closed 11 months ago
当 Schema.union 只有一项时,无法选择该项。
Schema.array
foo: Schema.array(Schema.object({ bar: Schema.union(['baz']) })).role('table')
能够选中 baz
baz
多个选项,能够选择:
单个选项,不能选择:
System: OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye) CPU: (4) x64 Common KVM processor
Binaries: Node: 19.3.0 Yarn: 1.22.19
Koishi: Core: 4.15.4 Console: 5.18.4
No response
最新版本未复现此问题。
有可能是本地环境问题,先 close 了
Describe the bug
当 Schema.union 只有一项时,无法选择该项。
Schema.array
测试得出Steps to reproduce
Expected behavior
能够选中
baz
Screenshots
多个选项,能够选择:
单个选项,不能选择:
Versions
System: OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye) CPU: (4) x64 Common KVM processor
Binaries: Node: 19.3.0 Yarn: 1.22.19
Koishi: Core: 4.15.4 Console: 5.18.4
Additional context
No response