Showing
1 changed file
with
6 additions
and
1 deletions
| @@ -147,7 +147,7 @@ export struct MultiPictureListPage { | @@ -147,7 +147,7 @@ export struct MultiPictureListPage { | ||
| 147 | // ImageDownloadComponent({ url: this.currentUrl }) | 147 | // ImageDownloadComponent({ url: this.currentUrl }) |
| 148 | SaveNetWorkPictures({ url: this.currentUrl }) | 148 | SaveNetWorkPictures({ url: this.currentUrl }) |
| 149 | } | 149 | } |
| 150 | - .margin({ | 150 | + .padding({ |
| 151 | top: 14, | 151 | top: 14, |
| 152 | left: 20, | 152 | left: 20, |
| 153 | bottom: 14, | 153 | bottom: 14, |
| @@ -155,6 +155,11 @@ export struct MultiPictureListPage { | @@ -155,6 +155,11 @@ export struct MultiPictureListPage { | ||
| 155 | }) | 155 | }) |
| 156 | // .backgroundColor(Color.Blue) | 156 | // .backgroundColor(Color.Blue) |
| 157 | .id('e_swiper_titles') | 157 | .id('e_swiper_titles') |
| 158 | + .linearGradient({ | ||
| 159 | + direction: GradientDirection.Bottom, // 渐变方向 | ||
| 160 | + colors: [['rgba(18, 18, 18, 0)', 0], | ||
| 161 | + ['rgba(18, 18, 18, 0.8)', 1.0]] // 数组末尾元素占比小于1时满足重复着色效果 | ||
| 162 | + }) | ||
| 158 | .alignRules({ | 163 | .alignRules({ |
| 159 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom }, | 164 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom }, |
| 160 | middle: { anchor: "__container__", align: HorizontalAlign.Center } | 165 | middle: { anchor: "__container__", align: HorizontalAlign.Center } |
-
Please register or login to post a comment