This repository has been archived on 2024-03-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
timekeeper/components/InfinityTester.vue

50 lines
811 B
Vue
Raw Normal View History

2022-01-04 17:41:36 -05:00
<template>
<div>
2022-01-05 11:19:51 -08:00
<button @click="add">add {{ addIncrement }}</button>
<button @click="stepup">add to the adding</button>
<div>big value = {{ bigvalue }}</div>
2022-01-04 17:41:36 -05:00
</div>
</template>
<script>
// import Decimal from "break_infinity.js";
export default {
name: 'InfinityTester',
2022-01-05 11:19:51 -08:00
data() {
2022-01-04 17:41:36 -05:00
return {
addIncrement: 0,
bigvalue: 0,
}
},
methods: {
2022-01-05 11:19:51 -08:00
add() {
// eslint-disable-next-line no-console
console.log('!')
this.bigvalue = 0
},
2022-01-04 17:41:36 -05:00
2022-01-05 11:19:51 -08:00
stepup() {
this.addIncrement += 100
},
},
2022-01-04 17:41:36 -05:00
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only
<style scoped>
h1, h2 {
font-weight: normal;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>-->