Mpvue is a front-end framework developed by Meituan-Dianping that uses vue. js to develop wechat mini programs. — Based on vue. js core, MPvue modifies the runtime and Compiler implementation of vue. js to enable it to run in a small program environment, thus introducing a whole set of vue. js development experience for small program development.

conclusion

Maybe WePY is a better fit for our development scenario. No framework can really be written in one place and applied everywhere, but it has to change with the version. Due to the limited support of MPVue in components and router, and the development scenario of rain classroom, the most suitable way is H5 project to continue to use the original framework, small program to use WePY framework, small program and H5 code reuse only at the page level. For example, if a feature is newly developed, it can be modified on H5 after being developed with WePY on the small program.

mpvueDoes not support the

  • The use of Class and Style bindings on components is not currently supported
  • It is supported with and only in the form of a single file component (.vue component). Others are: dynamic components, custom render, and
  • Defining native events like click, v-show (use V-if instead), and style attributes like class style on a component reference (e.g., styles do not take effect) is not currently supported, since applets do not generate nodes when compiled into WXML. It is recommended to write on internal top-level elements.
  • Dynamic components
  • Slot (scoped is not supported yet)
  • Asynchronous components
  • keep-alive
  • class
  • style

And WePY contrast

Tech.meituan.com/img/mpvue/m…

other