Browse Source

style: fix oxfmt 0.65 format drift on main (#8327)

Co-authored-by: EvoX <evox@evomap.ai>
pull/8329/head
俞可 · YU KE 1 month ago
committed by GitHub
parent
commit
dcc601d7d5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      packages/@core/composables/src/use-layout-style.ts
  2. 7
      packages/@core/preferences/src/types.ts
  3. 6
      packages/effects/plugins/src/vxe-table/use-vxe-grid.ts

8
packages/@core/composables/src/use-layout-style.ts

@ -15,9 +15,11 @@ import { useCssVar } from '@vueuse/core';
export function useLayoutContentStyle() {
const contentElement = ref<HTMLDivElement | null>(null);
const overlayStyle = computed(
(): CSSProperties => ({ inset: 0, position: 'absolute', zIndex: 150 }),
);
const overlayStyle = computed((): CSSProperties => ({
inset: 0,
position: 'absolute',
zIndex: 150,
}));
return { contentElement, overlayStyle };
}

7
packages/@core/preferences/src/types.ts

@ -76,10 +76,9 @@ type CustomPreferencesField<
string extends Extract<keyof TCustomPreferences, string>
? AnyCustomPreferencesField
: {
[K in Extract<
keyof TCustomPreferences,
string
>]: TCustomPreferences[K] extends boolean
[
K in Extract<keyof TCustomPreferences, string>
]: TCustomPreferences[K] extends boolean
? CustomPreferencesSwitchField<K>
: TCustomPreferences[K] extends number
? CustomPreferencesNumberField<K>

6
packages/effects/plugins/src/vxe-table/use-vxe-grid.ts

@ -14,9 +14,9 @@ import { VxeGridApi } from './api';
import VxeGrid from './use-vxe-grid.vue';
type FilteredSlots<T> = {
[K in keyof VxeGridSlots<T> as K extends 'form'
? never
: K]: VxeGridSlots<T>[K];
[
K in keyof VxeGridSlots<T> as K extends 'form' ? never : K
]: VxeGridSlots<T>[K];
};
export function useVbenVxeGrid<

Loading…
Cancel
Save