提交 2d53121a 编写于 作者: F FateRiddle

v1.4.4

上级 4505e6cd
# Changelog # Changelog
### 1.4.4
- [!] 修复了 hidden = true 是做了多余的对类型的判断的问题
### 1.4.3 ### 1.4.3
- [!] 修复了 range 元素的校验,清空后不再会通不过校验 - [!] 修复了 range 元素的校验,清空后不再会通不过校验
......
{ {
"name": "form-render", "name": "form-render",
"version": "1.4.3", "version": "1.4.4",
"description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成", "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
"repository": { "repository": {
"type": "git", "type": "git",
......
...@@ -685,6 +685,7 @@ export const removeEmptyItemFromList = formData => { ...@@ -685,6 +685,7 @@ export const removeEmptyItemFromList = formData => {
export const getDescriptorFromSchema = ({ schema, isRequired = true }) => { export const getDescriptorFromSchema = ({ schema, isRequired = true }) => {
let result = {}; let result = {};
let singleResult = {}; let singleResult = {};
if (schema.hidden === true) return { validator: () => true };
if (isObjType(schema)) { if (isObjType(schema)) {
result.type = 'object'; result.type = 'object';
if (isRequired && schema.required === true) { if (isRequired && schema.required === true) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册