<template>
  <div class="style-ylabel">
    <div class="setting-title" @click="show = !show">
      <div>代码设置</div>
      <e class="el-icon-arrow-right" v-show="!show"></e>
      <e class="el-icon-arrow-down" v-show="show"></e>
    </div>
    <el-form size="mini" label-width="35%" v-show="show">
      <el-form-item label="最大化编辑">
        <el-switch v-model="isBig"></el-switch>
      </el-form-item>
      <b-ace-editor
        v-model="option.code"
        height="240"
        lang="sql"
        wrap
        snippets
        ref="editor"
      ></b-ace-editor>
    </el-form>
    <vxe-modal
      v-model="isBig"
      width="80%"
      title="编辑"
      heith="500px"
      show-footer
      show-zoom
      resize
      remember
    >
      <b-ace-editor
        v-model="option.code"
        height="500"
        lang="sql"
        wrap
        snippets
        ref="editor"
      ></b-ace-editor>
    </vxe-modal>
  </div>
</template>
<script>
export default {
  props: ["option"],
  data() {
    return {
      show: false,
      isBig: false,
    };
  },
  methods: {},
};
</script>
<style lang="scss">
</style>
