This commit is contained in:
dap
2025-01-01 12:57:20 +08:00
251 changed files with 619 additions and 959 deletions

View File

@@ -1,5 +1,5 @@
import type { VisibleDomRect } from '@vben-core/shared/utils';
import type { CSSProperties } from 'vue';
import { computed, onMounted, onUnmounted, ref } from 'vue';
import {
CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT,
@@ -7,12 +7,9 @@ import {
CSS_VARIABLE_LAYOUT_FOOTER_HEIGHT,
CSS_VARIABLE_LAYOUT_HEADER_HEIGHT,
} from '@vben-core/shared/constants';
import {
getElementVisibleRect,
type VisibleDomRect,
} from '@vben-core/shared/utils';
import { getElementVisibleRect } from '@vben-core/shared/utils';
import { useCssVar, useDebounceFn } from '@vueuse/core';
import { computed, onMounted, onUnmounted, ref } from 'vue';
/**
* @zh_CN content style

View File

@@ -1,10 +1,10 @@
import type { ComputedRef, Ref } from 'vue';
import { computed, getCurrentInstance, unref, useAttrs, useSlots } from 'vue';
import {
getFirstNonNullOrUndefined,
kebabToCamelCase,
} from '@vben-core/shared/utils';
import { computed, getCurrentInstance, unref, useAttrs, useSlots } from 'vue';
/**
* 依次从插槽、attrs、props、state 中获取值

View File

@@ -1,8 +1,9 @@
import { computed, ref } from 'vue';
import type { Locale } from './messages';
import { createSharedComposable } from '@vueuse/core';
import { computed, ref } from 'vue';
import { getMessages, type Locale } from './messages';
import { getMessages } from './messages';
export const useSimpleLocale = createSharedComposable(() => {
const currentLocale = ref<Locale>('zh-CN');