forked from mengyxu/noob-components
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
523 B
23 lines
523 B
|
6 months ago
|
<template>
|
||
|
|
<el-row>
|
||
|
|
<NoobButton type="primary" @click="emit('confirm')">{{
|
||
|
|
t("base.confirm")
|
||
|
|
}}</NoobButton>
|
||
|
|
<el-space fill />
|
||
|
|
<NoobButton type="info" @click="emit('cancel')">{{
|
||
|
|
t("base.cancel")
|
||
|
|
}}</NoobButton>
|
||
|
|
</el-row>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
import { NoobButton } from "noob-mengyxu";
|
||
|
|
import { useI18n } from "vue3-i18n";
|
||
|
|
const { t } = useI18n();
|
||
|
|
|
||
|
|
const emit = defineEmits<{
|
||
|
|
(e: "confirm"): void | Promise<void>;
|
||
|
|
(e: "cancel"): void | Promise<void>;
|
||
|
|
}>();
|
||
|
|
</script>
|