This repository was archived by the owner on Oct 30, 2023. It is now read-only.
File tree 7 files changed +159
-82
lines changed
src/runtime/components/demo
7 files changed +159
-82
lines changed Original file line number Diff line number Diff line change 1
- # Nuxt Module PrimeVue
1
+ # Nuxt 3 Module PrimeVue
2
2
3
- * Load PrimeVue Comonents
4
- * Add PrimeVue Services
5
- * Formkit Support (formkit-primevue)
3
+ * Load [ PrimeVue] ( https://www.primefaces.org/primevue/setup ) Components
4
+ * Add PrimeVue Services (usePrimeDataTable)
5
+ * [ Formkit] ( https://formkit.com/ ) Support witf [ formkit-primevue] ( https://github.com/sfxcode/formkit-primevue )
6
+
7
+ ## Nuxt 3 Demo
8
+
9
+ [ Github: nuxt3-primevue-starter] ( https://github.com/sfxcode/nuxt3-primevue-starter )
10
+
11
+ [ Netlify: nuxt3-primevue-starter] ( https://nuxt3-primevue-starter.netlify.app/ )
6
12
7
13
## Usage
8
14
15
+ Add Module ** nuxt-primevue** to ** nuxt.config.ts**
16
+
17
+ ``` ts
18
+
19
+ modules : [
20
+ ...
21
+ ' @sfxcode/nuxt-primevue' ,
22
+
23
+ ],
24
+ ```
25
+
26
+ Create ** formkit.config.ts**
27
+
28
+ ``` ts
29
+ // formkit.config.ts
30
+ import type { DefaultConfigOptions } from ' @formkit/vue'
31
+ import { primeInputs } from ' @sfxcode/formkit-primevue'
32
+
33
+ const config: DefaultConfigOptions = {
34
+ inputs: primeInputs ,
35
+ }
36
+
37
+ export default config
38
+ ```
39
+
9
40
See [ https://github.com/sfxcode/formkit-primevue ] ( https://github.com/sfxcode/formkit-primevue )
10
41
11
42
## Development
12
43
13
44
- Run ` npm run dev:prepare ` to generate type stubs.
14
45
- Use ` npm run dev ` to start [ playground] ( ./playground ) in development mode.
46
+
47
+
48
+ ![ ] ( nuxt-primevue.png )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @sfxcode/nuxt-primevue" ,
3
- "version" : " 0.5.5 " ,
3
+ "version" : " 0.6.0 " ,
4
4
"license" : " MIT" ,
5
5
"type" : " module" ,
6
6
"author" : {
26
26
},
27
27
"dependencies" : {
28
28
"@nuxt/kit" : " ^3.0.0-rc.6" ,
29
- "@sfxcode/formkit-primevue" : " >=0.5.5 " ,
29
+ "@sfxcode/formkit-primevue" : " >=0.6.0 " ,
30
30
"chart.js" : " >=3.8.2" ,
31
31
"primeicons" : " >=5.0.0" ,
32
32
"primevue" : " >=3.15.0"
33
33
},
34
34
"devDependencies" : {
35
- "@formkit/nuxt" : " 1.0.0-beta.9 " ,
35
+ "@formkit/nuxt" : " 1.0.0-beta.10 " ,
36
36
"@nuxt/module-builder" : " latest" ,
37
37
"@nuxtjs/eslint-config-typescript" : " latest" ,
38
38
"@unocss/nuxt" : " ^0.44.7" ,
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ import PrimeDemoDataTable from "~/components/PrimeDemoDataTable.vue";
4
4
</script >
5
5
6
6
<template >
7
- <div class =" card" >
8
-
9
-
10
-
7
+ <div class =" m-6 card" >
11
8
<div class =" flex flex-row flex-wrap gap-4" >
12
- <div class =" basis-1/2" ><PrimeDemoToast /></div >
9
+ <div class =" basis-1/2" >
10
+ <div ><PrimeDemoToast /></div >
11
+ <div ><PrimeDemoDataTable /></div >
12
+
13
+ </div >
13
14
<div class =" basis-1/4" ><PrimeDemoForm /></div >
14
- <div class =" basis-1/2" ><PrimeDemoDataTable /></div >
15
15
</div >
16
16
17
17
</div >
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ onMounted(async () => {
26
26
27
27
<template >
28
28
<div class =" card" >
29
- <h5 >DataTable Example</ h5 >
29
+ <h2 >PrimeVue Demo DataTable</ h2 >
30
30
<div v-if =" error" >
31
31
<h5 class =" text-red-500" >
32
32
Error
You can’t perform that action at this time.
0 commit comments