2
0
mirror of https://github.com/frappe/books.git synced 2024-12-27 20:45:04 +00:00
books/ui/components/controls/Int.vue

14 lines
248 B
Vue
Raw Normal View History

2018-06-27 14:38:27 +00:00
<script>
import Float from './Float';
export default {
extends: Float,
methods: {
parse(value) {
const parsedValue = parseInt(value);
return isNaN(parsedValue) ? 0 : parsedValue;
}
}
}
</script>