mini-ali-ui-rpx
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -0,1 +1,7 @@ | ||
## 1.1.6 | ||
`2020-09-24` | ||
* **Fixed** | ||
* vtabs 组件在 iOS 中闪屏跳动; | ||
* terms 组件按钮点击后 name 传值; | ||
## 1.1.5 | ||
@@ -2,0 +8,0 @@ `2020-09-10` |
@@ -6,3 +6,4 @@ import fmtUnit from '../_util/fmtUnit'; | ||
wrapScrollTop: 0, | ||
besideRadius: fmtUnit('8px') | ||
besideRadius: fmtUnit('8px'), | ||
scrollType: 'tap' | ||
}, | ||
@@ -98,2 +99,3 @@ props: { | ||
this.setData({ | ||
scrollType: 'tap', | ||
wrapScrollTop: this.anchorMap[anchor] | ||
@@ -105,3 +107,3 @@ }); | ||
moveScrollBar: function moveScrollBar(current) { | ||
var tabTop; | ||
var tabTop; // tabTop 用来控制侧边 tab 的 scroll-view 滚动位置 | ||
@@ -112,4 +114,5 @@ if (current < 6) { | ||
tabTop = (current - 5) * 55; | ||
} | ||
} // tab-content 滚动时,对侧边 tab 的影响 | ||
if (this.props.activeTab !== current) { | ||
@@ -135,2 +138,6 @@ if (this.props.onChange) { | ||
var keys = Object.keys(this.anchorMap); | ||
this.setData({ | ||
wrapScrollTop: scrollTop, | ||
scrollType: 'scroll' | ||
}); | ||
@@ -157,3 +164,3 @@ if (this.timerId) { | ||
if (scrollTop >= Math.floor(this.anchorMap[keys[i]]) && scrollTop < Math.floor(this.anchorMap[keys[i + 1]])) { | ||
// 如果没个vtab-content高度小于scroll-view高度,到达底部后就不需要根据scrollTop再去判断左侧的选择项 | ||
// 如果每个vtab-content高度小于scroll-view高度,到达底部后就不需要根据scrollTop再去判断左侧的选择项 | ||
if (scrollTop + this.wrapHeight < this.scrollWrapHeight) { | ||
@@ -160,0 +167,0 @@ this.moveScrollBar(i); |
@@ -1,1 +0,1 @@ | ||
{"name":"mini-ali-ui-rpx","version":"1.1.5","description":"小程序版AntUI rpx 版本","repository":{"type":"git","url":"git@github.com:Alibaba-mp/mini-ali-ui.git"},"files":["es"],"keywords":["antui","mini-program","mini-ali-ui","ali-ui"],"license":"MIT","devDependencies":{"@babel/core":"^7.6.4","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/preset-env":"^7.6.3","@babel/preset-typescript":"^7.6.0","@typescript-eslint/parser":"^2.17.0","alipay-style":"^0.1.0","eslint":"^5.16.0","eslint-config-ali":"^3.1.0","eslint-plugin-import":"^2.11.0","eslint-plugin-typescript":"^0.14.0","gulp":"^4.0.0","gulp-babel":"^8.0.0","gulp-clean-css":"^4.0.0","gulp-if":"^2.0.2","gulp-inject-envs":"^1.1.1","gulp-less":"^4.0.1","gulp-rename":"^1.2.3","lint-staged":"^8.2.0","mini-types":"^0.0.1","pre-commit":"^1.2.2","stylelint":"^10.1.0","stylelint-config-standard":"^18.2.0","typescript":"^3.6.4"},"scripts":{"lint-staged":"lint-staged","build":"yarn && NODE_ENV=production node scripts/compiler.js","pub":"npm run build && node scripts/pub.js","dev":"yarn && node scripts/compiler.js","build:rpx":"yarn && NODE_ENV=production node scripts/compiler.js --rpx","pub:rpx":"npm run build:rpx && node scripts/pub.js --rpx","dev:rpx":"yarn && node scripts/compiler.js --rpx"},"pre-commit":["lint-staged"],"lint-staged":{"*.ts":["eslint --ext .ts","git add"],"*.js":["eslint","git add"],"*.less":["stylelint --syntax less"]}} | ||
{"name":"mini-ali-ui-rpx","version":"1.1.6","description":"小程序版AntUI rpx 版本","repository":{"type":"git","url":"git@github.com:Alibaba-mp/mini-ali-ui.git"},"files":["es"],"keywords":["antui","mini-program","mini-ali-ui","ali-ui"],"license":"MIT","devDependencies":{"@babel/core":"^7.6.4","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/preset-env":"^7.6.3","@babel/preset-typescript":"^7.6.0","@typescript-eslint/parser":"^2.17.0","alipay-style":"^0.1.0","eslint":"^5.16.0","eslint-config-ali":"^3.1.0","eslint-plugin-import":"^2.11.0","eslint-plugin-typescript":"^0.14.0","gulp":"^4.0.0","gulp-babel":"^8.0.0","gulp-clean-css":"^4.0.0","gulp-if":"^2.0.2","gulp-inject-envs":"^1.1.1","gulp-less":"^4.0.1","gulp-rename":"^1.2.3","lint-staged":"^8.2.0","mini-types":"^0.0.1","pre-commit":"^1.2.2","stylelint":"^10.1.0","stylelint-config-standard":"^18.2.0","typescript":"^3.6.4"},"scripts":{"lint-staged":"lint-staged","build":"yarn && NODE_ENV=production node scripts/compiler.js","pub":"npm run build && node scripts/pub.js","dev":"yarn && node scripts/compiler.js","build:rpx":"yarn && NODE_ENV=production node scripts/compiler.js --rpx","pub:rpx":"npm run build:rpx && node scripts/pub.js --rpx","dev:rpx":"yarn && node scripts/compiler.js --rpx"},"pre-commit":["lint-staged"],"lint-staged":{"*.ts":["eslint --ext .ts","git add"],"*.js":["eslint","git add"],"*.less":["stylelint --syntax less"]}} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
331373
3906