amis-model-design
Version:
amis模型设计器
20 lines (19 loc) • 527 B
TypeScript
/**
* @file 模型编辑中的验证器设置
*/
import React from 'react';
import './min-length';
import './max-length';
import './match-regexp';
import { FieldItem } from '../../type';
export default function ValidationRuleModal({ onChange, data, value, renderFormItems }: {
data: {
fields: Array<FieldItem>;
validateRules: Array<any>;
};
value: any;
onChange: (value: any) => void;
renderFormItems: (schema: {
body: Array<any>;
}) => React.ReactNode;
}): React.JSX.Element;