Merge branch 'main' into refactor/router-redirect

This commit is contained in:
Evan
2026-06-30 14:26:23 +08:00
committed by GitHub
12 changed files with 34 additions and 12 deletions

View File

@@ -1,4 +1,7 @@
import { appCopyrightPreferences, defineOverridesPreferences } from '@vben/preferences';
import {
appCopyrightPreferences,
defineOverridesPreferences,
} from '@vben/preferences';
/**
* @description 项目配置文件

View File

@@ -1,4 +1,7 @@
import { appCopyrightPreferences, defineOverridesPreferences } from '@vben/preferences';
import {
appCopyrightPreferences,
defineOverridesPreferences,
} from '@vben/preferences';
/**
* @description 项目配置文件

View File

@@ -1,4 +1,7 @@
import { appCopyrightPreferences, defineOverridesPreferences } from '@vben/preferences';
import {
appCopyrightPreferences,
defineOverridesPreferences,
} from '@vben/preferences';
/**
* @description 项目配置文件

View File

@@ -1,4 +1,7 @@
import { appCopyrightPreferences, defineOverridesPreferences } from '@vben/preferences';
import {
appCopyrightPreferences,
defineOverridesPreferences,
} from '@vben/preferences';
/**
* @description 项目配置文件

View File

@@ -27,6 +27,7 @@
"execa",
"iconify",
"iconoir",
"indexeddb",
"intlify",
"isequal",
"jspm",
@@ -36,6 +37,7 @@
"minw",
"mkdist",
"mockjs",
"myapp",
"naiveui",
"napi",
"nocheck",

View File

@@ -243,7 +243,6 @@ function handleClosed() {
cn(
'inset-x-0 top-[10vh] mx-auto flex w-130 flex-col p-0',
shouldFullscreen ? 'rounded-none' : 'rounded-(--radius)',
modalClass,
{
'border border-border': bordered,
'shadow-3xl': !bordered,
@@ -255,6 +254,7 @@ function handleClosed() {
'duration-300': !dragging,
hidden: isClosed,
},
modalClass,
)
"
:force-mount="getForceMount"

View File

@@ -31,8 +31,10 @@ const props = withDefaults(defineProps<Props>(), {
const emits = defineEmits<{ 'update:value': [any, string] }>();
const modelValue = defineModel('value', {
default: {} as Recordable<CollapsibleParamSchema['defaultValue']>,
const modelValue = defineModel<
Recordable<CollapsibleParamSchema['defaultValue']>
>('value', {
default: () => ({}),
});
const visibleRefs = useTemplateRef('visibleRefs');

View File

@@ -30,7 +30,7 @@ const delegatedProps = computed(() => {
const forwarded = useForwardPropsEmits(delegatedProps, emits);
const open = defineModel('open', { default: true });
const open = defineModel<boolean>('open', { default: true });
function toggle() {
open.value = !open.value;

View File

@@ -7,7 +7,7 @@ const props = defineProps<{
}>();
// 控制箭头展开/收起状态
const collapsed = defineModel({ default: false });
const collapsed = defineModel<boolean>({ default: false });
</script>
<template>

View File

@@ -23,7 +23,9 @@ const sidebarDraggable = defineModel<boolean>('sidebarDraggable');
const sidebarCollapsed = defineModel<boolean>('sidebarCollapsed');
const sidebarExpandOnHover = defineModel<boolean>('sidebarExpandOnHover');
const sidebarButtons = defineModel<string[]>('sidebarButtons', { default: [] });
const sidebarButtons = defineModel<string[]>('sidebarButtons', {
default: () => [],
});
const sidebarCollapsedButton = defineModel<boolean>('sidebarCollapsedButton');
const sidebarFixedButton = defineModel<boolean>('sidebarFixedButton');

View File

@@ -28,6 +28,10 @@ const appCopyrightPreferences = {
icpLink: 'https://beian.miit.gov.cn/',
} satisfies DeepPartial<Preferences>['copyright'];
export { appCopyrightPreferences, defineOverridesPreferences, definePreferencesExtension };
export {
appCopyrightPreferences,
defineOverridesPreferences,
definePreferencesExtension,
};
export * from '@vben-core/preferences';

View File

@@ -3,7 +3,7 @@ import { Input, Select } from 'antdv-next';
const emit = defineEmits(['blur', 'change']);
const modelValue = defineModel<[string, string]>({
const modelValue = defineModel<[string | undefined, string | undefined]>({
default: () => [undefined, undefined],
});