TabContentTag(WrapperTag)
Tab框最顶部的标签栏区域 snippets:
sword:tabContent
属性说明
| 属性名 | 属性值 | 说明 |
|---|---|---|
| id | 任意字符串 | 对应TabHeader的id |
| active | true │ false │ 默认false | true表示显示当前tab,false表示隐藏tab |
| style | 样式属性,例如:'color:white;left:0px;' | 对应table的样式 |
| className | 样式类 | 对应tabcontent的样式,送full-page,则默认将整个tab撑满整个屏幕 |
语法
<sword:modal id="modal">
<sword:tabHeaderWrapper type="modal">
<sword:tabHeader info="tab0" id="tab0" type="longtitle" num="1" onclick="loadDate()"/>
<sword:tabHeader info="tab1" id="tab1" active="false"/>
<sword:tabHeader info="tab2" id="tab2" active="false"/>
</sword:tabHeaderWrapper>
<sword:tabContentWrapper>
<sword:tabContent id="tab0">
tab0
</sword:tabContent>
<sword:tabContent id="tab1">
tab1
</sword:tabContent>
<sword:tabContent id="tab2">
tab2
</sword:tabContent>
</sword:tabContentWrapper>
</sword:modal>