feat(app-shell): add rail click
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user