changes
This commit is contained in:
@@ -2,43 +2,48 @@
|
||||
<div>
|
||||
<div class="field is-grouped">
|
||||
<div
|
||||
class="control is-expanded pr-3"
|
||||
class="control is-expanded"
|
||||
v-html="content"
|
||||
></div>
|
||||
<div class="control">
|
||||
<SvgIcon v-bind="{ name: 'error.svg', type: 'danger', size: 24 }"></SvgIcon>
|
||||
<Icon
|
||||
name="material-symbols:cancel-rounded"
|
||||
:size="24"
|
||||
class="has-text-danger"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<p class="border-bottom mt-3 mb-5"></p>
|
||||
<div class="mt-3 mb-5"></div>
|
||||
<div class="field is-grouped">
|
||||
<div class="control is-expanded">
|
||||
<button
|
||||
class="button is-danger has-text-white"
|
||||
class="button is-danger"
|
||||
@click="cancel()"
|
||||
>
|
||||
Đóng
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
class="control"
|
||||
v-if="duration"
|
||||
class="control"
|
||||
>
|
||||
<CountDown
|
||||
v-bind="{ duration: duration }"
|
||||
:duration="duration"
|
||||
@close="cancel()"
|
||||
></CountDown>
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { useStore } from "@/stores/index";
|
||||
const store = useStore();
|
||||
var props = defineProps({
|
||||
const props = defineProps({
|
||||
content: String,
|
||||
duration: Number,
|
||||
});
|
||||
|
||||
const emit = defineEmits(["close"]);
|
||||
|
||||
function cancel() {
|
||||
this.$emit("close");
|
||||
emit("close");
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user