@blueking/bkui-form 0.0.5 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bkui-form-umd.js
CHANGED
|
@@ -854,6 +854,10 @@
|
|
|
854
854
|
|
|
855
855
|
case 'array':
|
|
856
856
|
// todo
|
|
857
|
+
if (schema.default && Array.isArray(schema.default)) {
|
|
858
|
+
return schema.default;
|
|
859
|
+
}
|
|
860
|
+
|
|
857
861
|
return Array.isArray(schema.items) ? schema.items.map(function (item) {
|
|
858
862
|
return _this3.getSchemaDefaultValue(item);
|
|
859
863
|
}) : [];
|
|
@@ -1062,10 +1066,15 @@
|
|
|
1062
1066
|
_classCallCheck(this, Layout);
|
|
1063
1067
|
|
|
1064
1068
|
this.layout = void 0;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
+
|
|
1070
|
+
if (Array.isArray(layout)) {
|
|
1071
|
+
this.layout = this.parseLayout({
|
|
1072
|
+
prop: '',
|
|
1073
|
+
group: layout
|
|
1074
|
+
});
|
|
1075
|
+
} else {
|
|
1076
|
+
this.layout = this.parseLayout(layout);
|
|
1077
|
+
}
|
|
1069
1078
|
}
|
|
1070
1079
|
|
|
1071
1080
|
_createClass(Layout, [{
|
|
@@ -1473,7 +1482,7 @@
|
|
|
1473
1482
|
},
|
|
1474
1483
|
// 表单布局
|
|
1475
1484
|
layout: {
|
|
1476
|
-
type: Array,
|
|
1485
|
+
type: [Array, Object],
|
|
1477
1486
|
default: function _default() {
|
|
1478
1487
|
return [];
|
|
1479
1488
|
}
|
|
@@ -10002,6 +10011,9 @@
|
|
|
10002
10011
|
return Array.isArray(this.value) ? h(registry.getBaseWidget('checkbox-group'), {
|
|
10003
10012
|
on: {
|
|
10004
10013
|
change: this.handleChange
|
|
10014
|
+
},
|
|
10015
|
+
props: {
|
|
10016
|
+
value: this.value
|
|
10005
10017
|
}
|
|
10006
10018
|
}, this.datasource.map(function (item) {
|
|
10007
10019
|
return h(registry.getBaseWidget('checkbox'), {
|