This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +26
-24
lines changed
src/components/dynamic-form Expand file tree Collapse file tree 4 files changed +26
-24
lines changed Original file line number Diff line number Diff line change 1
1
import Vue from 'vue' ;
2
2
import App from './App.vue' ;
3
3
import './styles/main.scss' ;
4
- /* import VueDynamicForms from '../dist/as-dynamic-forms.common';
5
- */
4
+
6
5
import VueDynamicForms from '../src/main' ;
6
+
7
7
Vue . config . productionTip = false ;
8
8
Vue . use ( VueDynamicForms ) ;
9
9
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
- < head >
4
- < meta charset ="utf-8 ">
5
- < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
- < meta name ="viewport " content ="width=device-width,initial-scale=1.0 ">
7
- < link rel ="icon " href ="<%= BASE_URL %>favicon.ico ">
8
- < title > vue-dynamic-forms</ title >
9
- </ head >
10
- < body >
11
- < noscript >
12
- < strong > We're sorry but vue-dynamic-forms doesn't work properly without JavaScript enabled. Please enable it to continue.</ strong >
13
- </ noscript >
14
- < div id ="app "> </ div >
15
- <!-- built files will be auto injected -->
16
- </ body >
3
+
4
+ < head >
5
+ < meta charset ="utf-8 ">
6
+ < meta http-equiv ="X-UA-Compatible "
7
+ content ="IE=edge ">
8
+ < meta name ="viewport "
9
+ content ="width=device-width,initial-scale=1.0 ">
10
+ < link rel ="icon "
11
+ href ="<%= BASE_URL %>favicon.ico ">
12
+ < title > Vue Dynamic Forms</ title >
13
+ </ head >
14
+
15
+ < body >
16
+ < noscript >
17
+ < strong > We're sorry but vue-dynamic-forms doesn't work properly without JavaScript enabled. Please enable it to
18
+ continue.</ strong >
19
+ </ noscript >
20
+ < div id ="app "> </ div >
21
+ <!-- built files will be auto injected -->
22
+ </ body >
23
+
17
24
</ html >
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ const computed = {
102
102
return this . controls
103
103
? this . controls . reduce ( ( prev , curr ) => {
104
104
const obj = { } ;
105
- obj [ curr . name ] = curr . value ;
105
+ obj [ curr . name ] =
106
+ curr . type === 'number' ? parseFloat ( curr . value ) : curr . value ;
106
107
return {
107
108
...prev ,
108
109
...obj ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module.exports = {
6
6
} ,
7
7
devServer : {
8
8
host : '0.0.0.0' ,
9
- port : 6084 , // CHANGE YOUR PORT HERE!
9
+ port : 6044 , // CHANGE YOUR PORT HERE!
10
10
https : false ,
11
11
hotOnly : false ,
12
12
} ,
@@ -22,11 +22,5 @@ module.exports = {
22
22
config . merge ( { devtool : 'source-map' } ) ;
23
23
config . resolve . symlinks ( false ) ;
24
24
config . resolve . alias . set ( '@' , path . resolve ( __dirname , 'src' ) ) ;
25
- config
26
- . entry ( 'theme' )
27
- . add ( path . resolve ( __dirname , 'src' ) + '/styles/themes/default.scss' )
28
- . end ( )
29
- . output . filename ( 'default.[id].css' )
30
- . chunkFilename ( 'default.[id].css' ) ;
31
25
} ,
32
26
} ;
You can’t perform that action at this time.
0 commit comments