diff --git a/docs/examples-docs/changelog.md b/docs/examples-docs/changelog.md index 368905d3f..545b0e180 100644 --- a/docs/examples-docs/changelog.md +++ b/docs/examples-docs/changelog.md @@ -1,9 +1,26 @@ ## 更新日志 +## [v0.8.5](https://github.com/youzan/vant/tree/v0.8.5) (2017-08-21) +[Full Changelog](https://github.com/youzan/vant/compare/v0.8.4...v0.8.5) + +**非兼容更新和新特性:** + +- Doc: add usage guide && top progress [\#83](https://github.com/youzan/vant/pull/83) ([chenjiahan](https://github.com/chenjiahan)) + +**修复:** + +- Popup: not preventScroll by default [\#84](https://github.com/youzan/vant/pull/84) ([chenjiahan](https://github.com/chenjiahan)) +- fix: swipe sometimes will change to drag image [\#81](https://github.com/youzan/vant/pull/81) ([pangxie1991](https://github.com/pangxie1991)) + +**处理的 Issue:** + +- Href link does not work [\#82](https://github.com/youzan/vant/issues/82) +- Swipe image not displayed [\#79](https://github.com/youzan/vant/issues/79) + ## [v0.8.4](https://github.com/youzan/vant/tree/v0.8.4) (2017-08-18) [Full Changelog](https://github.com/youzan/vant/compare/v0.8.3...v0.8.4) -**合并的 Pull Request (可能有不兼容改动):** +**修复:** - fix: field 计算autosize,需要nextTick [\#78](https://github.com/youzan/vant/pull/78) ([pangxie1991](https://github.com/pangxie1991)) diff --git a/docs/examples-docs/datetime-picker.md b/docs/examples-docs/datetime-picker.md index 3f122139d..dd4973ea6 100644 --- a/docs/examples-docs/datetime-picker.md +++ b/docs/examples-docs/datetime-picker.md @@ -5,15 +5,16 @@ export default { minHour: 10, maxHour: 20, minDate: new Date(), - currentDate1: null, + maxDate: new Date(2019, 10, 1), + currentDate1: new Date(2018, 0, 1), currentDate2: null, currentDate3: null }; }, methods: { - handlePickerChange(picker, values) { - console.log(values); + handlePickerChange(picker) { + console.log(picker); }, handlePickerCancel() { console.log('picker cancel'); @@ -43,10 +44,10 @@ Vue.component(DatetimePicker.name, DatetimePicker); @@ -57,13 +58,14 @@ export default { minHour: 10, maxHour: 20, minDate: new Date(), - currentDate: null + maxDate: new Date(2019, 10, 1), + currentDate: new Date(2018, 0, 1) }; }, methods: { - handlePickerChange(picker, values) { - picker.setColumnValues(1, citys[values[0]]); + handlePickerChange(picker) { + console.log(picker); } } }; @@ -78,7 +80,6 @@ export default { import { Dialog } from 'packages/index'; +const message = '弹窗内容'; + export default { methods: { - handleAlertClick() { + onClickAlert() { Dialog.alert({ - title: 'alert标题', - message: '弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。' - }).then((action) => { - console.log(action); + title: '标题', + message }); }, - handleAlert2Click() { + onClickAlert2() { Dialog.alert({ - message: '无标题alert' - }).then((action) => { - console.log(action); + message }); }, - handleConfirmClick() { + onClickConfirm() { Dialog.confirm({ - title: 'confirm标题', - message: '弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。弹窗提示文字,左右始终距离边20PX,上下距离20PX,文字左对齐。' - }).then((action) => { + title: '标题', + message + }).catch(action => { console.log(action); - }, (error) => { - console.log(error); }); } } @@ -46,8 +42,6 @@ export default { ### 使用指南 -`Dialog`和其他组件不同,不是通过HTML结构的方式来使用,而是通过函数调用的方式。使用前需要先引入它,它接受一个数组作为参数,数组中的每一项对应了图片链接。 - ```js import { Dialog } from 'vant'; ``` @@ -56,30 +50,30 @@ import { Dialog } from 'vant'; #### 消息提示 -用于提示一些消息,只包含一个确认按钮。 +用于提示一些消息,只包含一个确认按钮 :::demo 消息提示 ```html -alert -无标题alert +Alert +无标题 Alert diff --git a/packages/cell-swipe/index.vue b/packages/cell-swipe/index.vue index 6b9c024b8..7ab4ce705 100644 --- a/packages/cell-swipe/index.vue +++ b/packages/cell-swipe/index.vue @@ -1,15 +1,19 @@ - - - 单元格内容 - - - + + + - - - + + @@ -17,112 +21,100 @@ diff --git a/packages/dialog/dialog.vue b/packages/dialog/dialog.vue index aabc82ed8..7aec18626 100644 --- a/packages/dialog/dialog.vue +++ b/packages/dialog/dialog.vue @@ -2,8 +2,10 @@ - - + + + +