project init

This commit is contained in:
limqhz
2022-11-11 21:51:57 +08:00
parent e9e20765f2
commit 82dbb842ba
68 changed files with 2771 additions and 43 deletions

24
components/tabs/tabs.wxs Normal file
View File

@@ -0,0 +1,24 @@
/* eslint-disable */
/* utils */
/**
* animate */
// 为tab切换添加动画
function animate(options) {
var result =
'-webkit-transition-duration: ' +
options.duration +
's' +
';transition-duration: ' +
options.duration +
's';
result +=
options.direction === 'Y'
? ';transform: translate3d( 0,' + -100 * options.currentIndex + '%, 0)'
: ';transform: translate3d( ' + -100 * options.currentIndex + '%,0, 0)';
return result;
}
module.exports = {
animate: animate,
};