| 
														
															@@ -1,4 +1,4 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import React, { Component } from 'react'; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import React, { Component, ReactElement } from 'react'; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import ReactDOM from 'react-dom'; 
														 | 
														
														 | 
														
															 import ReactDOM from 'react-dom'; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import cls from 'classnames'; 
														 | 
														
														 | 
														
															 import cls from 'classnames'; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import PropTypes from 'prop-types'; 
														 | 
														
														 | 
														
															 import PropTypes from 'prop-types'; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -54,15 +54,15 @@ const prefixCls = cssClasses.PREFIX; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 const ELLIPSIS_STR = '...'; 
														 | 
														
														 | 
														
															 const ELLIPSIS_STR = '...'; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 const wrapperDecorations = (props: BaseTypographyProps, content: React.ReactNode) => { 
														 | 
														
														 | 
														
															 const wrapperDecorations = (props: BaseTypographyProps, content: React.ReactNode) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    const { mark, code, underline, strong, link, disabled } = props; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    const { mark, code, underline, strong, link, disabled, icon, } = props; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     let wrapped = content; 
														 | 
														
														 | 
														
															     let wrapped = content; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     const wrap = (isNeeded: boolean | LinkType, tag: string) => { 
														 | 
														
														 | 
														
															     const wrap = (isNeeded: boolean | LinkType, tag: string) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        let wrapProps = {}; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        let wrapProps = icon ? { style: { display: 'inline-flex', alignItems: 'center' } } : {}; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (!isNeeded) { 
														 | 
														
														 | 
														
															         if (!isNeeded) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return; 
														 | 
														
														 | 
														
															             return; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (typeof isNeeded === 'object') { 
														 | 
														
														 | 
														
															         if (typeof isNeeded === 'object') { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            wrapProps = { ...isNeeded }; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            wrapProps = { ...isNeeded } as any; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         wrapped = React.createElement(tag, wrapProps, wrapped); 
														 | 
														
														 | 
														
															         wrapped = React.createElement(tag, wrapProps, wrapped); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }; 
														 | 
														
														 | 
														
															     }; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -72,6 +72,11 @@ const wrapperDecorations = (props: BaseTypographyProps, content: React.ReactNode 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     wrap(strong, 'strong'); 
														 | 
														
														 | 
														
															     wrap(strong, 'strong'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     wrap(props.delete, 'del'); 
														 | 
														
														 | 
														
															     wrap(props.delete, 'del'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     wrap(link, disabled ? 'span' : 'a'); 
														 | 
														
														 | 
														
															     wrap(link, disabled ? 'span' : 'a'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    // When the content is not wrapped, and there is more than one element in the content (one of which is an icon),  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    // use span to wrap the content, so that the content in the span is vertically aligned 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    if (wrapped === content && icon) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        wrap(true, 'span'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     return wrapped; 
														 | 
														
														 | 
														
															     return wrapped; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 }; 
														 | 
														
														 | 
														
															 }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |