1.0.8 • Published 5 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
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.3
5 years ago
1.0.0
5 years ago
0.1.20
5 years ago
0.1.19
5 years ago
0.1.17
6 years ago
0.1.18
6 years ago
0.1.16
6 years ago
0.1.15
6 years ago
0.1.13
6 years ago
0.1.14
6 years ago
0.1.12
6 years ago
0.1.11
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago