导入 - GoView配置文件

简介

使用 GoView 的 json 配置文件,导入 TvT 项目,动态生成 UI 界面,结合现有三维展示系统,实现三维场景项目的快速落地。

TvT结合GoView

使用方法

    1. 下载到一串数字的.json 文件,1xxxxx.json,放在对应需要使用它的代码目录下
    1. 在代码中引入 GoView 组件,并实例化组件,传入对应的.json 文件路径
<template>
  <viewChart :dataJson="dataJson" />
</template>

<script setup lang="ts">
import { viewChart } from 'PLS/goView'
import dataJson from './1xxxxx.json'
</script>

相关参数

  • dataJson:图表数据 goview 配置文件 [必填]
  • showAllCom:是否 显示所有组件 可接入全局等待 loading 结果 [可选]
  • delay:延迟显示时间 单位毫秒 用于在 three 中读取完模型后 载入的延迟配置 [可选]
  • maskWidth:左右灰度透明底 遮罩层宽度 默认 500px [可选]

TIP