classcard-ui 0.2.432 → 0.2.435

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.432",
3
+ "version": "0.2.435",
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="styles"
99
+ :row-style-class="rowStyleClassFn"
100
100
  min-height="400px"
101
101
  :globalSearch="true"
102
102
  :isLoading="showLoader"
@@ -322,9 +322,9 @@ export default {
322
322
  downloadLoader: {
323
323
  type: Boolean,
324
324
  },
325
- //highlight the rows
326
- isRead: {
327
- type: Number,
325
+ rowStyleClassFn: {
326
+ type: Function,
327
+ default: () => "",
328
328
  },
329
329
  },
330
330
  mounted() {
@@ -350,14 +350,6 @@ export default {
350
350
  reorderedArray: [...this.rows],
351
351
  };
352
352
  },
353
- computed: {
354
- styles() {
355
- if (this.isRead === 1) {
356
- return "focus:outline-none";
357
- }
358
- return "focus:outline-none bg-gray-100";
359
- },
360
- },
361
353
  methods: {
362
354
  handleToggle() {
363
355
  this.toggleDropdown = !this.toggleDropdown;