<template>
  <el-form-item label="onAppendButtonClick" label-width="150px">
    <a href="javascript:void(0);" class="a-link link-oneLind" @click="editEventHandler('onAppendButtonClick', eventParams)">
      <span>{{ optionModel.onAppendButtonClick }}</span>
      <i class="el-icon-edit"></i>
    </a>
  </el-form-item>
</template>

<script>
import i18n from "../../../../../../components/xform/utils/i18n";
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";

export default {
  name: "onAppendButtonClick-editor",
  mixins: [i18n, eventMixin],
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
  },
  data() {
    return {
      eventParams: ["dataId", "formCode","rowData", "rowIndex"],
    };
  },
  computed:{
    /*eventParams(){
      let eventParams = ["dataId", "formCode"];
      if (this.optionModel.rowFlag) {
        eventParams.push("row", "index");
      }
      return eventParams;
    }*/
  }
};
</script>

<style scoped></style>
