荣彬 a66690f436 Publish
- @ali/lowcode-code-generator@1.0.0
 - @ali/lowcode-demo-server@1.0.0
 - @ali/lowcode-demo@1.0.0
 - @ali/lowcode-designer@1.0.0
 - @ali/lowcode-editor-core@1.0.0
 - @ali/lowcode-editor-preset-general-beta@1.0.0
 - @ali/lowcode-editor-preset-vision@1.0.0
 - @ali/lowcode-editor-setters@1.0.0
 - @ali/lowcode-editor-skeleton@1.0.0
 - @ali/lowcode-material-parser@1.0.0
 - @ali/lowcode-plugin-components-pane@1.0.0
 - @ali/lowcode-plugin-designer@1.0.0
 - @ali/lowcode-plugin-event-bind-dialog@1.0.0
 - @ali/lowcode-plugin-outline-pane@1.0.0
 - @ali/lowcode-plugin-sample-logo@1.0.0
 - @ali/lowcode-plugin-sample-preview@1.0.0
 - @ali/lowcode-plugin-source-editor@1.0.0
 - @ali/lowcode-plugin-undo-redo@1.0.0
 - @ali/lowcode-plugin-variable-bind-dialog@1.0.0
 - @ali/lowcode-plugin-zh-en@1.0.0
 - @ali/lowcode-rax-provider@1.0.0
 - @ali/lowcode-rax-renderer@1.0.0
 - @ali/lowcode-rax-simulator-renderer@1.0.0
 - @ali/lowcode-react-provider@1.0.0
 - @ali/lowcode-react-renderer@1.0.0
 - @ali/lowcode-react-simulator-renderer@1.0.0
 - @ali/lowcode-runtime@1.0.0
 - @ali/lowcode-types@1.0.0
 - @ali/lowcode-utils@1.0.0
2020-08-17 13:12:03 +08:00
..
2020-06-21 17:53:20 +08:00
2020-07-21 22:47:03 +08:00
2020-06-21 17:11:54 +08:00
2020-08-17 13:12:03 +08:00
2020-08-17 13:12:03 +08:00
2020-06-21 17:11:54 +08:00

Rax Renderer

Rax 渲染模块。

安装

$ npm install @ali/lowcode-engine-rax-renderer --save

使用

import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import RaxRenderer from '@ali/lowcode-engine-rax-renderer';

const components = {
  View,
  Text
};

const schema = {
  componentName: 'Page',
  fileName: 'home',
  children: [
    {
      componentName: 'View',
      children: [
        {
          componentName: 'Text',
          props: {
            type: 'primary'
          },
          children: ['Welcome to Your Rax App']
        }
      ]
    }
  ]
};

render(
  <RaxRenderer
    schema={schema}
    components={components}
  />, 
  document.getElementById('root'), { driver: DriverUniversal }
);