File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 2020 " html5-framework" ,
2121 " javascript-framework"
2222 ],
23- "publishConfig" : {
24- "access" : " public"
25- },
23+ "publishConfig" : { "access" : " public" },
2624 "scripts" : {
2725 "start" : " npx webpack --config webpack.config.js" ,
2826 "build" : " NODE_ENV=production npx webpack --config webpack.config.js" ,
6159 "webpack-log" : " ^3.0.1"
6260 },
6361 "dependencies" : {
64- "@cocreate/crud-client" : " ^1.15.4 " ,
65- "@cocreate/docs" : " ^1.4.6 " ,
66- "@cocreate/hosting" : " ^1.6.5 "
62+ "@cocreate/crud-client" : " ^1.15.5 " ,
63+ "@cocreate/docs" : " ^1.4.7 " ,
64+ "@cocreate/hosting" : " ^1.6.6 "
6765 }
6866}
Original file line number Diff line number Diff line change @@ -26,16 +26,21 @@ const getValue = (element) => {
2626 if ( checkboxs . length > 1 ) {
2727 value = [ ] ;
2828 checkboxs . forEach ( el => {
29- if ( el . checked ) value . push ( el . value ) ;
29+ if ( el . checked )
30+ value . push ( el . value ) ;
3031 } ) ;
3132 }
3233 else {
33- value = element . checked ;
34+ if ( el . checked )
35+ value = el . value
3436 }
3537 }
3638 else if ( element . type === "number" ) {
3739 value = Number ( value ) ;
3840 }
41+ else if ( element . type === 'range' ) {
42+ value = [ Number ( element . min ) , Number ( element . value ) ] ;
43+ }
3944 else if ( element . type === "password" ) {
4045 value = __encryptPassword ( value ) ;
4146 }
You can’t perform that action at this time.
0 commit comments