Coder Social home page Coder Social logo

Comments (3)

ascoders avatar ascoders commented on June 16, 2024

必须有一个容器组件,否则页面容器无组件可用。自己拓展组件时,要么自己实现一个 container 组件,要么 concat 基础组件包,那里面有容器组件:

import Editor from 'gaea-editor';
import BasicComponents from 'gaea-basic-components';

ReactDOM.render(
  <Editor componentClasses={BasicComponents.concat(Foo)} />,
  document.getElementById('react-editor')
);

from gaea-editor.

j-xzy avatar j-xzy commented on June 16, 2024

@ascoders 问题解决了。
但readme会不会感觉有点乱,只有最后 Custom component 章提到BasicComponents.concat。而却示例代码都是没有包裹容器组件,例如https://github.com/ascoders/gaea-editor/blob/master/docs/custom-component-config.mdhttps://jsfiddle.net/47rpn9ud/2/。

from gaea-editor.

ascoders avatar ascoders commented on June 16, 2024

感谢提醒,已更新 readme。

from gaea-editor.

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.