From f2358de0a0990e1f6361c0aea9ca8fa3cfacf2ce Mon Sep 17 00:00:00 2001 From: Alvaro Date: Tue, 21 Sep 2021 14:51:23 +0200 Subject: [PATCH 1/8] docs: moved fields file to correct path --- docs/guide/{ => api}/fields.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/guide/{ => api}/fields.md (100%) diff --git a/docs/guide/fields.md b/docs/guide/api/fields.md similarity index 100% rename from docs/guide/fields.md rename to docs/guide/api/fields.md From e598e47475715a8cd8c6e05bf5c73f8d5eb7ccf2 Mon Sep 17 00:00:00 2001 From: Alvaro Date: Tue, 21 Sep 2021 14:55:32 +0200 Subject: [PATCH 2/8] docs: corrected internal reference to slots --- docs/guide/api/fields.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/api/fields.md b/docs/guide/api/fields.md index 47550b5..3d2af53 100644 --- a/docs/guide/api/fields.md +++ b/docs/guide/api/fields.md @@ -13,7 +13,7 @@ By default, `Vue Dynamic Forms` cover the following input types: - Textarea ::: tip -You can also include your very own custom input using `slots` (Check [Slots](./advanced/slots.md)) +You can also include your very own custom input using `slots` (Check [Slots](../advanced/slots.md)) ::: ## Text From 02f53a3027b0b408138cd225ea735040fdab445b Mon Sep 17 00:00:00 2001 From: Alvaro Date: Tue, 21 Sep 2021 20:03:53 +0200 Subject: [PATCH 3/8] docs: fields page and tailwindcss issues --- README.md | 12 ++++++------ docs/.vitepress/config.js | 2 +- .../theme/components/CheckboxInput.vue | 16 ++-------------- docs/.vitepress/theme/components/Console.vue | 14 ++++++++++++-- docs/.vitepress/theme/components/CustomField.vue | 16 ++-------------- docs/.vitepress/theme/components/EmailField.vue | 16 ++-------------- .../components/FormCompositionOptionsApi.vue | 16 ++-------------- docs/.vitepress/theme/components/NumberField.vue | 16 ++-------------- .../theme/components/PasswordField.vue | 16 ++-------------- docs/.vitepress/theme/components/RadioInput.vue | 16 ++-------------- docs/.vitepress/theme/components/SelectField.vue | 16 ++-------------- .../theme/components/TextAreaField.vue | 16 ++-------------- docs/.vitepress/theme/components/TextField.vue | 16 ++-------------- .../theme/components/ValidationEmail.vue | 16 ++-------------- .../theme/components/ValidationMax.vue | 16 ++-------------- .../theme/components/ValidationMaxLength.vue | 16 ++-------------- .../theme/components/ValidationMin.vue | 16 ++-------------- .../theme/components/ValidationMinLength.vue | 16 ++-------------- .../theme/components/ValidationPattern.vue | 16 ++-------------- .../theme/components/ValidationRequired.vue | 16 ++-------------- .../theme/components/ValidationUrl.vue | 16 ++-------------- docs/.vitepress/theme/styles/base.scss | 4 ++++ docs/guide/{migration.md => migration-guide.md} | 0 tailwind.config.js | 2 +- 24 files changed, 60 insertions(+), 262 deletions(-) rename docs/guide/{migration.md => migration-guide.md} (100%) diff --git a/README.md b/README.md index 72342d1..6957c74 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Complete documentation and examples available at - **[Documentation](https://vue-dynamic-forms.alvarosaburido.dev/)** - **[Demos](#demos)** or if you prefer online [here](https://vue-dynamic-forms-demos.alvarosaburido.dev/) -- **[Migration Guide](https://vue-dynamic-forms.alvarosaburido.dev/v3/guide/migration-guide.html)** +- **[Migration Guide](https://vue-dynamic-forms.alvarosaburido.dev/guide/migration-guide.html)** ## You can help me keep working on this project 💚 @@ -79,14 +79,14 @@ The installation and usage has change to align with new Vue 3 plugin installatio To create a new `Dynamic Form` instance, use the `createDynamicForms` function; ```js -import { createApp } from 'vue'; -import { createDynamicForms } from '@asigloo/vue-dynamic-forms'; +import { createApp } from 'vue' +import { createDynamicForms } from '@asigloo/vue-dynamic-forms' -const VueDynamicForms = createDynamicForms(); +const VueDynamicForms = createDynamicForms() -export const app = createApp(App); +export const app = createApp(App) -app.use(VueDynamicForms); +app.use(VueDynamicForms) ``` In your component: diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index cefbbb8..b024b14 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -15,7 +15,7 @@ const config = { nav: [ { text: 'Migration Guide', - link: '/v3/guide/migration-guide', + link: '/guide/migration-guide', }, ], sidebar: { diff --git a/docs/.vitepress/theme/components/CheckboxInput.vue b/docs/.vitepress/theme/components/CheckboxInput.vue index 3553c48..28dadfa 100644 --- a/docs/.vitepress/theme/components/CheckboxInput.vue +++ b/docs/.vitepress/theme/components/CheckboxInput.vue @@ -1,21 +1,9 @@