• "屏幕亮度"组件:<brightness> —— 快应用组件库H-UI


    <import name="brightness" src="../Common/ui/h-ui/advance/c_brightness"></import>
    <template>
        <div class="container">
            <brightness id="brightness1"></brightness>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    

    <import name="brightness" src="../Common/ui/h-ui/advance/c_brightness"></import>
    <template>
        <div class="container">
            <brightness id="brightness2" type="default"></brightness>
            <brightness id="brightness3" type="info"></brightness>
            <brightness id="brightness4" type="primary"></brightness>
            <brightness id="brightness5" type="danger"></brightness>
            <brightness id="brightness6" type="warning"></brightness>
            <brightness id="brightness7" type="success"></brightness>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    

    <import name="brightness" src="../Common/ui/h-ui/advance/c_brightness"></import>
    <template>
        <div class="container">
            <brightness id="brightness8" show-toast="true"></brightness>
        </div>
    </template>
    
    <style lang="less">
        @import '../Common/styles/container.less';
    </style>
    
    <script>
        export default {
            onInit() {
                this.$on('brightness8_dispatchEvt',this.dispatchEvt)
            },
            dispatchEvt(evt) {
                console.info('当前亮度:' + evt.detail.value + '%')
            }
        }
    </script>
    

    扫码体验

  • 相关阅读:
    3.K均值算法
    2.机器学习相关数学基础
    机器算法第一次作业
    语法制导的语义翻译
    算符优先分析
    自下而上语法分析
    LL(1)文法的判断,递归下降分析程序
    消除左递归
    DFA最小化,语法分析初步
    词法分析程序的设计与实现
  • 原文地址:https://www.cnblogs.com/cloud-dev/p/ping-mu-liang-duzu-jianltbrightnessgt--kuai-ying-y.html
Copyright © 2020-2023  润新知