We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea2bc1b commit c358330Copy full SHA for c358330
src/components/ECharts.vue
@@ -11,7 +11,7 @@
11
12
<script>
13
import echarts from 'echarts/lib/echarts'
14
-import debounce from 'lodash/debounce'
+import _ from 'lodash'
15
import { addListener, removeListener } from 'resize-detector'
16
17
// enumerating ECharts events for now
@@ -165,7 +165,7 @@ export default {
165
166
if (this.autoresize) {
167
this.lastArea = this.getArea()
168
- this.__resizeHandler = debounce(() => {
+ this.__resizeHandler = _.debounce(() => {
169
if (this.lastArea === 0) {
170
// emulate initial render for initially hidden charts
171
this.mergeOptions({}, true)
0 commit comments