- {{scope.row[item.prop]?scope.row[item.prop].replace(/(?<=.{8})./g, '*'):'-'}}
+ {{scope.row[item.prop]?scope.row[item.prop].replace(reg, '*'):'-'}}
@@ -126,7 +126,8 @@ export default {
minWidth: 100,
show: true
}
- ]
+ ],
+ reg: new RegExp("(?<=.{8}).", 'g')
}
},
methods: {