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: [],
  • 相关阅读:
    文件和数组的排序
    批量删除文档中的注释和空行
    strcat()的编写
    OpenGL鼠标旋转图像
    c++对文件操作的支持(二)
    汉字的16进制存储
    启动程序的c++方法
    HDU 2199 Can you solve this equation? 二分
    HDU 2899 Strange fuction 二分
    HDU 1233 还是畅通工程 最小生成树
  • 原文地址:https://www.cnblogs.com/wssdx/p/11497366.html
Copyright © 2011-2022 走看看