GITLAB

frontend / freight-ma

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • freight-ma
  • components
  • render
  • render-mobile.vue
  • c03c7b99   feat: 初始化项目 Browse Code »
    wuxiangrui
    2024-06-27 14:55:29 +0800  
render-mobile.vue 333 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<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>