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
                                            }
                                        }
                                    })
                                ])
                            }
                        }
  • 相关阅读:
    November 13th 2016 Week 47th Sunday The 1st Day
    November 12th 2016 Week 46th Saturday
    November 11th 2016 Week 46th Friday
    November 10th 2016 Week 46th Thursday
    November 9th 2016 Week 46th Wednesday
    November 8th 2016 Week 46th Tuesday
    windows 7文件共享方法
    Win7无线网络共享设置方法
    常量指针和指针常量
    如何查找局域网的外网ip
  • 原文地址:https://www.cnblogs.com/wssdx/p/11646304.html
Copyright © 2011-2022 走看看