BlackTip.vue 747 字节
Newer Older
Z
Zachary 已提交
1 2 3 4 5 6 7
<template>
  <div
    class="mod_popup_tips"
    id="popup"
    style="z-index: 2147483647; left: 646px; top: 326px"
    :style="{ display: ifShow ? '' : 'none' }"
  >
Z
Zachary 已提交
8
    <i :class="processIcon()"></i>
Z
Zachary 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22
    <h2 class="popup_tips__tit">{{ tip }}</h2>
  </div>
</template>

<script>
export default {
  props: {
    ifShow: {
      default: false,
    },
    tip: {
      type: String,
      default: "",
    },
Z
Zachary 已提交
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    // 0: tip, 1: warn
    iconType: { default: 0 },
  },
  methods: {
    processIcon() {
      switch (this.iconType) {
        case 0:
          return "popup_tips__icon";
          break;
        case 1:
          return "popup_tips__icon_warn";
          break;
        default:
          return "";
      }
    },
Z
Zachary 已提交
39 40 41
  },
};
</script>