Skip to content

基于vant组件库的epage移动端渲染包 低代码可视化配置

License

Notifications You must be signed in to change notification settings

epage-team/epage-vant

Repository files navigation

EpageVant

基于vant组件库的 epage-core 渲染包

English Introduction | 中文介绍

文档

官网:http://epage.didichuxing.com

演示地址

Demo

安装

npm install epage-vant -S
# or yarn add epage-vant

设计器及渲染器示例

  • npm 方式引入(推荐)
import widgets, { Render } from 'epage-vant'
import schema from './schema.json'
import 'epage-vant/src/style/main.less'

const el = document.getElementById('root')
// 创建渲染器
new Render({ el, widgets, schema })
  • script 方式引入
<!-- 样式 -->
<link href='https://cdn.jsdelivr.net/npm/[email protected]/lib/index.css' rel='stylesheet'></link>
<link href='./epage-vant.css' rel='stylesheet'></link>

<!-- 第三方脚本 -->
<script src='https://cdn.bootcss.com/vue/2.6.10/vue.min.js' ></script>
<script src='https://cdn.bootcss.com/vuex/3.1.1/vuex.min.js' ></script>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/lib/vant.min.js' ></script>

<script src="./epage-core.min.js"></script>
<script src="./epage-vant.min.js"></script>

<script>
const el = document.getElementById('root')
const { default: widgets, Render } = EpageVant

//创建渲染器
new Render({ el, widgets, schema })
</script>

交流群

QQ群

License

MIT