@@ -7,8 +7,8 @@ export default {
77 defaultValues ( screen , definition ) {
88 this . variables . forEach ( ( v ) => {
99 const { name, config } = v ;
10- const { component } = v . element ;
1110 if ( this . isComputedVariable ( name , definition ) ) return ;
11+ const { component } = v . element ;
1212 const isCheckbox = component === "FormCheckbox" ;
1313 if ( config . defaultValue ) {
1414 if ( config . defaultValue . mode === "basic" ) {
@@ -36,9 +36,14 @@ export default {
3636 ) ;
3737 }
3838 // Update vdata
39- this . addMounted ( screen , `
40- this.setValue(${ JSON . stringify ( name ) } , this.getValue(${ JSON . stringify ( name ) } ), this.vdata, this);
41- ` ) ;
39+ this . addMounted (
40+ screen ,
41+ `
42+ this.setValue(${ JSON . stringify ( name ) } , this.getValue(${ JSON . stringify (
43+ name
44+ ) } ), this.vdata, this);
45+ `
46+ ) ;
4247 } ) ;
4348 } ,
4449 setupDefaultValue ( screen , name , value , isCheckbox = false ) {
@@ -64,7 +69,9 @@ export default {
6469 `if (${ mountCheck } ) {
6570 this.tryFormField(${ JSON . stringify ( name ) } , () => {
6671 this.${ safeDotName } = ${ value } ;
67- this.setValue(${ JSON . stringify ( name ) } , ${ value } , this.vdata, this);});
72+ this.setValue(${ JSON . stringify (
73+ name
74+ ) } , ${ value } , this.vdata, this);});
6875 }`
6976 ) ;
7077 screen . computed [ defaultComputedName ] = {
0 commit comments