如何在页面加载的角度引导手风琴中展示多个扩展手风琴,我们非常感谢任何帮助。
答案 0 :(得分:4)
您希望将close-others
属性添加到<accordion>
代码中,并为其指定值false
。
然后,对于您要打开的每个属性,您可以将is-open
属性添加到<accordion-group>
标记,并为其指定值true
。
<accordion close-others="false">
<accordion-group heading="Static Header 1, initially expanded" is-open="true">
This content will be shown on page load
</accordion-group>
<accordion-group heading="Static Header 2, initially collapsed">
This content will not be shown on page load
</accordion-group>
<accordion-group heading="Static Header 3, initially expanded" is-open="true">
This content will be shown on page load
</accordion-group>
</accordion>