leisure-core 0.6.39 → 0.6.41
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/le-list/src/main.vue
CHANGED
|
@@ -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
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
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>
|