您当前的位置:主页 > 技术探讨 >
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
render: (h, params) => {
let dom = create('div', {},[
create('Input', {
ref:'tableInput',
props: {
autofocus:true,
})
]}
})
]}
上一篇:h5手机端公众号配置 手机图片调用
下一篇:前端开发应知网站