更新记录

0.0.1(2025-02-07) 下载此版本

20250207初次提交


平台兼容性

Vue2 Vue3
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

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问