vueye-table 2.0.0-alpha.13 → 2.0.0-alpha.14

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.
Files changed (2) hide show
  1. package/README.md +42 -23
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,39 +4,58 @@ Vueye Table is a Vue 3 component for displaying data in a table.
4
4
 
5
5
  ## Installation
6
6
 
7
+ Vue 3:
8
+
7
9
  ```bash
8
10
  npm install vueye-table
9
11
  ```
10
12
 
13
+ Nuxt :
14
+
15
+ ```bash
16
+ npm install nuxt-vueye-table
17
+ ```
18
+
11
19
  ## Usage
12
20
 
13
- ```vue
21
+ Vue :
22
+
23
+ ```html
24
+ <script setup lang="ts">
25
+ import { VueyeTable } from 'vueye-table'
26
+
27
+ const items = [
28
+ {
29
+ id: 60,
30
+ name: {
31
+ first_name: 'Brahim',
32
+ last_name: 'Boussadjra',
33
+ },
34
+ age: 30,
35
+ address: {
36
+ country: 'Algeria',
37
+ city: 'Algiers',
38
+ },
39
+ },
40
+ //...
41
+ ]
42
+ </script>
43
+
14
44
  <template>
15
- <VueyeTable
16
- :data="data"
17
- :columnHeaders="columnHeaders"
18
- :itemValue="itemValue"
19
- :perPage="perPage"
20
- :currentPage="currentPage"
21
- :perPageOptions="perPageOptions"
22
- :loading="loading"
23
- :selected="selected"
24
- :selectMode="selectMode"
25
- :caption="caption"
26
- :summary="summary"
27
- @update:loading="updateLoading"
28
- @update:selected="updateSelected"
29
- >
30
- <template #headerCellContent.name="props">
31
- {{ props.columnHeader.name }}
32
- </template>
33
- <template #itemCellContent.name="props">
34
- {{ props.item.name }}
35
- </template>
36
- </VueyeTable>
45
+ <VueyeTable :data="items" />
37
46
  </template>
38
47
  ```
39
48
 
49
+ Nuxt :
50
+
51
+ ```js
52
+ // nuxt.config.js
53
+ export default defineNuxtConfig({
54
+ modules: ['nuxt-vueye-table'],
55
+ // ...
56
+ })
57
+ ```
58
+
40
59
  ### VueyeTableProps
41
60
 
42
61
  | Prop Name | Type | Default Value | Description |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueye-table",
3
- "version": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.14",
4
4
  "private": false,
5
5
  "description": "Vue data table",
6
6
  "author": "Brahim Boussadjra",