mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[improvement] update eslint config (#2288)
This commit is contained in:
@@ -85,7 +85,7 @@ export default create({
|
||||
methods: {
|
||||
// filter illegal characters
|
||||
format(value) {
|
||||
value = String(value).replace(/[^0-9\.-]/g, '');
|
||||
value = String(value).replace(/[^0-9.-]/g, '');
|
||||
return value === '' ? 0 : this.integer ? Math.floor(value) : +value;
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user