Skip to content

Commit 7849d3a

Browse files
committed
deps: 更新依赖项
1 parent f8071cf commit 7849d3a

5 files changed

Lines changed: 102 additions & 74 deletions

File tree

apps/docs/src/components/demo/illustrations/api.zh-Hans.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,18 @@
6262
{
6363
"kind": "function",
6464
"name": "createGallery",
65-
"summary": "创建指定名称的插图集\n\n",
66-
"type": "function createGallery(name: 'bro' | 'undraw'): Gallery",
65+
"summary": "以指定名称的插画集为基础创建新的插画集\n\n",
66+
"type": "function createGallery(base: 'bro' | 'undraw', optional?: Partial<Gallery>): Gallery",
6767
"params": [
6868
{
69-
"name": "name",
69+
"name": "base",
70+
"summary": "基础插画集名称;\n\n",
7071
"type": "\"bro\" | \"undraw\""
72+
},
73+
{
74+
"name": "optional",
75+
"summary": "可选的部分插画集,用于覆盖基础插画集的部分内容;\n\n",
76+
"type": "Partial<Gallery> | undefined"
7177
}
7278
],
7379
"return": {

packages/admin/src/components/sex.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ export function localeSexes(l: Locale) {
2121
]);
2222
}
2323

24-
type P = Choice.Props<Sex>;
25-
26-
interface SProps extends Omit<Extract<P, { multiple?: false }>, 'options'> {}
27-
28-
interface MProps extends Omit<Extract<P, { multiple: true }>, 'options'> {}
29-
30-
export type SexSelectorProps = SProps | MProps;
24+
export type SexSelectorProps = Omit<Choice.SingleProps<Sex>, 'options'> | Omit<Choice.MultipleProps<Sex>, 'options'>;
3125

3226
/**
3327
* 性别选择框

packages/admin/src/components/state.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@ export function localeStates(l: Locale) {
2121
]);
2222
}
2323

24-
type P = Choice.Props<State>;
25-
26-
interface SProps extends Omit<Extract<P, { multiple?: false }>, 'options'> {}
27-
28-
interface MProps extends Omit<Extract<P, { multiple: true }>, 'options'> {}
29-
30-
export type StateSelectorProps = SProps | MProps;
24+
export type StateSelectorProps =
25+
| Omit<Choice.SingleProps<State>, 'options'>
26+
| Omit<Choice.MultipleProps<State>, 'options'>;
3127

3228
/**
3329
* 用户状态选择框

0 commit comments

Comments
 (0)