Git Product home page Git Product logo

weiphoto's Introduction

中文文档地址 http://www.jsdoc.top qq群 591170943

安装依赖

npm install wei-photo --save

main.js

import Vue from 'vue'
import App from './App.vue' 

import weiPhoto from 'wei-photo'
import "wei-photo/style/index.css"
Vue.use(weiPhoto);

Vue.config.productionTip = false;
new Vue({
  render: h => h(App),
}).$mount('#app')

xxx.vue

<template>
  <div>
    <wei-photo 
      class="weiPhoto" 
      v-wei-photo:photo720="options"
      :panorama.sync="panorama"
    ></wei-photo>
  </div>
</template>

<script> 

export default {
  data() {
    return {
      panorama: '图片路径',
      options:{}
    };
  },
  mounted(){
    //this.photo720 为组件自定义指令的变量,针对全景组件的操作通过这个变量进行,可以随意命名,
    //当需要在一个.vue文件里展示两个全景组件的时候,两个组件的变量名称不可以重复
    //它将会将实例化后对象赋值到你当前的组件作用域里
  }
};
</script>

<style>
.weiPhoto {
  width: 80vw;
  height: 80vh;
}
</style>

weiphoto's People

Contributors

xywww avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

weiphoto's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.