leiDa2.vue 740 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view class="container">
  3. <echarts class="container100" ref="echarts" :option="options" canvasId="echartsT"></echarts>
  4. </view>
  5. </template>
  6. <script>
  7. import echarts from "@/components/echarts-uniapp/echarts-uniapp.vue"
  8. export default {
  9. name: "leiDa",
  10. props: ["options"],
  11. components: {
  12. echarts
  13. },
  14. data() {
  15. return {}
  16. },
  17. watch: {
  18. options: {
  19. immediate: true,
  20. handler(newValue, oldValue) {
  21. // this.drawLine();
  22. }
  23. }
  24. },
  25. mounted() {},
  26. methods: {
  27. // drawLine() {
  28. // this.options = options;
  29. // }
  30. }
  31. }
  32. </script>
  33. <style>
  34. .container {
  35. box-sizing: border-box;
  36. width: 100%;
  37. height: 650rpx;
  38. padding: 25rpx;
  39. }
  40. .container100 {
  41. width: 100%;
  42. height: 100%;
  43. }
  44. </style>