From 9d406ab7baa38b53385f7b094575fe2efe527808 Mon Sep 17 00:00:00 2001 From: Cherry7 <79909910+CCherry07@users.noreply.github.com> Date: Mon, 31 Jul 2023 08:49:35 +0800 Subject: [PATCH] fix(PageHeader): ghost style (#6761) * test(pageheader): update test snap * fix: ghost style * fix: ghost style * chore(pageheader): update ghost demo * test(pageheader): update test snap --- .../__tests__/__snapshots__/demo.test.js.snap | 483 +++++++++--------- components/page-header/demo/ghost.vue | 7 +- components/page-header/style/index.ts | 4 +- 3 files changed, 263 insertions(+), 231 deletions(-) diff --git a/components/page-header/__tests__/__snapshots__/demo.test.js.snap b/components/page-header/__tests__/__snapshots__/demo.test.js.snap index 8ae5d1b3a..f622ca694 100644 --- a/components/page-header/__tests__/__snapshots__/demo.test.js.snap +++ b/components/page-header/__tests__/__snapshots__/demo.test.js.snap @@ -867,7 +867,6 @@ exports[`renders ./components/page-header/demo/content.vue correctly 1`] = ` class="ant-space-item" > - + @@ -978,277 +978,304 @@ exports[`renders ./components/page-header/demo/content.vue correctly 1`] = ` exports[`renders ./components/page-header/demo/ghost.vue correctly 1`] = `
+
-
+
- - - - - -
-
- - - Title - - - This is a subtitle - - -
- -
- - -
- +
- - -
- -
+ Title +
+ + This is a subtitle + - - +
+
- + +
+ + + +
+ +
+ + + +
+ +
+ + +
- - - -
- - -
- + +
- +
- - - - + +
+
+ - - + - + - - - - - + + + -
- - Effective Time - - - - 2017-10-10 - - -
- - + + + Remarks + + + + Gonghu Road, Xihu District, Hangzhou, Zhejiang, China + + + + + + - - - -
-
- - Created - - - - Lili Qu - - -
-
-
+ Created + + + + Lili Qu + + +
+
- - Association - - - - - 421421 - - - - - -
+ Association + + + + + 421421 + + + +
+
- - Creation Time - - - - 2017-01-10 - - - -
+ Creation Time + + + + 2017-01-10 + + + +
-
+ Effective Time + + + + 2017-10-10 + + +
+
- - Remarks - - - - Gonghu Road, Xihu District, Hangzhou, Zhejiang, China - - - -
+ + +
+ - + - + + `; @@ -1663,7 +1690,6 @@ exports[`renders ./components/page-header/demo/responsive.vue correctly 1`] = ` class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden" > - + diff --git a/components/page-header/demo/ghost.vue b/components/page-header/demo/ghost.vue index 8d6ef9850..ae001d922 100644 --- a/components/page-header/demo/ghost.vue +++ b/components/page-header/demo/ghost.vue @@ -19,7 +19,7 @@ The default PageHeader is a transparent background. In some cases, PageHeader ne +