<template>
  <div class="page-index">
    <div class="cpt-title">确认框 eagle-confirm</div>
    <div class="cpt-content">
      <eagle-confirm @confirm="handleConfirm" @cancel="handleCancel">
        <el-button size="small">操作</el-button>
      </eagle-confirm>
    </div>
    <div class="cpt-title">图片查看 eagle-image-view</div>
    <div class="cpt-content">
      <eagle-image-view value="http://img5.imgtn.bdimg.com/it/u=2064073397,779040426&fm=26&gp=0.jpg"></eagle-image-view>
    </div>
  </div>
</template>

<script>
export default {
  name: 'home',
  methods: {
    handleConfirm() {
      alert('确认')
    },
    handleCancel() {
      alert('取消')
    }
  }
}
</script>

<style>
.page-index {
  padding: 10px;
}
.cpt-title {
  padding: 5px 10px;
  margin-bottom: 10px;
  border-left: 4px solid deepskyblue;
  font-size: 16px;
  font-weight: bold;
}
.cpt-content {
  padding: 5px 15px;
  margin-bottom: 15px;
}
</style>
