feat(project): add menu split config

This commit is contained in:
vben
2024-05-22 22:38:01 +08:00
parent d1cdea430e
commit a0423eb9ba
12 changed files with 101 additions and 53 deletions

View File

@@ -1,26 +0,0 @@
<script setup lang="ts">
import type { SelectListItem } from '@vben/types';
import { $t } from '@vben/locales';
import ToggleItem from '../toggle-item.vue';
defineOptions({
name: 'PreferenceNavigationConfig',
});
defineProps<{ disabled: boolean }>();
const navigationStyle = defineModel<string>('navigationStyle');
const stylesItems: SelectListItem[] = [
{ label: $t('preference.normal'), value: 'normal' },
{ label: $t('preference.rounded'), value: 'rounded' },
];
</script>
<template>
<ToggleItem v-model="navigationStyle" :items="stylesItems" disabled>
{{ $t('preference.navigation-style') }}
</ToggleItem>
</template>