flameresttable 1.0.62 → 1.0.63

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": "flameresttable",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "main": "./src/plugin.ts",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  <!--<div>-->
25
25
 
26
26
  <!-- ЧЕКБОКСЫ -->
27
- <div class="w-[21px] align-middle col-span-1" :style="'grid-column:' + 0">
27
+ <div class="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>
@@ -62,7 +62,8 @@
62
62
 
63
63
  <!-- ЧЕКБОКСЫ -->
64
64
  <!-- class="defaultRow cursor-pointer hover:bg-slate-100" -->
65
- <div class="col-span-1 align-middle w-[21px]" :key="'chkbox_row_' + (row as any).id">
65
+ <div class="col-span-1 align-middle w-[21px]" :key="'chkbox_row_' + (row as any).id"
66
+ :style="'grid-column:' + 1">
66
67
  <label class="checkbox" v-if="Table.opts.rowSelectors">
67
68
  <input type='checkbox' v-model="Table.RowsParams[(row as any)[primaryKey]].selected"
68
69
  @change="CheckboxSelectionChanged($event, false)">
@@ -70,12 +71,12 @@
70
71
  </label>
71
72
  </div>
72
73
 
73
- <template v-for=" column in Table.columns ">
74
+ <template v-for=" (column, key, index) in Table.columns ">
74
75
  <div v-if="column.Table.isShow" :key="'tc_' + column.name + '_row_' + (row as any).id"
75
76
  :class="' defaultCell ' + column.Table.classes"
76
77
  class=" col-span-1 align-middle border-r border-r-slate-100 px-2 last:border-r-0 last:pr-0"
77
78
  @click="columnClick(row, column)"
78
- :style="(column.Table.width === null ? '' : 'width:' + column.Table.width + 'px')">
79
+ :style="'grid-column:' + (index + 2) + ';' + (column.Table.width === null ? '' : 'width:' + column.Table.width + 'px;')">
79
80
 
80
81
  <span v-if="!column.Table.isRawValue">{{
81
82
  column.Table.value(row, column) }}</span>
@@ -83,7 +84,7 @@
83
84
  </div>
84
85
  </template>
85
86
  <div v-if="opts.Edit.can" class=" col-span-1 border-r border-r-slate-100 px-2 text-center"
86
- :key="'edit_' + 'row_' + (row as any).id">
87
+ :style="'grid-column:' + (columnCount() - 1)" :key="'edit_' + 'row_' + (row as any).id">
87
88
  <button class="mobile:hidden px-2 py-1 bg-green-600 text-white my-1" @click="edit(row)">
88
89
  Изменить
89
90
  </button>
@@ -92,7 +93,7 @@
92
93
  </button>
93
94
  </div>
94
95
  <div v-if="opts.Remove.can" class=" col-span-1 border-r border-r-slate-100 px-2 text-center"
95
- :key="'delete_' + 'row_' + (row as any).id">
96
+ :key="'delete_' + 'row_' + (row as any).id" :style="'grid-column:' + (columnCount())">
96
97
  <button class="mobile:hidden px-2 py-1 bg-gray-600 opacity-30 text-white my-1" @click="deleteRow(row)">
97
98
  Удалить
98
99
  </button>