<template>
  <div>
    <div style="border: 1px #939393 dashed; padding: 10px; margin-bottom: 5px">
      <div
        class="vue-grid-item"
        :style="{
          display: 'flex',
          height: '100px',
          background: editModelList.backgroundColor,
        }"
      >
        <div style="padding: 0px 20px; text-align: center; margin: auto 0">
          <img :src="editModelList.iconPath" alt="" />
        </div>
        <div style="margin: auto 0">
          <div
            :style="{
              color: editModelList.dataNameColor,
              'font-size': editModelList.dataNameFont + 'px',
            }"
          >
            {{ editModelList.dataName }}
          </div>
          <div
            :style="{
              color: editModelList.dataValueColor,
              'font-size': editModelList.dataValueFont + 'px',
              'font-weight': 800,
            }"
          >
            {{ editModelList.dataValue }}
          </div>
        </div>
      </div>
    </div>
    <div style="border: 1px red dashed">
      <div></div>
    </div>
  </div>
</template>
<script>
import { defineComponent, ref, onMounted } from 'vue'
export default defineComponent({
  props: {
    editModellist: Object,
  },
  setup(props, context) {
    context

    const editModelList = ref(props.editModellist)

    onMounted(() => {
      console.log('aaaaaaaaaaaaaa', editModelList)
    })

    return {
      editModelList,
    }
  },
})
</script>
<style lang="less" scoped>
.vue-grid-item {
  border-radius: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
</style>
