mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-07-14 01:31:06 +08:00
Compare commits
4 Commits
5ba64ae8e1
...
a7f2c1af45
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7f2c1af45 | ||
|
|
cf88ae38a6 | ||
|
|
ec55f9ff7a | ||
|
|
1d6a333791 |
@ -16,6 +16,19 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
|
||||
|
||||
## Details
|
||||
|
||||
### [v2.12.43](https://github.com/youzan/vant/compare/v2.12.39...v2.12.43)
|
||||
|
||||
`2022-02-10`
|
||||
|
||||
**Feature**
|
||||
|
||||
- Cascader: add show-header prop [#10201](https://github.com/youzan/vant/issues/10201)
|
||||
- CollapseItem: add lazy-render prop [#10279](https://github.com/youzan/vant/issues/10279)
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
- Icon: remove white space under image when using image URL [#10224](https://github.com/youzan/vant/issues/10224)
|
||||
|
||||
### [v2.12.42](https://github.com/youzan/vant/compare/v2.12.41...v2.12.42)
|
||||
|
||||
`2022-02-07`
|
||||
|
||||
@ -14,8 +14,27 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
|
||||
- 次版本号:每隔一至二个月发布,包含新特性和较大的功能更新,向下兼容。
|
||||
- 主版本号:无固定发布时间,包含不兼容更新。
|
||||
|
||||
**维护提示**
|
||||
|
||||
- Vant 2 版本已经不再主动迭代新 Feature,如果你仍在使用 Vue 2 & Vant 2,建议尽快进行升级。
|
||||
|
||||
- 考虑到仍然有较多用户在使用 Vue 2,我们会对 Vant 2 中影响面较大的 Bug 进行修复,也接受来自社区的 Pull Request,欢迎贡献代码 ^\_^
|
||||
|
||||
## 更新内容
|
||||
|
||||
### [v2.12.43](https://github.com/youzan/vant/compare/v2.12.39...v2.12.43)
|
||||
|
||||
`2022-02-10`
|
||||
|
||||
**Feature**
|
||||
|
||||
- Cascader: 新增 show-header 属性 [#10201](https://github.com/youzan/vant/issues/10201)
|
||||
- CollapseItem: 新增 lazy-render 属性 [#10279](https://github.com/youzan/vant/issues/10279)
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
- Icon: 修复使用图片作为图标时水平未对齐的问题 [#10224](https://github.com/youzan/vant/issues/10224)
|
||||
|
||||
### [v2.12.42](https://github.com/youzan/vant/compare/v2.12.41...v2.12.42)
|
||||
|
||||
`2022-02-07`
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vant",
|
||||
"version": "2.12.42",
|
||||
"version": "2.12.43",
|
||||
"description": "Mobile UI Components built on Vue",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
||||
@ -20,6 +20,10 @@ export default createComponent({
|
||||
...cellProps,
|
||||
name: [Number, String],
|
||||
disabled: Boolean,
|
||||
lazyRender: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
isLink: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
@ -155,7 +159,7 @@ export default createComponent({
|
||||
},
|
||||
|
||||
genContent() {
|
||||
if (this.inited) {
|
||||
if (this.inited || !this.lazyRender) {
|
||||
return (
|
||||
<div
|
||||
vShow={this.show}
|
||||
|
||||
@ -127,6 +127,7 @@ export default {
|
||||
| border | Whether to show inner border | _boolean_ | `true` |
|
||||
| disabled | Whether to disabled collapse | _boolean_ | `false` |
|
||||
| is-link | Whether to show link icon | _boolean_ | `true` |
|
||||
| lazy-render `v2.12.43` | Whether to lazy render util opened | _boolean_ | `true` |
|
||||
| title-class | Title className | _string_ | - |
|
||||
| value-class | Value className | _string_ | - |
|
||||
| label-class | Label className | _string_ | - |
|
||||
|
||||
@ -129,6 +129,7 @@ export default {
|
||||
| border | 是否显示内边框 | _boolean_ | `true` |
|
||||
| is-link | 是否展示标题栏右侧箭头并开启点击反馈 | _boolean_ | `true` |
|
||||
| disabled | 是否禁用面板 | _boolean_ | `false` |
|
||||
| lazy-render `v2.12.43` | 是否在首次展开时才渲染面板内容 | _boolean_ | `true` |
|
||||
| title-class | 左侧标题额外类名 | _string_ | - |
|
||||
| value-class | 右侧内容额外类名 | _string_ | - |
|
||||
| label-class | 描述信息额外类名 | _string_ | - |
|
||||
|
||||
@ -25,7 +25,7 @@ module.exports = {
|
||||
},
|
||||
locales: {
|
||||
'zh-CN': {
|
||||
title: 'Vant',
|
||||
title: 'Vant 2',
|
||||
description: '轻量、可靠的移动端组件库',
|
||||
logo: 'https://img01.yzcdn.cn/vant/logo.png',
|
||||
langLabel: '中文',
|
||||
@ -443,7 +443,7 @@ module.exports = {
|
||||
],
|
||||
},
|
||||
'en-US': {
|
||||
title: 'Vant',
|
||||
title: 'Vant 2',
|
||||
description: 'Mobile UI Components built on Vue',
|
||||
logo: 'https://img01.yzcdn.cn/vant/logo.png',
|
||||
langLabel: 'En',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user