docs(changelog): 3.0.9

This commit is contained in:
chenjiahan 2021-03-08 17:37:31 +08:00
parent 9dc1815b66
commit b526bfeee9
7 changed files with 41 additions and 15 deletions

View File

@ -16,6 +16,19 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
## Details
### [v3.0.9](https://github.com/youzan/vant/compare/v3.0.8...v3.0.9)
`2021-03-08`
**Feature**
- AddressList: add tag slots [#8292](https://github.com/youzan/vant/issues/8292)
**Bug Fixes**
- fix custom theme not work [#8301](https://github.com/youzan/vant/issues/8301)
- fix failed to install component in TypeScript [#8308](https://github.com/youzan/vant/issues/8308)
### [v3.0.8](https://github.com/youzan/vant/compare/v3.0.7...v3.0.8)
`2021-03-07`

View File

@ -16,6 +16,19 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
## 更新内容
### [v3.0.9](https://github.com/youzan/vant/compare/v3.0.8...v3.0.9)
`2021-03-08`
**Feature**
- AddressList: 新增 tag 插槽 [#8292](https://github.com/youzan/vant/issues/8292)
**Bug Fixes**
- 修复主题定制不生效的问题 [#8301](https://github.com/youzan/vant/issues/8301)
- 修复在 TS 下使用 app.use 注册组件报错的问题 [#8308](https://github.com/youzan/vant/issues/8308)
### [v3.0.8](https://github.com/youzan/vant/compare/v3.0.7...v3.0.8)
`2021-03-07`

View File

@ -56,7 +56,7 @@ export default defineComponent({
const renderTag = () => {
if (slots.tag) {
return slots.tag({ ...props.address });
return slots.tag(props.address);
}
if (props.address.isDefault && props.defaultTagText) {
return (

View File

@ -109,11 +109,11 @@ export default {
### Slots
| Name | Description | SlotProps |
| ----------- | --------------------------------- | --------------- |
| ------------ | ------------------------------ | --------------- |
| default | Custom content after list | - |
| top | Custom content before list | - |
| item-bottom | Custom content after list item | _item: Address_ |
| tag | Custom tag conetent for list item | _item: Address_ |
| tag `v3.0.9` | Custom tag of list item | _item: Address_ |
### Less Variables

View File

@ -113,11 +113,11 @@ export default {
### Slots
| 名称 | 说明 | 参数 |
| ----------- | -------------------- | --------------- |
| ------------ | -------------------- | --------------- |
| default | 在列表下方插入内容 | - |
| top | 在顶部插入内容 | - |
| item-bottom | 在列表项底部插入内容 | _item: Address_ |
| tag | 列表项标签内容自定义 | _item: Address_ |
| tag `v3.0.9` | 自定义列表项标签内容 | _item: Address_ |
### 样式变量