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

是否提供BOM和DOM操作 #33

Closed
openwayne opened this issue Jul 13, 2021 · 1 comment
Closed

是否提供BOM和DOM操作 #33

openwayne opened this issue Jul 13, 2021 · 1 comment

Comments

@openwayne
Copy link
Collaborator

目前遇到的问题

  • 小程序中无BOM和DOM,那么一些container操作就无法正常使用

方案一

  • 使用canvas/webgl做全部元素的绘制,对container等做一层转换
    优势:
    全部环境都可以保持一致性
    缺点:
    开发成本会增加

方案二

  • 在小程序中增加一层wrapper,兼容有限的dom和bom操作,然后动态在模版中渲染
    优势:
    成本相对较低,可以便捷使用css和div等
    缺点:
    小程序内存在一些限制,再就是app中方案会更重
@openwayne
Copy link
Collaborator Author

已经完成f6-ui的封装,使用f6-ui即可

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

No branches or pull requests

1 participant