Skip to content

Commit 7a82958

Browse files
author
yandadaFreedom
committed
chore: 修复变量命名等问题
1 parent d2124a0 commit 7a82958

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

packages/webpack-plugin/lib/runtime/components/ali/mpx-section-list.mpx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
},
153153
pollingDuration: {
154154
type: Number,
155-
value: 3000
155+
value: 300
156156
},
157157
useListHeader: {
158158
type: Boolean,
@@ -563,4 +563,4 @@
563563
}
564564
}
565565
}
566-
</script>
566+
</script>

packages/webpack-plugin/lib/runtime/components/ali/mpx-sticky-section.mpx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
<style lang="stylus" scoped>
1515
.mpx-sticky-section
1616
position relative
17-
</style>
17+
</style>

packages/webpack-plugin/lib/runtime/components/react/mpx-section-list.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,13 @@ const _SectionList = forwardRef<any, SectionListProps>((props = {}, ref) => {
302302

303303
// 添加该 section 中所有 items 的位置信息
304304
section.data.forEach((item: ListItem, itemIndex: number) => {
305-
const contenteight = getItemHeight({ sectionIndex, rowIndex: itemIndex })
305+
const contentHeight = getItemHeight({ sectionIndex, rowIndex: itemIndex })
306306
layouts.push({
307-
length: contenteight,
307+
length: contentHeight,
308308
offset,
309309
index: layouts.length
310310
})
311-
offset += contenteight
311+
offset += contentHeight
312312
})
313313

314314
// 添加该 section 尾部位置信息

packages/webpack-plugin/lib/runtime/components/web/mpx-section-list.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export default {
140140
},
141141
useListHeader: {
142142
type: Boolean,
143-
default: true
143+
default: false
144144
},
145145
listFooterData: {
146146
type: Object,
@@ -548,4 +548,4 @@ export default {
548548
.sticky-section {
549549
position: absolute !important;
550550
}
551-
</style>
551+
</style>

0 commit comments

Comments
 (0)