leisure-core 0.6.39 → 0.6.40

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.
@@ -26,7 +26,6 @@
26
26
  :row-key="rowId"
27
27
  :header-cell-style="computedHeaderCellStyle"
28
28
  :cell-style="computedCellStyle"
29
- :cell-class-name="getCellClassName"
30
29
  stripe
31
30
  style="width: 100%"
32
31
  reserve-selection
@@ -41,6 +40,7 @@
41
40
  :prop="column.prop"
42
41
  :label="column.label"
43
42
  :width="column.width"
43
+ :class-name="column.className"
44
44
  >
45
45
  <template #default="scope">
46
46
  <!-- <span v-html="renderColumnContent(column, scope)"></span> -->
@@ -491,14 +491,14 @@ export default {
491
491
  // 向上抛出统一事件,供父组件监听
492
492
  this.$emit("cell-click", { row, column, cell, event });
493
493
  },
494
- getCellClassName({ row, column }) {
495
- const colConfig = this.tableColumns.find(
496
- (col) => col.prop === column.property,
497
- );
498
- return colConfig && typeof colConfig.cellClick === "function"
499
- ? "clickable-cell"
500
- : "";
501
- },
494
+ // getCellClassName({ row, column }) {
495
+ // const colConfig = this.tableColumns.find(
496
+ // (col) => col.prop === column.property,
497
+ // );
498
+ // return colConfig && typeof colConfig.cellClick === "function"
499
+ // ? "clickable-cell"
500
+ // : "";
501
+ // },
502
502
  },
503
503
  };
504
504
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.6.39",
3
+ "version": "0.6.40",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",