<template>
    <el-form-item label="修改数据属性名称">
      <el-switch v-model="optionModel.keyNameEnabled" @change="handleChange"></el-switch>
    </el-form-item>
<!--  <div></div>-->
</template>

<script>
import i18n from "../../../../../../components/xform/utils/i18n"

export default {
  name: "keyNameEnabled-editor",
  mixins: [i18n],
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
  },
  methods: {
    handleChange(o) {
      o &&
      !this.optionModel.keyName &&
      (this.optionModel.keyName = this.optionModel.name);
    },
  },
}
</script>

<style scoped>

</style>
