小程序可滑动得tab-view 😃 rebase!!!!
- 可滑动得tab-view功能,小程序实现
- 在android ios 平台测试过,确保真实环境一致
- 小程序目前不支持组件化;后期会抽离一些公共的东西,让使用起来更加方便
- 复制page下的文件夹到自己项目中
- 配置app.json
- 编译
- 👉 欢迎issue
- 👉 欢迎pr
小程序可滑动得tab-view
Home Page: http://www.yixiaocheng.com/
小程序可滑动得tab-view 😃 rebase!!!!
左右滑动可以 ,上下怎么滑动呀,我看你设置的属性的fixed,导致上下是不能滑动的,等你回复 ,谢谢!!
<import src="../tabs/fuli.wxml" />
<view class="stv-container">
<view class="tab-bar">
<view wx:for="{{tabs}}" wx:key="unique" data-index="{{index}}" bindtap="handlerTabTap" class="tab {{activeTab==index?'tab-active':''}}" style="width: {{stv.windowWidth/tabs.length}}px">
<text>{{item}}</text>
</view>
<view style="width: {{stv.lineWidth}}px; left: {{stv.offset/tabs.length}}px" class="under-line {{!stv.tStart? 'withAnimate': ''}}"></view>
</view>
<view class="scroll-view">
<view bindtouchstart="handlerStart" catchtouchmove="handlerMove" bindtouchcancel="handlerCancel" bindtouchend="handlerEnd" class="scroll-view-wrapper {{!stv.tStart? 'withAnimate': ''}}" style="left: -{{stv.offset}}px">
<view style="width: {{stv.windowWidth}}px;" wx:for="{{tabs}}" wx:key="unique" class="one-scene">
<template is="fuli" data="{{items:items}}"></template>
</view>
</view>
</view>
</view>
如图:我的template 中是view 列表,但是不能上下滑动
我用 ..., 会出现 列表item显示不全,最后一个item只显示出来了一半
顶部tab很多怎么办,怎样设置横向滚动?
左右滑动在真实环境会出现问题,导入下面这个项目,在手机上预览查看效果
https://github.com/Alex-0407/weapp-51MingXingTu-pro
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.