fix: 代码规范

This commit is contained in:
chenjianxing 2021-04-30 11:50:12 +08:00 committed by jianxing
parent 712e46b393
commit 47493b5863
1 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,11 @@
import i18n from '../../i18n/i18n'
import {SYSTEM_FIELD_NAME_MAP} from "@/common/js/table-constants";
function setDefaultValue(item, value) {
item.defaultValue = value;
item.hasParse = true; // 多次调用不执行这部分
}
/**
* 设置默认值添加自定义校验
* @param data 原表单值
@ -74,11 +79,6 @@ export function parseCustomField(data, template, customFieldForm, rules, oldFiel
});
}
function setDefaultValue(item, value) {
item.defaultValue = value;
item.hasParse = true; // 多次调用不执行这部分
}
// 将template的属性值设置给customFields
export function buildCustomFields(data, param, template) {
if (template.customFields) {