classcard-ui 0.2.431 → 0.2.434

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.431",
3
+ "version": "0.2.434",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -96,7 +96,7 @@
96
96
  :styleClass="
97
97
  showLoader ? 'vgt-table opacity-50 pointer-events-none' : 'vgt-table'
98
98
  "
99
- row-style-class="focus:outline-none"
99
+ :row-style-class="rowStyleClassFn"
100
100
  min-height="400px"
101
101
  :globalSearch="true"
102
102
  :isLoading="showLoader"
@@ -350,6 +350,12 @@ export default {
350
350
  handleToggle() {
351
351
  this.toggleDropdown = !this.toggleDropdown;
352
352
  },
353
+ rowStyleClassFn(row) {
354
+ console.log(row)
355
+ return row.is_read === 0
356
+ ? "focus:outline-none bg-gray-100"
357
+ : "focus:outline-none";
358
+ },
353
359
  showHideColumn(value, name) {
354
360
  this.$emit("hideCols", value, name);
355
361
  },