flameresttable 1.0.63 → 1.0.65
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 +1 -1
- package/src/Table/Table.vue +15 -4
package/package.json
CHANGED
package/src/Table/Table.vue
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<!--<div>-->
|
|
25
25
|
|
|
26
26
|
<!-- ЧЕКБОКСЫ -->
|
|
27
|
-
<div class="w-[21px] align-middle col-span-1" :style="'grid-column:' + 1">
|
|
27
|
+
<div class="max-w-[21px] align-middle col-span-1" :style="'grid-column:' + 1">
|
|
28
28
|
<label class="checkbox" v-if="Table.opts.rowSelectors">
|
|
29
29
|
<input type='checkbox' @change="CheckboxSelectionChanged($event, true)">
|
|
30
30
|
<span class='indicator'></span>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
<template v-for="(column,
|
|
35
|
+
<template v-for="(column, index) in columnsArray">
|
|
36
36
|
<div v-if="column.Table.isShow" :key="'cheader_' + column.name"
|
|
37
37
|
:class="' defaultHeader ' + column.Table.classesHeader"
|
|
38
38
|
class=" col-span-1 align-middle border-r border-r-slate-100 px-2" :style="'grid-column:' + (index + 2)">
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
</label>
|
|
72
72
|
</div>
|
|
73
73
|
|
|
74
|
-
<template v-for=" (column,
|
|
74
|
+
<template v-for=" (column, index) in columnsArray ">
|
|
75
75
|
<div v-if="column.Table.isShow" :key="'tc_' + column.name + '_row_' + (row as any).id"
|
|
76
76
|
:class="' defaultCell ' + column.Table.classes"
|
|
77
77
|
class=" col-span-1 align-middle border-r border-r-slate-100 px-2 last:border-r-0 last:pr-0"
|
|
@@ -405,6 +405,15 @@ export default defineComponent({
|
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
},
|
|
408
|
+
|
|
409
|
+
computed: {
|
|
410
|
+
|
|
411
|
+
columnsArray: function () {
|
|
412
|
+
return Object.keys(this.Table.columns).filter(r => this.Table.columns[r].Table.isShow).map(key => this.Table.columns[key])
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
},
|
|
416
|
+
|
|
408
417
|
methods: {
|
|
409
418
|
fileGetData(thisArr: any, getSource: boolean = true) {
|
|
410
419
|
|
|
@@ -446,7 +455,9 @@ export default defineComponent({
|
|
|
446
455
|
for (const key in this.Table.RowsParams) {
|
|
447
456
|
this.Table.RowsParams[key].selected = event.target.checked
|
|
448
457
|
}
|
|
449
|
-
}
|
|
458
|
+
},
|
|
459
|
+
|
|
460
|
+
|
|
450
461
|
},
|
|
451
462
|
|
|
452
463
|
})
|