From f617f42cc798915f33572f5c7a20052d8581cc13 Mon Sep 17 00:00:00 2001
From: wuyiping0628 <42107997+wuyiping0628@users.noreply.github.com>
Date: Wed, 8 Jan 2025 00:00:54 -0800
Subject: [PATCH] feat(alert): [alert] display title when size is large in
mobile-first (#2765)
* feat(alert): [alert] display title when size is large
* feat(alert): [alert] display title when size is large
* feat(alert): [alert] display title when size is large in mobile-first
---
examples/sites/demos/apis/alert.js | 2 +-
examples/sites/demos/mobile-first/app/alert/title.vue | 2 ++
.../sites/demos/mobile-first/app/alert/webdoc/alert.js | 2 +-
examples/sites/demos/pc/app/alert/webdoc/alert.js | 2 +-
packages/vue/src/alert/src/mobile-first.vue | 7 ++++---
5 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/examples/sites/demos/apis/alert.js b/examples/sites/demos/apis/alert.js
index bbdd03f01b..1014c1d4f0 100644
--- a/examples/sites/demos/apis/alert.js
+++ b/examples/sites/demos/apis/alert.js
@@ -126,7 +126,7 @@ export default {
'zh-CN': '是否显示标题,在 size 为 large 时有效',
'en-US': 'Display title,valid when size is large'
},
- mode: ['pc'],
+ mode: ['pc', 'mobile-first'],
pcDemo: 'title',
meta: {
stable: '3.21.0'
diff --git a/examples/sites/demos/mobile-first/app/alert/title.vue b/examples/sites/demos/mobile-first/app/alert/title.vue
index 9e8b07b374..7c88a15765 100644
--- a/examples/sites/demos/mobile-first/app/alert/title.vue
+++ b/examples/sites/demos/mobile-first/app/alert/title.vue
@@ -5,6 +5,8 @@
+
当 size
为 large 时显示标题,可设置 title
或 slot
自定义标题。默认标题根据设置的 type
显示。
当 size
为 large 时显示标题,可设置 title
或 slot
自定义标题,通过 show-title
属性控制标题是否显示。默认标题根据设置的 type
显示。
When size
is set to large, the title is displayed. You can set title
or slot
to customize the title. The default title is displayed according to the set type
.
size
为 large
时,通过 title
属性或 title
插槽,可以自定义组件的标题 ,通过 show-title
属性 控制标题是否显示size
为 large
时,通过 title
属性或 title
插槽,可以自定义组件的标题 ,通过 show-title
属性控制标题是否显示type
显示相应的默认标题。`,
'en-US':
'When size
is set to large, the title is displayed. You can set title
or slot
to customize the title.
The default title is displayed according to the set type
.