File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const CoCreateRender = {
57
57
} ,
58
58
59
59
__replaceValue : function ( data , inputValue , renderKey , el ) {
60
- let outputValue = null ;
60
+ let outputValue = inputValue ;
61
61
let placeholders = inputValue . match ( / { { ( [ A - Z a - z 0 - 9 _ . , \[ \] \- ] * ) } } / g) ;
62
62
if ( placeholders ) {
63
63
for ( let placeholder of placeholders ) {
@@ -67,7 +67,7 @@ const CoCreateRender = {
67
67
if ( typeof ( value ) == "object" )
68
68
value = this . generateString ( value )
69
69
70
- outputValue = inputValue . replace ( placeholder , value ) ;
70
+ outputValue = outputValue . replace ( placeholder , value ) ;
71
71
} else if ( renderKey && placeholder . includes ( `{{${ renderKey } .` ) ) {
72
72
outputValue = '' ;
73
73
}
@@ -271,6 +271,8 @@ const CoCreateRender = {
271
271
else
272
272
that . renderMap ( attr , attr . value , renderArray , renderKey )
273
273
274
+ if ( attr_name == 'modal-src' && data . document . name == 'Contacts' )
275
+ console . log ( attr_name )
274
276
if ( placeholder && ! isRenderKey ) {
275
277
let temp = placeholder . placeholder ;
276
278
// let updateData
You can’t perform that action at this time.
0 commit comments