您当前的位置:主页 > 技术探讨 >

    iview 开发问题记录册

    时间:2019-05-05 16:04 日记人:arlen.zhou

    1.动态table   input焦点跟踪  初始化触发,....动态形式的焦点render里面用 create 方式初始化

      created(){
          this.$nextTick(() => {
            console.log( this.$refs)
            this.$refs.tableInput.focus()
          })
       },



    render: (h, params) => {
      let create = this.$createElement
      let dom = create('div',  {},[
        create('Input', {
          ref:'tableInput',
          props: {
            autofocus:true,
       })
    ]}