flameresttable 1.0.27 → 1.0.28
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 +11 -1
- package/src/Table/TableOpts.ts +7 -0
package/package.json
CHANGED
package/src/Table/Table.vue
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div class="flex items-center justify-between">
|
|
9
9
|
<slot name="defaultButtons">
|
|
10
10
|
<div v-show="$props.opts?.Add.can"
|
|
11
|
-
class="flex cursor-pointer justify-center items-center text-white bg-blue-600 font-medium rounded text-sm px-4 text-center hover:bg-blue-700 .focus:ring-4.focus:ring-blue-200.dark:focus:ring-blue-900"
|
|
11
|
+
class="flex mr-3 cursor-pointer justify-center items-center text-white bg-blue-600 font-medium rounded text-sm px-4 text-center hover:bg-blue-700 .focus:ring-4.focus:ring-blue-200.dark:focus:ring-blue-900"
|
|
12
12
|
@click="add()">
|
|
13
13
|
<div class="text-xl">
|
|
14
14
|
+
|
|
@@ -17,6 +17,16 @@
|
|
|
17
17
|
{{ $props.opts?.Add.buttonTitle }}
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
|
+
<div v-show="$props.opts?.Export.CSV.can"
|
|
21
|
+
class="flex mr-3 cursor-pointer justify-center items-center text-white bg-blue-600 font-medium rounded text-sm px-4 text-center hover:bg-blue-700 .focus:ring-4.focus:ring-blue-200.dark:focus:ring-blue-900"
|
|
22
|
+
@click="Table.exportSelectedToCSV()">
|
|
23
|
+
<div class="text-xl">
|
|
24
|
+
+
|
|
25
|
+
</div>
|
|
26
|
+
<div class="ml-2">
|
|
27
|
+
{{ $props.opts?.Export.CSV.buttonTitle }}
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
20
30
|
</slot>
|
|
21
31
|
<slot name="otherButtons" />
|
|
22
32
|
|