import type { FormRules } from 'element-plus'
export const rules = (subAccountForm: any): FormRules => {
    return {
        password: [
            { required: true, message: '请输入密码', trigger: ['blur'] },
            { pattern: /^[0-9]+(\.[0-9]+)?$/, message: '请输入数字' }
        ],
        leverage: [
            { required: true, message: '请选择杠杆比例', trigger: ['change'] }
        ],
        confirmPassword: [
            { required: true, message: '请确认密码', trigger: ['blur'] }
        ]
    }
}