<template>
  <text>{{ value | mobileFilter }}</text>
</template>

<script>
export default {
  props: {
    value: String
  },
  filters: {
    mobileFilter: function(value = '') {
      if (!value) return '';
      var reg = /^(\d{3})\d*(\d{4})$/;
      return value.replace(/^(\d{3})\d*(\d{4})$/, '$1****$2');
    }
  }
}
</script>
