• "分段器"组件:<segment> —— 快应用组件库H-UI


    <import name="segment" src="../Common/ui/h-ui/navigation/c_segment"></import>
    <template>
        <div class="container-full">
            <segment data="{{data}}">
                <div class="container">
                    <text>118</text>
                    <text>119</text>
                </div>
    
                <div class="container">
                    <text>228</text>
                    <text>229</text>
                </div>
            </segment>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: ['Segment1', 'Segment2']
            }
        }
    </script>
    

    <import name="segment" src="../Common/ui/h-ui/navigation/c_segment"></import>
    <template>
        <div class="container-full">
            <segment data="{{data}}" current="1" 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>
            </segment>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: ['Segment1', 'Segment2', 'Segment3']
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    OpenGL------光照+染色
    sicily 1345 能量项链
    sicily 1193 Up the Stairs
    sicily 1172 Queens, Knights and Pawns
    sicily 1206 Stacking Cylinders
    模拟退火算法解tsp问题
    js对象的属性可以是一个变量
    vue中/deep/的使用
    MySQL中DATEDIFF函数使用
    js中的this
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/fen-duan-qizu-jianltsegmentgt--kuai-ying-yong-zu-j.html
Copyright © 2020-2023  润新知