File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
pages/ui/components/authenticator/sign-up-with-attributes Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 11import { createApp } from 'vue' ;
22import App from './App.vue' ;
33import router from './router' ;
4- import AmplifyUIVue from '@aws-amplify/ui-vue' ;
4+ import * as AmplifyUIVue from '@aws-amplify/ui-vue' ;
55import '@aws-amplify/ui-vue/styles.css' ;
66
77// Create app and register plugins
88const app = createApp ( App ) ;
99app . use ( router ) ;
10- app . use ( AmplifyUIVue ) ;
10+
11+ // Register individual components instead of using the plugin
12+ Object . entries ( AmplifyUIVue ) . forEach ( ( [ name , component ] ) => {
13+ if (
14+ name !== 'default' &&
15+ typeof component === 'object' &&
16+ component !== null
17+ ) {
18+ app . component ( name , component ) ;
19+ }
20+ } ) ;
21+
1122app . mount ( '#app' ) ;
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ Amplify.configure(aws_exports);
2121 placeholder =" Zone Info"
2222 name =" zoneinfo"
2323 :hideLabel =" false"
24+ :required =" true"
25+ type =" text"
26+ :disabled =" false"
2427 />
2528 </template >
2629 <template v-slot =" { user , signOut } " >
Original file line number Diff line number Diff line change 2929 "scripts" : {
3030 "prebuild" : " rimraf dist" ,
3131 "build" : " yarn build:CSS && yarn build:rollup" ,
32+ "postbuild" : " rimraf global-spec.d.ts jest.config.d.ts jest.setup.d.ts" ,
3233 "build:CSS" : " node --loader ts-node/esm scripts/copyCSS.ts" ,
33- "build:rollup" : " rollup --config --environment TS_EXCLUDE:global-spec.ts " ,
34+ "build:rollup" : " rollup --config" ,
3435 "dev" : " yarn build:rollup --watch" ,
3536 "clean" : " rimraf dist node_modules" ,
3637 "check:esm" : " node --input-type=module --eval 'import \" @aws-amplify/ui-vue\" '" ,
You can’t perform that action at this time.
0 commit comments