adminforth 2.4.0-next.152 → 2.4.0-next.154
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.
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
"baseUrl": ".", // This should point to your project root
|
|
4
4
|
"paths": {
|
|
5
5
|
"@/*": [
|
|
6
|
-
|
|
7
|
-
"../../../spa/src/*"
|
|
6
|
+
"../node_modules/adminforth/dist/spa/src/*"
|
|
8
7
|
],
|
|
9
8
|
"*": [
|
|
10
|
-
|
|
11
|
-
"../../../spa/node_modules/*"
|
|
9
|
+
"../node_modules/adminforth/dist/spa/node_modules/*"
|
|
12
10
|
],
|
|
13
11
|
"@@/*": [
|
|
14
|
-
// "node_modules/adminforth/dist/spa/src/*"
|
|
15
12
|
"."
|
|
16
13
|
]
|
|
17
14
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<table class="afcl-table w-full text-sm text-left rtl:text-right text-lightTableText dark:text-darkTableText overflow-x-auto">
|
|
5
5
|
<thead class="afcl-table-thread text-xs text-lightTableHeadingText uppercase bg-lightTableHeadingBackground dark:bg-darkTableHeadingBackground dark:text-darkTableHeadingText">
|
|
6
6
|
<tr>
|
|
7
|
-
<th scope="col" class="px-6 py-3" ref="headerRefs"
|
|
7
|
+
<th scope="col" class="px-6 py-3" ref="headerRefs" :key="`header-${column.fieldName}`"
|
|
8
8
|
v-for="column in columns"
|
|
9
9
|
>
|
|
10
10
|
<slot v-if="$slots[`header:${column.fieldName}`]" :name="`header:${column.fieldName}`" :column="column" />
|
|
@@ -34,13 +34,14 @@
|
|
|
34
34
|
<tr
|
|
35
35
|
v-else="!isLoading"
|
|
36
36
|
v-for="(item, index) in dataPage"
|
|
37
|
+
:key="`row-${index}`"
|
|
37
38
|
ref="rowRefs"
|
|
38
39
|
:class="{
|
|
39
40
|
'afcl-table-body odd:bg-lightTableOddBackground odd:dark:bg-darkTableOddBackground even:bg-lightTableEvenBackground even:dark:bg-darkTableEvenBackground': evenHighlights,
|
|
40
41
|
'border-b border-lightTableBorder dark:border-darkTableBorder': index !== dataPage.length - 1 || totalPages > 1,
|
|
41
42
|
}"
|
|
42
43
|
>
|
|
43
|
-
<td class="px-6 py-4"
|
|
44
|
+
<td class="px-6 py-4" :key="`cell-${index}-${column.fieldName}`"
|
|
44
45
|
v-for="column in props.columns"
|
|
45
46
|
>
|
|
46
47
|
<slot v-if="$slots[`cell:${column.fieldName}`]"
|