diff --git a/service-web/client/src/util/amis.tsx b/service-web/client/src/util/amis.tsx index a0c130a..54f8aa2 100644 --- a/service-web/client/src/util/amis.tsx +++ b/service-web/client/src/util/amis.tsx @@ -1,4 +1,4 @@ -import {AlertComponent, attachmentAdpator, makeTranslator, render, type Schema, ToastComponent} from 'amis' +import {addRule, AlertComponent, attachmentAdpator, makeTranslator, render, type Schema, ToastComponent} from 'amis' import 'amis/lib/themes/antd.css' import 'amis/lib/helper.css' @@ -162,6 +162,14 @@ export const amisRender = (schema: Schema, data: Record = {}) => { ) } +addRule( + 'isOptionsValid', + (values, value: any, arg1?: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any) => { + console.log(values, value, arg1, arg2, arg3, arg4, arg5) + return false + }, +) + function generateLokiPanel(queries: Array) { return { LWF: {