diff --git a/src/button/test/__snapshots__/demo.spec.js.snap b/src/button/test/__snapshots__/demo.spec.js.snap
index 75ac8ffa7..035fca401 100644
--- a/src/button/test/__snapshots__/demo.spec.js.snap
+++ b/src/button/test/__snapshots__/demo.spec.js.snap
@@ -18,10 +18,8 @@ exports[`renders demo correctly 1`] = `
+ 按钮
diff --git a/src/icon/index.less b/src/icon/index.less
index 71e752afa..f1b78f967 100644
--- a/src/icon/index.less
+++ b/src/icon/index.less
@@ -5,5 +5,6 @@
&__image {
width: 1em;
height: 1em;
+ object-fit: contain;
}
}
diff --git a/src/icon/index.tsx b/src/icon/index.tsx
index 5baa1a4c4..833a20bf9 100644
--- a/src/icon/index.tsx
+++ b/src/icon/index.tsx
@@ -1,7 +1,6 @@
import { createNamespace, addUnit } from '../utils';
import { inherit } from '../utils/functional';
import Info from '../info';
-import Image from '../image';
// Types
import { CreateElement, RenderContext } from 'vue/types';
@@ -43,7 +42,10 @@ function Icon(
return (
{slots.default && slots.default()}
- {imageIcon && (
-
- )}
+ {imageIcon &&
}
);
diff --git a/src/icon/test/__snapshots__/index.spec.js.snap b/src/icon/test/__snapshots__/index.spec.js.snap
index a3422ace5..54ddf2e50 100644
--- a/src/icon/test/__snapshots__/index.spec.js.snap
+++ b/src/icon/test/__snapshots__/index.spec.js.snap
@@ -17,17 +17,13 @@ exports[`render icon with builtin icon name 1`] = `
`;
exports[`render icon with local image 1`] = `
-
-
-
-
+
+
`;
exports[`render icon with url name 1`] = `
-
-
-
-
+
+
`;
exports[`size without unit 1`] = `