鍍金池/ 問(wèn)答/HTML/ 請(qǐng)教,render函數(shù)內(nèi),hover樣式如何添加

請(qǐng)教,render函數(shù)內(nèi),hover樣式如何添加

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

在render函數(shù)里,怎么給input添加hover樣式呢?

回答
編輯回答
瞄小懶

1.可以寫(xiě)在style里
2.可以寫(xiě)在樣式里,在attrs里添加對(duì)應(yīng)的class

2018年2月28日 16:59