MMSI-国籍/国旗一览表

前言

背景

最近公司后端出现了使用MMSI匹配船舶国籍数据的错误问题,原因是参考的MMSI对照表不全。因此我在这重新开发整理了一份列表,采用vite+Vue3打造。

名词解释

MID

Maritime identification digits, 表示船舶国籍代码,一般由MMSI前三位构成。

源码

wangxinlei1997/mid-data-set

直链

MMSI对照表

热区扩大-Vue组件

废话不多说直接上代码

<template>
  <view class="parent">
    <slot></slot>
    <view :class="['expand',area]" @click.stop="emit"></view>
  </view>
</template>

<script>
  export default {
    name: "ExpandClickArea",
    props: {
      area: {
        //small,normal,big,large
        default: "normal",
        type: String,
      },
    },
    methods: {
      emit() {
        this.$emit("expandOnClick");
      },
    },
  };
</script>

<style scoped>
  .parent {
    position: relative;
    overflow-x: visible;
    overflow: visible;
  }
  .expand {
    position: absolute;
  }
  .normal {
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
  }
  .small {
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
  }
  .big {
    top: -15px;
    right: -15px;
    bottom: -15px;
    left: -15px;
  }
  .large {
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
  }
</style>