@blueking/bkui-form 0.0.45 → 0.0.47
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-es-min.js +1 -1
- package/dist/bkui-form-es.js +14 -10
- package/dist/bkui-form-es.js.map +1 -1
- package/dist/bkui-form-umd-min.js +1 -1
- package/dist/bkui-form-umd.js +14 -10
- package/dist/bkui-form-umd.js.map +1 -1
- package/package.json +1 -1
package/dist/bkui-form-es.js
CHANGED
|
@@ -11182,17 +11182,17 @@ var CommonGroupWrap = Vue.extend({
|
|
|
11182
11182
|
}
|
|
11183
11183
|
};
|
|
11184
11184
|
},
|
|
11185
|
-
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
},
|
|
11185
|
+
// created() {
|
|
11186
|
+
// // 注册widget TreeNode
|
|
11187
|
+
// this.widgetTree.addWidgetNode(this.path, this, 'group');
|
|
11188
|
+
// },
|
|
11189
11189
|
mounted: function mounted() {
|
|
11190
11190
|
// 更新样式
|
|
11191
11191
|
this.$forceUpdate();
|
|
11192
11192
|
},
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
},
|
|
11193
|
+
// beforeDestroy() {
|
|
11194
|
+
// this.widgetTree.removeWidgetNode(this.path, this);
|
|
11195
|
+
// },
|
|
11196
11196
|
methods: {
|
|
11197
11197
|
setState: function setState(key, value) {
|
|
11198
11198
|
if (Reflect.has(this.state, key)) {
|
|
@@ -11334,12 +11334,13 @@ var KeyValueArrayWidget = Vue.extend({
|
|
|
11334
11334
|
};
|
|
11335
11335
|
return h("table", [h("thead", {
|
|
11336
11336
|
"style": theadStyle
|
|
11337
|
-
}, [h("tr", [props === null || props === void 0 ? void 0 : props.map(function (prop) {
|
|
11337
|
+
}, [h("tr", [props === null || props === void 0 ? void 0 : props.map(function (prop, i) {
|
|
11338
11338
|
var _this$schema3, _this$schema3$items, _this$columns$path;
|
|
11339
11339
|
var schemaItem = (_this$schema3 = _this.schema) === null || _this$schema3 === void 0 ? void 0 : (_this$schema3$items = _this$schema3.items) === null || _this$schema3$items === void 0 ? void 0 : _this$schema3$items.properties[prop];
|
|
11340
11340
|
var path = Path.getCurPath(_this.path, "0.".concat(prop));
|
|
11341
11341
|
return h("th", {
|
|
11342
11342
|
"style": _objectSpread2(_objectSpread2({}, thStyle), {}, {
|
|
11343
|
+
paddingLeft: i > 0 ? '10px' : '0px',
|
|
11343
11344
|
display: ((_this$columns$path = _this.columns[path]) === null || _this$columns$path === void 0 ? void 0 : _this$columns$path.visible) === false ? 'none' : ''
|
|
11344
11345
|
})
|
|
11345
11346
|
}, [schemaItem === null || schemaItem === void 0 ? void 0 : schemaItem.title]);
|
|
@@ -11354,7 +11355,7 @@ var KeyValueArrayWidget = Vue.extend({
|
|
|
11354
11355
|
tag: 'tr',
|
|
11355
11356
|
layout: _objectSpread2({}, _this.layout)
|
|
11356
11357
|
})
|
|
11357
|
-
}]), [props !== null && props !== void 0 && props.length ? props.map(function (prop) {
|
|
11358
|
+
}]), [props !== null && props !== void 0 && props.length ? props.map(function (prop, i) {
|
|
11358
11359
|
var _this$schema4, _this$schema4$items, _this$columns$curPath;
|
|
11359
11360
|
var schemaItem = (_this$schema4 = _this.schema) === null || _this$schema4 === void 0 ? void 0 : (_this$schema4$items = _this$schema4.items) === null || _this$schema4$items === void 0 ? void 0 : _this$schema4$items.properties[prop];
|
|
11360
11361
|
var curPath = Path.getCurPath(_this.path, "".concat(index, ".").concat(prop));
|
|
@@ -11362,6 +11363,7 @@ var KeyValueArrayWidget = Vue.extend({
|
|
|
11362
11363
|
var layoutConfig = Layout.findLayoutByProp(lastProp, _this.layout.group || []) || {};
|
|
11363
11364
|
return h("td", {
|
|
11364
11365
|
"style": _objectSpread2(_objectSpread2({}, tdStyle), {}, {
|
|
11366
|
+
paddingLeft: i > 0 ? '10px' : '0px',
|
|
11365
11367
|
display: ((_this$columns$curPath = _this.columns[curPath]) === null || _this$columns$curPath === void 0 ? void 0 : _this$columns$curPath.visible) === false ? 'none' : ''
|
|
11366
11368
|
})
|
|
11367
11369
|
}, [renderSchemaField({
|
|
@@ -11375,7 +11377,9 @@ var KeyValueArrayWidget = Vue.extend({
|
|
|
11375
11377
|
schema: dealSchema(((_this$schema5 = _this.schema) === null || _this$schema5 === void 0 ? void 0 : _this$schema5.items) || {}),
|
|
11376
11378
|
layout: {},
|
|
11377
11379
|
required: false
|
|
11378
|
-
})]), h("td",
|
|
11380
|
+
})]), h("td", {
|
|
11381
|
+
"style": _objectSpread2({}, tdStyle)
|
|
11382
|
+
}, [h("span", {
|
|
11379
11383
|
"style": _objectSpread2(_objectSpread2({}, labelBtnStyle), {}, {
|
|
11380
11384
|
marginBottom: '10px'
|
|
11381
11385
|
}),
|