mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-09 02:46:52 +08:00
ifEsle node add regex match (#8007)
This commit is contained in:
@@ -88,7 +88,6 @@ const ConfigVar: FC<IConfigVarProps> = ({ promptVariables, readonly, onPromptVar
|
||||
} as InputVar
|
||||
})()
|
||||
const updatePromptVariableItem = (payload: InputVar) => {
|
||||
console.log(payload)
|
||||
const newPromptVariables = produce(promptVariables, (draft) => {
|
||||
const { variable, label, type, ...rest } = payload
|
||||
draft[currIndex] = {
|
||||
|
||||
@@ -28,6 +28,7 @@ export enum ComparisonOperator {
|
||||
lessThanOrEqual = '≤',
|
||||
isNull = 'is null',
|
||||
isNotNull = 'is not null',
|
||||
regexMatch = 'regex match',
|
||||
}
|
||||
|
||||
export type Condition = {
|
||||
|
||||
@@ -30,6 +30,7 @@ export const getOperators = (type?: VarType) => {
|
||||
ComparisonOperator.isNot,
|
||||
ComparisonOperator.empty,
|
||||
ComparisonOperator.notEmpty,
|
||||
ComparisonOperator.regexMatch,
|
||||
]
|
||||
case VarType.number:
|
||||
return [
|
||||
|
||||
@@ -412,6 +412,7 @@ const translation = {
|
||||
'not empty': 'is not empty',
|
||||
'null': 'is null',
|
||||
'not null': 'is not null',
|
||||
'regex match': 'regex match',
|
||||
},
|
||||
enterValue: 'Enter value',
|
||||
addCondition: 'Add Condition',
|
||||
|
||||
@@ -412,6 +412,7 @@ const translation = {
|
||||
'not empty': '不为空',
|
||||
'null': '空',
|
||||
'not null': '不为空',
|
||||
'regex match': '正则匹配',
|
||||
},
|
||||
enterValue: '输入值',
|
||||
addCondition: '添加条件',
|
||||
|
||||
Reference in New Issue
Block a user