photo-sphere-viewer
photo-sphere-viewer是基于three.js和uEvent 2
下载插件
使用npm或yarn下载安装
npm install photo-sphere-viewer
yarn add photo-sphere-viewer
使用插件
<template>
<div class="showCanvas" id="viewer"></div>
</template>
<script>
import {Viewer} from 'photo-sphere-viewer'
import 'photo-sphere-viewer/dist/photo-sphere-viewer.css'
export default {
data(){
return{
// 基地全景图
viewer: '',
imgurl: require('./quanjing.jpg'),
}
},
me