iview渲染的table頁面更改input輸入框的值,獲取輸入的值


方法一:
{
          title:'備注',
          key:'',
          align:'center',
          width: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: [],


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM