Skip to content

Commit

Permalink
perf(setData): 修复不使用wxs时custom-wrapper组件l属性为null导致的warning问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yushijie1 committed Sep 25, 2024
1 parent 50ddb97 commit 114540b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export class BaseTemplate {
if (compName === 'custom-wrapper') {
template += `
<template name="tmpl_${level}_${compName}">
<${compName} i="{{i}}" l="{{l}}" id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
<${compName} i="{{i}}" ${!isSupportRecursive && isUseXS ? 'l="{{l}}"' : ''} id="{{i.uid||i.sid}}" data-sid="{{i.sid}}">
</${compName}>
</template>
`
Expand Down

0 comments on commit 114540b

Please sign in to comment.