请教,render函数内,hover样式如何添加

Vue.extend({ 
            props: ["row", "column"],
                  render(h) {
                    return h("el-input", {
                      attrs: { 
                        readonly: true,
                        value: this.row[this.column.property],
                        style: {}
                      }
                    });
                  }
                })

在render函数里,怎么给input添加hover样式呢?

阅读 3k
1 个回答

1.可以写在style里
2.可以写在样式里,在attrs里添加对应的class

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题