diff --git a/src/hooks/Rule/bridge/useComponentsHandlers.ts b/src/hooks/Rule/bridge/useComponentsHandlers.ts index 496f2ff04..e3f8c49c3 100644 --- a/src/hooks/Rule/bridge/useComponentsHandlers.ts +++ b/src/hooks/Rule/bridge/useComponentsHandlers.ts @@ -10,7 +10,6 @@ import { get, pick } from 'lodash' import { useRedisCommandCheck } from '../useDataHandler' import { useAvailableProviders } from '../useProvidersForMonaco' - type Handler = ({ components, rules }: { components: Properties; rules: SchemaRules }) => { components: Properties rules: SchemaRules @@ -171,6 +170,7 @@ export default ( command_template.type = 'string' command_template.format = 'sql' command_template.default = '' + command_template.is_template = true } if ( rules?.['parameters.command_template'] && @@ -384,6 +384,7 @@ export default ( if (key === 'value' && value.type === 'oneof') { value.type = 'string' + value.is_template = true } else if (key === 'tags' && value.type === 'oneof') { value.type = 'object' value.componentProps = { type: 'input', supportPlaceholder: ['key', 'value'] }