flameresttable 1.0.95 → 1.0.96

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.95",
3
+ "version": "1.0.96",
4
4
  "main": "./src/plugin.ts",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,10 +35,11 @@
35
35
  :class="' defaultHeader ' + column.Table.classesHeader"
36
36
  class=" table-cell align-middle border-r border-r-slate-100 px-2"
37
37
  :style="(column.Table.width === null ? '' : 'width:' + column.Table.width + 'px')">
38
- <span>{{ column.Table.titleCustom !== null ? (column as any).Table.titleCustom(column) : column.Table.title !==
39
- '' ?
40
- column.Table.title : column.title !== '' ? column.title :
41
- column.name }}</span>
38
+ <span>{{ column.Table.titleCustom !== null ? (column as any).Table.titleCustom(column) : column.Table.title
39
+ !==
40
+ '' ?
41
+ column.Table.title : column.title !== '' ? column.title :
42
+ column.name }}</span>
42
43
  </div>
43
44
  <div v-if="opts.Edit.can" class="table-cell w-[93px] border-r border-r-slate-100 px-2">
44
45
  <button class="bg-green-600 invisible">
@@ -56,7 +57,8 @@
56
57
  <div class="table-row-group text-left">
57
58
 
58
59
  <template v-for="(row) in (Table.Rows.rows)">
59
- <div :key="'row_' + (row as any).id" class="defaultRow table-row cursor-pointer hover:bg-slate-100" v-if="true">
60
+ <div :key="'row_' + (row as any).id" class="defaultRow table-row cursor-pointer hover:bg-slate-100"
61
+ v-if="true">
60
62
 
61
63
  <!-- ЧЕКБОКСЫ -->
62
64
  <div class="table-cell align-middle w-[21px]">
@@ -74,7 +76,7 @@
74
76
  :style="(column.Table.width === null ? '' : 'width:' + column.Table.width + 'px')">
75
77
 
76
78
  <span v-if="!column.Table.isRawValue">{{
77
- column.Table.value(row, column) }}</span>
79
+ column.Table.value(row, column) }}</span>
78
80
  <span v-else v-html="column.Table.value(row, column)"></span>
79
81
  </div>
80
82
  <div v-if="opts.Edit.can" class="table-cell w-[93px] border-r border-r-slate-100 px-2 text-center">
@@ -118,7 +120,7 @@
118
120
  <!-- Заголовок -->
119
121
  <div class="text-left px-2 py-1 bg-slate-100" style="width: 110px">
120
122
  <div>{{ Table.columns[column].Popup.title !== '' ? Table.columns[column].Popup.title === '' :
121
- Table.columns[column].title !== '' ? Table.columns[column].title : Table.columns[column].name }}</div>
123
+ Table.columns[column].title !== '' ? Table.columns[column].title : Table.columns[column].name }}</div>
122
124
  <div class="text-xs text-slate-400">{{ Table.columns[column].Popup.desc }}</div>
123
125
  </div>
124
126
 
@@ -142,7 +144,7 @@
142
144
  <option v-for="(selectorVal, selectorKey) in Table.columns[column].Popup.Selector.values"
143
145
  :key="'sel_' + selectorKey"
144
146
  :value="getSelector(Table.columns[column].Popup.Selector.values, selectorKey, selectorVal)[1]">{{
145
- getSelector(Table.columns[column].Popup.Selector.values, selectorKey, selectorVal)[0] }}</option>
147
+ getSelector(Table.columns[column].Popup.Selector.values, selectorKey, selectorVal)[0] }}</option>
146
148
  </select>
147
149
  </div>
148
150
 
@@ -420,7 +422,7 @@ export default defineComponent({
420
422
  // Проверяем, достиг ли скролл нижней грани элемента
421
423
  if (bottom <= windowHeight) {
422
424
  // Грузим на одну страницу дальше
423
- this.Table.update({ page: this.Table.Pager.page + 1, perPage: 20 });
425
+ this.Table.update({ page: this.Table.Pager.page + 1, perPage: this.Table.Pager.perPage });
424
426
  }
425
427
 
426
428
  },