<template>
  <div class="default-page">
    <div class="center-box">
      <div class="imgbox">
        <img src="../../assets/images/newProductList/default.png" />
      </div>
      <p>{{tips}}</p>
      <div class="default-page-btn" @click="$emit('to-add')">去添加</div>
    </div>
  </div>
</template>

<script>
// 
export default {
  props:['tips']
};
</script>

<style lang="less" scoped>
// 缺省页
.default-page {
  .center-box {
    margin: 0 auto;
    margin-top: 218px;
    width: 132px;
    .imgbox {
      width: 132px;
      height: 116px;
      img {
        width: 100%;
      }
    }
    p {
      text-align: center;
      padding-top: 18px;
      color: #b6b7b9;
      padding-bottom: 18px;
    }
  }
}
.default-page-btn {
  width: 100px;
  height: 36px;
  cursor: pointer;
  margin: 0 auto;
  background: rgba(68, 100, 235, 1);
  border-radius: 4px;
  color: white;
  text-align: center;
  line-height: 36px;
}
</style>
