Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/babel-loader/702bb84a89d5dd8a763c7a5174535919.json
2024-12-05 09:33:18 +08:00

1 line
3.4 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\\PieChart.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\components\\Echarts\\PieChart.vue","mtime":1732871026468},{"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\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: 'item',\n formatter: '{a} <br/>{b} : {c} ({d}%)'\n },\n legend: {\n left: 'center',\n bottom: '10',\n data: ['Industries', 'Technology', 'Forex', 'Gold', 'Forecasts']\n },\n calculable: true,\n series: [{\n name: 'WEEKLY WRITE ARTICLES',\n type: 'pie',\n roseType: 'radius',\n radius: [15, 95],\n center: ['50%', '38%'],\n data: [{\n value: 320,\n name: 'Industries'\n }, {\n value: 240,\n name: 'Technology'\n }, {\n value: 149,\n name: 'Forex'\n }, {\n value: 100,\n name: 'Gold'\n }, {\n value: 59,\n name: 'Forecasts'\n }],\n animationEasing: 'cubicInOut',\n animationDuration: 2600\n }]\n });\n }\n }\n};",null]}