File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -5,26 +5,20 @@ import { createApp } from 'vue';
55import { createPinia } from 'pinia' ;
66import { registerPlugins } from './plugins' ;
77import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' ;
8- import {
9- VInlineCheckbox ,
10- VInlineSelect ,
11- VInlineSwitch ,
12- VInlineTextField ,
13- VInlineTextarea ,
14- } from './index' ;
8+ import * as VInlineFields from './index' ;
9+ import { makeServer } from './server' ;
1510
11+ makeServer ( { environment : 'demo' } ) ;
1612
1713const app = createApp ( App ) ;
1814app . use ( CodeBlock ) ;
1915app . use ( createPinia ( ) ) ;
2016app . component ( 'font-awesome-icon' , FontAwesomeIcon ) ;
2117app . component ( 'FaIcon' , FontAwesomeIcon ) ;
2218
23- app . component ( 'VInlineCheckbox' , VInlineCheckbox ) ;
24- app . component ( 'VInlineSelect' , VInlineSelect ) ;
25- app . component ( 'VInlineSwitch' , VInlineSwitch ) ;
26- app . component ( 'VInlineTextField' , VInlineTextField ) ;
27- app . component ( 'VInlineTextarea' , VInlineTextarea ) ;
19+ for ( const prop in VInlineFields ) {
20+ app . component ( prop , VInlineFields [ prop ] ) ;
21+ }
2822
2923registerPlugins ( app ) ;
3024
You can’t perform that action at this time.
0 commit comments