zoukankan      html  css  js  c++  java
  • "时间轴组件"组件:<timeline> —— 快应用组件库H-UI

    <import name="timeline" src="../Common/ui/h-ui/advance/c_timeline"></import>
    <template>
        <div class="container">
            <timeline data="{{data}}"></timeline>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: [
                    { title: '刷牙洗脸' },
                    { title: '吃早餐' },
                    { title: '上班' },
                    { title: '下午茶' }
                ]
            }
        }
    </script>
    

    <import name="timeline" src="../Common/ui/h-ui/advance/c_timeline"></import>
    <template>
        <div class="container">
            <timeline data="{{data}}"></timeline>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: [
                    { title: '刷牙洗脸' },
                    { title: '吃早餐', color: 'green' },
                    { title: '上班', color: 'red' },
                    { title: '下午茶', color: 'yellow' }
                ]
            }
        }
    </script>
    

    <import name="timeline" src="../Common/ui/h-ui/advance/c_timeline"></import>
    <template>
        <div class="container">
            <timeline data="{{data}}"></timeline>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: [
                    { title: '刷牙洗脸', type: 'face-happy' },
                    { title: '吃早餐', type: 'hamburger', color: 'green' },
                    { title: '上班', type: 'notebook', color: 'red' },
                    { title: '下午茶', type: 'cofee', color: 'yellow' }
                ]
            }
        }
    </script>
    

    <import name="timeline" src="../Common/ui/h-ui/advance/c_timeline"></import>
    <template>
        <div class="container">
            <timeline data="{{data}}" current="1"></timeline>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: [
                    { title: '刷牙洗脸', type: 'face-happy' },
                    { title: '吃早餐', type: 'hamburger', color: 'green' },
                    { title: '上班', type: 'notebook', color: 'red' },
                    { title: '下午茶', type: 'cofee', color: 'yellow' }
                ]
            }
        }
    </script>
    

    <import name="timeline" src="../Common/ui/h-ui/advance/c_timeline"></import>
    <template>
        <div class="container">
            <timeline data="{{data}}"></timeline>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: [
                    { title: '刷牙洗脸', content: ['大概8:00'], type: 'face-happy' },
                    { title: '吃早餐', content: ['牛奶+面包', '餐后记得吃药'], type: 'hamburger', color: 'green' },
                    { title: '上班', content: ['查看邮件', '写PPT', '发送PPT给领导'], type: 'notebook', color: 'red' },
                    { title: '下午茶', content: ['下午15:30'], type: 'cofee', color: 'yellow' }
                ]
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    BZOJ 3513: [MUTC2013]idiots(fft)
    BZOJ 2194: 快速傅立叶之二(fft)
    BZOJ 3779: 重组病毒(线段树+lct+树剖)
    LUOGU P3723 [AH2017/HNOI2017]礼物 (fft)
    CF 622F (拉格朗日插值)
    LUOGU P4781 【模板】拉格朗日插值
    bzoj 4184 shallot——线段树分治+线性基
    51nod 1673 树有几多愁——虚树+状压DP
    bzoj 3611(洛谷 4103) [Heoi2014]大工程——虚树
    bzoj 2286(洛谷 2495) [Sdoi2011]消耗战——虚树
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/shi-jian-zhou-zu-jianzu-jianlttimelinegt--kuai-yin.html
Copyright © 2011-2022 走看看