• "时间范围"组件:<time-range> —— 快应用组件库H-UI


    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="time-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                 <time-range id="timerange1" params="{{params}}"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange2" params="{{params}}" form-horizontal="true"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange3" params="{{params}}" form-horizontal="true" no-icon="true"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange4" params="{{params}}" form-horizontal="true" no-border="true"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange5" params="{{params}}" title="none"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange6" params="{{params}}" title="测试时间"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange7" params="{{params}}" form-horizontal="true" align-right="true"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange8" params="{{params}}" value="09:15至10:20"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange9" params="{{params}}" not-blank="false"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange10" params="{{params}}" valid="has-error" form-error="非法值!"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange11" params="{{params}}" disabled="true"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange12" params="{{params}}" valid="none" not-blank="false"></time-range>
            </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-range" src="../Common/ui/h-ui/form/c_time_range"></import>
    <template>
        <div class="container">
            <form>
                <time-range id="timerange13" params="{{params}}" form-horizontal="true"></time-range>
            </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('timerange13_dispatchEvt',this.dispatchEvt)
            },
            dispatchEvt(evt) {
                // 弹窗显示详细说明
                prompt.showToast({
                    message: evt.detail.value,
                    duration: 1,
                    gravity: 'top'
                })
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    石家庄的联通破网络,请大家鉴定
    快速动态访问属性
    TcpRouter端口转发工具
    谈谈我的开发秘密武器
    搞清如何使用oAuth 1.0 & 1.0a
    回顾我学过的编程语言
    jQuery moible 开发笔记之项目设计
    从Minecraft(我的世界)看游戏设计外行人的游戏杂谈
    某android平板项目开发笔记aChartEngine图表显示(2)
    R语言绘图学习笔记之Scatter plots
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/shi-jian-fan-weizu-jianlttimerangegt--kuai-ying-yo.html
Copyright © 2020-2023  润新知