追加毛玻璃效果

This commit is contained in:
aixianling
2023-10-09 19:23:39 +08:00
parent 656b4be0c3
commit 6f6dc79702
2 changed files with 98 additions and 94 deletions

View File

@@ -88,6 +88,5 @@ export default {
.AiSummary { .AiSummary {
width: 100%; width: 100%;
height: 100%; height: 100%;
backdrop-filter: blur(1px);
} }
</style> </style>

View File

@@ -17,7 +17,7 @@
</template> </template>
<script> <script>
export default { export default {
name: 'summary5', name: 'summary5',
props: { props: {
@@ -37,7 +37,7 @@
} }
}, },
data () { data() {
return { return {
img1: require('../asset/summary5-1.png'), img1: require('../asset/summary5-1.png'),
img2: require('../asset/summary5-2.png'), img2: require('../asset/summary5-2.png'),
@@ -47,7 +47,7 @@
}, },
methods: { methods: {
getImg (index) { getImg(index) {
return { return {
'0': this.img1, '0': this.img1,
'1': this.img2, '1': this.img2,
@@ -56,11 +56,11 @@
}[index] }[index]
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.summary5 { .summary5 {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
@@ -76,6 +76,7 @@
display: flex; display: flex;
position: relative; position: relative;
align-items: center; align-items: center;
backdrop-filter: blur(1px);
.right { .right {
min-width: 90px; min-width: 90px;
@@ -100,20 +101,24 @@
background-image: url(./../asset/corner.svg); background-image: url(./../asset/corner.svg);
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.corner.left-top { .corner.left-top {
left: -6px; left: -6px;
top: -6px; top: -6px;
transform: rotateY(180deg); transform: rotateY(180deg);
} }
.corner.right-top { .corner.right-top {
right: -6px; right: -6px;
top: -6px; top: -6px;
} }
.corner.left-bottom { .corner.left-bottom {
left: -6px; left: -6px;
bottom: -6px; bottom: -6px;
transform: rotateX(180deg) rotateY(180deg); transform: rotateX(180deg) rotateY(180deg);
} }
.corner.right-bottom { .corner.right-bottom {
right: -6px; right: -6px;
bottom: -6px; bottom: -6px;
@@ -134,5 +139,5 @@
font-weight: 700; font-weight: 700;
} }
} }
} }
</style> </style>