fix: 优化代码格式,合并类型声明

This commit is contained in:
xingyu4j
2026-07-13 18:30:19 +08:00
parent 819ddd4ebb
commit 91a2e80be8
8 changed files with 11 additions and 26 deletions

3
.github/config.yml vendored
View File

@@ -21,12 +21,10 @@ newPRWelcomeComment: |
firstPRMergeComment: >
Thanks for your contribution! 🎉🎉🎉
# Comment to be posted to on first time issues
newIssueWelcomeComment: >
Thanks for opening your first issue! Be sure to follow the issue template and provide every bit of information to help the developers!
# *OPTIONAL* default titles to check against for lack of descriptiveness
# MUST BE ALL LOWERCASE
requestInfoDefaultTitles:
@@ -36,4 +34,3 @@ requestInfoDefaultTitles:
# *Required* Comment to reply with
requestInfoReplyComment: >
Thanks for filing this issue/PR! It would be much appreciated if you could provide us with more information so we can effectively analyze the situation in context.

View File

@@ -80,10 +80,7 @@ export type PromptProps<T = any> = {
component?: Component;
componentProps?: Recordable<any>;
componentSlots?:
| (() => any)
| Recordable<unknown>
| VNode
| VNodeArrayChildren;
(() => any) | Recordable<unknown> | VNode | VNodeArrayChildren;
defaultValue?: T;
modelPropName?: string;
} & Omit<AlertProps, 'beforeClose'>;

View File

@@ -9,7 +9,7 @@ const items = [
];
</script>
<template>
<div style="display: flex; flex-direction: column; gap: 16px">
<div class="flex gap-4 flex-col">
<VbenDescriptions
size="small"
bordered

View File

@@ -1,7 +1,9 @@
<script lang="ts" setup>
import type { DescriptionsItemType } from '@vben/common-ui';
import { VbenDescriptions } from '@vben/common-ui';
const items = [
const items: DescriptionsItemType[] = [
{ content: '1', label: 'A' },
{ content: '2span: 2', label: 'B', span: 2 },
{ content: '3', label: 'C' },

View File

@@ -1,7 +1,9 @@
<script lang="ts" setup>
import type { DescriptionsItemType } from '@vben/common-ui';
import { VbenDescriptions } from '@vben/common-ui';
const items = [
const items: DescriptionsItemType[] = [
{ content: 'Vben', label: '用户名' },
{ content: '13800138000', label: '手机号' },
{ content: '中国 · 杭州', label: '居住地' },

View File

@@ -66,10 +66,7 @@ export type PromptProps<T = any> = {
component?: Component;
componentProps?: Recordable<any>;
componentSlots?:
| (() => any)
| Recordable<unknown>
| VNode
| VNodeArrayChildren;
(() => any) | Recordable<unknown> | VNode | VNodeArrayChildren;
defaultValue?: T;
modelPropName?: string;
} & Omit<AlertProps, 'beforeClose'>;

View File

@@ -341,12 +341,7 @@ interface RouteMeta {
* Badge color
*/
badgeVariants?:
| 'default'
| 'destructive'
| 'primary'
| 'success'
| 'warning'
| string;
'default' | 'destructive' | 'primary' | 'success' | 'warning' | string;
/**
* The children of the current route are not displayed in the menu
* @default false

View File

@@ -334,12 +334,7 @@ interface RouteMeta {
* 徽标颜色
*/
badgeVariants?:
| 'default'
| 'destructive'
| 'primary'
| 'success'
| 'warning'
| string;
'default' | 'destructive' | 'primary' | 'success' | 'warning' | string;
/**
* 路由的完整路径作为key默认true
*/