Compare commits

..

No commits in common. "44281be985583c448433089cc88b3c939f65ed8b" and "97d2badd45e8230f8d4e2a1d743af9dc840e058a" have entirely different histories.

4 changed files with 6 additions and 29 deletions

View File

@ -19,18 +19,6 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
## Details
### [v3.6.5](https://github.com/vant-ui/vant/compare/v3.6.4...v3.6.5)
`2022-11-08`
**Feature**
- ImagePreview: add preview image slot [#11133](https://github.com/vant-ui/vant/issues/11133)
**Bug Fixes**
- lazyload: lazy-image h is not a function [#11230](https://github.com/vant-ui/vant/issues/11230)
### [v3.6.4](https://github.com/vant-ui/vant/compare/v3.6.3...v3.6.4)
`2022-10-07`

View File

@ -19,18 +19,6 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
## 更新内容
### [v3.6.5](https://github.com/vant-ui/vant/compare/v3.6.4...v3.6.5)
`2022-11-08`
**Feature**
- ImagePreview: 新增 preview image 插槽 [#11133](https://github.com/vant-ui/vant/issues/11133)
**Bug Fixes**
- lazyload: 修复使用 lazy-image 时提示 h is not a function 的问题 [#11230](https://github.com/vant-ui/vant/issues/11230)
### [v3.6.4](https://github.com/vant-ui/vant/compare/v3.6.3...v3.6.4)
`2022-10-07`

View File

@ -1,6 +1,6 @@
{
"name": "vant",
"version": "3.6.5",
"version": "3.6.4",
"description": "Lightweight Mobile UI Components built on Vue",
"main": "lib/vant.cjs.js",
"module": "es/index.mjs",

View File

@ -6,7 +6,6 @@
import { useRect } from '@vant/use';
import { loadImageAsync } from './util';
import { noop } from '../../utils';
import { h } from 'vue';
export default (lazyManager) => ({
props: {
@ -16,13 +15,15 @@ export default (lazyManager) => ({
default: 'img',
},
},
render() {
render(h) {
return h(
this.tag,
{
src: this.renderSrc,
attrs: {
src: this.renderSrc,
},
},
this.$slots.default?.()
this.$slots.default
);
},
data() {