Compare commits

..

No commits in common. "22ee50576c40c89867f88a0abe7f73e9aee4977f" and "03f77d4bba6a43a9a42c817153c4baed141e161a" have entirely different histories.

2 changed files with 1 additions and 11 deletions

View File

@ -1,10 +1,6 @@
import { isNaN } from '../utils/validate/number';
export function times(n: number, iteratee: (index: number) => any[]) {
if (n < 0) {
return [];
}
let index = -1;
const result = Array(n);

View File

@ -56,13 +56,7 @@ export default createComponent({
mounted() {
if (this.placeholder && this.fixed) {
const setHeight = () => {
this.height = this.$refs.tabbar.getBoundingClientRect().height;
};
setHeight();
// https://github.com/youzan/vant/issues/10131
setTimeout(setHeight, 100);
this.height = this.$refs.tabbar.getBoundingClientRect().height;
}
},