feat(app-shell): add rail click

This commit is contained in:
Timi
2026-11-14 16:55:25 +08:00
parent dd303e1781
commit f709a8faed
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -90,6 +90,7 @@ const props = withDefaults(defineProps<AppShellProps>(), {
const emit = defineEmits<{
"update:modelValue": [value: AppShellValue];
"change": [value: AppShellValue];
"rail-click": [value: AppShellValue];
}>();
defineSlots<{
@@ -164,6 +165,7 @@ function onSelect(item: AppShellItem): void {
return;
}
emit("rail-click", item.value);
void requestChange(item.value);
}