pt-component-vue3
v1.0.4
Published
## 引入渲染器 sdk
Downloads
6
Readme
pt-component-vue3
引入渲染器 sdk
页面 html 模板中直接引入渲染器 sdk
<script src="https://ecstatic.ptengine.com/sdk/ec-sdk.js"><script>
安装组件库
npm install pt-component-vue3
使用组件库
//main.js 入口文件
import { createApp } from "vue";
import App from "./App.vue";
import PtComponentVue3 from "pt-component-vue3";
const app = createApp(App);
app.use(PtComponentVue3);
app.mount("#app");
//组件中使用
<wac-component
asset-id="bda390f2-5780-42a5-a6cd-c0989ad42e36"
:lang="lang"
:display-mode="displayMode"
@create="onCreate"
@preview="onPreview"
@view="onView"
></wac-component>