Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
refactor(box): change vee-valide auto import names
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook committed Mar 11, 2024
1 parent 280c593 commit f0752cd
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions packages/nuxt/src/runtime/modules/box/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,26 +256,28 @@ export default definePergelModule<BoxOptions, ResolvedBoxOptions>({
],
})

useNuxtImports(nuxt, {
presets: [
{
imports: [
'Form',
'ErrorMessage',
{
name: 'FieldArray',
as: 'FormFieldArray',
from: 'vee-validate',
},
{
name: 'Field',
as: 'FormField',
from: 'vee-validate',
},
],
from: 'vee-validate',
},
],
addComponent({
name: 'Form',
export: 'Form',
filePath: 'vee-validate',
})

addComponent({
name: 'ErrorMessage',
export: 'ErrorMessage',
filePath: 'vee-validate',
})

addComponent({
name: 'FormFieldArray',
export: 'FieldArray',
filePath: 'vee-validate',
})

addComponent({
name: 'FormField',
export: 'Field',
filePath: 'vee-validate',
})

useNuxtImports(nuxt, {
Expand Down

0 comments on commit f0752cd

Please sign in to comment.