Vue.extend({
props: ["row", "column"],
render(h) {
return h("el-input", {
attrs: {
readonly: true,
value: this.row[this.column.property],
style: {}
}
});
}
})
在render函数里,怎么给input添加hover样式呢?
1.可以写在style里
2.可以写在样式里,在attrs里添加对应的class