请教,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样式呢?


九州编程
浏览 1568回答 1
1回答

偶然的你

1.可以写在style里2.可以写在样式里,在attrs里添加对应的class
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript