Skip to content

Commit

Permalink
chore(release): publish 3.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kongjing committed Aug 14, 2023
1 parent f5a2699 commit 2eb4048
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 24 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
# [](https://github.com/AntmJS/vantui/compare/v3.1.3...v) (2023-07-25)
# [](https://github.com/AntmJS/vantui/compare/v3.1.4...v) (2023-08-14)


### Bug Fixes

* 文档复制功能 ([1bdd88f](https://github.com/AntmJS/vantui/commit/1bdd88feb8be1aa185944a51b73f64a957f809b9))


### Features

* sku组件支持初始化是否选择商品 ([f5a2699](https://github.com/AntmJS/vantui/commit/f5a269937001d27ff3c254fae4a7f6636bf7427c))



## [3.1.4](https://github.com/AntmJS/vantui/compare/v3.1.3...v3.1.4) (2023-07-25)


### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"**/*.md",
"**/__test__/**"
],
"version": "3.1.4"
"version": "3.1.5"
}
2 changes: 1 addition & 1 deletion packages/vantui-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antmjs/vantui-cli",
"version": "3.1.4",
"version": "3.1.5",
"type": "module",
"main": "dest/cli.js",
"bin": {
Expand Down
4 changes: 2 additions & 2 deletions packages/vantui-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vantui-demo",
"version": "3.1.4",
"version": "3.1.5",
"private": true,
"description": "Taro应用模版",
"templateInfo": {
Expand Down Expand Up @@ -82,7 +82,7 @@
"author": "",
"dependencies": {
"@antmjs/mini-fix": "^2.3.3",
"@antmjs/vantui": "3.1.4",
"@antmjs/vantui": "3.1.5",
"@babel/runtime": "^7.7.7",
"@tarojs/components": "3.5.7",
"@tarojs/helper": "3.5.7",
Expand Down
8 changes: 4 additions & 4 deletions packages/vantui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antmjs/vantui",
"version": "3.1.4",
"version": "3.1.5",
"main": "lib/index.js",
"module": "es/index.esm.js",
"style": "lib/index.css",
Expand Down Expand Up @@ -68,9 +68,9 @@
"ast-to-markdown": "^1.0.0",
"glob": "^10.1.0",
"markdown-to-ast": "^6.0.3",
"ora": "^5.4.1",
"prettier": "^2.8.7",
"style-resources-loader": "^1.5.0",
"swc-loader": "^0.2.3",
"ora": "^5.4.1"
"swc-loader": "^0.2.3"
}
}
}
10 changes: 5 additions & 5 deletions packages/vantui/src/infinite-scroll/demo/demo2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ export default function Demo() {
ref={InfiniteScrollInstance}
/>
}
ItemRender={({ index, item, className, ...props }) => {
ItemRender={react.memo(({ item }) => {
return (
<View
className={`van-demo-goods-item-wrapper ${className}`}
{...props}
className={`van-demo-goods-item-wrapper`}
key={item.image}
>
<View className="van-demo-goods-item">
<TaroImage src={item.image} className="img" />
<TaroImage key={item.image} src={item.image} className="img" />
<View className="title">{item.title}</View>
{item.isCutPrice && (
<Text className="cutPrice">最近大降价</Text>
Expand All @@ -68,7 +68,7 @@ export default function Demo() {
</View>
</View>
)
}}
})}
/>
</PullToRefresh>
)
Expand Down
22 changes: 12 additions & 10 deletions packages/vantui/src/virtual-list/virtual-half-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,18 @@ function VirtualList_(
(e: BaseEventOrig<ScrollViewProps.onScrollDetail>) => {
const scrollTop = Math.floor(e.detail.scrollTop)
updateRects()
if (Object.keys(rects).length) {
const startIndex = getClosestIndex(rects, scrollTop)
setShowConfig({
head: startIndex,
tail: startIndex + showCount,
nextHead: startIndex + showCount,
NextTail: startIndex + showCount * 2,
transformY: `translateY(${rects[`${startIndex}`].top}px)`,
})
}
requestIdleCallback(() => {
if (Object.keys(rects).length) {
const startIndex = getClosestIndex(rects, scrollTop)
setShowConfig({
head: startIndex,
tail: startIndex + showCount,
nextHead: startIndex + showCount,
NextTail: startIndex + showCount * 2,
transformY: `translateY(${rects[`${startIndex}`].top}px)`,
})
}
})
},
[showCount, rects, updateRects],
)
Expand Down

0 comments on commit 2eb4048

Please sign in to comment.