bkui-vue 0.0.1-beta.421 → 0.0.1-beta.422

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/index.esm.js CHANGED
@@ -17113,25 +17113,18 @@ var Column = defineComponent({
17113
17113
  if (!Array.isArray(nodes)) {
17114
17114
  return;
17115
17115
  }
17116
- this.column.render = this.$slots.default ? (args) => {
17117
- var _a, _b;
17118
- return (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a, args);
17119
- } : void 0;
17120
17116
  nodes.forEach((node) => {
17121
- var _a, _b;
17117
+ var _a, _b, _c;
17122
17118
  let skipValidateKey0 = true;
17123
17119
  if (((_a = node.type) == null ? void 0 : _a.name) === "TableColumn") {
17124
17120
  skipValidateKey0 = Object.hasOwnProperty.call(node.props || {}, "key");
17125
17121
  const resolveProp = __spreadProps(__spreadValues({}, node.props), {
17126
- field: node.props.prop || node.props.field
17122
+ field: node.props.prop || node.props.field,
17123
+ render: (_b = node.children) == null ? void 0 : _b.default
17127
17124
  });
17128
- if (resolveProp.label === this.column.label && resolveProp.field === this.column.field) {
17129
- sortColumns.push(unref(this.column));
17130
- } else {
17131
- sortColumns.push(unref(resolveProp));
17132
- }
17125
+ sortColumns.push(unref(resolveProp));
17133
17126
  }
17134
- if (((_b = node.children) == null ? void 0 : _b.length) && skipValidateKey0) {
17127
+ if (((_c = node.children) == null ? void 0 : _c.length) && skipValidateKey0) {
17135
17128
  reduceColumns(node.children);
17136
17129
  }
17137
17130
  });
@@ -17146,9 +17139,9 @@ var Column = defineComponent({
17146
17139
  },
17147
17140
  render() {
17148
17141
  var _a, _b;
17149
- return (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a, {
17142
+ return createVNode(Fragment, null, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a, {
17150
17143
  row: {}
17151
- });
17144
+ })]);
17152
17145
  }
17153
17146
  });
17154
17147
  class BkTableCache {
@@ -18903,9 +18896,11 @@ var HeadSort = defineComponent({
18903
18896
  "onClick": (e) => handleSortClick(e, SORT_OPTION.NULL)
18904
18897
  }, [createVNode(angleDownFill, {
18905
18898
  "class": ["sort-action", "sort-asc", sortType.value === SORT_OPTION.ASC ? "active" : ""],
18899
+ "style": "align-items: flex-end;",
18906
18900
  "onClick": (e) => handleSortClick(e, SORT_OPTION.ASC)
18907
18901
  }, null), createVNode(angleUpFill, {
18908
18902
  "class": ["sort-action", "sort-desc", sortType.value === SORT_OPTION.DESC ? "active" : ""],
18903
+ "style": "align-items: flex-start;",
18909
18904
  "onClick": (e) => handleSortClick(e, SORT_OPTION.DESC)
18910
18905
  }, null)]);
18911
18906
  }
@@ -19463,7 +19458,12 @@ class TableRender {
19463
19458
  "class": "head-text"
19464
19459
  }, [cellText]));
19465
19460
  const showTitle = typeof cellText === "string" ? cellText : void 0;
19461
+ const headClass = {
19462
+ "has-sort": !!column.sort,
19463
+ "has-filter": !!column.filter
19464
+ };
19466
19465
  return createVNode(TableCell, {
19466
+ "class": headClass,
19467
19467
  "title": showTitle,
19468
19468
  "observerResize": this.props.observerResize,
19469
19469
  "resizerWay": this.props.resizerWay
@@ -19689,6 +19689,9 @@ class TableRender {
19689
19689
  if (typeof column.render === "function") {
19690
19690
  return this.renderCellCallbackFn(row, column, index2, rows);
19691
19691
  }
19692
+ if (typeof cell === "object") {
19693
+ return JSON.stringify(unref(cell));
19694
+ }
19692
19695
  return cell;
19693
19696
  };
19694
19697
  const renderFn = {