Skip to content
New issue

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

如何支持mpvue? #1

Open
dkl520 opened this issue Feb 22, 2019 · 1 comment
Open

如何支持mpvue? #1

dkl520 opened this issue Feb 22, 2019 · 1 comment

Comments

@dkl520
Copy link

dkl520 commented Feb 22, 2019

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的 请问如何兼容呢。

@noahlam
Copy link
Owner

noahlam commented Feb 22, 2019

暂未考虑过小程序方面的支持,未来应该也不会支持。
v-coupon 严重依赖 dom 的操作,而小程序对这块支持非常不友好。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants