Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在卡片和结构上向用户显示的信息很少min(Optional),我不想改变它。有可能它可能是空白的。但是如何将其置于result-view. 我试过了,if(this.name)但是黄线出现在条件和模板上。
min(Optional)
result-view
if(this.name)
使用if语句是正确的方法。
if
例如,下面是我编写的胶囊在显示我的结构gameTitle时如何处理可选属性。Character
gameTitle
Character
if(exists(character.gameTitle)) { cell-card { slot2 { content { order (PrimarySecondary) primary ("#{value(character.gameTitle)}") } } } }