Welink ui组件介绍NavBar

举报
云会议运营喵大人 发表于 2020/02/20 19:29:39 2020/02/20
【摘要】 NavBar二级导航。NavBar UI 提供与WeLink规范一致的菜单选项视图。 <div class="page"> <div class="page__bd"> <div class="weui-tab"> <div class="weui-navbar"> <div cla...

NavBar


二级导航。NavBar UI 提供与WeLink规范一致的菜单选项视图。

    <div class="page">
        <div class="page__bd">
            <div class="weui-tab">
                <div class="weui-navbar">
                    <div class="weui-navbar__item weui-bar__item_on">
                        <span class="weui-navbar__item_title">选项一</span>
                    </div>
                    <div class="weui-navbar__item">
                        <span class="weui-navbar__item_title">选项二</span>
                    </div>
                    <div class="weui-navbar__item">
                        <span class="weui-navbar__item_title">选项三</span>
                    </div>
                    <div class="weui-navbar__item">
                        <span class="weui-navbar__item_title">选项四</span>
                    </div>
                </div>
                <div class="weui-tab__panel">
                </div>
            </div>
            <div class="weui-tab" style="margin-top: 50px;">
                <div class="weui-navbar">
                    <div class="weui-navbar_search__item">
                        <div class="weui-navbar">
                            <div class="weui-navbar__item weui-bar__item_on">
                                <span class="weui-navbar__item_title">选项一</span>
                            </div>
                            <div class="weui-navbar__item">
                                <span class="weui-navbar__item_title">选项二</span>
                            </div>
                            <div class="weui-navbar__item">
                                <span class="weui-navbar__item_title">选项三</span>
                            </div>
                            <div class="weui-navbar__item">
                                <span class="weui-navbar__item_title">选项四</span>
                            </div>
                        </div>
                        <span class="weui-navbar_action-btn weui-navbar_search"></span>
                    </div>
                </div>
                <div class="weui-tab__panel">
                </div>
            </div>
            <div class="weui-tab" style="margin-top: 50px;">
                <div class="weui-navbar">
                    <div class="weui-navbar_search__item">
                        <div class="weui-navbar">
                            <div class="weui-navbar__item weui-bar__item_on">
                                <span class="weui-navbar__item_title">选项一</span>
                            </div>
                            <div class="weui-navbar__item">
                                <span class="weui-navbar__item_title">选项二</span>
                            </div>
                            <div class="weui-navbar__item">
                                <span class="weui-navbar__item_title">选项三</span>
                            </div>
                            <div class="weui-navbar__item">
                                <span class="weui-navbar__item_title">选项四</span>
                            </div>
                        </div>
                        <span class="weui-navbar_action-btn weui-navbar_add "></span>
                    </div>
                </div>
                <div class="weui-tab__panel">
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            $('.weui-navbar__item').on('click', function () {
                $(this).addClass('weui-bar__item_on').siblings('.weui-bar__item_on').removeClass('weui-bar__item_on');
            });
        });
    </script>

【版权声明】本文为华为云社区用户原创内容,未经允许不得转载,如需转载请自行联系原作者进行授权。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。