diff --git a/packages/uni-template-compiler/__tests__/compiler-app-plus.service.spec.js b/packages/uni-template-compiler/__tests__/compiler-app-plus.service.spec.js index 4a92c3e00e44091a9e3bb5f7a6be4eaeb012c382..7d5fe816c86b89a91d4b3ef2103a6e079b8794af 100644 --- a/packages/uni-template-compiler/__tests__/compiler-app-plus.service.spec.js +++ b/packages/uni-template-compiler/__tests__/compiler-app-plus.service.spec.js @@ -219,7 +219,7 @@ describe('codegen', () => { it('generate dynamic scoped slot', () => { assertCodegen( '', - `with(this){return _c('foo',{attrs:{"_i":0},scopedSlots:_u([{key:foo,fn:function(bar, _svm, _si){return [_v((_svm._$s(("1-"+_si),'t0-0',_s(bar))))]}}],null,true)})}` + `with(this){return _c('foo',{attrs:{"_i":0},scopedSlots:_u([{key:_$s(1,'st',foo),fn:function(bar, _svm, _si){return [_v((_svm._$s(("1-"+_si),'t0-0',_s(bar))))]}}],null,true)})}` ) }) diff --git a/packages/uni-template-compiler/__tests__/compiler-app-plus.view.spec.js b/packages/uni-template-compiler/__tests__/compiler-app-plus.view.spec.js index 6fe1baea75c8937cfce76c084029affc5d56c9fc..25188522636ae47f71722ae39f04972c1d5e47fa 100644 --- a/packages/uni-template-compiler/__tests__/compiler-app-plus.view.spec.js +++ b/packages/uni-template-compiler/__tests__/compiler-app-plus.view.spec.js @@ -219,7 +219,7 @@ describe('codegen', () => { it('generate dynamic scoped slot', () => { assertCodegen( '', - `with(this){return _c('foo',{attrs:{"_i":0},scopedSlots:_u([{key:foo,fn:function(bar, _svm, _si){return [_v((_svm._$g(("1-"+_si),'t0-0')))]}}],null,true)})}` + `with(this){return _c('foo',{attrs:{"_i":0},scopedSlots:_u([{key:_$g(1,'st'),fn:function(bar, _svm, _si){return [_v((_svm._$g(("1-"+_si),'t0-0')))]}}],null,true)})}` ) })