<template>
  <div class="tips">
    <span v-if="status == 1">×</span>
    <span v-if="status == 0" class="success">√</span>
    {{ text }}
  </div>
</template>

<script>
export default {
  props: {
    text: String,
    status: Number
  },
}
</script>

<style scoped lang="scss">
.tips {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  span {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: #ff4d4f;
    font-size: 12px;
    border-radius: 50%;
    margin-right: 10px;
  }
  .success {
    background: #52c41a;
  }
}

</style>