zoukankan      html  css  js  c++  java
  • "滑动选择器"组件:<h-slider> —— 快应用组件库H-UI

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                 <h-slider id="slider1" params="{{params}}"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                 <h-slider id="slider2" params="{{params}}" value="38"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider3" params="{{params}}" value="38" form-horizontal="true"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider4" params="{{params}}" value="38" form-horizontal="true" no-border="true"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider5" params="{{params}}" value="38" title="none"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider6" params="{{params}}" value="38" title="参赛人数"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider71" params="{{params}}" value="38" type="default"></h-slider>
                <h-slider id="slider72" params="{{params}}" value="55" type="primary"></h-slider>
                <h-slider id="slider73" params="{{params}}" value="62" type="info"></h-slider>
                <h-slider id="slider74" params="{{params}}" value="77" type="warning"></h-slider>
                <h-slider id="slider75" params="{{params}}" value="15" type="danger"></h-slider>
                <h-slider id="slider76" params="{{params}}" value="22" type="success"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider8" params="{{params}}" value="38" min="10" max="50"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider9" params="{{params}}" value="10" step="10"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider10" params="{{params}}" value="10" not-blank="false"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider11" params="{{params}}" value="10" disabled="true"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider12" params="{{params}}" value="30" valid="has-error" form-error="非法值!"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider13" params="{{params}}" valid="none" not-blank="false"></h-slider>
            </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="h-slider" src="../Common/ui/h-ui/form/c_slider"></import>
    <template>
        <div class="container">
            <form>
                <h-slider id="slider14" params="{{params}}"></h-slider>
            </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('slider14_dispatchEvt',this.dispatchEvt)
            },
            dispatchEvt(evt) {
                // 弹窗显示详细说明
                prompt.showToast({
                    message: evt.detail.value,
                    duration: 1,
                    gravity: 'top'
                })
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    一个Winform下DataGridView控件外观的自定义类
    从以往子类化跟踪MouseLeave深入讨论VB6的自定义Hook类
    使用VB6写一个自定义的进度信息框窗口
    C#研究OpenXML之路(4-使用第三方库)
    Access SQL实现连续及不连续Rank排名
    C#研究OpenXML之路(3-OpenXMLSDKToolV25.msi)
    C#研究OpenXML之路(2-DocumentFormat.OpenXml命名空间)
    C#研究OpenXML之路(1-新建工作簿文件)
    统一我的博客文章的CSS样式代码
    C#图片灰度处理(位深度24→位深度8)
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/hua-dong-xuan-ze-qizu-jianlthslidergt--kuai-ying-y.html
Copyright © 2011-2022 走看看