Coder Social home page Coder Social logo

Comments (3)

arleyGuoLei avatar arleyGuoLei commented on June 30, 2024

Node 是不是还没渲染,还是一个未运行的组件,所以获取不到 this?那还有更好的方案和时机获取编辑器组件渲染时的this 值么

from lowcode-engine.

arleyGuoLei avatar arleyGuoLei commented on June 30, 2024

ReactNode 是一个类型,它代表了可以被渲染的东西。这包括 ReactElement(即 JSX 返回的东西),字符串和数字(它们在渲染时会被转换为文本节点),以及数组或片段,它们可以让你返回多个元素。ReactNode 也可以是 null 或 undefined,表示不渲染任何东西。

咱们的 Node 是类似 ReactNode 的吗?所以如果要获取的话应该考虑获取到 node 的 ref 实例后再获取?

from lowcode-engine.

arleyGuoLei avatar arleyGuoLei commented on June 30, 2024

#1181

类似需求:期望可以通过API同步获取模拟器内 Page / Component 节点的 state 数据,目的是方便开发过程中时刻了解当前的数据值

from lowcode-engine.

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.