zoukankan      html  css  js  c++  java
  • "颜色选择器"组件:<color-picker> —— 快应用组件库H-UI

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
                 <color-picker id="colorpicker1" params="{{params}}"></color-picker>
            </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="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
                <color-picker id="colorpicker2" params="{{params}}" form-horizontal="true"></color-picker>
            </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="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
                <color-picker id="colorpicker3" params="{{params}}" form-horizontal="true" no-border="true"></color-picker>
            </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="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
                <color-picker id="colorpicker4" params="{{params}}" title="none"></color-picker>
            </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="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
                <color-picker id="colorpicker5" params="{{params}}" title="衣服颜色"></color-picker>
            </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="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
                <color-picker id="colorpicker6" params="{{params}}" value="#0000ff"></color-picker>
            </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="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
                <color-picker id="colorpicker7" params="{{params}}" disabled="true"></color-picker>
            </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="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
               <color-picker id="colorpicker8" params="{{params}}" not-blank="false"></color-picker>
            </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="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
               <color-picker id="colorpicker9" params="{{params}}" valid="has-error" form-error="该颜色已存在!"></color-picker>
            </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="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
               <color-picker id="colorpicker10" params="{{params}}" valid="none" not-blank="false"></color-picker>
            </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="color-picker" src="../Common/ui/h-ui/form/c_color_picker"></import>
    <template>
        <div class="container">
            <form>
               <color-picker id="colorpicker11" params="{{params}}"></color-picker>
            </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('colorpicker11_dispatchEvt',this.dispatchEvt)
            },
            dispatchEvt(evt) {
                // 弹窗显示详细说明
                prompt.showToast({
                    message: evt.detail.value,
                    duration: 1,
                    gravity: 'top'
                })
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    在centos7 ubuntu15.04 上通过bosh-lite 搭建单机环境cloudfoundry
    Linux里如何查找文件内容
    StarUML2 建模工具全平台破解及license验证简要分析
    深入理解 Neutron -- OpenStack 网络实现(4):网络名字空间
    深入理解 Neutron -- OpenStack 网络实现(3):VXLAN 模式
    深入理解 Neutron -- OpenStack 网络实现(2):VLAN 模式
    深入理解 Neutron -- OpenStack 网络实现(1):GRE 模式
    linux 设置pip 镜像 Pip Warning:–trusted-host 问题解决方案
    C# IO流的操作(一)
    C# 序列化、反序列化
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/yan-se-xuan-ze-qizu-jianltcolorpickergt--kuai-ying.html
Copyright © 2011-2022 走看看