zoukankan      html  css  js  c++  java
  • vue中table中render渲染input并给input赋值用props

    {
                            title: '入库数量',
                            key: 'quantity',
                            align: 'center',
                            render: (h, params) => {
                                return h('div', [
                                    h('Input', {
                                        style: {
                                            padding: '8px'
                                        },
                                        props: {
                                            value: params.row.quantity
                                        },
                                        on: {
                                            'on-change': (event) => {
                                                this.tableData[params.index].quantity = event.target.value
                                            }
                                        }
                                    })
                                ])
                            }
                        }
  • 相关阅读:
    【树转数组】poj1195
    sigsuspend sigprocmask函数的用法
    [javascirpt] Regex
    [Angular 2] Passing data to components with 'properties'
    [TypeScript] Inheritance
    [Angular 2] Pipes with Multiple Parameters
    [Angular 2] Create a simple search Pipe
    [Angular 2] Pipe Purity
    [Angular 2] Exposing component properties to the template
    [Angular 2] ng-model and ng-for with Select and Option elements
  • 原文地址:https://www.cnblogs.com/wssdx/p/11646304.html
Copyright © 2011-2022 走看看