classcard-ui 0.2.432 → 0.2.433
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/classcard-ui.common.js +56 -67
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +56 -67
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CTable/CTable.vue +6 -13
package/package.json
CHANGED
|
@@ -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="
|
|
99
|
+
:row-style-class="rowStyleClassFn"
|
|
100
100
|
min-height="400px"
|
|
101
101
|
:globalSearch="true"
|
|
102
102
|
:isLoading="showLoader"
|
|
@@ -322,10 +322,6 @@ export default {
|
|
|
322
322
|
downloadLoader: {
|
|
323
323
|
type: Boolean,
|
|
324
324
|
},
|
|
325
|
-
//highlight the rows
|
|
326
|
-
isRead: {
|
|
327
|
-
type: Number,
|
|
328
|
-
},
|
|
329
325
|
},
|
|
330
326
|
mounted() {
|
|
331
327
|
// to add drag and drop in table
|
|
@@ -350,18 +346,15 @@ export default {
|
|
|
350
346
|
reorderedArray: [...this.rows],
|
|
351
347
|
};
|
|
352
348
|
},
|
|
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
349
|
methods: {
|
|
362
350
|
handleToggle() {
|
|
363
351
|
this.toggleDropdown = !this.toggleDropdown;
|
|
364
352
|
},
|
|
353
|
+
rowStyleClassFn(row) {
|
|
354
|
+
return row.is_read === 0
|
|
355
|
+
? "focus:outline-none bg-gray-100"
|
|
356
|
+
: "focus:outline-none";
|
|
357
|
+
},
|
|
365
358
|
showHideColumn(value, name) {
|
|
366
359
|
this.$emit("hideCols", value, name);
|
|
367
360
|
},
|