|
@@ -196,7 +196,10 @@ const TriggerTerm = (props: Props, ref: any) => {
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
useImperativeHandle(ref, () => ({
|
|
useImperativeHandle(ref, () => ({
|
|
|
- getTriggerForm: () => form.submit(),
|
|
|
|
|
|
|
+ getTriggerForm: async () => {
|
|
|
|
|
+ await form.validate();
|
|
|
|
|
+ await form.submit();
|
|
|
|
|
+ },
|
|
|
}));
|
|
}));
|
|
|
const SchemaField = createSchemaField({
|
|
const SchemaField = createSchemaField({
|
|
|
components: {
|
|
components: {
|
|
@@ -261,6 +264,7 @@ const TriggerTerm = (props: Props, ref: any) => {
|
|
|
'x-decorator-props': {
|
|
'x-decorator-props': {
|
|
|
gridSpan: 6,
|
|
gridSpan: 6,
|
|
|
},
|
|
},
|
|
|
|
|
+ required: true,
|
|
|
'x-component-props': {
|
|
'x-component-props': {
|
|
|
placeholder: '请选择参数',
|
|
placeholder: '请选择参数',
|
|
|
fieldNames: { value: 'column', label: 'name', options: 'children' },
|
|
fieldNames: { value: 'column', label: 'name', options: 'children' },
|
|
@@ -279,6 +283,7 @@ const TriggerTerm = (props: Props, ref: any) => {
|
|
|
'x-component-props': {
|
|
'x-component-props': {
|
|
|
placeholder: '操作符',
|
|
placeholder: '操作符',
|
|
|
},
|
|
},
|
|
|
|
|
+ required: true,
|
|
|
},
|
|
},
|
|
|
value: {
|
|
value: {
|
|
|
type: 'object',
|
|
type: 'object',
|
|
@@ -301,6 +306,7 @@ const TriggerTerm = (props: Props, ref: any) => {
|
|
|
type: 'string',
|
|
type: 'string',
|
|
|
'x-component': 'Select',
|
|
'x-component': 'Select',
|
|
|
'x-decorator': 'FormItem',
|
|
'x-decorator': 'FormItem',
|
|
|
|
|
+ required: true,
|
|
|
'x-component-props': {
|
|
'x-component-props': {
|
|
|
style: {
|
|
style: {
|
|
|
minWidth: '110px',
|
|
minWidth: '110px',
|
|
@@ -316,6 +322,7 @@ const TriggerTerm = (props: Props, ref: any) => {
|
|
|
width: 'calc(100% - 110px)',
|
|
width: 'calc(100% - 110px)',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
+ required: true,
|
|
|
'x-reactions': {
|
|
'x-reactions': {
|
|
|
dependencies: ['.source'],
|
|
dependencies: ['.source'],
|
|
|
fulfill: {
|
|
fulfill: {
|
|
@@ -334,6 +341,7 @@ const TriggerTerm = (props: Props, ref: any) => {
|
|
|
width: '100%',
|
|
width: '100%',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
+ required: true,
|
|
|
'x-decorator-props': {
|
|
'x-decorator-props': {
|
|
|
style: {
|
|
style: {
|
|
|
width: 'calc(100% - 110px)',
|
|
width: 'calc(100% - 110px)',
|