wupengfei
2025-02-17 7ab49073679e738a11c33d0b094fe7308e83fd51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
  <div class="query-menu-view">
    <slot></slot>
    <div class="bole-menu-item__footer">
      <div class="bole-menu-item__button-wrapper">
        <nut-button
          shape="square"
          class="dark-btn"
          type="primary"
          :color="Colors.Info"
          @click="handleCancel"
        >
          {{ cancelText }}
        </nut-button>
        <nut-button shape="square" type="primary" @click="handleConfirm">确认</nut-button>
      </div>
    </div>
  </div>
</template>
 
<script setup lang="ts">
import { Colors } from '@12333/constants';
 
defineOptions({
  name: 'QueryMenuView',
});
 
type Props = {
  cancelText?: string;
};
 
const props = withDefaults(defineProps<Props>(), {
  cancelText: '取消',
});
 
const emit = defineEmits<{
  (e: 'close'): void;
  (e: 'confirm'): void;
}>();
 
function handleCancel() {
  emit('close');
}
 
function handleConfirm() {
  emit('confirm');
}
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
</style>