alibaba/rax

[BUG] x-if x-elseif 中间如果加注释会失效

wuzhenbang0930 opened this issue · 1 comments

⌨️

  • Would you like to work on a fix?

Where is the bug from?

Rax App

Minimal code and steps to reproduce the bug

const booleanList = [true, false, true];
 <View x-if={booleanList[0]}>1</View>
 {/* 下面会显示出来 */}
<View x-elseif={booleanList[1]}>2</View>
<View x-if={booleanList[2]}>3</View>

Current and expected behavior

如果再x-if 和x-elseif中间插入注释 下面的内容会不按逻辑展示
image

Environment

任意

build.json

No response

Possible solution

No response

Additional context

No response

??