UNPKG

@lljj/vue2-form-core

Version:

基于 Vue 、JsonSchema快速构建一个带完整校验的form表单,vue2版本基础框架

66 lines (64 loc) 1.35 kB
/** * Created by Liu.Jun on 2020/4/22 18:58. */ // 递归参数,统一props export default { formProps: { type: null }, // 全局的配置,用于 初始化差异,适配不同的ui框架 globalOptions: { type: null }, // 当前节点schema schema: { type: Object, default: () => ({}) }, // 当前节点Ui Schema uiSchema: { type: Object, default: () => ({}) }, // 当前节点Error Schema errorSchema: { type: Object, default: () => ({}) }, // 自定义校验 customRule: { type: Function, default: null }, // 自定义校验规则 customFormats: { type: Object, default: () => ({}) }, // 根节点 Schema rootSchema: { type: Object, default: () => ({}) }, // 根节点的数据 rootFormData: { type: null, default: () => ({}) }, // 当前节点路径 curNodePath: { type: String, default: '' }, // 是否必填 required: { type: Boolean, default: false }, // 是否需要校验数据组 // object array 类型默认会最后追加一个校验组件校验整体数据 needValidFieldGroup: { type: Boolean, default: true } };