import emitter from "../../../../../../components/xform/utils/emitter";

export default {
  mixins: [emitter],
  created() {
  },
  methods: {
    getEventButtonName(funStr) {
      let name = this.i18nt("designer.setting.addEventHandler");
      if(funStr) name = "已维护"
      return name;
    },
    editEventHandler(eventName, eventParams, option) {
      this.dispatch(
        "SettingPanel",
        "editEventHandler",
        [eventName, [...eventParams]],
        option
      );
    },
  },
};
