From 5ec5334195e7a17c06be4da36d88eac00d1c61ac Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 25 Feb 2022 16:16:07 +0800 Subject: [PATCH] feat(alert): add customIcon slot --- .../__tests__/__snapshots__/demo.test.js.snap | 152 +++++++----------- components/alert/index.en-US.md | 1 + components/alert/index.tsx | 42 +++-- components/alert/index.zh-CN.md | 1 + components/alert/style/index.less | 70 +++----- components/alert/style/rtl.less | 40 +++++ components/style/themes/default.less | 12 +- 7 files changed, 162 insertions(+), 156 deletions(-) create mode 100644 components/alert/style/rtl.less diff --git a/components/alert/__tests__/__snapshots__/demo.test.js.snap b/components/alert/__tests__/__snapshots__/demo.test.js.snap index 7c10e97ce..87c3dee8c 100644 --- a/components/alert/__tests__/__snapshots__/demo.test.js.snap +++ b/components/alert/__tests__/__snapshots__/demo.test.js.snap @@ -1,68 +1,56 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders ./components/alert/demo/banner.vue correctly 1`] = ` -
+
-
+
-
+
-
+ `; exports[`renders ./components/alert/demo/basic.vue correctly 1`] = ` -
+ `; exports[`renders ./components/alert/demo/closable.vue correctly 1`] = ` -
+ -
+