fix(annotation): 修复导出标注对话框格式选项显示问题

- 为格式选项添加 py-1 样式类改善布局
- 添加 simpleLabel 属性用于选项标签显示
- 将 optionLabelProp 从 label 改为 simpleLabel
- 优化下拉选择器的标签
This commit is contained in:
2026-01-31 15:35:54 +08:00
parent 5318ee9641
commit 3e0a15ac8e

View File

@@ -178,14 +178,15 @@ export default function ExportAnnotationDialog({
<Select <Select
options={FORMAT_OPTIONS.map((opt) => ({ options={FORMAT_OPTIONS.map((opt) => ({
label: ( label: (
<div> <div className="py-1">
<div className="font-medium">{opt.label}</div> <div className="font-medium">{opt.label}</div>
<div className="text-xs text-gray-400">{opt.description}</div> <div className="text-xs text-gray-400">{opt.description}</div>
</div> </div>
), ),
value: opt.value, value: opt.value,
simpleLabel: opt.label,
}))} }))}
optionLabelProp="label" optionLabelProp="simpleLabel"
/> />
</Form.Item> </Form.Item>