zoukankan      html  css  js  c++  java
  • iview render函数中监听on-change、click方法、控制switch开关 true|| false

    render: (h, params) => {
        return h('Select', {
            on: {
                'on-change': (value) => {
                    consle.log('change value', value);
                }
            }
        })
    }
    

      

    render: (h, params) => {
        return h('div', [
            h('span', {style: {marginRight: '5px'},}, '自动更新'),
            h('i-switch', {
          props: {
            value: params.row.autoUpdate //控制switch开关 true|| false
          }  style: {marginRight: '5px'},  on: {  'on-change': () => {  this.changeRateSettingss(params.index)  }  } }), h('Button', { props: {type: 'primary',size: 'small'}, style: {marginRight: '5px'}, on: { click: () => { this.changeRateSettingss(params.index) } } }, this.$t('liveRate_lang.btn.edit')), ]); }

      

  • 相关阅读:
    ios资源
    学习swift开源项目
    学习di'z地址
    IOS基础库
    IT自学论坛
    HVTableView 分享组
    IOS中的动画菜单
    iOS 通讯录操作
    ios中autolayout
    ios 程序学习
  • 原文地址:https://www.cnblogs.com/Essaycode/p/13665562.html
Copyright © 2011-2022 走看看