Skip to content

Commit d59222f

Browse files
committed
build: build lib
1 parent 1f34d32 commit d59222f

File tree

4 files changed

+36
-36
lines changed

4 files changed

+36
-36
lines changed

packages/lib/dist/vueJsonSchemaForm.esm.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8041,9 +8041,9 @@ function createAjvInstance() {
80418041
/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/);
80428042
return ajvInstance;
80438043
}
8044-
/**
8045-
* 将错误输出从ajv转换为jsonschema使用的格式
8046-
* At some point, components should be updated to support ajv.
8044+
/**
8045+
* 将错误输出从ajv转换为jsonschema使用的格式
8046+
* At some point, components should be updated to support ajv.
80478047
*/
80488048

80498049

@@ -8073,14 +8073,14 @@ function transformAjvErrors() {
80738073
};
80748074
});
80758075
}
8076-
/**
8077-
* 通过 schema校验formData并返回错误信息
8078-
* @param formData 校验的数据
8079-
* @param schema
8080-
* @param transformErrors function - 转换错误, 如个性化的配置
8081-
* @param additionalMetaSchemas 数组 添加 ajv metaSchema
8082-
* @param customFormats 添加 ajv 自定义 formats
8083-
* @returns {{errors: ([]|{stack: string, schemaPath: *, name: *, property: string, message: *, params: *}[])}}
8076+
/**
8077+
* 通过 schema校验formData并返回错误信息
8078+
* @param formData 校验的数据
8079+
* @param schema
8080+
* @param transformErrors function - 转换错误, 如个性化的配置
8081+
* @param additionalMetaSchemas 数组 添加 ajv metaSchema
8082+
* @param customFormats 添加 ajv 自定义 formats
8083+
* @returns {{errors: ([]|{stack: string, schemaPath: *, name: *, property: string, message: *, params: *}[])}}
80848084
*/
80858085

80868086

@@ -8216,11 +8216,11 @@ function validateFormDataAndTransformMsg() {
82168216
return preErrors;
82178217
}, []);
82188218
}
8219-
/**
8220-
* 根据模式验证数据,如果数据有效则返回true,否则返回* false。如果模式无效,那么这个函数将返回* false。
8221-
* @param schema
8222-
* @param data
8223-
* @returns {boolean|PromiseLike<any>}
8219+
/**
8220+
* 根据模式验证数据,如果数据有效则返回true,否则返回* false。如果模式无效,那么这个函数将返回* false。
8221+
* @param schema
8222+
* @param data
8223+
* @returns {boolean|PromiseLike<any>}
82248224
*/
82258225

82268226
function isValid(schema, data) {
@@ -9179,7 +9179,7 @@ var ObjectField = {
91799179
key = _ref2[0],
91809180
value = _ref2[1];
91819181

9182-
if (self.$props.schema.additionalProperties === false || key !== 'properties') preVal[key] = value;
9182+
if (self.$props.schema.additionalProperties === false || !['properties', 'id', '$id'].includes(key)) preVal[key] = value;
91839183
return preVal;
91849184
}, {}),
91859185
errorSchema: this.errorSchema,

packages/lib/dist/vueJsonSchemaForm.esm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/lib/dist/vueJsonSchemaForm.umd.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8047,9 +8047,9 @@
80478047
/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/);
80488048
return ajvInstance;
80498049
}
8050-
/**
8051-
* 将错误输出从ajv转换为jsonschema使用的格式
8052-
* At some point, components should be updated to support ajv.
8050+
/**
8051+
* 将错误输出从ajv转换为jsonschema使用的格式
8052+
* At some point, components should be updated to support ajv.
80538053
*/
80548054

80558055

@@ -8079,14 +8079,14 @@
80798079
};
80808080
});
80818081
}
8082-
/**
8083-
* 通过 schema校验formData并返回错误信息
8084-
* @param formData 校验的数据
8085-
* @param schema
8086-
* @param transformErrors function - 转换错误, 如个性化的配置
8087-
* @param additionalMetaSchemas 数组 添加 ajv metaSchema
8088-
* @param customFormats 添加 ajv 自定义 formats
8089-
* @returns {{errors: ([]|{stack: string, schemaPath: *, name: *, property: string, message: *, params: *}[])}}
8082+
/**
8083+
* 通过 schema校验formData并返回错误信息
8084+
* @param formData 校验的数据
8085+
* @param schema
8086+
* @param transformErrors function - 转换错误, 如个性化的配置
8087+
* @param additionalMetaSchemas 数组 添加 ajv metaSchema
8088+
* @param customFormats 添加 ajv 自定义 formats
8089+
* @returns {{errors: ([]|{stack: string, schemaPath: *, name: *, property: string, message: *, params: *}[])}}
80908090
*/
80918091

80928092

@@ -8222,11 +8222,11 @@
82228222
return preErrors;
82238223
}, []);
82248224
}
8225-
/**
8226-
* 根据模式验证数据,如果数据有效则返回true,否则返回* false。如果模式无效,那么这个函数将返回* false。
8227-
* @param schema
8228-
* @param data
8229-
* @returns {boolean|PromiseLike<any>}
8225+
/**
8226+
* 根据模式验证数据,如果数据有效则返回true,否则返回* false。如果模式无效,那么这个函数将返回* false。
8227+
* @param schema
8228+
* @param data
8229+
* @returns {boolean|PromiseLike<any>}
82308230
*/
82318231

82328232
function isValid(schema, data) {
@@ -9185,7 +9185,7 @@
91859185
key = _ref2[0],
91869186
value = _ref2[1];
91879187

9188-
if (self.$props.schema.additionalProperties === false || key !== 'properties') preVal[key] = value;
9188+
if (self.$props.schema.additionalProperties === false || !['properties', 'id', '$id'].includes(key)) preVal[key] = value;
91899189
return preVal;
91909190
}, {}),
91919191
errorSchema: this.errorSchema,

packages/lib/dist/vueJsonSchemaForm.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)