12345678910111213141516171819 |
- import Vue from 'vue';
- import VueMask from 'v-mask';
- Vue.use(VueMask);
- // 身份证
- const idCard = [...Array.from({ length: 17 }).fill(/\d/), /(\d|X|x)/];
- const phone = [/1/, ...Array.from({ length: 10 }).fill(/\d/)];
- const bankCard = Array.from({ length: 20 }).fill(/\d/);
- export default function (c, i) {
- i('mask', {
- idCard,
- phone,
- bankCard,
- });
- }
|