Parcourir la source

add 上下分段的背景图

tags/AL.0.8.0_20240113_base
yuan il y a 1 an
Parent
révision
6f6b5ca559
5 fichiers modifiés avec 13 ajouts et 0 suppressions
  1. BIN
      src/components/background-basic/background-lower.jpg
  2. BIN
      src/components/background-basic/background-upper.jpg
  3. +3
    -0
      src/components/background-basic/index.json
  4. +0
    -0
      src/components/background-basic/index.scss
  5. +10
    -0
      src/components/background-basic/index.vue

BIN
src/components/background-basic/background-lower.jpg Voir le fichier

Avant Après
Largeur: 1080  |  Hauteur: 960  |  Taille: 110 KiB

BIN
src/components/background-basic/background-upper.jpg Voir le fichier

Avant Après
Largeur: 1080  |  Hauteur: 960  |  Taille: 76 KiB

+ 3
- 0
src/components/background-basic/index.json Voir le fichier

@@ -0,0 +1,3 @@
{
"component": true
}

+ 0
- 0
src/components/background-basic/index.scss Voir le fichier


+ 10
- 0
src/components/background-basic/index.vue Voir le fichier

@@ -0,0 +1,10 @@
<template>
<View style="top: 0; bottom: 0; z-index: -1020">
<View style="z-index: -1010; top: 0" className='position-absolute'>
<Image :src="require('./background-upper.jpg')" mode='widthFix' style="width: 100vw"/>
</View>
<View style="z-index: -1010; bottom: 0" className='position-absolute d-flex justify-content-end'>
<Image :src="require('./background-lower.jpg')" mode='aspectFill' style="width: 100vw"/>
</View>
</View>
</template>

Chargement…
Annuler
Enregistrer