diff --git a/src/runtime/components/ContextMenu.vue b/src/runtime/components/ContextMenu.vue index f989d1af..c0a7060c 100644 --- a/src/runtime/components/ContextMenu.vue +++ b/src/runtime/components/ContextMenu.vue @@ -51,6 +51,12 @@ export interface ContextMenuProps extends Omit { * @defaultValue appConfig.ui.icons.loading */ loadingIcon?: string + /** + * The icon displayed when the item is an external link. + * Set to `false` to hide the external icon. + * @defaultValue appConfig.ui.icons.external + */ + externalIcon?: boolean | string /** The content of the menu. */ content?: Omit /** @@ -152,6 +158,7 @@ import UContextMenuContent from './ContextMenuContent.vue' const props = withDefaults(defineProps>(), { portal: true, modal: true, + externalIcon: true, labelKey: 'label' }) const emits = defineEmits() @@ -182,6 +189,7 @@ const ui = computed(() => contextMenu({ :label-key="labelKey" :checked-icon="checkedIcon" :loading-icon="loadingIcon" + :external-icon="externalIcon" >