File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1+ export * from './dist/components'
Original file line number Diff line number Diff line change 11{
22 "name" : " @sfxcode/formkit-primevue" ,
3- "version" : " 1.8.3 " ,
3+ "version" : " 1.8.4 " ,
44 "type" : " module" ,
55 "license" : " MIT" ,
66 "repository" : " https://github.com/sfxcode/formkit-primevue" ,
5252 }
5353 },
5454 "files" : [
55+ " components.d.ts" ,
5556 " dist" ,
5657 " *.css" ,
5758 " *.scss"
Original file line number Diff line number Diff line change 11import type { FormKitTypeDefinition } from '@formkit/core'
22import { createInput } from '@formkit/vue'
3+ import type { Plugin } from 'vue'
34
45import PrimeAutoComplete from './components/PrimeAutoComplete.vue'
56import PrimeCalendar from './components/PrimeCalendar.vue'
@@ -28,6 +29,17 @@ import PrimeTriStateCheckbox from './components/PrimeTriStateCheckbox.vue'
2829
2930import { useFormKitSchema } from './composables'
3031
32+ import * as components from './components'
33+
34+ const install : Plugin = {
35+ install ( app ) {
36+ for ( const key of Object . keys ( components ) )
37+ app . component ( key , components [ key as keyof typeof components ] )
38+ } ,
39+ }
40+
41+ export default install
42+
3143export const primeAutoCompleteDefinition : FormKitTypeDefinition = createInput ( PrimeAutoComplete , {
3244 props : [ ] ,
3345} )
You can’t perform that action at this time.
0 commit comments