Skip to content

Commit 87fe198

Browse files
betavsanlyyao
andauthored
fix(types): type definition error (#4021)
* fix(types): type definition error * chore: update common.ts --------- Co-authored-by: anlyyao <[email protected]>
1 parent 9cc35c8 commit 87fe198

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/components/common/common.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ export interface Styles {
66

77
export type ImageEvent = any;
88

9-
/**
10-
* 通用全局类型
11-
* */
129
export type PlainObject = { [key: string]: any };
1310

1411
export type OptionData = {
@@ -19,15 +16,18 @@ export type OptionData = {
1916
export type TreeOptionData<T = string | number> = {
2017
children?: Array<TreeOptionData<T>> | boolean;
2118
/** option label content */
22-
label?: string | TNode;
19+
label?: string;
2320
/** option search text */
2421
text?: string;
2522
/** option value */
2623
value?: T;
2724
/** option node content */
28-
content?: string | TNode;
25+
content?: string;
2926
} & PlainObject;
3027

28+
/**
29+
* 通用全局类型
30+
* */
3131
export type SizeEnum = 'small' | 'medium' | 'large';
3232

3333
export type ShapeEnum = 'circle' | 'round';

0 commit comments

Comments
 (0)