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: [],
  • 相关阅读:
    让 ijkplayer 支持兼容armv7 armv7s
    以太网私网建立:同一台电脑,不同电脑运行多个节点。
    solidity 语言总结笔记
    web.js 方法详解
    Fabric 环境搭建
    浅谈区块链1
    以太坊私链建立和geth的使用
    搭建联盟链
    fabric 网络 合约部署 和 测试
    【Advanced Windows Phone Programming】番外篇 WP8与WP7
  • 原文地址:https://www.cnblogs.com/wssdx/p/11497366.html
Copyright © 2011-2022 走看看