From 1f33babc897ab36e53449bbd10209f5e0e0e2903 Mon Sep 17 00:00:00 2001
From: tangjinzhou <415800467@qq.com>
Date: Wed, 25 Jan 2023 15:27:03 +0800
Subject: [PATCH] feat: alert add action slot
---
components/alert/demo/action.vue | 57 +++++++++++
components/alert/demo/index.vue | 3 +
components/alert/index.en-US.md | 1 +
components/alert/index.tsx | 31 +++---
components/alert/index.zh-CN.md | 1 +
components/alert/style/index.less | 155 ------------------------------
components/alert/style/index.tsx | 2 -
components/alert/style/rtl.less | 40 --------
components/style.ts | 2 +-
site/debugger/demo/demo.vue | 6 +-
10 files changed, 87 insertions(+), 211 deletions(-)
create mode 100644 components/alert/demo/action.vue
delete mode 100644 components/alert/style/index.less
delete mode 100644 components/alert/style/index.tsx
delete mode 100644 components/alert/style/rtl.less
diff --git a/components/alert/demo/action.vue b/components/alert/demo/action.vue
new file mode 100644
index 000000000..d95a4c188
--- /dev/null
+++ b/components/alert/demo/action.vue
@@ -0,0 +1,57 @@
+
+---
+order: 0
+title:
+ zh-CN: 操作
+ en-US: Action
+---
+
+## zh-CN
+
+可以在右上角自定义操作项。
+
+## en-US
+
+Custom action.
+
+
+
+
+
+
+
+ UNDO
+
+
+
+
+ Detail
+
+
+
+
+
+ Done
+
+
+
+
+
+
+ Accept
+ Decline
+
+
+
+
+
diff --git a/components/alert/demo/index.vue b/components/alert/demo/index.vue
index 427141fbb..de1dbd094 100644
--- a/components/alert/demo/index.vue
+++ b/components/alert/demo/index.vue
@@ -9,6 +9,7 @@
+