xmirror-components 1.0.26-alpha.5 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/es/components/IconButton/index.d.ts +2 -2
- package/build/es/components/IconFont/index.d.ts +3 -4
- package/build/lib/index.d.ts +5 -6
- package/build/package.json +1 -1
- package/build/types/components/IconButton/index.d.ts +2 -2
- package/build/types/components/IconFont/index.d.ts +3 -4
- package/package.json +1 -1
|
@@ -50,7 +50,7 @@ export interface IconButtonProps extends Omit<ButtonTooltipProps, 'children'> {
|
|
|
50
50
|
/**
|
|
51
51
|
* 其他属性
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
flag?: never;
|
|
54
54
|
}
|
|
55
|
-
export declare const IconButton: React.ForwardRefExoticComponent<
|
|
55
|
+
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
56
56
|
export default IconButton;
|
|
@@ -12,16 +12,15 @@ interface IconFontCommonProps {
|
|
|
12
12
|
* 是否使用 symbol 模式
|
|
13
13
|
*/
|
|
14
14
|
symbol?: boolean;
|
|
15
|
-
[attrs: string]: any;
|
|
16
15
|
}
|
|
17
16
|
export type IconFontProps = (IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
|
|
18
17
|
symbol: true;
|
|
19
18
|
}) | (IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
|
|
20
19
|
symbol?: false;
|
|
21
20
|
});
|
|
22
|
-
declare const IconFont: React.ForwardRefExoticComponent<(
|
|
23
|
-
symbol: true;
|
|
24
|
-
}, "ref"> | Omit<IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
|
|
21
|
+
declare const IconFont: React.ForwardRefExoticComponent<((IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
|
|
25
22
|
symbol?: false;
|
|
23
|
+
}) | Omit<IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
|
|
24
|
+
symbol: true;
|
|
26
25
|
}, "ref">) & React.RefAttributes<HTMLElement | SVGSVGElement>>;
|
|
27
26
|
export default IconFont;
|
package/build/lib/index.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ declare interface ConfigProviderProps {
|
|
|
95
95
|
|
|
96
96
|
export declare function GlobalLoading(): default_2.JSX.Element;
|
|
97
97
|
|
|
98
|
-
export declare const IconButton: default_2.ForwardRefExoticComponent<
|
|
98
|
+
export declare const IconButton: default_2.ForwardRefExoticComponent<IconButtonProps & default_2.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
99
99
|
|
|
100
100
|
declare type IconButtonConfig = Pick<IconButtonProps, 'size' | 'className' | 'style'> & {
|
|
101
101
|
render: (props: IconButtonProps & {
|
|
@@ -131,13 +131,13 @@ declare interface IconButtonProps extends Omit<ButtonTooltipProps, 'children'> {
|
|
|
131
131
|
/**
|
|
132
132
|
* 其他属性
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
flag?: never;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
export declare const IconFont: default_2.ForwardRefExoticComponent<(
|
|
138
|
-
symbol: true;
|
|
139
|
-
}, "ref"> | Omit<IconFontCommonProps & default_2.HTMLAttributes<HTMLElement> & {
|
|
137
|
+
export declare const IconFont: default_2.ForwardRefExoticComponent<((IconFontCommonProps & default_2.HTMLAttributes<HTMLElement> & {
|
|
140
138
|
symbol?: false;
|
|
139
|
+
}) | Omit<IconFontCommonProps & default_2.SVGProps<SVGSVGElement> & {
|
|
140
|
+
symbol: true;
|
|
141
141
|
}, "ref">) & default_2.RefAttributes<HTMLElement | SVGSVGElement>>;
|
|
142
142
|
|
|
143
143
|
declare interface IconFontCommonProps {
|
|
@@ -153,7 +153,6 @@ declare interface IconFontCommonProps {
|
|
|
153
153
|
* 是否使用 symbol 模式
|
|
154
154
|
*/
|
|
155
155
|
symbol?: boolean;
|
|
156
|
-
[attrs: string]: any;
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
declare type IconFontConfig = Pick<IconFontProps, 'className' | 'style'>;
|
package/build/package.json
CHANGED
|
@@ -50,7 +50,7 @@ export interface IconButtonProps extends Omit<ButtonTooltipProps, 'children'> {
|
|
|
50
50
|
/**
|
|
51
51
|
* 其他属性
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
flag?: never;
|
|
54
54
|
}
|
|
55
|
-
export declare const IconButton: React.ForwardRefExoticComponent<
|
|
55
|
+
export declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
56
56
|
export default IconButton;
|
|
@@ -12,16 +12,15 @@ interface IconFontCommonProps {
|
|
|
12
12
|
* 是否使用 symbol 模式
|
|
13
13
|
*/
|
|
14
14
|
symbol?: boolean;
|
|
15
|
-
[attrs: string]: any;
|
|
16
15
|
}
|
|
17
16
|
export type IconFontProps = (IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
|
|
18
17
|
symbol: true;
|
|
19
18
|
}) | (IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
|
|
20
19
|
symbol?: false;
|
|
21
20
|
});
|
|
22
|
-
declare const IconFont: React.ForwardRefExoticComponent<(
|
|
23
|
-
symbol: true;
|
|
24
|
-
}, "ref"> | Omit<IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
|
|
21
|
+
declare const IconFont: React.ForwardRefExoticComponent<((IconFontCommonProps & React.HTMLAttributes<HTMLElement> & {
|
|
25
22
|
symbol?: false;
|
|
23
|
+
}) | Omit<IconFontCommonProps & React.SVGProps<SVGSVGElement> & {
|
|
24
|
+
symbol: true;
|
|
26
25
|
}, "ref">) & React.RefAttributes<HTMLElement | SVGSVGElement>>;
|
|
27
26
|
export default IconFont;
|