Newer
Older
smart-metering-front / src / views / business / schedule / task / components / processNodeAdd.vue
<script lang="ts" setup name="ProcessNodeAdd">
const emit = defineEmits(['click'])
const add = () => {
  emit('click')
}
</script>

<template>
  <div class="process-node" @click="add">
    <div class="add">
      <el-icon class="add-icon">
        <plus />
      </el-icon>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.process-node {
  // display: inline-block;
  width: 280px;
  height: 215px;
  border: 1px dashed #e0e0e0;
  padding: 5px 15px;
  border-radius: 5px;
  background-color: #fbfbfb;

  &:hover {
    cursor: pointer;
    background-color: #f5f5f5;
  }

  .add {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    .add-icon {
      vertical-align: middle;
      font-size: 100px;
      color: #999;
    }
  }
}
</style>