1.4.2 • Published 7 months ago

@sfxcode/nuxt-primevue v1.4.2

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Nuxt 3 Module PrimeVue

Version

npm version

Nuxt 3 Demo

Github: nuxt3-primevue-starter

Netlify: nuxt3-primevue-starter

Docs

Read more on Docs

Tutorial: Getting started

Usage

Add Module nuxt-primevue to nuxt.config.ts

  modules: [
    ...
    '@sfxcode/nuxt-primevue',
    
  ],

Create formkit.config.ts

// formkit.config.ts
import type { DefaultConfigOptions } from '@formkit/vue'
import { primeInputs } from '@sfxcode/formkit-primevue'

const config: DefaultConfigOptions = {
  inputs: primeInputs,
}

export default config

See https://github.com/sfxcode/formkit-primevue

Module Configuration

Primevue Configuration

    config: {
      ripple: true  // default
    }

Formkit Configuration

Shows if formkit should be used with PrimeVue. In this case PrimeVue components used by formkit-primevue must be imported global.

    config: {
      useFormkit: true  // default
    }

Component Configuration

Default all but excluded PrimeVue Components are imported automatically.

Some components in default are excluded because of some SSR problems or needed Third Party Libraries:

export const defaultPrimevueExcludeComponentNames:Array<string>  = [
  'Chart',
  'Editor',
  'FullCalendar',
]

Finetuning by components configuration options:

components: {
    include: [...defaultPrimeVueComponents(true, true), 'DataTable', 'Column'],
    force: ['Button',{name:'Message', global:true}],
}

Components Configuration

Option include:

Includes components by name or as PrimeVueComponent. Defaults are not used if not implemented in helper function.

Option exclude:

Only if not include is used. Exclude default components by name.

Option force:

Force Includes components by name or as PrimeVueComponent.

Helper Function:

export function defaultPrimeVueComponents(useFormkit: boolean, onlyGlobal:boolean=false) 

Development

  • Run npm run dev:prepare to generate type stubs.
  • Use npm run dev to start playground in development mode.

npm.io

1.2.6

10 months ago

1.2.5

10 months ago

1.4.2

7 months ago

1.2.4

10 months ago

1.4.1

7 months ago

1.4.0

7 months ago

1.3.9

7 months ago

1.3.8

8 months ago

1.3.7

8 months ago

1.3.5

9 months ago

1.3.4

9 months ago

1.3.3

10 months ago

1.3.2

10 months ago

1.3.1

10 months ago

1.2.0

11 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.2.3

11 months ago

1.0.5

1 year ago

1.2.2

11 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.8

12 months ago

1.1.7

12 months ago

1.1.6

12 months ago

1.1.5

12 months ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

0.9.8

1 year ago

1.0.0

1 year ago

0.9.9

1 year ago

0.9.7

1 year ago

0.9.6

1 year ago

0.9.5

1 year ago

0.9.4

1 year ago

0.9.3

1 year ago

0.8.4

2 years ago

0.9.0

1 year ago

0.9.2

1 year ago

0.8.3

2 years ago

0.9.1

1 year ago

0.8.0

2 years ago

0.8.2

2 years ago

0.7.0

2 years ago

0.6.9

2 years ago

0.6.8

2 years ago

0.6.7

2 years ago

0.6.6

2 years ago

0.6.5

2 years ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago