zoukankan      html  css  js  c++  java
  • "页内标签"组件:<tab> —— 快应用组件库H-UI

    Screenshot_20200417_130906_com.huawei.fastapp

    Screenshot_20200417_130910_com.huawei.fastapp

    <import name="tab" src="../Common/ui/h-ui/navigation/c_tab"></import>
    <template>
        <div class="container-full">
            <tab data="{{data}}">
                <div class="container">
                    <text>118</text>
                    <text>119</text>
                </div>
    
                <div class="container">
                    <text>228</text>
                    <text>229</text>
                </div>
    
                <div class="container">
                    <text>338</text>
                    <text>339</text>
                </div>
    
                <div class="container">
                    <text>448</text>
                    <text>449</text>
                </div>
    
                <div class="container">
                    <text>558</text>
                    <text>559</text>
                </div>
    
                <div class="container">
                    <text>668</text>
                    <text>669</text>
                </div>
    
                <div class="container">
                    <text>778</text>
                    <text>779</text>
                </div>
            </tab>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: ["推荐", "创意", "UI", "快应用", "Java","Vue","测试"]
            }
        }
    </script>
    

    Screenshot_20200417_130920_com.huawei.fastapp

    Screenshot_20200417_130927_com.huawei.fastapp

    <import name="tab" src="../Common/ui/h-ui/navigation/c_tab"></import>
    <template>
        <div class="container-full">
            <tab data="{{data}}" current="2" item-width="150" hex-color="#337ab7">
                <div class="container">
                    <text>118</text>
                    <text>119</text>
                </div>
    
                <div class="container">
                    <text>228</text>
                    <text>229</text>
                </div>
    
                <div class="container">
                    <text>338</text>
                    <text>339</text>
                </div>
    
                <div class="container">
                    <text>448</text>
                    <text>449</text>
                </div>
    
                <div class="container">
                    <text>558</text>
                    <text>559</text>
                </div>
    
                <div class="container">
                    <text>668</text>
                    <text>669</text>
                </div>
    
                <div class="container">
                    <text>778</text>
                    <text>779</text>
                </div>
            </tab>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: ["推荐", "创意", "UI", "快应用", "Java","Vue","测试"]
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    Dapper的常用操作
    git下载慢的解决方案
    笔记
    第06组 Beta冲刺(3/5)
    第06组 Beta冲刺(2/5)
    第06组 Beta冲刺(1/5)
    第06组 Alpha事后诸葛亮
    第06组 Alpha冲刺(6/6)
    第06组 Alpha冲刺(5/6)
    第06组 Alpha冲刺(4/6)
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/ye-nei-biao-qianzu-jianlttabgt--kuai-ying-yong-zu-.html
Copyright © 2011-2022 走看看