1 line
3.9 KiB
JSON
1 line
3.9 KiB
JSON
{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\components\\Echarts\\BarChart.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\components\\Echarts\\BarChart.vue","mtime":1732871026459},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _echarts = _interopRequireDefault(require(\"echarts\"));\nvar _utils = require(\"@/utils\");\n//\n//\n//\n//\n\nrequire('echarts/theme/macarons'); // echarts theme\n\nvar animationDuration = 6000;\nvar _default = exports.default = {\n props: {\n className: {\n type: String,\n default: 'chart'\n },\n width: {\n type: String,\n default: '100%'\n },\n height: {\n type: String,\n default: '300px'\n }\n },\n data: function data() {\n return {\n chart: null\n };\n },\n mounted: function mounted() {\n var _this = this;\n this.initChart();\n this.__resizeHandler = (0, _utils.debounce)(function () {\n if (_this.chart) {\n _this.chart.resize();\n }\n }, 100);\n window.addEventListener('resize', this.__resizeHandler);\n },\n beforeDestroy: function beforeDestroy() {\n if (!this.chart) {\n return;\n }\n window.removeEventListener('resize', this.__resizeHandler);\n this.chart.dispose();\n this.chart = null;\n },\n methods: {\n initChart: function initChart() {\n this.chart = _echarts.default.init(this.$el, 'macarons');\n this.chart.setOption({\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n // 坐标轴指示器,坐标轴触发有效\n type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'\n }\n },\n grid: {\n top: 10,\n left: '2%',\n right: '2%',\n bottom: '3%',\n containLabel: true\n },\n xAxis: [{\n type: 'category',\n data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],\n axisTick: {\n alignWithLabel: true\n }\n }],\n yAxis: [{\n type: 'value',\n axisTick: {\n show: false\n }\n }],\n series: [{\n name: 'pageA',\n type: 'bar',\n stack: 'vistors',\n barWidth: '60%',\n data: [79, 52, 200, 334, 390, 330, 220],\n animationDuration: animationDuration\n }, {\n name: 'pageB',\n type: 'bar',\n stack: 'vistors',\n barWidth: '60%',\n data: [80, 52, 200, 334, 390, 330, 220],\n animationDuration: animationDuration\n }, {\n name: 'pageC',\n type: 'bar',\n stack: 'vistors',\n barWidth: '60%',\n data: [30, 52, 200, 334, 390, 330, 220],\n animationDuration: animationDuration\n }]\n });\n }\n }\n};",null]} |