<template>
  <div>
    <el-form-item :label="i18nt('暂存唯一编码')">
      <el-input
        type="text"
        v-model="optionModel.tempStorageCode"
        placeholder="默认表单模板编码"
      ></el-input>
    </el-form-item>
    <el-form-item label="暂存回填完成回调" label-width="150px">
      <a
        href="javascript:void(0);"
        class="a-link link-oneLind"
        @click="editEventHandler('tempStorageConfirm', chooseConfirmParams)"
      >
        <span>{{ optionModel.tempStorageConfirm }}</span>
        <i class="el-icon-edit"></i>
      </a>
    </el-form-item>
  </div>
</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: "tempStorage-editor",
  mixins: [i18n, eventMixin],
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
  },
  data() {
    return {
      chooseConfirmParams: ["dataId", "formCode", "tempStorageData"],
    };
  },
};
</script>

<style scoped></style>
