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 1
1
import { createApp } from 'vue' ;
2
2
import App from './App.vue' ;
3
3
import router from './router' ;
4
- import AmplifyUIVue from '@aws-amplify/ui-vue' ;
4
+ import * as AmplifyUIVue from '@aws-amplify/ui-vue' ;
5
5
import '@aws-amplify/ui-vue/styles.css' ;
6
6
7
7
// Create app and register plugins
8
8
const app = createApp ( App ) ;
9
9
app . 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
+
11
22
app . mount ( '#app' ) ;
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ Amplify.configure(aws_exports);
21
21
placeholder =" Zone Info"
22
22
name =" zoneinfo"
23
23
:hideLabel =" false"
24
+ :required =" true"
25
+ type =" text"
26
+ :disabled =" false"
24
27
/>
25
28
</template >
26
29
<template v-slot =" { user , signOut } " >
Original file line number Diff line number Diff line change 29
29
"scripts" : {
30
30
"prebuild" : " rimraf dist" ,
31
31
"build" : " yarn build:CSS && yarn build:rollup" ,
32
+ "postbuild" : " rimraf global-spec.d.ts jest.config.d.ts jest.setup.d.ts" ,
32
33
"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" ,
34
35
"dev" : " yarn build:rollup --watch" ,
35
36
"clean" : " rimraf dist node_modules" ,
36
37
"check:esm" : " node --input-type=module --eval 'import \" @aws-amplify/ui-vue\" '" ,
You can’t perform that action at this time.
0 commit comments