zoukankan      html  css  js  c++  java
  • iview渲染的table页面更改input输入框的值,获取输入的值

    方法一:
    {
              title:'备注',
              key:'',
              align:'center',
              130,
              render:(h,params)=>{
                return h('Input',{
                  props:{
                    value:this.formInline.financeAccountBillDetailVOList[params.index].invoiceCode,
                    disabled:this.isDisabled,
                    maxlength:255
                  },
                  on:{  
                      'on-blur': (event) => {
                        params.row.invoiceCode = event.target.value
                        this.formInline.financeAccountBillDetailVOList[params.index] = params.row
                      }
                    }
                })
              }
            }
    方法二:
    {
                            title: '入库数量',
                            key: 'quantity',
                            align: 'center',
                            render: (h, params) => {
                                return h('div', [
                                    h('Input', {
                                        style: {
                                            padding: '8px'
                                        },
                                        on: {
                                            'on-change': (event) => {
                                                this.tableData[params.index].quantity = event.target.value
                                            }
                                        }
                                    })
                                ])
                            }
                        },
     tableData: [],
  • 相关阅读:
    前端知识总汇
    html基础
    linux密码修改实验
    [ 转 ] 为 phpstorm 自定义默认 Web 服务器
    简易 PHP 教程小记
    EXPORT Man Information for Linux use COMMAND col
    CiSCO 交换机配置 SSH 登陆
    修复已损坏的交换机IMG
    Jupyter Notebook远程服务器配置[转]
    Linux 调节分辨率
  • 原文地址:https://www.cnblogs.com/wssdx/p/11497366.html
Copyright © 2011-2022 走看看