1.0.8 • Published 4 years ago
@xsyx/render-engine v1.0.8
贾维斯渲染引擎使用指南
渲染引擎(RENDER-ENGINE)用途
贾维斯渲染引擎负责将 JSON-SCHEMA 渲染成静态页面。
用法
最简单用法
import re from '@xsxy/render-engine';
import components from '@xsyx/jarvis-components';
// 基础设置
re.config({
vue: vue,
components: components
})
// 拉取远程 schema 并渲染
fetch('schema.json').then(schema=>{
re.render('#app', schema)
})
API 介绍
RenderEngine.config
配置引擎,用来注册插件、组件,统一Vue 实例等。需要在最前面调用。
import re from '@xsxy/render-engine';
import plugins from '@xsyx/jarvis-plugins';
import components from '@xsyx/jarvis-components';
// 基础设置
re.config({
vue: vue,
plugins:plugins,
components: components
})
RenderEngine.render
渲染页面
import re from '@xsxy/render-engine';
re.render(selector, schema);
- selector: 页面上的dom 选择器
- schema:设计引擎生成的schema
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.3
4 years ago
1.0.0
4 years ago
0.1.20
4 years ago
0.1.19
4 years ago
0.1.17
4 years ago
0.1.18
4 years ago
0.1.16
4 years ago
0.1.15
4 years ago
0.1.13
4 years ago
0.1.14
4 years ago
0.1.12
4 years ago
0.1.11
4 years ago
0.1.10
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago