提交 8810ae91 编写于 作者: fxy060608's avatar fxy060608

feat(wxs): add getBoundingClientRect,setTimeout,clearTimeout

上级 3178d290
......@@ -160,6 +160,18 @@ class ComponentDescriptor {
// TODO options
return (this.$vm.$emit(eventName, detail), this)
}
setTimeout (handler: TimerHandler, timeout ? : number) {
return window.setTimeout(handler, timeout)
}
clearTimeout (handle ? : number) {
return window.clearTimeout(handle)
}
getBoundingClientRect () {
return this.$el.getBoundingClientRect()
}
}
export function createComponentDescriptor (vm, isOwnerInstance = true) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册