快速接入¶
编辑器接入¶
将组件引入自己的系统后,新建一个页面并传入 API 即可使用组态编辑器。详细 API 说明请参阅 API 接口。
<template>
<div id="app">
<Webtopo :webtopoAPI="webAPI"></Webtopo>
</div>
</template>
<script>
import * as webAPI from './api/index.js';
export default {
name: 'App',
data() {
return {
webAPI
};
}
};
</script>
获取源码¶
从 GitHub 克隆仓库,参考 examples 目录接入:
git clone https://github.com/bighhhh/webtopo-vue3-community.git
也可将 package/bigA-webtopo 以本地依赖或子模块方式引入你的 Vue 项目,具体步骤见仓库 README。