forked from zhurui/management
1 line
16 KiB
JSON
1 line
16 KiB
JSON
|
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-echarts\\components\\ECharts.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-echarts\\components\\ECharts.vue","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport echarts from 'echarts/lib/echarts'\nimport debounce from 'lodash/debounce'\nimport { addListener, removeListener } from 'resize-detector'\n\nconst INIT_TRIGGERS = ['theme', 'initOptions', 'autoresize']\nconst REWATCH_TRIGGERS = ['manualUpdate', 'watchShallow']\n\nexport default {\n props: {\n options: Object,\n theme: [String, Object],\n initOptions: Object,\n group: String,\n autoresize: Boolean,\n watchShallow: Boolean,\n manualUpdate: Boolean\n },\n data () {\n return {\n lastArea: 0\n }\n },\n watch: {\n group (group) {\n this.chart.group = group\n }\n },\n methods: {\n // provide an explicit merge option method\n mergeOptions (options, notMerge, lazyUpdate) {\n if (this.manualUpdate) {\n this.manualOptions = options\n }\n\n if (!this.chart) {\n this.init(options)\n } else {\n this.delegateMethod('setOption', options, notMerge, lazyUpdate)\n }\n },\n // just delegates ECharts methods to Vue component\n // use explicit params to reduce transpiled size for now\n appendData (params) {\n this.delegateMethod('appendData', params)\n },\n resize (options) {\n this.delegateMethod('resize', options)\n },\n dispatchAction (payload) {\n this.delegateMethod('dispatchAction', payload)\n },\n convertToPixel (finder, value) {\n return this.delegateMethod('convertToPixel', finder, value)\n },\n convertFromPixel (finder, value) {\n return this.delegateMethod('convertFromPixel', finder, value)\n },\n containPixel (finder, value) {\n return this.delegateMethod('containPixel', finder, value)\n },\n showLoading (type, options) {\n this.delegateMethod('showLoading', type, options)\n },\n hideLoading () {\n this.delegateMethod('hideLoading')\n },\n getDataURL (options) {\n return this.delegateMethod('getDataURL', options)\n },\n getConnectedDataURL (options) {\n return this.delegateMethod('getConnectedDataURL', options)\n },\n clear () {\n this.delegateMethod('clear')\n },\n dispose () {\n this.delegateMethod('dispose')\n },\n delegateMethod (name, ...args) {\n if (!this.chart) {\n this.init()\n }\n return this.chart[name](...args)\n },\n delegateGet (methodName) {\n if (!this.chart) {\n this.init()\n }\n return this.chart[methodName]()\n },\n getArea () {\n return this.$el.offsetWidth * this.$el.offsetHeight\n },\n init (options) {\n if (this.chart) {\n return\n }\n\n const chart = echarts.init(this.$el, this.theme, this.initOptions)\n\n if (this.group) {\n chart.group = this.group\n }\n\n chart.setOption(options || this.manualOptions || this.options || {}, true)\n\n Object.keys(this.$listeners).forEach(event => {\n const handler = this.$listeners[event]\n\n if (event.indexOf('zr:') === 0) {\n chart.getZr().on(event.slice(3), handler)\n } els
|