Giter Site home page Giter Site logo

miniapp-test-wepy's Introduction

wepy框架中的坑

  • 不支持vue中scoped标记,如果添加scoped前缀,会报错。下面是错误示例:
/*wrong usage*/
<style lang="less" scoped> 
</style>
  • computed属性无法双向绑定到子组件,这个ISSUE中说已经解决了,但是经我测试依然不能用sync传到子组件中。
  • wepy的组件列表渲染有重大bug,repeat渲染时,父组件的props无法正常传到子组件里,见wepy框架下的相关ISSUE
  • 有报错的页面不会引发编译,而且后续编译不会重新报之前已经报过的错,这可能会对调试造成一些困扰。

开发中遇到的问题

  • 如何获取用户所在的城市?
  • 后端API有一些细节待确认,主要是9.1.4获取的用户动态示例,希望后端能提供样例。

关于生成代码的大小问题

  • 关闭wepy.config.js中的sourceMap选项可以有效减小代码体积
  • 编译后的代码比源代码会多出80kb的依赖库,这些库主要是提供wepy的运行时环境

结论:引入wepy框架不会显著增加代码体积。

UI预览图

UI

miniapp-test-wepy's People

Contributors

yidadaa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.