🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@fx-form/utils

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fx-form/utils

vue json schema form 使用的基础utils工具类

latest
npmnpm
Version
0.0.5
Version published
Weekly downloads
11
175%
Maintainers
1
Weekly downloads
 
Created
Source

@fx-form/utils

表单基础通用工具类,具体的参数可参见源码

@fx-form/utils/i18n

管理当前多语言

@fx-form/utils/schema/getDefaultFormState

根据 jsonSchema 和 formData,计算当前schema value

@fx-form/utils/schema/validate

import {
    ajvValidateFormData,
    validateFormDataAndTransformMsg,
    isValid
} from '@fx-form/utils/schema/validate';

// 直接调用 ajv 验证schema,返回格式化后的结果
ajvValidateFormData(...args);

// 校验数据并处理多语言(只处理当前节点)
validateFormDataAndTransformMsg(...args);

// 返回数据是否校验成功
isValid(...args);

// 返回数据是否校验成功
isValid(...args);

@fx-form/utils/arrayUtils

数组相关的工具类

@fx-form/utils/formUtils

表单相关的工具类

@fx-form/utils/vueUtils

Vue相关的工具类

Keywords

@lljj/vjsf-utils

FAQs

Package last updated on 07 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts