Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit 1b6c34e

Browse files
committed
chore(Dependecies): formkit-primevue
Update to 0.6.0 (Formkit 1.0.0-beta.10)
1 parent d4853fe commit 1b6c34e

File tree

7 files changed

+159
-82
lines changed

7 files changed

+159
-82
lines changed

README.md

+38-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,48 @@
1-
# Nuxt Module PrimeVue
1+
# Nuxt 3 Module PrimeVue
22

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/)
612

713
## Usage
814

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+
940
See [https://github.com/sfxcode/formkit-primevue](https://github.com/sfxcode/formkit-primevue)
1041

1142
## Development
1243

1344
- Run `npm run dev:prepare` to generate type stubs.
1445
- Use `npm run dev` to start [playground](./playground) in development mode.
46+
47+
48+
![](nuxt-primevue.png)

nuxt-primevue.png

402 KB
Loading

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sfxcode/nuxt-primevue",
3-
"version": "0.5.5",
3+
"version": "0.6.0",
44
"license": "MIT",
55
"type": "module",
66
"author": {
@@ -26,13 +26,13 @@
2626
},
2727
"dependencies": {
2828
"@nuxt/kit": "^3.0.0-rc.6",
29-
"@sfxcode/formkit-primevue": ">=0.5.5",
29+
"@sfxcode/formkit-primevue": ">=0.6.0",
3030
"chart.js": ">=3.8.2",
3131
"primeicons": ">=5.0.0",
3232
"primevue": ">=3.15.0"
3333
},
3434
"devDependencies": {
35-
"@formkit/nuxt": "1.0.0-beta.9",
35+
"@formkit/nuxt": "1.0.0-beta.10",
3636
"@nuxt/module-builder": "latest",
3737
"@nuxtjs/eslint-config-typescript": "latest",
3838
"@unocss/nuxt": "^0.44.7",

playground/app.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import PrimeDemoDataTable from "~/components/PrimeDemoDataTable.vue";
44
</script>
55

66
<template>
7-
<div class="card">
8-
9-
10-
7+
<div class="m-6 card">
118
<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>
1314
<div class="basis-1/4"><PrimeDemoForm/></div>
14-
<div class="basis-1/2"><PrimeDemoDataTable/></div>
1515
</div>
1616

1717
</div>

playground/components/PrimeDemoDataTable.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ onMounted(async () => {
2626

2727
<template>
2828
<div class="card">
29-
<h5>DataTable Example</h5>
29+
<h2>PrimeVue Demo DataTable</h2>
3030
<div v-if="error">
3131
<h5 class="text-red-500">
3232
Error

0 commit comments

Comments
 (0)