1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <template> <div class="snotifyToast__buttons"> <button type="button" v-for="button in buttons" :class="{'snotifyToast__buttons--bold': button.bold}" @click="button.action && button.action(id, value)"> {{button.text}} </button> </div> </template> <script> export default { props: ['buttons', 'value', 'id'] } </script> |