This repository has been archived on 2024-03-13. You can view files and clone it, but cannot push or open issues or pull requests.
timekeeper/components/InfinityTester.vue

51 lines
811 B
Vue
Raw Normal View History

2022-01-04 22:41:36 +00:00
<template>
<div>
2022-01-05 19:19:51 +00:00
<button @click="add">add {{ addIncrement }}</button>
<button @click="stepup">add to the adding</button>
<div>big value = {{ bigvalue }}</div>
2022-01-04 22:41:36 +00:00
</div>
</template>
<script>
// import Decimal from "break_infinity.js";
export default {
name: 'InfinityTester',
2022-01-05 19:19:51 +00:00
data() {
2022-01-04 22:41:36 +00:00
return {
addIncrement: 0,
bigvalue: 0,
}
},
methods: {
2022-01-05 19:19:51 +00:00
add() {
// eslint-disable-next-line no-console
console.log('!')
this.bigvalue = 0
},
2022-01-04 22:41:36 +00:00
2022-01-05 19:19:51 +00:00
stepup() {
this.addIncrement += 100
},
},
2022-01-04 22:41:36 +00: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>-->