flameresttable 1.0.56 → 1.0.58
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 +9 -6
package/package.json
CHANGED
package/src/Table/Table.vue
CHANGED
|
@@ -32,18 +32,19 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
34
|
<div v-for="column in Table.columns" v-show="column.Table.isShow" :key="'cheader_' + column.name"
|
|
35
|
-
:class="' defaultHeader ' + column.Table.classesHeader"
|
|
35
|
+
:class="' defaultHeader ' + column.Table.classesHeader"
|
|
36
|
+
class=" col-span-1 align-middle border-r border-r-slate-100 px-2">
|
|
36
37
|
<span>{{ column.Table.titleCustom !== null ? (column as any).Table.titleCustom(column) : column.Table.title !==
|
|
37
38
|
'' ?
|
|
38
39
|
column.Table.title : column.title !== '' ? column.title :
|
|
39
40
|
column.name }}</span>
|
|
40
41
|
</div>
|
|
41
|
-
<div v-if="opts.Edit.can" class=" border-r border-r-slate-100 px-2">
|
|
42
|
+
<div v-if="opts.Edit.can" class=" col-span-1 border-r border-r-slate-100 px-2">
|
|
42
43
|
<button class="bg-green-600 invisible">
|
|
43
44
|
|
|
44
45
|
</button>
|
|
45
46
|
</div>
|
|
46
|
-
<div v-if="opts.Remove.can" class=" border-r border-r-slate-100 px-2">
|
|
47
|
+
<div v-if="opts.Remove.can" class=" col-span-1 border-r border-r-slate-100 px-2">
|
|
47
48
|
<button class="bg-green-600 invisible">
|
|
48
49
|
|
|
49
50
|
</button>
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
|
|
67
68
|
<div v-for="column in Table.columns" v-show="column.Table.isShow"
|
|
68
69
|
:key="'tc_' + column.name + '_row_' + (row as any).id" :class="' defaultCell ' + column.Table.classes"
|
|
69
|
-
class=" align-middle border-r border-r-slate-100 px-2 last:border-r-0 last:pr-0"
|
|
70
|
+
class=" col-span-1 align-middle border-r border-r-slate-100 px-2 last:border-r-0 last:pr-0"
|
|
70
71
|
@click="columnClick(row, column)"
|
|
71
72
|
:style="(column.Table.width === null ? '' : 'width:' + column.Table.width + 'px')">
|
|
72
73
|
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
column.Table.value(row, column) }}</span>
|
|
75
76
|
<span v-else v-html="column.Table.value(row, column)"></span>
|
|
76
77
|
</div>
|
|
77
|
-
<div v-if="opts.Edit.can" class=" border-r border-r-slate-100 px-2 text-center"
|
|
78
|
+
<div v-if="opts.Edit.can" class=" col-span-1 border-r border-r-slate-100 px-2 text-center"
|
|
78
79
|
:key="'edit_' + 'row_' + (row as any).id">
|
|
79
80
|
<button class="mobile:hidden px-2 py-1 bg-green-600 text-white my-1" @click="edit(row)">
|
|
80
81
|
Изменить
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
<img src="/src/assets/icons/edit.svg" class="w-4 h-4 fill-white" />
|
|
84
85
|
</button>
|
|
85
86
|
</div>
|
|
86
|
-
<div v-if="opts.Remove.can" class=" border-r border-r-slate-100 px-2 text-center"
|
|
87
|
+
<div v-if="opts.Remove.can" class=" col-span-1 border-r border-r-slate-100 px-2 text-center"
|
|
87
88
|
:key="'delete_' + 'row_' + (row as any).id">
|
|
88
89
|
<button class="mobile:hidden px-2 py-1 bg-gray-600 opacity-30 text-white my-1" @click="deleteRow(row)">
|
|
89
90
|
Удалить
|
|
@@ -458,6 +459,8 @@ export default defineComponent({
|
|
|
458
459
|
|
|
459
460
|
.defaultTable {
|
|
460
461
|
font-family: "Roboto", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
462
|
+
font-size: 14px;
|
|
463
|
+
text-align: left;
|
|
461
464
|
}
|
|
462
465
|
|
|
463
466
|
.defaultHeader {
|