Skip to content

Commit d0f187d

Browse files
committed
build: build lib
1 parent d3d4e3f commit d0f187d

File tree

5 files changed

+71
-28
lines changed

5 files changed

+71
-28
lines changed

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
# [](https://github.com/lljj-x/vue-json-schema-form/compare/v0.0.12...v) (2020-07-23)
2+
3+
4+
### Bug Fixes
5+
6+
* **arraymultiselect:** 修复type array 多选框不支持配置 uiwidget ([f9b577c](https://github.com/lljj-x/vue-json-schema-form/commit/f9b577c479a2c3dd0233952c50e74079c1e4a5ac))
7+
* 修复选择框需要uiSchema参数问题 ([66be8df](https://github.com/lljj-x/vue-json-schema-form/commit/66be8df61f0b724fdcccf4b387341a948cf6dd05))
8+
9+
10+
### Features
11+
12+
* 添加 datatime格式支持,和required 区间校验 ([d3d4e3f](https://github.com/lljj-x/vue-json-schema-form/commit/d3d4e3f68090ad9ea6c3900816568247e7d473a0))
13+
* **datatime:** 时间日期选择支持区间选择,清空时保存数据类型 ([71343e4](https://github.com/lljj-x/vue-json-schema-form/commit/71343e4076abf3afd9a57de68f8381e09ccb0552))
14+
* **daterange:** 支持时间区间选择 ([2de8f14](https://github.com/lljj-x/vue-json-schema-form/commit/2de8f14f8401eb58904187cced3b08556d937521))
15+
* **datetime:** 新增支持 date、time、datetime 三种类型 ([897dedc](https://github.com/lljj-x/vue-json-schema-form/commit/897dedc3f1479c4a150dec7fd744fb1d14d6f453))
16+
* **enum uischema:** enumNames 和anyOf const 形式,支持通过uiSchema配置枚举项标题 ([62698e4](https://github.com/lljj-x/vue-json-schema-form/commit/62698e4e1f778f5c90d626513421c07918064cbc))
17+
* **field:** 自定义 field 支持 ui:fieldProps 配置传入附加props ([7bea3a6](https://github.com/lljj-x/vue-json-schema-form/commit/7bea3a6b2ecb4f78dde5d0abd721108d8bfe6ec0))
18+
19+
20+
21+
## [0.0.12](https://github.com/lljj-x/vue-json-schema-form/compare/v0.0.11...v0.0.12) (2020-07-20)
22+
23+
24+
### Bug Fixes
25+
26+
* **object vaidate:** 对象类型校验修复 additionalProperties false 不生效问题 ([b8772e8](https://github.com/lljj-x/vue-json-schema-form/commit/b8772e80d0375588d5a689e67ab9ebbba0ed8711))
27+
* **style:** 更新表单数组操作样式 ([ca0652f](https://github.com/lljj-x/vue-json-schema-form/commit/ca0652f3c96682e29619894a11bc7d9dd69799f5))
28+
29+
30+
### Features
31+
32+
* **null:** 添加type null 支持 ([5c437ad](https://github.com/lljj-x/vue-json-schema-form/commit/5c437ad2356a1b046b54ea6726f298aa0c7d8e5c))
33+
* array 类型支持 showTitle showDescription 配置是否显示标题或描述 ([d9e3618](https://github.com/lljj-x/vue-json-schema-form/commit/d9e361837e2c8dcbb180ab5a0be167155bac58b2))
34+
* 对渲染节点添加class, 标识当前渲染节点path ([100d8ec](https://github.com/lljj-x/vue-json-schema-form/commit/100d8ecdc5ba95176050d9e8663e61d2afc2fbd0))
35+
* 更新文档 ([df34da2](https://github.com/lljj-x/vue-json-schema-form/commit/df34da2a47a07d06c42a0cbc6a90d1ef42594db2))
36+
* 调整表单渲染class类都为 首字母小写 ([fc97966](https://github.com/lljj-x/vue-json-schema-form/commit/fc9796607f99830965e6e3b1f8f13ab73e6bd160))
37+
* **anyof:** anyOf 下拉切换组件,默认使用 当前schema的 title,description ([edd86ab](https://github.com/lljj-x/vue-json-schema-form/commit/edd86ab561b3aca15dd46f6a9a251fcd50e0f083))
38+
* **customformats:** 支持customFormats配置,添加自定义 formats ([f84c7e1](https://github.com/lljj-x/vue-json-schema-form/commit/f84c7e136153be9682574aad1e02c169dfb5d2b3))
39+
* **integerfield:** 添加单独 integerfield 区分 NumberField ([830ab48](https://github.com/lljj-x/vue-json-schema-form/commit/830ab48f514cf1ad53d4a9d04dbacee978360122))
40+
* 调整lib 导出模块,添加 getDefaultFormState ([5a3c318](https://github.com/lljj-x/vue-json-schema-form/commit/5a3c3180a8428c78c681ab6b68dd3d20c8be0963))
41+
42+
43+
144
# [](https://github.com/lljj-x/vue-json-schema-form/compare/v0.0.12...v) (2020-07-20)
245

346

packages/lib/dist/vueJsonSchemaForm.esm.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @license @lljj/vue-json-schema-form (c) 2020-2020 Liu.Jun License: Apache-2.0 */
22
import Vue from 'vue';
33

4-
/**
5-
* Created by Liu.Jun on 2020/4/22 18:58.
4+
/**
5+
* Created by Liu.Jun on 2020/4/22 18:58.
66
*/
77
// 递归参数,统一props
88
var vueProps = {
@@ -8160,7 +8160,7 @@ function validateFormDataAndTransformMsg() {
81608160
_ref2$isOnlyFirstErro = _ref2.isOnlyFirstError,
81618161
isOnlyFirstError = _ref2$isOnlyFirstErro === void 0 ? true : _ref2$isOnlyFirstErro;
81628162

8163-
var isEmpty = formData === undefined;
8163+
var isEmpty = formData === undefined || schema.type === 'array' && Array.isArray(formData) && formData.length === 0;
81648164

81658165
if (required) {
81668166
if (isEmpty) {
@@ -9455,8 +9455,8 @@ __vue_render__$3._withStripped = true;
94559455
undefined
94569456
);
94579457

9458-
/**
9459-
* Created by Liu.Jun on 2020/7/22 13:21.
9458+
/**
9459+
* Created by Liu.Jun on 2020/7/22 13:21.
94609460
*/
94619461
var DatePickerWidget = {
94629462
name: 'DatePickerWidget',
@@ -9482,8 +9482,8 @@ var DatePickerWidget = {
94829482
}
94839483
};
94849484

9485-
/**
9486-
* Created by Liu.Jun on 2020/7/22 13:21.
9485+
/**
9486+
* Created by Liu.Jun on 2020/7/22 13:21.
94879487
*/
94889488
var DateTimePickerWidget = {
94899489
name: 'DateTimePickerWidget',
@@ -9518,8 +9518,8 @@ var DateTimePickerWidget = {
95189518
}
95199519
};
95209520

9521-
/**
9522-
* Created by Liu.Jun on 2020/7/22 13:22.
9521+
/**
9522+
* Created by Liu.Jun on 2020/7/22 13:22.
95239523
*/
95249524
var TimePickerWidget = {
95259525
name: 'TimePickerWidget',
@@ -9563,8 +9563,8 @@ Object.entries(widgetComponents).forEach(function (_ref) {
95639563
return Vue.component(key, value);
95649564
});
95659565

9566-
/**
9567-
* Created by Liu.Jun on 2020/4/21 18:23.
9566+
/**
9567+
* Created by Liu.Jun on 2020/4/21 18:23.
95689568
*/
95699569
var CheckboxesWidget = widgetComponents.CheckboxesWidget,
95709570
RadioWidget = widgetComponents.RadioWidget,
@@ -9870,8 +9870,8 @@ function getDefaultFormState(_schema, formData) {
98709870
return formData || defaults;
98719871
}
98729872

9873-
/**
9874-
* Created by Liu.Jun on 2020/4/24 16:47.
9873+
/**
9874+
* Created by Liu.Jun on 2020/4/24 16:47.
98759875
*/
98769876
// 支持数字排序 ,新增 ,删除等操作
98779877
var ArrayOrderList = {

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: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
Vue = Vue && Object.prototype.hasOwnProperty.call(Vue, 'default') ? Vue['default'] : Vue;
99

10-
/**
11-
* Created by Liu.Jun on 2020/4/22 18:58.
10+
/**
11+
* Created by Liu.Jun on 2020/4/22 18:58.
1212
*/
1313
// 递归参数,统一props
1414
var vueProps = {
@@ -8166,7 +8166,7 @@
81668166
_ref2$isOnlyFirstErro = _ref2.isOnlyFirstError,
81678167
isOnlyFirstError = _ref2$isOnlyFirstErro === void 0 ? true : _ref2$isOnlyFirstErro;
81688168

8169-
var isEmpty = formData === undefined;
8169+
var isEmpty = formData === undefined || schema.type === 'array' && Array.isArray(formData) && formData.length === 0;
81708170

81718171
if (required) {
81728172
if (isEmpty) {
@@ -9461,8 +9461,8 @@
94619461
undefined
94629462
);
94639463

9464-
/**
9465-
* Created by Liu.Jun on 2020/7/22 13:21.
9464+
/**
9465+
* Created by Liu.Jun on 2020/7/22 13:21.
94669466
*/
94679467
var DatePickerWidget = {
94689468
name: 'DatePickerWidget',
@@ -9488,8 +9488,8 @@
94889488
}
94899489
};
94909490

9491-
/**
9492-
* Created by Liu.Jun on 2020/7/22 13:21.
9491+
/**
9492+
* Created by Liu.Jun on 2020/7/22 13:21.
94939493
*/
94949494
var DateTimePickerWidget = {
94959495
name: 'DateTimePickerWidget',
@@ -9524,8 +9524,8 @@
95249524
}
95259525
};
95269526

9527-
/**
9528-
* Created by Liu.Jun on 2020/7/22 13:22.
9527+
/**
9528+
* Created by Liu.Jun on 2020/7/22 13:22.
95299529
*/
95309530
var TimePickerWidget = {
95319531
name: 'TimePickerWidget',
@@ -9569,8 +9569,8 @@
95699569
return Vue.component(key, value);
95709570
});
95719571

9572-
/**
9573-
* Created by Liu.Jun on 2020/4/21 18:23.
9572+
/**
9573+
* Created by Liu.Jun on 2020/4/21 18:23.
95749574
*/
95759575
var CheckboxesWidget = widgetComponents.CheckboxesWidget,
95769576
RadioWidget = widgetComponents.RadioWidget,
@@ -9876,8 +9876,8 @@
98769876
return formData || defaults;
98779877
}
98789878

9879-
/**
9880-
* Created by Liu.Jun on 2020/4/24 16:47.
9879+
/**
9880+
* Created by Liu.Jun on 2020/4/24 16:47.
98819881
*/
98829882
// 支持数字排序 ,新增 ,删除等操作
98839883
var ArrayOrderList = {

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)