iview table添加input框

时间:2020-05-11 18:23:12   收藏:0   阅读:458
  {
          title: "用户名",
          key: "stockPrice",
          render: (h, params) => {
            return h("Form", [
              h("Input", {
                style: {
                  marginLeft: "4px",
                  width: "150px"
                },
                props: {
                  type: "text",
                  value: params.row.stockPrice //使用data中的key
                },
                on: {
                  input: event => {
                    this.data1[params.index].stockPrice= event;//双向绑定
                    console.log(event,this.data1);
                  }
                }
              }),
            ]);
          }
        },

  

原文:https://www.cnblogs.com/xu-nian-qin/p/12870432.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!