• "插入日历"组件:<calendar> —— 快应用组件库H-UI



    用户第一次插入日历,需要授权确认:

    日历插入成功或失败,会在快应用顶部做全局提示:

    查看系统日历:


    <import name="calendar" src="../Common/ui/h-ui/advance/c_calendar"></import>
    <template>
        <div class="container-full">
            <calendar data="{{data}}" params="{{params1}}"></calendar>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: {},
                params1: {}
            }
        }
    </script>
    



    插入日历后查看手机系统日历,结果一致:

    <import name="calendar" src="../Common/ui/h-ui/advance/c_calendar"></import>
    <template>
        <div class="container-full">
            <calendar data="{{data2}}" params="{{params2}}"></calendar>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data2:{
                    'title': '我的健身日程',
                    'content': '参加李教练的健身课。',
                    'date': '2020-03-31',
                    'timeRange': '15:30至16:30',
                    'allDay': false,
                    'remind': ['5','10','30'],//支持:1,5,10,15,30,60,120
                    //'repeat': 'WEEKLY',//支持:DAILY,WEEKLY,MONTHLY,YEARLY
                    'repeat': 'WEEKLY',
                    'expiration': 'UNTIL',//支持:FOREVER,COUNT,UNTIL
                    //'count': '10',
                    'until': '2021-03-31',
                    'interval': '1',
                    'byday': ['TU','TH']
                },
                params2: {}
            }
        }
    </script>
    

    <import name="calendar" src="../Common/ui/h-ui/advance/c_calendar"></import>
    <template>
        <div class="container-full">
            <calendar data="{{data}}" params="{{params3}}" type="danger"></calendar>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: {},
                params3: {}
            }
        }
    </script>
    

    <import name="calendar" src="../Common/ui/h-ui/advance/c_calendar"></import>
    <template>
        <div class="container-full">
            <calendar data="{{data}}" params="{{params4}}" simple="true"></calendar>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                data: {},
                params4: {}
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    玩转git分支
    python元组、列表的异同总结
    IOS推送通知測试工具PushMeBaby
    Target runtime Apache Tomcat v6.0 is not defined.错误解决方法
    Jmeter变量参数化及函数应用
    在Jmeter中使用自定义编写的Java测试代码
    使用LoadRunner监控Apache的步骤 (转)
    mysql-This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME 错误解决
    Web服务器性能/压力测试工具http_load、webbench、ab、Siege使用教程
    JVM调优总结-调优方法
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/cha-ru-ri-lizu-jianltcalendargt--kuai-ying-yong-zu.html
Copyright © 2020-2023  润新知