feat(web): ontology extract add form rules

This commit is contained in:
zhaoying
2026-03-04 17:04:25 +08:00
parent 4ee198813a
commit f5eda38dc9
3 changed files with 3 additions and 0 deletions

View File

@@ -185,6 +185,7 @@ const OntologyClassExtractModal = forwardRef<OntologyClassExtractModalRef, Ontol
rules={[
{ required: true, message: t('common.pleaseEnter') },
{ max: 2000 },
{ pattern: /^(?!\s*$).+$/, message: t('common.notAllSpaces') },
]}
>
<Input.TextArea placeholder={t('ontology.scenarioPlaceholder')} />