vue-chart js 的引用问题

2017-12-04  本文已影响0人  我是走A牧
<template>
  <div class="hello">
    <lin  :width="400"
          :height="heightY"></lin>
  </div>
</template>

<script>
  import lin from  "../assets/charts.js"
  export default {
    name: 'app',
    components: {
      lin:lin
    },
    data:function(){
      return {
//         heigthx:300,
//         heightY:0
      }
    },
    computed:{
      heightY:function(){ //
       let len=parseFloat(document.documentElement.style.fontSize);
        return  (600/75)*len
      }
    },
    mounted:function(){

    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
图片.png
上一篇下一篇

猜你喜欢

热点阅读