alibaba / rax

🐰 Rax is a progressive framework for building universal application. https://rax.js.org
Other
7.99k stars 627 forks source link

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

Open wuzhenbang0930 opened 1 year ago

wuzhenbang0930 commented 1 year ago

⌨️

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

wuzhenbang0930 commented 1 year ago

??