import { ISchema, useField, useFieldSchema } from '@formily/react'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { useDesignable } from '../..'; import { GeneralSchemaDesigner, SchemaSettings } from '../../../'; export const TabsDesigner = () => { const field = useField(); const fieldSchema = useFieldSchema(); const { dn } = useDesignable(); const { t } = useTranslation(); return ( { if (title) { fieldSchema.title = title; field.title = title; dn.emit('patch', { schema: { ['x-uid']: fieldSchema['x-uid'], title, }, }); dn.refresh(); } }} /> ); };