We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renderDom() { let content=this.selectComponent(".couponSlot"); // let content = document.querySelector('.couponSlot').children[0] content.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml')
this.$refs.foreignObject.appendChild(content) }
这里挂载和查找都用到了 dom 操作 但是在微信小程序中是不可以用dom的 请问如何兼容呢。
The text was updated successfully, but these errors were encountered:
暂未考虑过小程序方面的支持,未来应该也不会支持。 v-coupon 严重依赖 dom 的操作,而小程序对这块支持非常不友好。
Sorry, something went wrong.
No branches or pull requests
renderDom() {
let content=this.selectComponent(".couponSlot");
// let content = document.querySelector('.couponSlot').children[0]
content.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml')
这里挂载和查找都用到了 dom 操作 但是在微信小程序中是不可以用dom的 请问如何兼容呢。
The text was updated successfully, but these errors were encountered: