@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.
@@ -11190,17 +11190,17 @@
11190
11190
  }
11191
11191
  };
11192
11192
  },
11193
- created: function created() {
11194
- // 注册widget TreeNode
11195
- this.widgetTree.addWidgetNode(this.path, this, 'group');
11196
- },
11193
+ // created() {
11194
+ // // 注册widget TreeNode
11195
+ // this.widgetTree.addWidgetNode(this.path, this, 'group');
11196
+ // },
11197
11197
  mounted: function mounted() {
11198
11198
  // 更新样式
11199
11199
  this.$forceUpdate();
11200
11200
  },
11201
- beforeDestroy: function beforeDestroy() {
11202
- this.widgetTree.removeWidgetNode(this.path, this);
11203
- },
11201
+ // beforeDestroy() {
11202
+ // this.widgetTree.removeWidgetNode(this.path, this);
11203
+ // },
11204
11204
  methods: {
11205
11205
  setState: function setState(key, value) {
11206
11206
  if (Reflect.has(this.state, key)) {
@@ -11342,12 +11342,13 @@
11342
11342
  };
11343
11343
  return h("table", [h("thead", {
11344
11344
  "style": theadStyle
11345
- }, [h("tr", [props === null || props === void 0 ? void 0 : props.map(function (prop) {
11345
+ }, [h("tr", [props === null || props === void 0 ? void 0 : props.map(function (prop, i) {
11346
11346
  var _this$schema3, _this$schema3$items, _this$columns$path;
11347
11347
  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];
11348
11348
  var path = Path.getCurPath(_this.path, "0.".concat(prop));
11349
11349
  return h("th", {
11350
11350
  "style": _objectSpread2(_objectSpread2({}, thStyle), {}, {
11351
+ paddingLeft: i > 0 ? '10px' : '0px',
11351
11352
  display: ((_this$columns$path = _this.columns[path]) === null || _this$columns$path === void 0 ? void 0 : _this$columns$path.visible) === false ? 'none' : ''
11352
11353
  })
11353
11354
  }, [schemaItem === null || schemaItem === void 0 ? void 0 : schemaItem.title]);
@@ -11362,7 +11363,7 @@
11362
11363
  tag: 'tr',
11363
11364
  layout: _objectSpread2({}, _this.layout)
11364
11365
  })
11365
- }]), [props !== null && props !== void 0 && props.length ? props.map(function (prop) {
11366
+ }]), [props !== null && props !== void 0 && props.length ? props.map(function (prop, i) {
11366
11367
  var _this$schema4, _this$schema4$items, _this$columns$curPath;
11367
11368
  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];
11368
11369
  var curPath = Path.getCurPath(_this.path, "".concat(index, ".").concat(prop));
@@ -11370,6 +11371,7 @@
11370
11371
  var layoutConfig = Layout.findLayoutByProp(lastProp, _this.layout.group || []) || {};
11371
11372
  return h("td", {
11372
11373
  "style": _objectSpread2(_objectSpread2({}, tdStyle), {}, {
11374
+ paddingLeft: i > 0 ? '10px' : '0px',
11373
11375
  display: ((_this$columns$curPath = _this.columns[curPath]) === null || _this$columns$curPath === void 0 ? void 0 : _this$columns$curPath.visible) === false ? 'none' : ''
11374
11376
  })
11375
11377
  }, [renderSchemaField({
@@ -11383,7 +11385,9 @@
11383
11385
  schema: dealSchema(((_this$schema5 = _this.schema) === null || _this$schema5 === void 0 ? void 0 : _this$schema5.items) || {}),
11384
11386
  layout: {},
11385
11387
  required: false
11386
- })]), h("td", [h("span", {
11388
+ })]), h("td", {
11389
+ "style": _objectSpread2({}, tdStyle)
11390
+ }, [h("span", {
11387
11391
  "style": _objectSpread2(_objectSpread2({}, labelBtnStyle), {}, {
11388
11392
  marginBottom: '10px'
11389
11393
  }),