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: [],
  • 相关阅读:
    .Net Frameworks versions
    noteJavascript::string2Date for new Date(str)
    noteMS questions
    note删除Visual Studio recent Projects list
    noteshow hidden files
    sql trick
    拯救MySql 签名
    数据结构——栈和队列
    the summary of loop structure in C
    the summury of array in C.
  • 原文地址:https://www.cnblogs.com/wssdx/p/11497366.html
Copyright © 2011-2022 走看看