Skip to content

Commit

Permalink
更新快照
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Jan 29, 2024
1 parent 0d28ec4 commit b8657c1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 34 deletions.
32 changes: 16 additions & 16 deletions packages/amis-ui/src/components/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,20 +262,20 @@ export function Icon({
iconContent,
vendor,
cx: iconCx,
onClick = () => {},
onMouseEnter = () => {},
onMouseLeave = () => {},
onMouseOver = () => {},
onMouseOut = () => {},
onMouseDown = () => {},
onMouseUp = () => {},
onMouseMove = () => {},
onBlur = () => {},
onFocus = () => {},
onTouchStart = () => {},
onTouchMove = () => {},
onTouchEnd = () => {},
onTouchCancel = () => {},
onClick,
onMouseEnter,
onMouseLeave,
onMouseOver,
onMouseOut,
onMouseDown,
onMouseUp,
onMouseMove,
onBlur,
onFocus,
onTouchStart,
onTouchMove,
onTouchEnd,
onTouchCancel,
style
}: {
icon: string;
Expand Down Expand Up @@ -312,13 +312,13 @@ export function Icon({
// 直接的icon dom
if (React.isValidElement(icon)) {
return React.cloneElement(icon, {
...events,
...((icon.props as any) || {}),
className: cxClass(
cx(className, classNameProp),
(icon.props as any).className
),
style,
...events
style
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ exports[`Renderers:Action MenuItem display icon 2`] = `
>
<i
className="fa fa-cloud cxd-Button-icon fa fa-cloud"
onClick={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
/>
<span>
123
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,6 @@ exports[`Renderer:breadcrumb tooltip labelMaxLength 1`] = `
>
<i
className="fa fa-home cxd-Icon cxd-Breadcrumb-icon fa fa-home"
onClick={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
/>
<span
className="cxd-TplField"
Expand Down Expand Up @@ -447,9 +444,6 @@ exports[`Renderer:breadcrumb tooltip labelMaxLength 2`] = `
>
<i
className="fa fa-home cxd-Icon cxd-Breadcrumb-icon fa fa-home"
onClick={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
/>
<span
className="cxd-TplField"
Expand Down Expand Up @@ -538,9 +532,6 @@ exports[`Renderer:breadcrumb tooltip labelMaxLength 3`] = `
>
<i
className="fa fa-home cxd-Icon cxd-Breadcrumb-icon fa fa-home"
onClick={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
/>
<span
className="cxd-TplField"
Expand Down Expand Up @@ -629,9 +620,6 @@ exports[`Renderer:breadcrumb tooltip labelMaxLength 4`] = `
>
<i
className="fa fa-home cxd-Icon cxd-Breadcrumb-icon fa fa-home"
onClick={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
/>
<span
className="cxd-TplField"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ exports[`Renderer:Page 1`] = `
<icon-mock
className="icon-question-mark"
icon="question-mark"
onClick={[Function]}
onMouseEnter={[Function]}
onMouseLeave={[Function]}
/>
</span>
</div>
Expand Down

0 comments on commit b8657c1

Please sign in to comment.