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')), ]); }

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM