Skip to content

Commit 36899b7

Browse files
committed
chore(linting): fix some issues
1 parent c75fb09 commit 36899b7

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import { primeInputs } from '@sfxcode/formkit-primevue'
2727

2828
[useFormKitSchema](https://github.com/sfxcode/formkit-primevue/blob/main/src/composables/useFormKitSchema.ts) provide functions to simplify the usage of elements, components, lists, ...
2929

30-
3130
### Basic Styling
3231

3332
Basic styling is provided with the [formkit-primevue.scss](https://github.com/sfxcode/formkit-primevue/blob/main/src/sass/formkit-primevue.scss) file.
@@ -47,7 +46,7 @@ You can use it or take it as base for your own styling.
4746
- PT and PTOptions are available ([https://primevue.org/passthrough/](https://primevue.org/passthrough/))
4847
- [Styling](https://formkit-primevue.netlify.app/styling/base) and [PT](https://formkit-primevue.netlify.app/styling/passThrough) demo available
4948

50-
### Samples
49+
### Samples
5150

5251
Some samples for common tasks are available
5352

dev/components/app/AppFooter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const version = ref(import.meta.env.VITE_APP_VERSION)
44

55
<template>
66
<div class="mt-8 layout-footer text-center text-gray-700">
7-
<span class="font-medium ml-2">Formkit (1.6) - PrimeVue (3.49) - FormKit-PrimeVue-Version {{ version }} - sfxcode 2024</span>
7+
<span class="font-medium ml-2">Formkit (1.6) - PrimeVue (3.50) - FormKit-PrimeVue-Version {{ version }} - sfxcode 2024</span>
88
</div>
99
</template>
1010

docs/guide/composables.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,40 @@ Sometimes it provides a little more concise syntax or provide the needed helper
1111
### addComponent
1212

1313
```ts
14-
const { addComponent } = useFormKitSchema()
14+
const { addComponent } = useFormKitSchema()
1515

16-
const addButtonComponent = (onClick: string = '', label: string = '', icon: string = '', severity: string = '', render: string = 'true', styleClass: string = 'p-button-sm ml-2'): object => {
17-
return addComponent('Button', { onClick, label, icon, class: styleClass, severity }, render)
18-
}
16+
function addButtonComponent(onClick: string = '', label: string = '', icon: string = '', severity: string = '', render: string = 'true', styleClass: string = 'p-button-sm ml-2'): object {
17+
return addComponent('Button', { onClick, label, icon, class: styleClass, severity }, render)
18+
}
1919
```
2020

2121
### addElement
2222

23-
Following json in the schema
23+
Following json in the schema
2424

2525
```json
26-
[
27-
{
28-
$el: 'h2',
29-
children: ['Register ', '$email'],
30-
},
31-
{
32-
$el: 'h3',
33-
children: 'Header Text H3',
34-
}
35-
]
26+
[
27+
{
28+
"$el": "h2",
29+
"children": ["Register ", "$email"]
30+
},
31+
{
32+
"$el": "h3",
33+
"children": "Header Text H3"
34+
}
35+
]
3636
```
3737

3838
can be replaced by:
3939

4040
```ts
41-
const { addElement } = useFormKitSchema()
41+
const { addElement } = useFormKitSchema()
4242

43-
[
44-
addElement('h2', ['Register ', '$email']),
45-
addElement('h3', 'Header Text H3')
46-
]
43+
const formData = ref([
44+
addElement('h2', ['Register ', '$email']),
45+
addElement('h3', 'Header Text H3')
46+
// more form elements ...
47+
])
4748
```
4849

4950
### Repeater
@@ -54,4 +55,4 @@ To simplify the build of a repeater you can use:
5455
- addListGroup
5556
- addListGroupFunctions
5657

57-
A working example can be found in the [repeater demo](https://github.com/sfxcode/formkit-primevue/blob/main/dev/pages/samples/Repeater.vue).
58+
A working example can be found in the [repeater demo](https://github.com/sfxcode/formkit-primevue/blob/main/dev/pages/samples/Repeater.vue).

0 commit comments

Comments
 (0)