更新记录
0.0.1(2025-02-07) 下载此版本
20250207初次提交
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
- | √ | √ | - | √ | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - | - | - |
其他
多语言 | 暗黑模式 | 宽屏模式 |
---|---|---|
× | × | √ |
复制代码<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
点个赞先