Skip to content

Commit

Permalink
[Doc] add component changelog (youzan#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Sep 17, 2018
1 parent 47aaf25 commit bde9f5a
Show file tree
Hide file tree
Showing 55 changed files with 1,108 additions and 389 deletions.
2 changes: 1 addition & 1 deletion docs/markdown/changelog.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@
* Field: 支持配置 autosize 最大/最小高度 [\#718](https://github.com/youzan/vant/pull/718)
* Locale: 精简 i18n 配置文档 [\#701](https://github.com/youzan/vant/pull/701)
* PullRefresh: 支持手动触发 loading 动画 [\#684](https://github.com/youzan/vant/pull/684)
* Switch: 新增 size 数组,支持自定义尺寸 [\#723](https://github.com/youzan/vant/pull/723)
* Switch: 新增 size 属性,支持自定义尺寸 [\#723](https://github.com/youzan/vant/pull/723)
* Sku: 新增头部金额 slot [\#705](https://github.com/youzan/vant/pull/705)
* Sku: 优化 DOM 结构 [\#704](https://github.com/youzan/vant/pull/704)
* Tab: 支持通过滑动手势进行切换 [\#694](https://github.com/youzan/vant/pull/694) [\#695](https://github.com/youzan/vant/pull/695)
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,33 +59,33 @@
"vue": ">= 2.5.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/core": "^7.0.1",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-transform-object-assign": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@vue/server-test-utils": "^1.0.0-beta.24",
"@vue/test-utils": "^1.0.0-beta.24",
"autoprefixer": "^9.1.3",
"@vue/server-test-utils": "^1.0.0-beta.25",
"@vue/test-utils": "^1.0.0-beta.25",
"autoprefixer": "^9.1.5",
"babel-core": "^7.0.0-0",
"babel-jest": "^23.4.2",
"babel-loader": "^8.0.0",
"codecov": "^3.0.4",
"babel-jest": "^23.6.0",
"babel-loader": "^8.0.2",
"codecov": "^3.1.0",
"cross-env": "^5.2.0",
"css-loader": "^1.0.0",
"dependency-tree": "^6.1.1",
"eslint": "^5.4.0",
"eslint": "^5.6.0",
"eslint-plugin-vue-libs": "^3.0.0",
"fast-glob": "^2.2.2",
"fast-vue-md-loader": "^1.0.3",
"gh-pages": "^1.2.0",
"gh-pages": "^2.0.0",
"gulp": "^3.9.1",
"gulp-iconfont": "^10.0.1",
"gulp-iconfont-css": "^2.3.0",
"html-webpack-plugin": "3.2.0",
"husky": "^0.14.3",
"jest": "^23.5.0",
"jest": "^23.6.0",
"jest-serializer-vue": "^2.0.2",
"lint-staged": "^7.2.2",
"md5-file": "^4.0.0",
Expand All @@ -96,22 +96,22 @@
"progress-bar-webpack-plugin": "^1.11.0",
"rimraf": "^2.5.4",
"shelljs": "^0.8.1",
"signale": "^1.2.1",
"signale": "^1.3.0",
"style-loader": "^0.23.0",
"stylelint": "^9.5.0",
"stylelint-config-standard": "^18.2.0",
"uppercamelcase": "^3.0.0",
"url-loader": "^1.1.1",
"vant-doc": "1.0.15",
"vant-doc": "1.0.17",
"vue": "2.5.17",
"vue-jest": "^2.6.0",
"vue-loader": "^15.4.1",
"vue-loader": "^15.4.2",
"vue-router": "^3.0.1",
"vue-server-renderer": "^2.5.17",
"vue-sfc-compiler": "^0.1.3",
"vue-template-compiler": "2.5.17",
"vue-template-es2015-compiler": "^1.6.0",
"webpack": "^4.17.1",
"webpack": "^4.19.0",
"webpack-cli": "^3.1.0",
"webpack-serve": "^2.0.2"
}
Expand Down
14 changes: 14 additions & 0 deletions packages/actionsheet/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,17 @@ export default {
| className | 为对应列添加额外的 class |
| loading | 是否为加载状态 |
| disabled | 是否为禁用状态 |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.1.16 | feature | 新增 select 事件 |
| 1.1.16 | bugfix | 修复选项加载中时仍然有点击态的问题 |
| 1.1.11 | feature | 新增 lazy-render 属性 |
| 1.1.9 | feature | 支持禁用选项 |
| 1.1.8 | bugfix | 修复在 rem 布局下标题文字大小错误的问题 |
| 1.0.4 | feature | 新增 cancel 事件 |
| 1.0.4 | improvement | 增加最大高度限制 |
| 1.0.0 | bugfix | 修复下边框未展示的问题 |
| 0.11.1 | improvement | 更新关闭按钮样式 |
2 changes: 1 addition & 1 deletion packages/address-edit/test/__snapshots__/demo.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ exports[`renders demo correctly 1`] = `
删除
</span></button>
</div>
<div class="van-popup van-popup--bottom" style="display:none;">
<div name="popup-slide-bottom" class="van-popup van-popup--bottom" style="display:none;">
<div class="van-picker van-area">
<div class="van-hairline--top-bottom van-picker__toolbar">
<div class="van-picker__cancel">取消</div>
Expand Down
30 changes: 29 additions & 1 deletion packages/address-edit/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export default {
|-----------|-----------|
| - | 在邮政编码下方插入内容 |


### 数据格式

#### addressInfo 数据格式
Expand Down Expand Up @@ -119,3 +118,32 @@ export default {

#### 省市县列表数据格式
请参考 [Area](#/zh-CN/area) 组件。

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.3.2 | improvement | 优化地区展示
| 1.3.2 | bugfix | 修复详细地址下边框未展示的问题
| 1.2.1 | improvement | 样式升级
| 1.2.0 | breaking change | 采用驼峰命名的数据结构
| 1.2.0 | bugfix | 修复删除按钮展示逻辑
| 1.1.14 | bugfix | 修复格式化字符串时报错的问题
| 1.1.11 | improvement | 优化事件触发顺序
| 1.1.8 | feature | 支持配置按钮文字
| 1.1.8 | improvement | 简化内部代码结构
| 1.1.6 | bugfix | 修复省市区弹层样式错误的问题
| 1.1.5 | improvement | 优化空值校验
| 1.1.4 | improvement | 适配小屏手机
| 1.1.3 | feature | 新增 cancel-delete 事件
| 1.0.2 | bugfix | 修复初始化时省市区未正确选中的问题
| 1.0.0 | feature | 新增 show-delete 属性
| 1.0.0 | bugfix | 修复在数据变更时未正确选中省市区的问题
| 0.12.13 | feature | 支持自定义手机号校验函数
| 0.12.6 | feature | 增加默认插槽
| 0.12.3 | bugfix | 修复 setAreaCode 方法失效的问题
| 0.12.2 | bugfix | 修复搜索结果样式错误
| 0.11.11 | feature | 新增 focus、change-area、select-search 事件
| 0.11.11 | bugfix | 修复搜索结果展示错误
| 0.9.11 | bugfix | 修正组件姓名字段的键名为 name
| 0.9.10 | feature | 新增组件
9 changes: 9 additions & 0 deletions packages/address-list/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,12 @@ export default {
|-----------|-----------|
| - | 在列表下方插入内容 |
| top | 在顶部插入内容 |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.3.2 | bugfix | 修复详细地址未完全展示的问题
| 1.3.0 | feature | 支持不可配送地址列表
| 1.2.0 | improvement | 样式优化升级
| 0.9.8 | feature | 新增组件
18 changes: 18 additions & 0 deletions packages/area/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,21 @@ Vue.use(Area);
}
];
```

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.1.12 | feature | 新增 reset 方法 |
| 1.1.11 | bugfix | 修复 city_list 为空时报错的问题 |
| 1.1.8 | improvement | 优化默认选项 |
| 1.1.2 | feature | 新增 change 事件 |
| 0.12.14 | bugfix | 修复 area-list 更新时未正确选中省市区的问题 |
| 0.12.7 | feature | 新增 item-height、visible-item-count 属性 |
| 0.12.5 | bugfix | 修复未选中省份时市区展示错误的问题 |
| 0.12.3 | bugfix | 修复传空 area-list 时报错的问题 |
| 0.12.3 | bugfix | 修复 setCode 方法失效的问题 |
| 0.11.14 | improvement | 优化性能 |
| 0.11.13 | feature | 新增 title 属性 |
| 0.11.11 | feature | 新增 focus、change-area、select-search 事件 |
| 0.9.2 | feature | 新增组件 |
7 changes: 7 additions & 0 deletions packages/badge/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ export default {
| title | 内容 | `String` | `''` |
| info | 提示消息 | `String | Number` | `''` |
| url | 跳转链接 | `String` | - |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.0.0 | bugfix | 修复选中时字体粗细错误 |
| 0.11.11 | improvement | 新增点击反馈 |
16 changes: 16 additions & 0 deletions packages/button/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,19 @@ Vue.use(Button);
| 事件名 | 说明 | 参数 |
|-----------|-----------|-----------|
| click | 点击按钮且按钮状态不为加载或禁用时触发 | - |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.3.1 | bugfix | 修复加载图标颜色错误的问题
| 1.2.0 | feature | 新增 square 属性
| 1.1.15 | feature | 新增 warning 类型
| 1.1.15 | bugfix | 修复浏览器文字缩放时样式错误的问题
| 1.1.13 | feature | 新增 plain 属性
| 1.0.5 | bugfix | 修复 loading 状态下无法水平对齐的问题
| 1.0.4 | bugfix | 修复加载状态下可点击的问题
| 0.12.5 | feature | 新增 text 属性
| 0.12.1 | improvement | 调整 small 按钮内边距
| 0.9.10 | bugfix | 修复选中状态下边框样式问题
| 0.9.4 | bugfix | 修复不可用且选中时背景色错误的问题
8 changes: 8 additions & 0 deletions packages/card/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,11 @@ Vue.use(Card);
| tags | 自定义 tags |
| thumb | 自定义 thumb |
| footer | 自定义 footer |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 0.9.2 | feature | 新增 num 和 price 属性
| 0.7.2 | feature | 新增 centered 属性
| 0.6.6 | feature | 新增 thumb 插槽
20 changes: 20 additions & 0 deletions packages/cell/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,23 @@ Vue.use(Cell).use(CellGroup);
| icon | 自定义`icon` |
| title | 自定义`title` |
| right-icon | 自定义右侧按钮,默认是`arrow` |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.1.10 | feature | 新增 arrow-direction 属性
| 1.1.4 | feature | title 和 value 属性支持 number 类型
| 1.1.0 | improvement | 优化 flex 结构
| 1.0.8 | bugfix | 修复文字垂直不对齐的问题
| 1.0.3 | feature | 新增 center 属性
| 1.0.3 | improvement | 布局方式由 table 升级为 flex-box
| 0.12.5 | bugfix | 修复 required 样式错误的问题
| 0.12.3 | improvement | 调整右侧箭头位置
| 0.12.1 | bugfix | 修复标题为空时 icon 属性无法生效的问题
| 0.12.1 | bugfix | 修复内边框宽度错误的问题
| 0.12.0 | feature | 新增 border、clickable 属性
| 0.11.14 | bugfix | 修复全局引入样式时,箭头错位的问题
| 0.10.5 | feature | 新增 to 属性,支持 vue-router 路由跳转
| 0.5.4 | bugfix | 修复同时设置 title 和 label 时 value 不居中的问题
| 0.5.4 | improvement | 新增 right-icon 插槽
19 changes: 18 additions & 1 deletion packages/checkbox/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
```

#### 自定义图标
通过 icon slot 自定义图标,可以通过 `slot-scope` 判断是否为选中状态
通过 icon 插槽自定义图标,可以通过 `slot-scope` 判断是否为选中状态

```html
<van-checkbox v-model="checked">
Expand Down Expand Up @@ -174,3 +174,20 @@ export default {
| 方法名 | 参数 | 返回值 | 介绍 |
|-----------|-----------|-----------|-------------|
| toggle | - | - | 切换选中状态 |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.1.12 | improvement | 新增 icon 插槽,支持自定义图标 |
| 1.1.11 | improvement | 新增 label-position 属性 |
| 1.1.8 | bugfix | 修复 v-model 类型检查错误 |
| 1.1.0 | bugfix | 修复内容为空时渲染了空 label 元素的问题 |
| 0.12.11 | improvement | 新增 label-disabled 属性,支持禁用 label 点击 |
| 0.12.10 | improvement | 优化 DOM 结构 |
| 0.12.10 | improvement | 新增 max 属性 |
| 0.11.11 | bugfix | 修复 disabled 属性无法生效的问题 |
| 0.11.6 | bugfix | 修复禁用态样式 |
| 0.10.1 | bugfix | 修复微信浏览器下的边框渲染错误 |
| 0.9.7 | improvement | 新增 shape 属性 |
| 0.8.8 | improvement | 新增 change 事件 |
7 changes: 7 additions & 0 deletions packages/circle/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,10 @@ export default {
| 名称 | 说明 |
|-----------|-----------|
| - | 自定义文字内容 |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 0.12.9 | improvement | 优化线条圆角 |
| 0.12.8 | feature | 新增组件 |
1 change: 1 addition & 0 deletions packages/col/en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Setting `type` to `flex` to enable flex layout

| Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------|
| type | Layout type, can be set to `flex` | `String` | - |
| gutter | Grid spacing(px) | `String | Number` | - |
| tag | Custom element tag | `String` | `div` |
| justify | Flex main axis,can be set to end/center/space-around/space-between | `String` | `start` |
Expand Down
9 changes: 9 additions & 0 deletions packages/col/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置

| 参数 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-------------|
| type | 布局方式,可选值为`flex` | `String` | - |
| gutter | 列元素之间的间距(单位为px) | `String | Number` | - |
| tag | 自定义元素标签 | `String` | `div` |
| justify | Flex 主轴对齐方式,可选值为 end/center/space-around/space-between | `String` | `start` |
Expand All @@ -104,3 +105,11 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置
| span | 列元素宽度 | `String | Number` | - |
| offset | 列元素偏移距离 | `String | Number` | - |
| tag | 自定义元素标签 | `String` | `div` |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.1.9 | feature | 新增 type 属性 |
| 1.1.9 | feature | 新增 align 属性 |
| 1.1.9 | feature | 新增 justify 属性 |
24 changes: 19 additions & 5 deletions packages/collapse/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ export default {
| 参数 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-------------|-------------|
| name | 面板唯一标识符,默认为索引值 | `String | Number` | `index` |
| icon | 左侧图标,可选值见 Icon 组件 | `String` | - |
| title | 左侧标题 | `String | Number` | - |
| value | 右侧内容 | `String | Number` | - |
| label | 标题下方的描述信息 | `String` | - |
| icon | 标题栏左侧图标,可选值见 Icon 组件 | `String` | - |
| title | 标题栏左侧内容 | `String | Number` | - |
| value | 标题栏右侧内容 | `String | Number` | - |
| label | 标题栏描述信息 | `String` | - |
| border | 是否显示内边框 | `Boolean` | `true` |
| is-link | 是否展示右侧箭头并开启点击反馈 | `Boolean` | `true` |
| is-link | 标题栏是否展示右侧箭头并开启点击反馈 | `Boolean` | `true` |

### CollapseItem Slot

Expand All @@ -113,3 +113,17 @@ export default {
| icon | 自定义`icon` |
| title | 自定义`title` |
| right-icon | 自定义右侧按钮,默认是`arrow` |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.2.1 | feature | 新增 icon 属性 |
| 1.2.1 | feature | 新增 label 属性 |
| 1.2.1 | feature | 新增 value 属性 |
| 1.2.1 | feature | 新增 border 属性 |
| 1.2.1 | feature | 新增 is-link 属性 |
| 1.2.1 | feature | 新增 icon 属性 |
| 1.1.14 | feature | 新增过渡动画 |
| 1.1.14 | improvement | 渲染优化 |
| 1.0.0 | feature | 新增组件 |
11 changes: 11 additions & 0 deletions packages/contact-card/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,14 @@ export default {
| id | 每位联系人的唯一标识 | `String | Number` |
| name | 联系人姓名 | `String` |
| tel | 联系人手机号 | `String` |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.3.0 | improvement | 样式升级 |
| 1.1.1 | improvement | 优化底部边框样式 |
| 0.11.12 | feature | 新增 editable 属性 |
| 0.11.11 | feature | 新增点击反馈 |
| 0.10.3 | bugfix | 修复列表底部遮挡问题 |
| 0.9.10 | feature | 新增组件 |
14 changes: 14 additions & 0 deletions packages/coupon-list/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,17 @@ export default {
| endAt | 卡失效日期 (时间戳, 单位秒) | `Number` |
| reason | 不可用原因 | `String` |
| value | 订单优惠金额,单位分 | `Number` |

### 更新日志

| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 0.12.13 | bugfix | 修复文字截断的问题 |
| 0.12.5 | improvement | 支持 v-model 绑定输入值 |
| 0.12.5 | improvement | 新增 exchange-loading 属性 |
| 0.12.5 | improvement | 新增 exchange-min-length 属性 |
| 0.12.1 | bugfix | 修复行高错误的问题 |
| 0.12.1 | bugfix | 修复输入框样式错误 |
| 0.11.11 | improvement | 新增点击反馈 |
| 0.10.4 | bugfix | 修复空列表提示展示时机错误的问题 |
| 0.9.2 | breaking change | 拆分为 CouponCell 和 CouponList 组件 |
Loading

0 comments on commit bde9f5a

Please sign in to comment.