ChartMixins.js 229 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
export const ChartEventMixins = {
  methods: {
    handleClick(event, chart) {
      this.handleEvent('click', event, chart)
    },
    handleEvent(eventName, event, chart) {
      this.$emit(eventName, event, chart)
    },
  }
}