mip-nav-slidedown 選單


mip-nav-slidedown 實作響應式的選單,在mip官網有引用

QQ截图20170204131648.png

範例

按如下格式新增內容, <a>可以替換為<mip-link>

<div class="mip-nav-wrapper">
<mip-nav-slidedown data-id="bs-navbar" class="mip-element-sidebar container" data-showbrand="1">
    <nav id="bs-navbar" class="navbar-collapse collapse navbar navbar-static-top">
        <ul class="nav navbar-nav navbar-right">
            <li class="index-body">
                <a target="_blank" href="//www.mipengine.org/">首页</a>
            </li>
            <li class="doc-body">
                <a target="_blank" href="//www.mipengine.org/doc/00-mip-101.html">教程</a>
            </li>
            <li class="timeline-body">
                <a target="_blank" href="//www.mipengine.org/timeline.html">动态</a>
            </li>
            <li class="">
                <a target="_blank" href="http://www.cnblogs.com/mipengine/" target="_blank">博客</a>
            </li>
            <li class="navbar-wise-close">
                <span id="navbar-wise-close-btn"></span>
            </li>
        </ul>
    </nav>
</mip-nav-slidedown>
</div>

屬性

data-id

#說明:內部選單id
必選項:是
類型:字串

data-showbrand

說明:是否需要左上角顯示可點擊圖示
必選項:否
類型:字串,0(不顯示),1(顯示)
預設值:1

data-brandhref

說明:左上角圖示跳轉鏈接,在data -showbrand為1時有效
必選項:否
類型:url
預設:'/'