码迷,mamicode.com
首页 > 其他好文 > 详细

iview table添加input框

时间:2020-05-11 18:59:23      阅读:321      评论:0      收藏:0      [点我收藏+]

标签:ice   style   his   inpu   view   params   row   div   双向   

  {
          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);
                  }
                }
              }),
            ]);
          }
        },

  

iview table添加input框

标签:ice   style   his   inpu   view   params   row   div   双向   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!