更新记录
0.0.1(2025-02-07)
下载此版本
20250207初次提交
平台兼容性
App |
快应用 |
微信小程序 |
支付宝小程序 |
百度小程序 |
字节小程序 |
QQ小程序 |
HBuilderX 4.29 app-vue |
× |
√ |
× |
× |
× |
× |
钉钉小程序 |
快手小程序 |
飞书小程序 |
京东小程序 |
鸿蒙元服务 |
× |
× |
× |
× |
× |
H5-Safari |
Android Browser |
微信浏览器(Android) |
QQ浏览器(Android) |
Chrome |
IE |
Edge |
Firefox |
PC-Safari |
× |
√ |
× |
× |
√ |
√ |
√ |
√ |
√ |
<template>
<view style="display: flex;flex-direction: row; ">
<view class="content">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title">{{title}}</text>
</view>
</view>
<view class="slderBg">
<YfgSlderView>
<template v-slot:slot1>
<img src="@/static/logo.png" class="itemSty" />
</template>
<template v-slot:slot2>
<img
src="@/static/logo.png"
class="itemSty"
/>
</template>
</YfgSlderView>
</view>
</view>
</template>
<script>
import YfgSlderView from '@/components/yfg-slder-view/yfg-slder-view.vue';
export default {
components: { YfgSlderView },
data() {
return {
title: 'Hello'
}
},
onLoad() {
},
methods: {
}
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
.slderBg {
position: absolute;
display: flex;
align-items: center;
height: calc(100vh - 400rpx);
margin-top: 400rpx;
right: 0;
width: 104rpx;
}
.itemSty{
width: 104rpx;
height: 104rpx;
}
</style>
直接引入即可
如需修改细节,可直接修改自定义view