suyiScreen/node_modules/.cache/vue-loader/9e988471b313bb67260e5bc3aa1...

1 line
4.2 KiB
JSON

{"remainingRequest":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\src\\common\\echart\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\src\\common\\echart\\index.vue","mtime":1658818744000},{"path":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\hua\\Desktop\\suyi1111\\suyi1111\\suyi1111\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KCmltcG9ydCB0ZFRoZW1lIGZyb20gJy4vdGhlbWUuanNvbicgLy8g5byV5YWl6buY6K6k5Li76aKYCmltcG9ydCAnLi4vbWFwL2Z1amlhbi5qcycKCmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lOiAnZWNoYXJ0JywKICBwcm9wczogewogICAgY2xhc3NOYW1lOiB7CiAgICAgIHR5cGU6IFN0cmluZywKICAgICAgZGVmYXVsdDogJ2NoYXJ0JwogICAgfSwKICAgIGlkOiB7CiAgICAgIHR5cGU6IFN0cmluZywKICAgICAgZGVmYXVsdDogJ2NoYXJ0JwogICAgfSwKICAgIHdpZHRoOiB7CiAgICAgIHR5cGU6IFN0cmluZywKICAgICAgZGVmYXVsdDogJzEwMCUnCiAgICB9LAogICAgaGVpZ2h0OiB7CiAgICAgIHR5cGU6IFN0cmluZywKICAgICAgZGVmYXVsdDogJzIuNXJlbScKICAgIH0sCiAgICBvcHRpb25zOiB7CiAgICAgIHR5cGU6IE9iamVjdCwKICAgICAgZGVmYXVsdDogKCkgPT4gKHt9KQogICAgfQogIH0sCiAgZGF0YSgpIHsKICAgIHJldHVybiB7CiAgICAgIGNoYXJ0OiBudWxsCiAgICB9CiAgfSwKICB3YXRjaDogewogICAgb3B0aW9uczogewogICAgICBoYW5kbGVyKG9wdGlvbnMpIHsKCiAgICAgICAgLy8g6K6+572udHJ1Zea4heepumVjaGFydOe8k+WtmAogICAgICAgIHRoaXMuY2hhcnQuc2V0T3B0aW9uKG9wdGlvbnMsIHRydWUpCiAgICAgIH0sCiAgICAgIGRlZXA6IHRydWUKICAgIH0KICB9LAogIG1vdW50ZWQoKSB7CiAgICBjb25zb2xlLmxvZygib3B0aW9ucyIsIHRoaXMub3B0aW9ucykKICAgIHRoaXMuJGVjaGFydHMucmVnaXN0ZXJUaGVtZSgndGRUaGVtZScsIHRkVGhlbWUpOyAvLyDopobnm5bpu5jorqTkuLvpopgKICAgIHRoaXMuaW5pdENoYXJ0KCk7CiAgfSwKICBiZWZvcmVEZXN0cm95KCkgewogICAgdGhpcy5jaGFydC5kaXNwb3NlKCkKICAgIHRoaXMuY2hhcnQgPSBudWxsCiAgfSwKICBtZXRob2RzOiB7CiAgICBpbml0Q2hhcnQoKSB7CiAgICAgIGNvbnNvbGUubG9nKCIkZWwiLCB0aGlzLiRlbCkKICAgICAgLy8g5Yid5aeL5YyWZWNoYXJ0CiAgICAgIHRoaXMuY2hhcnQgPSB0aGlzLiRlY2hhcnRzLmluaXQodGhpcy4kZWwsICd0ZFRoZW1lJykKICAgICAgdGhpcy5jaGFydC5zZXRPcHRpb24odGhpcy5vcHRpb25zLCB0cnVlKQogICAgfQogIH0KfQo="},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/common/echart","sourcesContent":["<template>\n <div :id=\"id\" :class=\"className\" :style=\"{ height: height, width: width }\" />\n</template>\n\n<script>\nimport tdTheme from './theme.json' // 引入默认主题\nimport '../map/fujian.js'\n\nexport default {\n name: 'echart',\n props: {\n className: {\n type: String,\n default: 'chart'\n },\n id: {\n type: String,\n default: 'chart'\n },\n width: {\n type: String,\n default: '100%'\n },\n height: {\n type: String,\n default: '2.5rem'\n },\n options: {\n type: Object,\n default: () => ({})\n }\n },\n data() {\n return {\n chart: null\n }\n },\n watch: {\n options: {\n handler(options) {\n\n // 设置true清空echart缓存\n this.chart.setOption(options, true)\n },\n deep: true\n }\n },\n mounted() {\n console.log(\"options\", this.options)\n this.$echarts.registerTheme('tdTheme', tdTheme); // 覆盖默认主题\n this.initChart();\n },\n beforeDestroy() {\n this.chart.dispose()\n this.chart = null\n },\n methods: {\n initChart() {\n console.log(\"$el\", this.$el)\n // 初始化echart\n this.chart = this.$echarts.init(this.$el, 'tdTheme')\n this.chart.setOption(this.options, true)\n }\n }\n}\n</script>\n\n<style>\n</style>\n"]}]}