wupengfei
2025-03-13 186234cb3833e620aa0ae46212fe337eb2d6e77d
packages/components/src/Menu/QueryMenuView.vue
@@ -10,7 +10,7 @@
          :color="Colors.Info"
          @click="handleCancel"
        >
          取消
          {{ cancelText }}
        </nut-button>
        <nut-button shape="square" type="primary" @click="handleConfirm">确认</nut-button>
      </div>
@@ -25,12 +25,17 @@
  name: 'QueryMenuView',
});
// type Props = {};
type Props = {
  cancelText?: string;
};
// const props = withDefaults(defineProps<Props>(), {});
const props = withDefaults(defineProps<Props>(), {
  cancelText: '取消',
});
const emit = defineEmits<{
  (e: 'close'): void;
  (e: 'confirm'): void;
}>();
function handleCancel() {
@@ -38,7 +43,7 @@
}
function handleConfirm() {
  emit('close');
  emit('confirm');
}
</script>