• "时间选择器"组件:<time> —— 快应用组件库H-UI


    华为快应用下点击时间:

    快应用联盟下点击时间:

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
                 <time id="time1" params="{{params}}"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
                <time id="time2" params="{{params}}" form-horizontal="true"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
                <time id="time3" params="{{params}}" form-horizontal="true" no-icon="true"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
                <time id="time4" params="{{params}}" form-horizontal="true" no-border="true"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
                <time id="time5" params="{{params}}" title="none"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
                <time id="time6" params="{{params}}" title="打卡时间"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
                <time id="time7" params="{{params}}" form-horizontal="true" align-right="true"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
                <time id="time8" params="{{params}}" value="10:15"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
                <time id="time9" params="{{params}}" not-blank="false"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
               <time id="time10" params="{{params}}" valid="has-error" form-error="非法值!"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
               <time id="time11" params="{{params}}" disabled="true"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
               <time id="time12" params="{{params}}" valid="none" not-blank="false"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            private: {
                params: {}
            }
        }
    </script>
    

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time" src="../Common/ui/h-ui/form/c_time"></import>
    <template>
        <div class="container">
            <form>
               <time id="time13" params="{{params}}" form-horizontal="true"></time>
            </form>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        import prompt from '@system.prompt'
    
        export default {
            private: {
                params: {}
            },
            onInit() {
                this.$on('time13_dispatchEvt',this.dispatchEvt)
            },
            dispatchEvt(evt) {
                // 弹窗显示详细说明
                prompt.showToast({
                    message: evt.detail.value,
                    duration: 1,
                    gravity: 'top'
                })
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    Spring 中出现Element : property Bean definitions can have zero or more properties. Property elements correspond to JavaBean setter methods exposed by the bean classes. Spring supports primitives, refer
    java定时器schedule和scheduleAtFixedRate区别
    hql语句中的select字句和from 字句
    使用maven搭建hibernate的pom文件配置
    Failure to transfer org.apache.maven:maven-archiver:pom:2.5 from http://repo.maven.apache.org/ maven2 was cached in the local repository, resolution will not be reattempted until the update interv
    对于文件File类型中的目录分隔符
    hibernate的事务管理和session对象的详解
    解决mac 中的myeclipse控制台中文乱码问题
    ibatis selectKey用法问题
    Java中getResourceAsStream的用法
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/shi-jian-xuan-ze-qizu-jianlttimegt--kuai-ying-yong.html
Copyright © 2020-2023  润新知