Skip to content

Commit 99c7fd7

Browse files
committed
fix: code lint
1 parent 2828e7a commit 99c7fd7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

docs/.vitepress/components/preview-group.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script setup lang="ts">
2+
import type { SetupContext } from 'vue';
3+
24
import { computed, ref, useSlots } from 'vue';
35
46
import { VbenTooltip } from '@vben-core/shadcn-ui';
@@ -25,7 +27,7 @@ const props = withDefaults(
2527
2628
const open = ref(false);
2729
28-
const slots = useSlots();
30+
const slots: SetupContext['slots'] = useSlots();
2931
3032
const tabs = computed(() => {
3133
return props.files.map((file) => {

packages/@core/ui-kit/menu-ui/src/components/menu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts" setup>
22
import type { UseResizeObserverReturn } from '@vueuse/core';
33
4-
import type { VNodeArrayChildren } from 'vue';
4+
import type { SetupContext, VNodeArrayChildren } from 'vue';
55
66
import type {
77
MenuItemClicked,
@@ -55,7 +55,7 @@ const emit = defineEmits<{
5555
5656
const { b, is } = useNamespace('menu');
5757
const menuStyle = useMenuStyle();
58-
const slots = useSlots();
58+
const slots: SetupContext['slots'] = useSlots();
5959
const menu = ref<HTMLUListElement>();
6060
const sliceIndex = ref(-1);
6161
const openedMenus = ref<MenuProvider['openedMenus']>(

playground/src/views/examples/vxe-table/form.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const formOptions: VbenFormProps = {
6161
},
6262
{
6363
component: 'RangePicker',
64-
defaultValue: [dayjs().subtract(-7, 'days'), dayjs()],
64+
defaultValue: [dayjs().subtract(7, 'days'), dayjs()],
6565
fieldName: 'date',
6666
label: 'Date',
6767
},

0 commit comments

Comments
 (0)