ruoyi-plus-vben5/packages/business/widgets/src/preferences/blocks/layout/tabbar.vue

24 lines
596 B
Vue
Raw Normal View History

2024-05-19 21:20:42 +08:00
<script setup lang="ts">
import { $t } from '@vben/locales';
import SwitchItem from '../switch-item.vue';
defineOptions({
name: 'PreferenceTabsConfig',
});
defineProps<{ disabled?: boolean }>();
2024-06-09 12:53:38 +08:00
const tabbarEnable = defineModel<boolean>('tabbarEnable');
const tabbarShowIcon = defineModel<boolean>('tabbarShowIcon');
2024-05-19 21:20:42 +08:00
</script>
<template>
2024-06-09 12:53:38 +08:00
<SwitchItem v-model="tabbarEnable" :disabled="disabled">
2024-06-29 15:41:10 +08:00
{{ $t('preferences.tabbar.enable') }}
2024-05-19 21:20:42 +08:00
</SwitchItem>
2024-06-09 12:53:38 +08:00
<SwitchItem v-model="tabbarShowIcon" :disabled="!tabbarEnable">
2024-06-29 15:41:10 +08:00
{{ $t('preferences.tabbar.icon') }}
2024-05-19 21:20:42 +08:00
</SwitchItem>
</template>