confirm.vue 511 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
<template>
  <div class="absolute pb-2 text-sm bg-white border rounded-md z-20 w-60 -right-4 top-2">
    <p class="p-4">{{ title }}</p>
    <button class="w-full px-4 py-1 text-left text-blue-600 hover:bg-blue-100 hover:text-blue-900" @click="cancel">
      {{ $t('button.cancel') }}
    </button>
    <button class="w-full px-4 py-1 text-left text-red-600 hover:bg-red-100 hover:text-red-900" @click="confirm">{{ confirmLabel }}</button>
  </div>
</template>

<script lang="ts" src="./confirm.component.ts" />