提交 5f86f210 编写于 作者: d-u-a's avatar d-u-a

fix: textarea placeholder-class 无效的问题

上级 bc488168
......@@ -205,6 +205,16 @@ export default {
this._resize({
height: this.$refs.sensor.$el.offsetHeight
})
let $vm = this
while ($vm) {
const scopeId = $vm.$options._scopeId
if (scopeId) {
this.$refs.placeholder.setAttribute(scopeId, '')
}
$vm = $vm.$parent
}
this.initKeyboard(this.$refs.textarea)
},
beforeDestroy () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册