GithubHelp home page GithubHelp logo

Comments (5)

Mister-Hope avatar Mister-Hope commented on June 6, 2024

或者说,如果换成现在使用官方自定义组件的模式,我将如何hack去实现组建的动态引用?我看wepy和mpvue都不支持这个功能。


我的需求是这样的,比如我有ABCDEFG七个组件(或者说小部件,内带一些简单的js逻辑,事实上有十多个),会根据用户的行为来决定在界面中部的位置去按照特定顺序渲染一个或多个组件,比如BCG,DEAF,CCAGG等。这样应该怎么用wxpage实现呢?demo中的wxpage是可以实现的,但是在基础库版本过高的时候又会出现问题。


衷心希望大大能够给一个好的解决思路,或者能帮忙将旧版的方式添加回来。

from wxpage.

switer avatar switer commented on June 6, 2024

每一个模板组件对应的JS逻辑都是复用的?

from wxpage.

switer avatar switer commented on June 6, 2024

或者可以提供个代码片段

from wxpage.

switer avatar switer commented on June 6, 2024

这个示例是否满足需求?

https://developers.weixin.qq.com/s/7vVhJyms7X5k

from wxpage.

Mister-Hope avatar Mister-Hope commented on June 6, 2024

哇,谢谢大大,有了一些思路了,我自己再实战一下~

from wxpage.

Related Issues (20)

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.