<template>
  <div>
    <div class="title">
      <span contenteditable="true" @blur="edit('title', $event)">
        {{ data.title }}
      </span>
    </div>
    <div class="subTitle">
      <span contenteditable="true" @blur="edit('subTitle', $event)">
        {{ data.subTitle }}
      </span>
    </div>
    <div class="pageInfo" contenteditable="true" @blur="edit('info', $event)">{{ data.info }}</div>
    <div class="image">
      <UploadEl :data="{icon:data.img}"/>
    </div>
  </div>
</template>

<script>
import UploadEl from "@/components/editEl/uploadEl.vue";

let map = null
export default {
  name: 'PlatformArchitecture',
  components: {
    UploadEl,
  },
  props: ['data'],
  data() {
    return {}
  },
  mounted() {
  },
  methods: {
    edit(key, e) {
      this.$props.data[key] = e.target.innerText
    },
  }
}
</script>

<style lang="less" scoped>
@import "~@/style.less";

.title {
  padding-top: 4.2vw;
  width: 100%;
  text-align: center;
  font-size: 2.5vw;
  letter-spacing: 4px;
  color: #0003;
}

.subTitle {
  padding-top: 0.4vw;
  width: 100%;
  text-align: center;
  font-size: 1.9vw;
  letter-spacing: 2px;
  color: #000;
}

.image {
  width: 65vw;
  height: 33.3vw;
  display: inline-block;
  margin: 4vw 0 6vw 0;
}

.pageInfo {
  width: 63vw;
  margin-top: 0.9vw;
  display: inline-block;
  color: #6666;
  font-size: 1.2vw;
  line-height: 2.2vw;
  letter-spacing: 2.8px;
}
</style>
