123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <template>
- <view class="container">
- <echarts class="container100" ref="echarts" :option="options" canvasId="echartsT"></echarts>
- </view>
- </template>
- <script>
- import echarts from "@/components/echarts-uniapp/echarts-uniapp.vue"
- export default {
- name: "leiDa",
- props: ["options"],
- components: {
- echarts
- },
- data() {
- return {}
- },
- watch: {
- options: {
- immediate: true,
- handler(newValue, oldValue) {
- // this.drawLine();
- }
- }
- },
- mounted() {},
- methods: {
- // drawLine() {
- // this.options = options;
- // }
- }
- }
- </script>
- <style>
- .container {
- box-sizing: border-box;
- width: 100%;
- height: 650rpx;
- padding: 25rpx;
- }
- .container100 {
- width: 100%;
- height: 100%;
- }
- </style>
|