zoukankan      html  css  js  c++  java
  • "价格"组件:<price> —— 快应用组件库H-UI

    <import name="form" src="../Common/ui/h-ui/form/c_form"></import>
    <import name="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price1" params="{{params}}"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price2" params="{{params}}" form-horizontal="true"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price3" params="{{params}}" no-border="true" ></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price4" params="{{params}}" title="none"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price5" params="{{params}}" placeholder="none"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price6" params="{{params}}" tip="格式如,0.01"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price7" params="{{params}}" align-right="true"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price8" params="{{params}}" valid="has-success"></price>
                <price id="price9" params="{{params}}" valid="has-warning"></price>
                <price id="price10" params="{{params}}" valid="has-error"></price>
                <price id="price8_2" params="{{params}}" valid="has-success" valid-icon="none"></price>
                <price id="price9_2" params="{{params}}" valid="has-warning" valid-icon="none"></price>
                <price id="price10_2" params="{{params}}" valid="has-error" valid-icon="none"></price>
                <price id="price11" params="{{params}}" valid="has-success" form-horizontal="true"></price>
                <price id="price12" params="{{params}}" valid="has-warning" form-horizontal="true"></price>
                <price id="price13" params="{{params}}" valid="has-error" form-horizontal="true"></price>
                <price id="price11_2" params="{{params}}" valid="has-success" form-horizontal="true" valid-icon="none"></price>
                <price id="price12_2" params="{{params}}" valid="has-warning" form-horizontal="true" valid-icon="none"></price>
                <price id="price13_2" params="{{params}}" valid="has-error" form-horizontal="true" valid-icon="none"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price14" params="{{params}}" valid="has-error" form-error="价格必须大于0!" value="0.00"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price15" params="{{params}}" not-blank="false"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price16" params="{{params}}" currency="usd"></price>
                <price id="price17" params="{{params}}" currency="euro"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price18" params="{{params}}" value="88.00" disabled="true"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price19" params="{{params}}" not-blank="false" valid="none" valid-icon="none"></price>
            </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="price" src="../Common/ui/h-ui/form/c_price"></import>
    <template>
        <div class="container">
            <form>
                <price id="price20" params="{{params}}"></price>
            </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('price20_dispatchEvt',this.dispatchEvt)
            },
            dispatchEvt(evt) {
                // 弹窗显示详细说明
                prompt.showToast({
                    message: evt.detail.value,
                    duration: 1,
                    gravity: 'top'
                })
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    【luogu P1307 数字反转】 题解
    【luogu P1111 公路修建】 题解
    字符串与正则运算
    Java 正则表达式的总结和一些小例子
    js -history.back(-1)和history.go(-1) 区别
    js
    html _ 提取html片段内的纯文本
    vue-x action 的相互调用
    java通过过滤器 设置跨域允许
    git-搭建企业git服务器
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/jia-gezu-jianltpricegt--kuai-ying-yong-zu-jian-kuH.html
Copyright © 2011-2022 走看看