diff --git a/src/components/custom/button-icon.vue b/src/components/custom/button-icon.vue index c8ebf7bc..d7e0b5cb 100644 --- a/src/components/custom/button-icon.vue +++ b/src/components/custom/button-icon.vue @@ -19,6 +19,8 @@ interface Props { tooltipContent?: string; /** Tooltip placement */ tooltipPlacement?: PopoverPlacement; + /** Popconfirm content */ + popconfirmContent?: string; zIndex?: number; quaternary?: boolean; [key: string]: any; @@ -30,10 +32,17 @@ const props = withDefaults(defineProps(), { localIcon: '', tooltipContent: '', tooltipPlacement: 'bottom', + popconfirmContent: '', zIndex: 98, quaternary: true }); +interface Emits { + (e: 'positiveClick'): void; +} + +const emit = defineEmits(); + const DEFAULT_CLASS = 'h-[36px] text-icon'; const attrs: ButtonProps = useAttrs(); @@ -41,19 +50,33 @@ const attrs: ButtonProps = useAttrs(); const quaternary = computed(() => { return !(attrs.text || attrs.dashed || attrs.ghost) && props.quaternary; }); + +const handlePositiveClick = () => { + emit('positiveClick'); +};