fix(trigger): subscription schema config not display field description

This commit is contained in:
hjlarry 2025-11-10 13:43:56 +08:00
parent 62fbc90389
commit 00fdd06179

View File

@ -391,6 +391,7 @@ export const CommonCreateModal = ({ onClose, createType, builder }: Props) => {
const normalizedType = normalizeFormType(schema.type as FormTypeEnum | string) const normalizedType = normalizeFormType(schema.type as FormTypeEnum | string)
return { return {
...schema, ...schema,
tooltip: schema.description,
type: normalizedType, type: normalizedType,
dynamicSelectParams: normalizedType === FormTypeEnum.dynamicSelect ? { dynamicSelectParams: normalizedType === FormTypeEnum.dynamicSelect ? {
plugin_id: detail?.plugin_id || '', plugin_id: detail?.plugin_id || '',
@ -404,7 +405,7 @@ export const CommonCreateModal = ({ onClose, createType, builder }: Props) => {
} }
})} })}
ref={autoCommonParametersFormRef} ref={autoCommonParametersFormRef}
labelClassName='system-sm-medium mb-2 block text-text-primary' labelClassName='system-sm-medium mb-2 flex items-center gap-1 text-text-primary'
formClassName='space-y-4' formClassName='space-y-4'
/> />
)} )}
@ -412,9 +413,12 @@ export const CommonCreateModal = ({ onClose, createType, builder }: Props) => {
{manualPropertiesSchema.length > 0 && ( {manualPropertiesSchema.length > 0 && (
<div className='mb-6'> <div className='mb-6'>
<BaseForm <BaseForm
formSchemas={manualPropertiesSchema} formSchemas={manualPropertiesSchema.map(schema => ({
...schema,
tooltip: schema.description,
}))}
ref={manualPropertiesFormRef} ref={manualPropertiesFormRef}
labelClassName='system-sm-medium mb-2 block text-text-primary' labelClassName='system-sm-medium mb-2 flex items-center gap-1 text-text-primary'
formClassName='space-y-4' formClassName='space-y-4'
onChange={handleManualPropertiesChange} onChange={handleManualPropertiesChange}
/> />