Commit 8f993ec7 authored by wlxuqu's avatar wlxuqu

1. 解决waterfall瀑布流示例多次快速上拉,导致数据加载失败的问题

2. 解决indexList索引列表和checkbox组件在微信小程序报错的问题
parent 3bd79f55
......@@ -60,9 +60,12 @@
data() {
return {
// 所有子组件
children: []
// children: []
}
},
created() {
this.children = [];
},
methods: {
emitEvent() {
let values = [];
......
......@@ -76,6 +76,9 @@
// #ifndef H5
this.stickyOffsetTop = this.offsetTop ? uni.upx2px(this.offsetTop) : 0;
// #endif
// 只能在created生命周期定义children,如果在data定义,会因为在子组件中通过provide/inject
// 进行push时而导致的莫名其妙的错误
this.children = [];
},
provide() {
return {
......@@ -86,7 +89,7 @@
return {
activeAnchorIndex: 0,
showSidebar: true,
children: [],
// children: [],
touchmove: false,
touchmoveIndex: 0,
}
......@@ -214,7 +217,7 @@
const anchorStyle = {
position: 'relative',
transform: `translate3d(0, ${translateY}px, 0)`,
zIndex: `${zIndex}`,
zIndex: `${zIndex ? zIndex : this.$u.zIndex.indexListSticky}`,
color: `${activeColor}`
};
item.active = active;
......
// 此版本发布于2020-05-07
let version = '1.2.0';
// 此版本发布于2020-05-08
let version = '1.2.1';
export default {
v: version,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment