diff --git a/README.zh-CN.md b/README.zh-CN.md index 90d8c38d5..aaca457dd 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -59,18 +59,17 @@ yarn add vant ## 快速上手 -#### 方式一. 使用  [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) (推荐) - -`babel-plugin-import` 是一款 babel 插件,它会在编译过程中将 import 的写法自动转换为按需引入的方式 +### 方式一. 自动按需引入组件 (推荐) +[babel-plugin-import](https://github.com/ant-design/babel-plugin-import) 是一款 babel 插件,它会在编译过程中将 import 的写法自动转换为按需引入的方式 ```bash -# 安装 babel-plugin-import 插件 +# 安装插件 npm i babel-plugin-import -D ``` ```js -// 在 .babelrc 或 babel-loader 中添加插件配置 -// 注意:webpack 1 无需设置 libraryDirectory。 +// 在.babelrc 中添加配置 +// 注意:webpack 1 无需设置 libraryDirectory { "plugins": [ ["import", { @@ -80,17 +79,28 @@ npm i babel-plugin-import -D }] ] } + +// 对于使用 babel7 的用户,可以在 babel.config.js 中配置 +module.exports = { + plugins: [ + ['import', { + libraryName: 'vant', + libraryDirectory: 'es', + style: true + }, 'vant'] + ] +}; ``` -接着你可以在代码中直接引入 Vant 组件,插件会自动将代码转化为方式二中的按需引入形式。 - ```js +// 接着你可以在代码中直接引入 Vant 组件 +// 插件会自动将代码转化为方式二中的按需引入形式 import { Button } from 'vant'; ``` > 如果你在使用 TypeScript,可以使用 [ts-import-plugin](https://github.com/Brooooooklyn/ts-import-plugin) 实现按需引入 -#### 方式二. 按需引入组件 +### 方式二. 手动按需引入组件 在不使用插件的情况下,可以手动引入需要的组件 @@ -99,7 +109,9 @@ import Button from 'vant/lib/button'; import 'vant/lib/button/style'; ``` -#### 方式三. 导入所有组件 +### 方式三. 导入所有组件 + +Vant 支持一次性导入所有组件,引入所有组件会增加代码包体积,因此不推荐这种做法 ```js import Vue from 'vue'; diff --git a/docs/markdown/changelog.en-US.md b/docs/markdown/changelog.en-US.md index c472a76bb..056a05c1c 100644 --- a/docs/markdown/changelog.en-US.md +++ b/docs/markdown/changelog.en-US.md @@ -1,2092 +1,167 @@ # Changelog -### [v1.6.19](https://github.com/youzan/vant/tree/v1.6.19) -`2019-05-16` +### [v2.0.0-beta.0](https://github.com/youzan/vant/tree/v2.0.0-beta.0) +`2019-05-21` -**Bug Fixes** +#### Overview -- fix Col should set min-height -- fix Uploader should clip file-upload-button -- fix Tabbar should not render info when info is empty string -- fix is-src utils data URLs should be prefixed with the data:image [\#3308](https://github.com/youzan/vant/pull/3308) [\#3300](https://github.com/youzan/vant/pull/3300) +- Add four new components +- Add dozens of APIs +- New card style document, support document search +- All components support custom styles via `less` variables +- Rename several components, deprecate several APIs +#### New Components -### [v1.6.18](https://github.com/youzan/vant/tree/v1.6.18) -`2019-05-10` +- `Image` Component +- `Skeleton` Component +- `IndexBar`、`IndexAnchor` Component +- `DropdownMenu`、`DropdownItem` Component -**Bug Fixes** +#### Breaking Changes -- remote some outdated css in AddressEdit -- fix Radio click event not bubble -- fix Checkbox click event not bubble -- fix PullRefresh transform style [\#3258](https://github.com/youzan/vant/pull/3258) -- fix Progress incorrect width when update pivoit-text -- fix Swipe map cause warning when prevent touchmove event +##### Actionsheet +- Rename to `ActionSheet` -### [v1.6.17](https://github.com/youzan/vant/tree/v1.6.17) -`2019-05-05` +##### Button -**Improvements** +- Remove `bottom-action` prop,please use `square` and `size` instead -- List: add direction prop [\#3223](https://github.com/youzan/vant/pull/3223) -- Cell: add title-style prop [\#3233](https://github.com/youzan/vant/pull/3233) -- Field: add label-width prop [\#3235](https://github.com/youzan/vant/pull/3235) +##### Field -**Bug Fixes** +- Remove `on-icon-click` prop,please use `click-right-icon` event instead +- Rename `icon` prop to `right-icon` +- Rename `icon` slot to `right-icon` +- Rename `click-icon` event to `click-right-icon` -- fix Card thumb image align center [\#3229](https://github.com/youzan/vant/pull/3229) -- fix Icon new and question icon incomplete render -- fix Step text display overlapping in small screen devices -- fix Step incorrect active step when insert step asynchronously -- fix Popup click-overlay event triggered twice when show multiple popup +##### GoodsAction +- Rename `GoodsActionBigBtn` to `GoodsActionButton` +- Rename `GoodsActionMiniBtn` to `GoodsActionIcon` +- Remove `primary` prop of `GoodsActionBigBtn`,please to `type` prop instead -### [v1.6.16](https://github.com/youzan/vant/tree/v1.6.16) -`2019-04-26` +##### Step -**Improvements** +- Remove `icon` prop +- Remove `title` prop +- Remove `icon-class` prop +- Remove `description` prop +- Remove `message-extra` slot -- Step: add active-icon slot [\#3193](https://github.com/youzan/vant/pull/3193) -- NumberKeyboard: add title-left slot [\#3194](https://github.com/youzan/vant/pull/3194) -- Icon: update new icon & hot icon [\#3203](https://github.com/youzan/vant/pull/3203) +##### Badge -**Bug Fixes** +- Rename `BadgeGroup` to `Sidebar` +- Rename `Badge` to `SlideBarItem` -- fix Row align bottom not work [\#3209](https://github.com/youzan/vant/pull/3209) -- fix Area change event values incorrect [\#3219](https://github.com/youzan/vant/pull/3219) -- fix Field add hack for iOS 12 scroll position [\#3204](https://github.com/youzan/vant/pull/3204) -- fix AddressList not trigger select event when click radio icon [\#3214](https://github.com/youzan/vant/pull/3214) -- fix ContactList not trigger select event when click radio icon [\#3218](https://github.com/youzan/vant/pull/3218) -- fix Slider drag and `value` props change at the same time can not drag success [\#3206](https://github.com/youzan/vant/pull/3206) +##### Loading +- Remove `circle` type +- Remove `gradient-circle` type -### [v1.6.15](https://github.com/youzan/vant/tree/v1.6.15) -`2019-04-19` +##### Checkbox -**Improvements** +- Adjusted to `flex` layout, may affect the original layout -- Card: add less vars [\#3167](https://github.com/youzan/vant/pull/3167) -- Swipe: add less vars [\#3169](https://github.com/youzan/vant/pull/3169) -- Field: add less vars [\#3168](https://github.com/youzan/vant/pull/3168) -- ImagePreview: add index slot [\#3157](https://github.com/youzan/vant/pull/3157) -- ImagePreview: add change event [\#3155](https://github.com/youzan/vant/pull/3155) -- ImagePreview: support component call [\#3154](https://github.com/youzan/vant/pull/3154) -- SubmitBar: add decimal-length prop [\#3151](https://github.com/youzan/vant/pull/3151) -- Tabbar: add safe-area-inset-bottom prop [\#3149](https://github.com/youzan/vant/pull/3149) -- SubmitBar: add safe-area-inset-bottom prop [\#3172](https://github.com/youzan/vant/pull/3172) -- GoodsAction: add safe-area-inset-bottom prop [\#3174](https://github.com/youzan/vant/pull/3174) -- ActionSheet: add safe-area-inset-bottom prop [\#3171](https://github.com/youzan/vant/pull/3171) -- NumberKeyboard: add safe-area-inset-bottom prop [\#3173](https://github.com/youzan/vant/pull/3173) +##### Radio -**Bug Fixes** +- Adjusted to `flex` layout, may affect the original layout -- fix Card should not render empty bottom div [\#3152](https://github.com/youzan/vant/pull/3152) -- fix Popup may cause event uncancelable warning [\#3150](https://github.com/youzan/vant/pull/3150) -- fix Toast should add z-index if previous toast has not disappeared [\#3153](https://github.com/youzan/vant/pull/3153) +##### Waterfall +- Remove Waterfall component,please use `List` instead,or use [@vant/waterfall](https://github.com/chenjiahan/vant-waterfall)。 -### [v1.6.14](https://github.com/youzan/vant/tree/v1.6.14) -`2019-04-13` +#### New Features -**Improvements** +##### ActionSheet -- Rate: add allow-half prop [\#3134](https://github.com/youzan/vant/pull/3134) -- ImagePreview: add max-zoom、min-zoom prop [\#3133](https://github.com/youzan/vant/pull/3133) -- Dialog: add confirm-button-color、cancel-button-color prop [\#3107](https://github.com/youzan/vant/pull/3107) -- Cell: add less vars [\#3122](https://github.com/youzan/vant/pull/3122) -- Rate: add less vars [\#3135](https://github.com/youzan/vant/pull/3135) -- Panel: add less vars [\#3136](https://github.com/youzan/vant/pull/3136) -- Sidebar: add less vars [\#3131](https://github.com/youzan/vant/pull/3131) -- Dialog: add less vars [\#3123](https://github.com/youzan/vant/pull/3123) -- Slider: add less vars [\#3125](https://github.com/youzan/vant/pull/3125) -- Tabbar: add less vars [\#3124](https://github.com/youzan/vant/pull/3124) +- add `close-on-click-action` prop +- support use `title` and `actions` prop at same time -**Bug Fixes** +##### Button -- fix Step incorrect active step when destory step [\#3140](https://github.com/youzan/vant/pull/3140) -- fix Toast may render error when use getContainer [\#3115](https://github.com/youzan/vant/pull/3115) -- fix Dialog may render error when use getContainer [\#3111](https://github.com/youzan/vant/pull/3111) +- add `loading-type` prop +##### Checkbox -### [v1.6.13](https://github.com/youzan/vant/tree/v1.6.13) -`2019-04-06` +- add `icon-size` prop -**Improvements** +##### Field -- Uploader: add name prop [\#3096](https://github.com/youzan/vant/pull/3096) -- Slider: add vertical prop [\#3078](https://github.com/youzan/vant/pull/3078) -- Stepper: add input-width prop [\#3076](https://github.com/youzan/vant/pull/3076) -- Tag: add less vars [\#3087](https://github.com/youzan/vant/pull/3087) -- Button: add less vars [\#3093](https://github.com/youzan/vant/pull/3093) -- CellGroup: add less vars [\#3094](https://github.com/youzan/vant/pull/3094) +- add `label-class` prop -**Bug Fixes** +##### GoodsActionButton -- fix Tab should set line position when activated [\#3097](https://github.com/youzan/vant/pull/3097) +- add `type` prop +##### Icon -### [v1.6.12](https://github.com/youzan/vant/tree/v1.6.12) -`2019-03-28` +- Support `size` prop of `Number` type -**Improvements** +##### Loading -- ActionSheet: add less vars [\#3049](https://github.com/youzan/vant/pull/3049) +- add `default` slot +- add `vertical` prop +- add `text-size` prop +- Support `size` prop of `Number` type -**Bug Fixes** +##### Notify -- fix SwipeCell unable to scroll page when opened [\#3056](https://github.com/youzan/vant/pull/3056) -- fix Picker render error when set data async [\#3064](https://github.com/youzan/vant/pull/3064) -- fix Button square prop not work when use hairline [\#3058](https://github.com/youzan/vant/pull/3058) +- add `onClick` prop +##### NoticeBar -### [v1.6.11](https://github.com/youzan/vant/tree/v1.6.11) -`2019-03-22` +- add `left-icon` slot +- add `right-icon` slot -**Improvements** +##### PasswordInput -- Icon: update shop icons [\#3044](https://github.com/youzan/vant/pull/3044) -- Button: add hairline prop [\#3031](https://github.com/youzan/vant/pull/3031) -- Button: add touchstart event [\#3039](https://github.com/youzan/vant/pull/3039) -- Dialog: add getContainer option [\#3040](https://github.com/youzan/vant/pull/3040) -- Radio: add click event [\#2990](https://github.com/youzan/vant/pull/2990) -- Checkbox: add click event [\#2990](https://github.com/youzan/vant/pull/2990) -- NoticeBar: add wrapable prop [\#2992](https://github.com/youzan/vant/pull/2992) -- Field: add error-message-align prop [\#3016](https://github.com/youzan/vant/pull/3016) -- Sku: support set selectedNum when inited [\#3045](https://github.com/youzan/vant/pull/3045) -- ActionSheet: support use slot and cancel-text at same time [\#3021](https://github.com/youzan/vant/pull/3021) +- add `gutter` prop -**Bug Fixes** +##### Popup -- fix Dialog overlay incorrect locate when use getContainer [\#3041](https://github.com/youzan/vant/pull/3041) -- fix Swipe text blur in some browsers [\#3030](https://github.com/youzan/vant/pull/3030) -- fix Toast should not render overlay when cleared [\#3025](https://github.com/youzan/vant/pull/3025) -- fix Steps active-icon prop style error when vertical [\#3007](https://github.com/youzan/vant/pull/3007) -- fix Collapse can not expand when clientHeight equals zero [\#2993](https://github.com/youzan/vant/pull/2993) +- add `click` event +- add `duration` prop +##### Radio -### [v1.6.10](https://github.com/youzan/vant/tree/v1.6.10) -`2019-03-17` +- add `icon-size` prop -**Improvements** +##### Steps -- Icon: add tag prop [\#2986](https://github.com/youzan/vant/pull/2986) -- Cell: add label slot [\#2956](https://github.com/youzan/vant/pull/2956) -- Toast: add onClose prop [\#2964](https://github.com/youzan/vant/pull/2964) -- AddressEdit: add setAddressDetail method [\#2984](https://github.com/youzan/vant/pull/2984) +- add `inactive-icon` prop +- add `inactive-icon` slot -**Bug Fixes** +##### SubmitBar -- fix List render error by adding a loading key [\#2983](https://github.com/youzan/vant/pull/2983) -- fix Steps incorrect active style in vertical direction [\#2981](https://github.com/youzan/vant/pull/2981) -- fix Coupon value-desc display condition [\#2980](https://github.com/youzan/vant/pull/2980) -- fix Uploader can not upload same file when before-read [\#2971](https://github.com/youzan/vant/pull/2971) +- add `tip-icon` prop +- add `suffix-label` prop +##### Switch -### [v1.6.9](https://github.com/youzan/vant/tree/v1.6.9) -`2019-03-11` +- The loading icon color will now follow the background color change -**Improvements** +##### SwitchCell -- Field: add size prop [\#2936](https://github.com/youzan/vant/pull/2936) -- Collapse: add size prop [\#2946](https://github.com/youzan/vant/pull/2946) -- Collapse: add border prop [\#2933](https://github.com/youzan/vant/pull/2933) -- CellGroup: add title prop [\#2928](https://github.com/youzan/vant/pull/2928) -- Steps: add active-icon prop [\#2934](https://github.com/youzan/vant/pull/2934) -- Picker: add default-index prop [\#2935](https://github.com/youzan/vant/pull/2935) -- ActionSheet: add index param for select event [\#2917](https://github.com/youzan/vant/pull/2917) +- add `border` prop +- add `cell-size` prop -**Bug Fixes** +##### Sku -- fix Card origin-price slot not work [\#2927](https://github.com/youzan/vant/pull/2927) -- fix Swipe emit change event in correct time [\#2909](https://github.com/youzan/vant/pull/2909) +- add `preview-open` event +- add `preview-close` event +##### Tab -### [v1.6.8](https://github.com/youzan/vant/tree/v1.6.8) -`2019-03-02` +- Optimize `animated` performance +- Fix incorrect tab pane height when use `animated` prop -**Improvements** +##### Tabbar -- CouponList: optimize style of empty tip [\#2878](https://github.com/youzan/vant/pull/2878) -- allow use ref in functional components [\#2863](https://github.com/youzan/vant/pull/2863) +- add `route` prop +- add `border` prop +- add `inactive-color` prop -**Bug Fixes** +##### TabbarItem -- fix Field label slot not work [\#2872](https://github.com/youzan/vant/pull/2872) -- fix Icon missing new icon [\#2887](https://github.com/youzan/vant/pull/2887) -- fix AddressList should hide radio when unswitchable [\#2886](https://github.com/youzan/vant/pull/2886) -- fix Tab scroll to correct position when use offset-top [\#2873](https://github.com/youzan/vant/pull/2873) - - -### [v1.6.7](https://github.com/youzan/vant/tree/v1.6.7) -`2019-02-26` - -**Improvements** - -- Button: add loading-size prop [\#2854](https://github.com/youzan/vant/pull/2854) -- Icon: optimzie round corner of some icons [\#2856](https://github.com/youzan/vant/pull/2856) -- Sku: Add custom settings in stepper stock [\#2839](https://github.com/youzan/vant/pull/2839) -- Stepper: add focus event [\#2841](https://github.com/youzan/vant/pull/2841) - -**Bug Fixes** - -- fix ActionSheet lazy-render not work [\#2840](https://github.com/youzan/vant/pull/2840) -- fix ActionSheet get-container not work [\#2853](https://github.com/youzan/vant/pull/2853) -- fix Tab should scroll to active tab when inited [\#2857](https://github.com/youzan/vant/pull/2857) -- fix Checkbox uncheckable when inside cell [\#2855](https://github.com/youzan/vant/pull/2855) -- fix CouponList incorrectly render when disabled list empty [\#2845](https://github.com/youzan/vant/pull/2845) - - -### [v1.6.6](https://github.com/youzan/vant/tree/v1.6.6) -`2019-02-24` - -**Improvements** - -- Button: add info type [\#2831](https://github.com/youzan/vant/pull/2831) -- Picker: add title slot [\#2811](https://github.com/youzan/vant/pull/2811) -- Tab: add lazy-render props [\#2800](https://github.com/youzan/vant/pull/2800) -- Tab: add nav-left、nav-right slots [\#2828](https://github.com/youzan/vant/pull/2828) -- PasswordInput: add mask prop [\#2796](https://github.com/youzan/vant/pull/2796) -- Stepper: update style [\#2790](https://github.com/youzan/vant/pull/2790) -- Search: update style, add shape、label props [\#2788](https://github.com/youzan/vant/pull/2788) -- Dialog: allow use newline charactor in message [\#2799](https://github.com/youzan/vant/pull/2799) -- Notify: allow use newline charactor in message [\#2798](https://github.com/youzan/vant/pull/2798) - -**Bug Fixes** - -- fix Cell title-class wrong type [\#2780](https://github.com/youzan/vant/pull/2780) -- fix Tab wrong height when use line style tab inside card style tab [\#2825](https://github.com/youzan/vant/pull/2825) - - -### [v1.6.5](https://github.com/youzan/vant/tree/v1.6.5) -`2019-02-17` - -**Improvements** - -- Button: add url、to、replace props [\#2754](https://github.com/youzan/vant/pull/2754) -- Tabs: add background prop [\#2772](https://github.com/youzan/vant/pull/2772) -- Tabs: add title-active-color、title-inactive-color prop [\#2773](https://github.com/youzan/vant/pull/2773) -- CouponCell: refactored into functional component [\#2759](https://github.com/youzan/vant/pull/2759) -- AddressList: refactored into functional component [\#2757](https://github.com/youzan/vant/pull/2757) -- Sku: partial refactored into functional component [\#2756](https://github.com/youzan/vant/pull/2756) - -**Bug Fixes** - -- fix Collapse title slot not work [\#2753](https://github.com/youzan/vant/pull/2753) -- fix Panel v-slot now work [\#2752](https://github.com/youzan/vant/pull/2752) - - -### [v1.6.4](https://github.com/youzan/vant/tree/v1.6.4) -`2019-02-14` - -**Bug Fixes** - -- Sku: buy event incorrect triggered [\#2741](https://github.com/youzan/vant/pull/2741) - - -### [v1.6.3](https://github.com/youzan/vant/tree/v1.6.3) -`2019-02-14` - -**Improvements** - -- Toast: add getContainer prop [\#2724](https://github.com/youzan/vant/pull/2724) -- Button: add loading-text prop [\#2732](https://github.com/youzan/vant/pull/2732) -- Coupon: add value-desc、unit-desc prop [\#2710](https://github.com/youzan/vant/pull/2710) -- Card: refactored into functional component [\#2740](https://github.com/youzan/vant/pull/2740) -- Cell: refactored into functional component [\#2729](https://github.com/youzan/vant/pull/2729) -- Switch: refactored into functional component [\#2736](https://github.com/youzan/vant/pull/2736) -- GoodsAction: refactored into functional component [\#2730](https://github.com/youzan/vant/pull/2730) - -**Bug Fixes** - -- fix Field right icon flex shrink [\#2713](https://github.com/youzan/vant/pull/2713) -- fix Field wrong height in datetime-local type [\#2720](https://github.com/youzan/vant/pull/2720) -- fix Sku click area dislocation in iOS 12 [\#2722](https://github.com/youzan/vant/pull/2722) -- fix SwipeCell incorrect render when left-width equals zero [\#2737](https://github.com/youzan/vant/pull/2737) -- fix functional component multi listeners [\#2717](https://github.com/youzan/vant/pull/2717) - - -### [v1.6.2](https://github.com/youzan/vant/tree/v1.6.2) -`2019-02-10` - -**Improvements** - -- Tag: add click event [\#2693](https://github.com/youzan/vant/pull/2693) -- Swipe: add click event [\#2690](https://github.com/youzan/vant/pull/2690) -- NoticeBar: add close event [\#2692](https://github.com/youzan/vant/pull/2692) -- PullRefresh: add success-text、success-duration props [\#2709](https://github.com/youzan/vant/pull/2709) -- Use scoped-slots in Vue 2.6 [\#2688](https://github.com/youzan/vant/pull/2688) - -**Bug Fixes** - -- fix Swipe lazy-image not appeared [\#2708](https://github.com/youzan/vant/pull/2708) -- fix Dialog beforeClose not work for click overlay [\#2707](https://github.com/youzan/vant/pull/2707) -- fix Collpase height calc error when set user-select none [\#2702](https://github.com/youzan/vant/pull/2702) -- fix functional component should inherit attrs [\#2706](https://github.com/youzan/vant/pull/2706) -- fix AddressEdit select search not work in Vue 2.6 [\#2689](https://github.com/youzan/vant/pull/2689) -- fix AddressList should hide radio of disabled item [\#2687](https://github.com/youzan/vant/pull/2687) - - -### [v1.6.1](https://github.com/youzan/vant/tree/v1.6.1) -`2019-02-05` - -**Improvements** - -- fix functional component can not inherit directives and native events. [\#2686](https://github.com/youzan/vant/pull/2686) - - -### [v1.6.0](https://github.com/youzan/vant/tree/v1.6.0) -`2019-02-04` - -**Breaking changes** - -- Radio: refactored, now has the same stuct as Checkbox [\#2651](https://github.com/youzan/vant/pull/2651) - -**Improvements** - -- Use JSX to rewrite all components -- Transform part components to functional for better performance -- Card: add tag slot [\#2636](https://github.com/youzan/vant/pull/2636) -- Icon: add weapp-nav icon [\#2682](https://github.com/youzan/vant/pull/2682) -- Radio: add icon slot [\#2651](https://github.com/youzan/vant/pull/2651) -- Radio: add shape prop [\#2651](https://github.com/youzan/vant/pull/2651) -- Toast: add className prop [\#2680](https://github.com/youzan/vant/pull/2680) -- Notify: add className prop [\#2681](https://github.com/youzan/vant/pull/2681) -- Popup: add open/close event [\#2649](https://github.com/youzan/vant/pull/2649) -- Popup: add opened/closed event [\#2650](https://github.com/youzan/vant/pull/2650) - -**Bug Fixes** - -- fix ContactList button position [\#2634](https://github.com/youzan/vant/pull/2634) -- fix Toast clear in multiple mode [\#2635](https://github.com/youzan/vant/pull/2635) -- fix SwipeCell maximum left offset [\#2633](https://github.com/youzan/vant/pull/2633) -- fix Popup get-container error when destoryed [\#2679](https://github.com/youzan/vant/pull/2679) - - -### [v1.5.7](https://github.com/youzan/vant/tree/v1.5.7) -`2019-01-24` - -**Improvements** - -- add live icon -- add lock icon -- add audio icon -- add column icon -- add replay icon -- add shrink icon -- add graphic icon -- add invition icon -- add ascending icon -- add descending icon -- add play-circle icon -- add stop-circle icon -- add pause-circle icon -- add play-circle-o icon -- add stop-circle-o icon -- add pause-circle-o icon -- Field: add click-left-icon event [\#2605](https://github.com/youzan/vant/pull/2605) - -### [v1.5.6](https://github.com/youzan/vant/tree/v1.5.6) -`2019-01-22` - -**Improvements** - -- Card: add origin-price slot [\#2588](https://github.com/youzan/vant/pull/2588) -- Switch: add active-value & inactive-value prop [\#2590](https://github.com/youzan/vant/pull/2590) -- SwitchCell: add active-value & inactive-value prop [\#2591](https://github.com/youzan/vant/pull/2591) - -**Bug Fixes** - -- fix Card: centered prop not work [\#2589](https://github.com/youzan/vant/pull/2589) -- fix Icon name not work when passing url [\#2585](https://github.com/youzan/vant/pull/2585) - - -### [v1.5.5](https://github.com/youzan/vant/tree/v1.5.5) -`2019-01-21` - -**Bug Fixes** - -- fix Field type prop not work [\#2579](https://github.com/youzan/vant/pull/2579) - - -### [v1.5.4](https://github.com/youzan/vant/tree/v1.5.4) -`2019-01-20` - -**Bug Fixes** - -- fix missing dependencie @vue/babel-helper-vue-jsx-merge-props [\#2474](https://github.com/youzan/vant/issues/2474) - - -### [v1.5.3](https://github.com/youzan/vant/tree/v1.5.3) -`2019-01-20` - -**Improvements** - -- List: add error-text prop [\#2568](https://github.com/youzan/vant/pull/2568) -- Toast: allow newline charactor [\#2496](https://github.com/youzan/vant/pull/2496) -- Coupon: add condition prop [\#2551](https://github.com/youzan/vant/pull/2551) -- Dialog: enable lazy-render [\#2495](https://github.com/youzan/vant/pull/2495) -- NavBar: support custom theme [\#2570](https://github.com/youzan/vant/pull/2570) -- ImagePreview: add lazyLoad prop [\#2569](https://github.com/youzan/vant/pull/2569) -- Area: add confirm-button-text、cancel-button-text prop [\#2556](https://github.com/youzan/vant/pull/2556) - -**Bug Fixes** - -- fix Card price style [\#2549](https://github.com/youzan/vant/pull/2549) -- fix Radio unchecked icon color [\#2484](https://github.com/youzan/vant/pull/2484) -- fix Radio label-position type [\#2485](https://github.com/youzan/vant/pull/2485) -- fix Dialog action event [\#2571](https://github.com/youzan/vant/pull/2571) - - -### [v1.5.2](https://github.com/youzan/vant/tree/v1.5.2) -`2019-01-10` - -**Improvements** - -- Icon: add cart-circle icon [\#2480](https://github.com/youzan/vant/pull/2480) -- Color: update base green to wechat green [\#2479](https://github.com/youzan/vant/pull/2479) -- Coupon: add description prop [\#2458](https://github.com/youzan/vant/pull/2458) -- ImagePreview: add className prop [\#2433](https://github.com/youzan/vant/pull/2433) -- Sku: support hide soldout sku [\#2472](https://github.com/youzan/vant/pull/2472) - -**Bug Fixes** - -- fix DatetimePicker value observable [\#2427](https://github.com/youzan/vant/pull/2427) -- fix Icon rounded lines [\#2437](https://github.com/youzan/vant/pull/2437) -- fix SubmitBar can not hide price [\#2469](https://github.com/youzan/vant/pull/2469) -- fix Swipe position wrong when use swipeTo [\#2471](https://github.com/youzan/vant/pull/2471) -- fix Stepper wrong value when input is empty and min is zero [\#2470](https://github.com/youzan/vant/pull/2470) -- fix Tab should not have line animation when inited [\#2459](https://github.com/youzan/vant/pull/2459) - - -### [v1.5.1](https://github.com/youzan/vant/tree/v1.5.1) -`2019-01-01` - -**Improvements** - -- Card: add price、num slot [\#2416](https://github.com/youzan/vant/pull/2416) -- Slider: add button slot [\#2373](https://github.com/youzan/vant/pull/2373) -- Slider: add active-color、inactive-color prop [\#2374](https://github.com/youzan/vant/pull/2374) -- Tabbar: add active-color prop [\#2372](https://github.com/youzan/vant/pull/2372) -- Sku: add sku-selected event [\#2386](https://github.com/youzan/vant/pull/2386) - -**Bug Fixes** - -- fix Card desc ellipsis [\#2414](https://github.com/youzan/vant/pull/2414) -- fix ContactList missing dependencies [\#2415](https://github.com/youzan/vant/pull/2415) -- fix Icon missing protocol [\#2385](https://github.com/youzan/vant/pull/2385) - - -### [v1.5.0](https://github.com/youzan/vant/tree/v1.5.0) -`2018-12-22` - -**Breaking changes** - -In version 1.5.0, we unified the icon specification and redrawed all the icons, adding about 100 new icons. For the same icon, we will provide two styles of `outlined` and `filled`. - - - -At the same time, we also made some adjustments to the original icons: - -- remove edit-data -- remove pending-deliver -- remove pending-evaluate -- remove points-mall -- remove exchange-record -- rename warn to info -- rename check to circle -- rename add2 to add-square -- rename question2 to question -- rename password-view to eye -- rename password-not-view to closed-eye -- rename value-card to balance-o -- rename receive-gift to gift -- rename pending-orders to orders-o -- rename gift-card-pay to gift-card - -Also we have optimized the UI of the following components:: - -- Cell -- Card -- Checkbox -- Collapse -- Tab -- Toast -- Switch -- Swipe -- TreeSelect - -**Improvements** - -- support tag/attribute auto-completion via the vetur plugin [\#2261](https://github.com/youzan/vant/pull/2261) -- support use component by PascalCase tag name [\#2296](https://github.com/youzan/vant/pull/2296) -- Tab: add ellipsis prop [\#2299](https://github.com/youzan/vant/pull/2299) -- Tab: add line-height prop [\#2357](https://github.com/youzan/vant/pull/2357) -- Tag: add text-color prop [\#2277](https://github.com/youzan/vant/pull/2277) -- Card: add lazy-load prop [\#2301](https://github.com/youzan/vant/pull/2301) -- Coupon: add currency prop [\#2274](https://github.com/youzan/vant/pull/2274) [\#2256](https://github.com/youzan/vant/pull/2256) -- Dialog: add message-align prop [\#2259](https://github.com/youzan/vant/pull/2259) -- Stepper: add async-change prop [\#2318](https://github.com/youzan/vant/pull/2318) -- SwitchCell: add active-color、inactive-color prop [\#2273](https://github.com/youzan/vant/pull/2273) -- NoticeBar: support use built-in icon [\#2305](https://github.com/youzan/vant/pull/2305) -- TreeSelect: support disable nav item [\#2308](https://github.com/youzan/vant/pull/2308) - -**Bug Fixes** - -- fix Dialog blurry text after scale animation [\#2300](https://github.com/youzan/vant/pull/2300) -- fix Checkbox default label height [\#2293](https://github.com/youzan/vant/pull/2293) -- fix Field cut off charactor input when use maxlength [\#2295](https://github.com/youzan/vant/pull/2295) -- fix Swipe not re-initialize when inside keep-alive component [\#2297](https://github.com/youzan/vant/pull/2297) -- fix Swipe cause error in some cases [\#2253](https://github.com/youzan/vant/pull/2253) -- fix Swipe transitionend event bubble [\#2355](https://github.com/youzan/vant/pull/2355) -- fix Tab display error when use animated prop [\#2238](https://github.com/youzan/vant/pull/2238) -- fix Tab incorrect initial line color when use color prop [\#2344](https://github.com/youzan/vant/pull/2344) -- fix Tab log error when all tab disabled [\#2356](https://github.com/youzan/vant/pull/2356) -- fix Tabbar update info position [\#2257](https://github.com/youzan/vant/pull/2257) -- fix Toast missing clear method type definition [\#2354](https://github.com/youzan/vant/pull/2354) -- fix compile failure in node 10 [\#2251](https://github.com/youzan/vant/pull/2251) -- fix compile failure in windows [\#2229](https://github.com/youzan/vant/pull/2229) - - -### [v1.4.8](https://github.com/youzan/vant/tree/v1.4.8) -`2018-12-05` - -**Improvements** - -- Sku: add hide-quota-text prop [\#2216](https://github.com/youzan/vant/pull/2216) -- ImagePreview: add asyncClose prop [\#2198](https://github.com/youzan/vant/pull/2198) -- ImagePreview: add onClose params [\#2197](https://github.com/youzan/vant/pull/2197) -- ImagePreview: add fade transition [\#2196](https://github.com/youzan/vant/pull/2196) - -**Bug Fixes** - -- fix Notify type definition [\#2210](https://github.com/youzan/vant/pull/2210) -- fix Dialog default options [\#2208](https://github.com/youzan/vant/pull/2208) -- fix ImagePreview indicator color [\#2187](https://github.com/youzan/vant/pull/2187) - - -### [v1.4.7](https://github.com/youzan/vant/tree/v1.4.7) -`2018-11-27` - -**Improvements** - -- add Notify component [\#2135](https://github.com/youzan/vant/pull/2135) -- Cell: add title-class、value-class、label-class prop [\#2138](https://github.com/youzan/vant/pull/2138) -- Icon: add more basic icons [\#2159](https://github.com/youzan/vant/pull/2159) [\#2169](https://github.com/youzan/vant/pull/2169) -- Icon: name can be URL [\#2149](https://github.com/youzan/vant/pull/2149) -- List: add finished-text prop [\#2131](https://github.com/youzan/vant/pull/2131) -- Rate: add icon、void-icon prop [\#2148](https://github.com/youzan/vant/pull/2148) -- NavBar: add border prop [\#2143](https://github.com/youzan/vant/pull/2143) -- CouponCell: remove wrapper [\#2145](https://github.com/youzan/vant/pull/2145) -- Style: add more transition class [\#2163](https://github.com/youzan/vant/pull/2163) -- update CDN provider to jsdelivr [\#2167](https://github.com/youzan/vant/pull/2167) - -**Bug Fixes** - -- fix ImagePreview index NaN [\#2146](https://github.com/youzan/vant/pull/2146) -- fix Toast line wrap in iOS [\#2142](https://github.com/youzan/vant/pull/2142) -- fix GoodsAction duplicate style [\#2140](https://github.com/youzan/vant/pull/2140) -- fix DatetimePicker get wrong value when set minDate [\#2137](https://github.com/youzan/vant/pull/2137) - - -### [v1.4.5](https://github.com/youzan/vant/tree/v1.4.5) -`2018-11-23` - -**Improvements** - -- Tab: add animated props [\#2126](https://github.com/youzan/vant/pull/2126) -- Tab: update title style [\#2120](https://github.com/youzan/vant/pull/2120) -- Sidebar: update info style [\#2122](https://github.com/youzan/vant/pull/2122) -- Radio: add checked-color prop [\#2129](https://github.com/youzan/vant/pull/2129) -- Swipe: add indicator-color prop [\#2110](https://github.com/youzan/vant/pull/2110) -- TreeSelect: support disable option [\#2107](https://github.com/youzan/vant/pull/2107) - -**Bug Fixes** - -- fix Tab swipe-threshold not work when less than 4 [\#2128](https://github.com/youzan/vant/pull/2128) - - -### [v1.4.4](https://github.com/youzan/vant/tree/v1.4.4) -`2018-11-18` - -**Improvements** - -- Cell: add size prop [\#2086](https://github.com/youzan/vant/pull/2086) -- Icon: add star、star-o icon [\#2092](https://github.com/youzan/vant/pull/2092) -- ImagePreview: add loop prop [\#2103](https://github.com/youzan/vant/pull/2103) -- Rate: update star icon [\#2093](https://github.com/youzan/vant/pull/2093) -- Dialog: add message max-height [\#2104](https://github.com/youzan/vant/pull/2104) - -**Bug Fixes** - -- fix Sku placeholder of mobile type message [\#2098](https://github.com/youzan/vant/pull/2098) -- fix Tab line-width can be zero [\#2081](https://github.com/youzan/vant/pull/2081) -- fix Tab auto scroll top when switched in sticky mode [\#2105](https://github.com/youzan/vant/pull/2105) -- fix Toast max width of text type [\#2074](https://github.com/youzan/vant/pull/2074) -- fix Steps css selector priority [\#2072](https://github.com/youzan/vant/pull/2072) - - -### [v1.4.3](https://github.com/youzan/vant/tree/v1.4.3) -`2018-11-10` - -**Improvements** - -- Checkbox: add checked-color prop [\#2057](https://github.com/youzan/vant/pull/2057) -- NumberKeyboard: add close-button-text prop [\#2051](https://github.com/youzan/vant/pull/2051) -- Swipe: optimize swipe gesture [\#2039](https://github.com/youzan/vant/pull/2039) -- Document:reorgnize components [\#2032](https://github.com/youzan/vant/pull/2032) - -**Bug Fixes** - -- fix Circle incorrect style in android devices [\#2062](https://github.com/youzan/vant/pull/2062) -- fix DatetimePicker incorrect value when use formatter [\#2059](https://github.com/youzan/vant/pull/2059) -- fix Tab can swipe to disabled tab [\#2064](https://github.com/youzan/vant/pull/2064) - - -### [v1.4.2](https://github.com/youzan/vant/tree/v1.4.2) -`2018-11-04` - -**Breaking changes** - -- New path to manually import component style, see more in [quickstart](#/en-US/quickstart). [\#2021](https://github.com/youzan/vant/pull/2021) -- New ways to customize the theme,see more in [custom theme](#/en-US/theme). [\#2027](https://github.com/youzan/vant/pull/2027) - - -**Improvements** - -- Sidebar: add change event [\#2017](https://github.com/youzan/vant/pull/2017) -- Radio: update color [\#2018](https://github.com/youzan/vant/pull/2018) -- Checkbox: update color [\#2018](https://github.com/youzan/vant/pull/2018) -- Sku: support image preview [\#2019](https://github.com/youzan/vant/pull/2019) -- i18n: support zh-TW [\#1999](https://github.com/youzan/vant/pull/1999) -- i18n: support turkish [\#1998](https://github.com/youzan/vant/pull/1998) -- Icon: add new icon question2 [\#2005](https://github.com/youzan/vant/pull/2005) -- Switch: add active-color prop [\#2013](https://github.com/youzan/vant/pull/2013) -- Switch: add inactive-color prop [\#2013](https://github.com/youzan/vant/pull/2013) - - -### [v1.3.10](https://github.com/youzan/vant/tree/v1.3.10) -`2018-10-29` - -**Improvements** - -- Field: add focus method [\#1987](https://github.com/youzan/vant/pull/1987) -- Search: add left-icon slot [\#1974](https://github.com/youzan/vant/pull/1974) -- CouponCell: add border prop [\#1993](https://github.com/youzan/vant/pull/1993) -- CouponCell: update value display rule [\#1976](https://github.com/youzan/vant/pull/1976) -- ImagePreview: add showIndicators prop [\#1992](https://github.com/youzan/vant/pull/1992) -- GoodsAction: add loading、disabled prop [\#1994](https://github.com/youzan/vant/pull/1994) - -**Bug Fixes** - -- fix Swipe height prop not work [\#1982](https://github.com/youzan/vant/pull/1982) -- fix Toast remove unclickable when destroyed [\#1991](https://github.com/youzan/vant/pull/1991) - - -### [v1.3.9](https://github.com/youzan/vant/tree/v1.3.9) -`2018-10-24` - -**Improvements** - -- Field: add left-icon slot [\#1973](https://github.com/youzan/vant/pull/1973) -- Toast: destroy instance in multiple mode [\#1959](https://github.com/youzan/vant/pull/1959) -- AddressEdit: add validator prop [\#1971](https://github.com/youzan/vant/pull/1971) -- AddressEdit: add change-default event [\#1972](https://github.com/youzan/vant/pull/1972) - -**Bug Fixes** - -- fix ImagePreview wrong index [\#1961](https://github.com/youzan/vant/pull/1961) -- fix Sku popup max-height [\#1965](https://github.com/youzan/vant/pull/1965) - - -### [v1.3.8](https://github.com/youzan/vant/tree/v1.3.8) -`2018-10-17` - -**Improvements** - -- Tag: add size prop [\#1949](https://github.com/youzan/vant/pull/1949) -- Tag: add color prop [\#1946](https://github.com/youzan/vant/pull/1946) -- Tag: add round prop [\#1947](https://github.com/youzan/vant/pull/1947) -- Panel: add icon prop [\#1942](https://github.com/youzan/vant/pull/1942) -- Icon: add cart-o icon [\#1932](https://github.com/youzan/vant/pull/1932) -- Field: add clear event [\#1944](https://github.com/youzan/vant/pull/1944) -- Rate: support touch move select [\#1951](https://github.com/youzan/vant/pull/1951) -- AddressList: add switchable prop [\#1938](https://github.com/youzan/vant/pull/1938) - -**Bug Fixes** - -- fix Card desc ellipsis [\#1935](https://github.com/youzan/vant/pull/1935) -- fix SubmitBar incomplete button text display [\#1940](https://github.com/youzan/vant/pull/1940) - - -### [v1.3.7](https://github.com/youzan/vant/tree/v1.3.7) -`2018-10-12` - -**Improvements** - -- Swipe: add indicator slot [\#1923](https://github.com/youzan/vant/pull/1923) -- AddressEdit: update clear icon color [\#1919](https://github.com/youzan/vant/pull/1919) - -**Bug Fixes** - -- fix Toast instance when SSR [\#1927](https://github.com/youzan/vant/pull/1927) -- fix Tab default active when all tabs disabled [\#1926](https://github.com/youzan/vant/pull/1926) -- fix SubmitBar tip color - - -### [v1.3.6](https://github.com/youzan/vant/tree/v1.3.6) -`2018-10-11` - -**Improvements** - -- Card: add origin-price prop [\#1916](https://github.com/youzan/vant/pull/1916) - -**Bug Fixes** - -- fix Toast tap highlight color when unclickable [\#1914](https://github.com/youzan/vant/pull/1914) - - -### [v1.3.5](https://github.com/youzan/vant/tree/v1.3.5) -`2018-10-10` - -**Improvements** - -- Tab: upgrade style [\#1908](https://github.com/youzan/vant/pull/1908) -- Sidebar: upgrade style [\#1907](https://github.com/youzan/vant/pull/1907) -- Dialog: upgrade style [\#1906](https://github.com/youzan/vant/pull/1906) -- NoticeBar: upgrade style [\#1893](https://github.com/youzan/vant/pull/1893) -- Collapse: add disabled prop [\#1892](https://github.com/youzan/vant/pull/1892) -- TreeSelect: add height prop [\#1905](https://github.com/youzan/vant/pull/1905) -- ImagePreview: support finger zooming [\#1895](https://github.com/youzan/vant/pull/1895) - -**Bug Fixes** - -- fix Toast SSR error [\#1910](https://github.com/youzan/vant/pull/1910) -- fix Swipe multi finger [\#1890](https://github.com/youzan/vant/pull/1890) - - -### [v1.3.4](https://github.com/youzan/vant/tree/v1.3.4) -`2018-10-02` - -**Improvements** - -- Button: add round prop [\#1885](https://github.com/youzan/vant/pull/1885) -- Button: update disabled style [\#1886](https://github.com/youzan/vant/pull/1886) -- Card: add tag prop [\#1878](https://github.com/youzan/vant/pull/1878) -- Card: add thumb-link prop [\#1879](https://github.com/youzan/vant/pull/1879) -- ImagePreview: add show-index prop [\#1889](https://github.com/youzan/vant/pull/1889) -- Picker: update style [\#1887](https://github.com/youzan/vant/pull/1887) -- SwipeCell: add disabled prop [\#1884](https://github.com/youzan/vant/pull/1884) - -**Bug Fixes** - -- fix Toast type definition [\#1859](https://github.com/youzan/vant/pull/1859) - - -### [v1.3.3](https://github.com/youzan/vant/tree/v1.3.3) -`2018-09-23` - -**Improvements** - -- SwipeCell: add click event [\#1848](https://github.com/youzan/vant/pull/1848) -- Locale: optimize error handling [\#1835](https://github.com/youzan/vant/pull/1835) -- Document: add Component changelog [\#1816](https://github.com/youzan/vant/pull/1816) - -**Bug Fixes** - -- fix DatetimePicker should update value when range changed [\#1825](https://github.com/youzan/vant/pull/1825) -- fix Field maxlength not work when type = number [\#1839](https://github.com/youzan/vant/pull/1839) -- fix PullRefresh preventDefault warning [\#1819](https://github.com/youzan/vant/pull/1819) -- fix Tag white border [\#1834](https://github.com/youzan/vant/pull/1834) - - -### [v1.3.2](https://github.com/youzan/vant/tree/v1.3.2) -`2018-09-14` - -**Improvements** - -- AddressEdit: optimize area label [\#1785](https://github.com/youzan/vant/pull/1785) -- Dialog: update button color [\#1774](https://github.com/youzan/vant/pull/1774) -- List: add loading slot [\#1804](https://github.com/youzan/vant/pull/1804) -- Tab: optimize active color [\#1775](https://github.com/youzan/vant/pull/1775) -- update border-color [\#1773](https://github.com/youzan/vant/pull/1773) - -**Bug Fixes** - -- fix hairline in Chrome 69 [\#1776](https://github.com/youzan/vant/pull/1776) [\#1805](https://github.com/youzan/vant/pull/1805) -- fix AddressEdit missing border [\#1800](https://github.com/youzan/vant/pull/1800) -- fix AddressList address not fully displayed [\#1786](https://github.com/youzan/vant/pull/1786) -- fix Dialog type definition [\#1799](https://github.com/youzan/vant/pull/1799) - - -### [v1.3.1](https://github.com/youzan/vant/tree/v1.3.1) -`2018-09-07` - -**Improvements** - -- Document: add vue-cli 3 guide [\#1754](https://github.com/youzan/vant/pull/1754) - -**Bug Fixes** - -- fix Button loading color [\#1768](https://github.com/youzan/vant/pull/1768) -- fix ImagePreview type definition [\#1767](https://github.com/youzan/vant/pull/1767) -- fix Tab color not work in card type [\#1763](https://github.com/youzan/vant/pull/1763) -- fix lib dir babel runtime module [\#1753](https://github.com/youzan/vant/pull/1753) - - -### [v1.3.0](https://github.com/youzan/vant/tree/v1.3.0) -`2018-08-31` - -**Breaking changes** - -- upgrade to babel 7, remove promise polyfill [\#1712](https://github.com/youzan/vant/pull/1712) -- Sku: no longer support i18n [\#1734](https://github.com/youzan/vant/pull/1734) - -**Improvements** - -- upgrade to precss 3.0 [\#1696](https://github.com/youzan/vant/pull/1696) -- AddressList: support disabled list [\#1729](https://github.com/youzan/vant/pull/1729) -- Contact: upgrade style [\#1693](https://github.com/youzan/vant/pull/1693) -- Popup: get-container support selector [\#1699](https://github.com/youzan/vant/pull/1699) -- Popup: optimize animation duration [\#1694](https://github.com/youzan/vant/pull/1694) -- Rate: add readonly prop [\#1731](https://github.com/youzan/vant/pull/1731) -- Sku: support custom validator [\#1732](https://github.com/youzan/vant/pull/1732) -- Tab: add scroll event [\#1730](https://github.com/youzan/vant/pull/1730) -- Loading: support any color [\#1717](https://github.com/youzan/vant/pull/1717) - -**Bug Fixes** - -- fix bundle version wrong [\#1703](https://github.com/youzan/vant/pull/1703) -- fix DatetimePicker incorrect value when use minMinute [\#1724](https://github.com/youzan/vant/pull/1724) -- fix Swipe wrong position [\#1723](https://github.com/youzan/vant/pull/1723) -- fix Tab should not swipe to disabled tab [\#1704](https://github.com/youzan/vant/pull/1704) -- fix Tabbar: info not work when use icon slot [\#1705](https://github.com/youzan/vant/pull/1705) - - -### [v1.2.1](https://github.com/youzan/vant/tree/v1.2.1) -`2018-08-24` - -**Improvements** - -- AddressEdit: optimize style [\#1676](https://github.com/youzan/vant/pull/1676) -- ContactEdit: optimize style [\#1677](https://github.com/youzan/vant/pull/1677) -- Collapse: add more props and slots [\#1671](https://github.com/youzan/vant/pull/1671) -- Field: update clear icon color [\#1678](https://github.com/youzan/vant/pull/1678) -- Icon: add class-prefix prop [\#1688](https://github.com/youzan/vant/pull/1688) -- Swipe: support custom item width & height [\#1664](https://github.com/youzan/vant/pull/1664) - -**Bug Fixes** - -- fix Stepper value can not be zero [\#1687](https://github.com/youzan/vant/pull/1687) -- fix Tab custom line color [\#1686](https://github.com/youzan/vant/pull/1686) -- fix share icon font-weight [\#1670](https://github.com/youzan/vant/pull/1670) -- fix Popup can not be destoryed when use get-container [\#1665](https://github.com/youzan/vant/pull/1665) - - -### [v1.2.0](https://github.com/youzan/vant/tree/v1.2.0) -`2018-08-20` - -**Breaking changes** - -- AddressEdit: use camelcase data [\#1644](https://github.com/youzan/vant/pull/1644) -- Coupon: use camelcase data [\#1643](https://github.com/youzan/vant/pull/1643) -- CellSwipe: rename to SwipeCell [\#1652](https://github.com/youzan/vant/pull/1652) - -**Improvements** - -- Area: update province data [\#1653](https://github.com/youzan/vant/pull/1653) -- AddressList: upgrade style, add slot [\#1628](https://github.com/youzan/vant/pull/1628) -- Button: add square prop [\#1627](https://github.com/youzan/vant/pull/1627) -- Coupon: upgrade style [\#1636](https://github.com/youzan/vant/pull/1636) -- Icon: add aim icon [\#1655](https://github.com/youzan/vant/pull/1655) -- Icon: update edit icon [\#1635](https://github.com/youzan/vant/pull/1635) -- Radio: optimize style [\#1626](https://github.com/youzan/vant/pull/1626) -- SubmitBar: upgrade style [\#1631](https://github.com/youzan/vant/pull/1631) -- Tab : support custom color [\#1622](https://github.com/youzan/vant/pull/1622) -- Tabbar: optimize DOM [\#1640](https://github.com/youzan/vant/pull/1640) - -**Bug Fixes** - -- fix AddressEdit show delete [\#1648](https://github.com/youzan/vant/pull/1648) -- fix Icon size prop not work [\#1634](https://github.com/youzan/vant/pull/1634) - -### [v1.1.16](https://github.com/youzan/vant/tree/v1.1.16) -`2018-08-10` - -**Improvements** - -- ActionSheet: add select event [\#1594](https://github.com/youzan/vant/pull/1594) -- ImagePreview: suppot onClose callback [\#1589](https://github.com/youzan/vant/pull/1589) -- List: add check method [\#1590](https://github.com/youzan/vant/pull/1590) -- Search: update style [\#1603](https://github.com/youzan/vant/pull/1603) - -**Bug Fixes** - -- fix ActionSheet item unclickable when loading [\#1587](https://github.com/youzan/vant/pull/1587) -- fix DatetimePicker value uncorrect when use formatter [\#1591](https://github.com/youzan/vant/pull/1591) - - -### [v1.1.15](https://github.com/youzan/vant/tree/v1.1.15) -`2018-08-03` - -**Improvements** - -- Button: add warning type [\#1558](https://github.com/youzan/vant/pull/1558) -- SwipeCell: add open method [\#1546](https://github.com/youzan/vant/pull/1546) -- DatetimePicker: support minute range [\#1583](https://github.com/youzan/vant/pull/1583) -- Icon: add size prop [\#1555](https://github.com/youzan/vant/pull/1555) -- Stepper: update disabled color [\#1560](https://github.com/youzan/vant/pull/1560) -- Stepper: optimize input strategy [\#1534](https://github.com/youzan/vant/pull/1534) -- Tab: support custom sticky offset top [\#1519](https://github.com/youzan/vant/pull/1519) - -**Bug Fixes** - -- fix Button text-size-adjust [\#1545](https://github.com/youzan/vant/pull/1545) -- fix Field date type not work in iOS [\#1586](https://github.com/youzan/vant/pull/1586) -- fix van-clearfix not work [\#1559](https://github.com/youzan/vant/pull/1559) -- fix Tabbar should not trigger change event when active not change [\#1571](https://github.com/youzan/vant/pull/1571) - - -### [v1.1.14](https://github.com/youzan/vant/tree/v1.1.14) -`2018-07-19` - -**Improvements** - -- Collapse: add transition animation [\#1500](https://github.com/youzan/vant/pull/1500) -- CouponCell: optimize text [\#1499](https://github.com/youzan/vant/pull/1499) -- Stepper: improve input experience [\#1484](https://github.com/youzan/vant/pull/1484) -- Tab: add change event [\#1503](https://github.com/youzan/vant/pull/1503) -- DatetimePicker: support text formatter [\#1497](https://github.com/youzan/vant/pull/1497) - -**Bug Fixes** - -- fix Field inline-height [\#1486](https://github.com/youzan/vant/pull/1486) -- fix AddressEdit string trim [\#1487](https://github.com/youzan/vant/pull/1487) -- fix Progress nesting in Collapse [\#1513](https://github.com/youzan/vant/pull/1513) -- fix Stepper integer in android [\#1482](https://github.com/youzan/vant/pull/1482) -- fix Tab scroll position after activated [\#1512](https://github.com/youzan/vant/pull/1512) -- fix Tab sticky in scroll element [\#1496](https://github.com/youzan/vant/pull/1496) - - -### [v1.1.13](https://github.com/youzan/vant/tree/v1.1.13) -`2018-07-13` - -**Improvements** - -- Button: add plain prop [\#1444](https://github.com/youzan/vant/pull/1444) -- Toast: improve type definition [\#1468](https://github.com/youzan/vant/pull/1468) -- Dialog: improve type definition [\#1467](https://github.com/youzan/vant/pull/1467) -- Radio: add label-position prop [\#1446](https://github.com/youzan/vant/pull/1446) -- Radio: add label-disabled prop [\#1445](https://github.com/youzan/vant/pull/1445) -- Search: should trigger blur after click search button [\#1448](https://github.com/youzan/vant/pull/1448) - -**Bug Fixes** - -- fix Swipe multi finger touch [\#1478](https://github.com/youzan/vant/pull/1478) -- fix ImagePreview start position [\#1456](https://github.com/youzan/vant/pull/1456) -- fix Picker incorrect option height in some android devices [\#1449](https://github.com/youzan/vant/pull/1449) -- fix vue-lazyload version [\#1481](https://github.com/youzan/vant/pull/1481) - - -### [v1.1.12](https://github.com/youzan/vant/tree/v1.1.12) -`2018-07-06` - -**Improvements** - -- Area: add reset method [\#1427](https://github.com/youzan/vant/pull/1427) -- Checkbox: support custom icon [\#1414](https://github.com/youzan/vant/pull/1414) -- Checkbox: with cell [\#1430](https://github.com/youzan/vant/pull/1430) -- Swipe: not swipeable when page scrolling [\#1425](https://github.com/youzan/vant/pull/1425) -- Swipe: window resize [\#1413](https://github.com/youzan/vant/pull/1413) - -**Bug Fixes** - -- fix Progress text empty [\#1411](https://github.com/youzan/vant/pull/1411) -- fix Tab random insert order [\#1429](https://github.com/youzan/vant/pull/1429) -- fix error when use Vue.use in typescript [\#1410](https://github.com/youzan/vant/pull/1410) -- fix style missing dependencies [\#1426](https://github.com/youzan/vant/pull/1426) - - -### [v1.1.11](https://github.com/youzan/vant/tree/v1.1.11) -`2018-07-04` - -**Improvements** - -- ActionSheet: support lazy render [\#1365](https://github.com/youzan/vant/pull/1365) -- AddressEdit: adjust event order [\#1402](https://github.com/youzan/vant/pull/1402) -- SwitchCell: add size prop [\#1371](https://github.com/youzan/vant/pull/1371) -- Checkbox: add label-position prop [\#1394](https://github.com/youzan/vant/pull/1394) -- Picker: optimize render performance [\#1391](https://github.com/youzan/vant/pull/1391) -- Tab: update card style [\#1364](https://github.com/youzan/vant/pull/1364) -- Document: dialog before-close usage [\#1383](https://github.com/youzan/vant/pull/1383) - -**Bug Fixes** - -- fix Area error when city list empty [\#1374](https://github.com/youzan/vant/pull/1374) -- fix DatetimePicker change event params [\#1370](https://github.com/youzan/vant/pull/1370) -- fix Field readonly in safari [\#1399](https://github.com/youzan/vant/pull/1399) -- fix Field should hide clear icon when readonly [\#1395](https://github.com/youzan/vant/pull/1395) -- fix Tab insert order [\#1372](https://github.com/youzan/vant/pull/1372) - - -### [v1.1.10](https://github.com/youzan/vant/tree/v1.1.10) -`2018-06-28` - -**Breaking changes** - -- Icon: remove birthday-privilege、member-day-privilege、balance-details [\#1331](https://github.com/youzan/vant/pull/1331) - -**Improvements** - -- Cell: add arrow-direction prop [\#1323](https://github.com/youzan/vant/pull/1323) -- Field: add is-link prop [\#1347](https://github.com/youzan/vant/pull/1347) -- Field: add input-align prop [\#1352](https://github.com/youzan/vant/pull/1352) -- Field: add label-align prop [\#1353](https://github.com/youzan/vant/pull/1353) -- Icon: add idcard icon [\#1331](https://github.com/youzan/vant/pull/1331) -- Sku: add stepper-change event [\#1349](https://github.com/youzan/vant/pull/1349) -- PullRefresh: add disabled prop [\#1336](https://github.com/youzan/vant/pull/1336) - -**Bug Fixes** - -- fix List visibility check [\#1345](https://github.com/youzan/vant/pull/1345) -- fix Sku image clip [\#1334](https://github.com/youzan/vant/pull/1334) - - -### [v1.1.9](https://github.com/youzan/vant/tree/v1.1.9) -`2018-06-22` - -**Improvements** - -- ActionSheet: support disable option [\#1293](https://github.com/youzan/vant/pull/1293) -- Field: support clearable [\#1309](https://github.com/youzan/vant/pull/1309) -- Layout: support flex layout [\#1305](https://github.com/youzan/vant/pull/1305) -- Locale: add type definition [\#1294](https://github.com/youzan/vant/pull/1294) -- Tabbar: add z-index prop [\#1310](https://github.com/youzan/vant/pull/1310) -- Stepper: improve blur behavior [\#1316](https://github.com/youzan/vant/pull/1316) - -**Bug Fixes** - -- fix DatetimePicker visible-item-count prop [\#1312](https://github.com/youzan/vant/pull/1312) -- fix Tab line resize [\#1304](https://github.com/youzan/vant/pull/1304) - - -### [v1.1.8](https://github.com/youzan/vant/tree/v1.1.8) -`2018-06-14` - -**Improvements** - -- AddressEdit: support configure button text [\#1287](https://github.com/youzan/vant/pull/1287) -- AddressEdit: simplify struct [\#1274](https://github.com/youzan/vant/pull/1274) -- Area: optimize default option [\#1272](https://github.com/youzan/vant/pull/1272) -- Dialog: support isolated title [\#1270](https://github.com/youzan/vant/pull/1270) -- Field: add blur method [\#1264](https://github.com/youzan/vant/pull/1264) -- Field: update right icon color [\#1262](https://github.com/youzan/vant/pull/1262) -- Sku: message limit maxlength [\#1271](https://github.com/youzan/vant/pull/1271) -- Build: add stylelint [\#1280](https://github.com/youzan/vant/pull/1280) -- Document: add demo source file link [\#1266](https://github.com/youzan/vant/pull/1266) -- Document: add code style guide [\#1245](https://github.com/youzan/vant/pull/1245) - -**Bug Fixes** - -- fix ActionSheet title font size [\#1267](https://github.com/youzan/vant/pull/1267) -- fix CheckboxGroup v-model type check [\#1254](https://github.com/youzan/vant/pull/1254) -- fix Popup max height [\#1256](https://github.com/youzan/vant/pull/1256) -- fix Tab resize line when title changed [\#1260](https://github.com/youzan/vant/pull/1260) - - -### [v1.1.7](https://github.com/youzan/vant/tree/v1.1.7) -`2018-06-06` - -**Improvements** - -- Dialog: support custom className [\#1224](https://github.com/youzan/vant/pull/1224) -- Dialog: optimize style without content [\#1233](https://github.com/youzan/vant/pull/1233) -- Field: support v-model.number [\#1221](https://github.com/youzan/vant/pull/1221) -- Swipe: add swipeTo method [\#1222](https://github.com/youzan/vant/pull/1222) -- Document: add ts-import-plugin guide [\#1230](https://github.com/youzan/vant/pull/1230) - - -### [v1.1.6](https://github.com/youzan/vant/tree/v1.1.6) -`2018-06-01` - -**Improvements** - -- Dialog: add get-container prop [\#1176](https://github.com/youzan/vant/pull/1176) -- Dialog: beforeClose add callback parameters [\#1166](https://github.com/youzan/vant/pull/1166) -- Icon: update wechat icon [\#1156](https://github.com/youzan/vant/pull/1156) -- Picker: support html option [\#1213](https://github.com/youzan/vant/pull/1213) -- SubmitBar: optimize render [\#1184](https://github.com/youzan/vant/pull/1184) -- Test: add more test cases [\#1202](https://github.com/youzan/vant/pull/1202) -- Doc: improve quickstart [\#1187](https://github.com/youzan/vant/pull/1187) - -**Bug Fixes** - -- fix Tab title slot render [\#1212](https://github.com/youzan/vant/pull/1212) -- fix AddressEdit area popup should mount in document root [\#1211](https://github.com/youzan/vant/pull/1211) - - -## Changelog - -### [v1.1.5](https://github.com/youzan/vant/tree/v1.1.5) -`2018-05-24` - -**Improvements** - -- AddressEdit: trim empty value [\#1150](https://github.com/youzan/vant/pull/1150) -- Dialog: prevent button text select [\#1148](https://github.com/youzan/vant/pull/1148) -- NumberKeyboard: add close event [\#1127](https://github.com/youzan/vant/pull/1127) -- Rate: add change event [\#1102](https://github.com/youzan/vant/pull/1102) -- Picker: update unselected option color [\#1142](https://github.com/youzan/vant/pull/1142) -- Popup: support lazy render [\#1138](https://github.com/youzan/vant/pull/1138) -- Sku: update error info [\#1100](https://github.com/youzan/vantpull/1100) -- TreeSelect: support string type id [\#1126](https://github.com/youzan/vant/pull/1126) -- Utils: remove unused scroll utils [\#1112](https://github.com/youzan/vant/pull/1112) - -**Bug Fixes** - -- fix Toast mask render uncorrectly when forbidClick [\#1154](https://github.com/youzan/vant/pull/1154) -- fix Field input margin in safari [\#1147](https://github.com/youzan/vant/pull/1147) -- fix Progress pivot cross border [\#1135](https://github.com/youzan/vant/pull/1135) - - -### [v1.1.4](https://github.com/youzan/vant/tree/v1.1.4) -`2018-05-18` - -**Improvements** - -- AddressEdit: fit in small screen [\#1082](https://github.com/youzan/vant/pull/1082) -- Cell: support number type title & value [\#1073](https://github.com/youzan/vant/pull/1073) -- Field: add left-icon prop [\#1092](https://github.com/youzan/vant/pull/1092) -- Progress: support gradient color [\#1098](https://github.com/youzan/vant/pull/1098) -- Build: upgrade to webpack-serve [\#1056](https://github.com/youzan/vant/pull/1056) -- Reorganize demos [\#1052](https://github.com/youzan/vant/pull/1052) -- Reorganize document [\#1066](https://github.com/youzan/vant/pull/1066) -- Rebuild test system [\#1051](https://github.com/youzan/vant/pull/1051) - -**Bug Fixes** - -- fix DatetimePicker initial value error [\#1093](https://github.com/youzan/vant/pull/1093) -- fix GoodsAction info position [\#1074](https://github.com/youzan/vant/pull/1074) -- fix icon style template [\#1091](https://github.com/youzan/vant/pull/1091) - - -### [v1.1.3](https://github.com/youzan/vant/tree/v1.1.3) -`2018-05-12` - -**Improvements** - -- AddressEdit: add cancel-delete event [\#1047](https://github.com/youzan/vant/pull/1047) -- Field: add label slot [\#1048](https://github.com/youzan/vant/pull/1048) -- Icon: update search icon [\#1025](https://github.com/youzan/vant/pull/1025) -- Icon: support color property [\#1031](https://github.com/youzan/vant/pull/1031) -- ImagePreview: optimize click detect [\#1042](https://github.com/youzan/vant/pull/1042) -- NoticeBar: add ref check [\#1037](https://github.com/youzan/vant/pull/1037) -- Search: update style [\#1027](https://github.com/youzan/vant/pull/1027) -- Toast: add loadingType option [\#1049](https://github.com/youzan/vant/pull/1049) - -**Bug Fixes** - -- fix Cell default width [\#1029](https://github.com/youzan/vant/pull/1029) -- fix ImagePreview can't be closed when contain single image [\#1046](https://github.com/youzan/vant/pull/1046) - - -### [v1.1.2](https://github.com/youzan/vant/tree/v1.1.2) -`2018-05-08` - -**Improvements** - -- add Rate component [\#901](https://github.com/youzan/vant/pull/901) [\#1002](https://github.com/youzan/vant/pull/1002) [\#1010](https://github.com/youzan/vant/pull/1010) [\#1011](https://github.com/youzan/vant/pull/1011) -- Area: add change event [\#1019](https://github.com/youzan/vant/pull/1019) -- Button: update border color [\#998](https://github.com/youzan/vant/pull/998) -- Locale: add warning when not correctly registered [\#1012](https://github.com/youzan/vant/pull/1012) -- Stepper: update disabled style [\#997](https://github.com/youzan/vant/pull/997) -- optimize component watcher [\#1001](https://github.com/youzan/vant/pull/1001) -- Document: optimize API table [\#990](https://github.com/youzan/vant/pull/990) [\#991](https://github.com/youzan/vant/pull/991) - -**Bug Fixes** - -- fix Search should not have cell border [\#1000](https://github.com/youzan/vant/pull/1000) -- fix Tab should lazy render tab-pane [\#978](https://github.com/youzan/vant/pull/978) -- fix Stepper integer wrong spelling [\#992](https://github.com/youzan/vant/pull/992) - - -### [v1.1.1](https://github.com/youzan/vant/tree/v1.1.1) -`2018-05-04` - -**Improvements** - -* Contact: optimize background image [\#972](https://github.com/youzan/vant/pull/972) -* List: add loading-text prop [\#948](https://github.com/youzan/vant/pull/948) -* Swipe: optimzie performance [\#985](https://github.com/youzan/vant/pull/985) -* Swipe: add touchable prop [\#975](https://github.com/youzan/vant/pull/975) -* Swipe: support vertical mode [\#938](https://github.com/youzan/vant/pull/938) -* Slider: expand touch area [\#977](https://github.com/youzan/vant/pull/977) -* Stepper: add interger prop [\#951](https://github.com/youzan/vant/pull/951) -* Tab: add line-width prop [\#988](https://github.com/youzan/vant/pull/988) - -**Bug Fixes** -* fix ImagePreview offset calc error [\#980](https://github.com/youzan/vant/pull/980) -* fix Search incomplete text display in iOS [\#974](https://github.com/youzan/vant/pull/974) - - -### [v1.1.0](https://github.com/youzan/vant/tree/v1.1.0) -`2018-04-25` - -**Improvements** - -* add Slider component [\#897](https://github.com/youzan/vant/pull/897) [\#915](https://github.com/youzan/vant/pull/915) [jerryni](https://github.com/jerryni) -* add bem mixin and format bem style [\#921](https://github.com/youzan/vant/pull/921) [\#924](https://github.com/youzan/vant/pull/924) [\#932](https://github.com/youzan/vant/pull/932) [\#934](https://github.com/youzan/vant/pull/934) -* Panel: use cell instead of extra style [\#927](https://github.com/youzan/vant/pull/927) -* Cell: optimize flex layout [\#919](https://github.com/youzan/vant/pull/919) -* Slider: add step & bar-height prop [\#915](https://github.com/youzan/vant/pull/915) -* Build: upgrade vue-loader 15 [\#937](https://github.com/youzan/vant/pull/937) -* Build: use ChromeHeadless instead of PhantomJS to run test cases [\#913](https://github.com/youzan/vant/pull/913) -* Build: use MiniCssExtractPlugin instead of ExtractTextPlugin [\#936](https://github.com/youzan/vant/pull/936) -* Build: add sideEffects config for webpack 4 [\#926](https://github.com/youzan/vant/pull/926) -* Document: add rem guide [\#928](https://github.com/youzan/vant/pull/928) -* Document: remove Loading circle type [\#941](https://github.com/youzan/vant/pull/941) - -**Bug Fixes** - -* fix Uploader can not upload pic in android [\#929](https://github.com/youzan/vant/pull/929) -* fix Checkbox should not render label when label is empty [\#920](https://github.com/youzan/vant/pull/920) -* fix Dialog type define error [\#918](https://github.com/youzan/vant/pull/918) -* fix Popup should remove touch event listener when distroyed [\#912](https://github.com/youzan/vant/pull/912) -* fix Picker text adjust may cause option wrong offset [\#916](https://github.com/youzan/vant/pull/916) - - -### [v1.0.8](https://github.com/youzan/vant/tree/v1.0.8) -`2018-04-20` - -**Improvements** -* add git hook, optimize dev process [\#883](https://github.com/youzan/vant/pull/883) - -**Bug Fixes** -* Cell: optimize left icon [\#893](https://github.com/youzan/vant/pull/893) -* Build: should use babel sync compile [\#885](https://github.com/youzan/vant/pull/885) -* Field: allow negative number when type is number [\#889](https://github.com/youzan/vant/pull/889) -* Popup: fix lock scroll [\#891](https://github.com/youzan/vant/pull/891) - - -### [v1.0.7](https://github.com/youzan/vant/tree/v1.0.7) -`2018-04-17` - -**Bug Fixes** - -* fix missing style entry in build result - -### [v1.0.6](https://github.com/youzan/vant/tree/v1.0.6) -`2018-04-17` - -**Improvements** - -* support es module [\#875](https://github.com/youzan/vant/pull/875) -* Dialog: add before-close prop, support async close [\#854](https://github.com/youzan/vant/pull/854) [\#881](https://github.com/youzan/vant/pull/881) -* SubmitBar: support custom currency symbol [\#876](https://github.com/youzan/vant/pull/876) -* Tab: support v-model bind active tab [\#879](https://github.com/youzan/vant/pull/879) - -**Bug Fixes** - -* fix DatetimePicker change event params not correct [\#878](https://github.com/youzan/vant/pull/878) - - -### [v1.0.5](https://github.com/youzan/vant/tree/v1.0.5) -`2018-04-13` - -**Improvements** - -* add touch mixin [\#869](https://github.com/youzan/vant/pull/869) -* Tabbar: support Number type info [\#845](https://github.com/youzan/vant/pull/845) -* Radio: name support any types [\#863](https://github.com/youzan/vant/pull/863) - -**Bug Fixes** - -* fix NavBar title max width limitation [\#867](https://github.com/youzan/vant/pull/867) -* fix Button vertical align incorrect when loading [\#858](https://github.com/youzan/vant/pull/858) -* fix SwipeCell should only trigger swipe when drag horizontally [\#866](https://github.com/youzan/vant/pull/866) -* fix ImagePreview manually close not work [\#864](https://github.com/youzan/vant/pull/864) -* fix SubmitBar inherit wrong font size [\#857](https://github.com/youzan/vant/pull/857) -* fix SwitchCell text vertical align [\#852](https://github.com/youzan/vant/pull/852) -* fix Swipe not stop touch event propagation [\#846](https://github.com/youzan/vant/pull/846) - - -### [v1.0.4](https://github.com/youzan/vant/tree/v1.0.4) -`2018-04-10` - -**Improvements** - -* ActionSheet: add cancel event [\#796](https://github.com/youzan/vant/pull/796) -* ActionSheet: support maxHeight [\#777](https://github.com/youzan/vant/pull/777) -* DatetimePicker: support all picker props [\#788](https://github.com/youzan/vant/pull/788) -* SubmitBar: unite font-size [\#774](https://github.com/youzan/vant/pull/774) -* i18n: support zh-HK language [\#812](https://github.com/youzan/vant/pull/812) - -**Bug Fixes** - -* fix Button should be unclickable when loading [\#779](https://github.com/youzan/vant/pull/779) -* fix Dialog close method may cause error [\#841](https://github.com/youzan/vant/pull/841) -* fix Popup lock-scroll not work when open multi popup [\#842](https://github.com/youzan/vant/pull/842) -* fix SubmitBar price decimal rounding [\#820](https://github.com/youzan/vant/pull/820) -* fix Sku row font-size [\#840](https://github.com/youzan/vant/pull/840) - - -### [v1.0.3](https://github.com/youzan/vant/tree/v1.0.3) -`2018-03-26` - -**Improvements** - -* Cell: add center prop [\#771](https://github.com/youzan/vant/pull/771) -* Cell: update to flex-box [\#770](https://github.com/youzan/vant/pull/770) -* Field: add button slot [\#772](https://github.com/youzan/vant/pull/772) -* Tab: click event add title param [\#761](https://github.com/youzan/vant/pull/761) - -**Bug Fixes** - -* fix Tag text line height in android browser [\#773](https://github.com/youzan/vant/pull/773) -* fix Toast mask not remove when hidden [\#762](https://github.com/youzan/vant/pull/762) - - -### [v1.0.2](https://github.com/youzan/vant/tree/v1.0.2) -`2018-03-22` - -**Improvements** - -* DatetimePicker: add show-toolbar prop & month-year type [\#736](https://github.com/youzan/vant/pull/736) -* NavBar: remove top border [\#744](https://github.com/youzan/vant/pull/744) -* NoticeBar: adjust padding [\#737](https://github.com/youzan/vant/pull/737) -* Doc: add guide of custom iconfont [\#754](https://github.com/youzan/vant/pull/754) - -**Bug Fixes** - -* fix AddressEdit not auto select area when created [\#748](https://github.com/youzan/vant/pull/748) -* fix List trigger load event when hidden [\#751](https://github.com/youzan/vant/pull/751) -* fix Sku default selection not work [\#752](https://github.com/youzan/vant/pull/752) -* fix Toast overlay blocked by other element [\#740](https://github.com/youzan/vant/pull/740) -* fix Tab content not clickable [\#749](https://github.com/youzan/vant/pull/749) - - -### [v1.0.1](https://github.com/youzan/vant/tree/v1.0.1) -`2018-03-19` - -**Bug Fixes** - -* fix module circular dependency [\#728](https://github.com/youzan/vant/pull/728) - - -### [v1.0.0](https://github.com/youzan/vant/tree/v1.0.0) -`2018-03-19` - -**Breaking changes** - -* add List component [\#682](https://github.com/youzan/vant/pull/682) -* add Collapse component [\#674](https://github.com/youzan/vant/pull/674) -* Build: upgrade to webpack 4 [\#693](https://github.com/youzan/vant/pull/693) -* Popup: add lock-scroll instead of lock-on-scroll & prevent-scroll [\#688](https://github.com/youzan/vant/pull/688) -* Deprecate Waterfall component and add deprecate tips [\#683](https://github.com/youzan/vant/pull/683) - -**Improvements** - -* AddressEdit: add show-delete prop [\#716](https://github.com/youzan/vant/pull/716) -* SwipeCell: optimzie animation fluency [\#685](https://github.com/youzan/vant/pull/685) -* Field: support autosize maxHeight & minHeight [\#718](https://github.com/youzan/vant/pull/718) -* Locale: optimize i18n config [\#701](https://github.com/youzan/vant/pull/701) -* PullRefresh: support trigger loading animation [\#684](https://github.com/youzan/vant/pull/684) -* Switch: support custom size [\#723](https://github.com/youzan/vant/pull/723) -* Sku: add header price slot [\#705](https://github.com/youzan/vant/pull/705) -* Sku: optimize DOM [\#704](https://github.com/youzan/vant/pull/704) -* Tab: support switch tabs with swipe gestrue in the content [\#694](https://github.com/youzan/vant/pull/694) [\#695](https://github.com/youzan/vant/pull/695) -* Tag: adjust style [\#689](https://github.com/youzan/vant/pull/689) -* Toast: support Vue.use to register [\#690](https://github.com/youzan/vant/pull/690) - - -**Bug Fixes** - -* fix ActionSheet bottom border missing [\#686](https://github.com/youzan/vant/pull/686) -* fix AddressEdit area not selected when area_code changed [\#680](https://github.com/youzan/vant/pull/680) -* fix Stepper value overlimit [\#691](https://github.com/youzan/vant/issues/691) -* fix Sidebar info font weight when selected [\#687](https://github.com/youzan/vant/pull/687) - - -### [v0.12.14](https://github.com/youzan/vant/tree/v0.12.14) -`2018-03-09` - -**Bug Fixes** -* Area: should reset index when area list changed [\#678](https://github.com/youzan/vant/pull/678) - - -### [v0.12.13](https://github.com/youzan/vant/tree/v0.12.13) -`2018-03-09` - -**Improvements** - -* AddressEdit: support custom tel validator [\#673](https://github.com/youzan/vant/pull/673) -* Sku: add close-on-click-overlay config for sku popup [\#676](https://github.com/youzan/vant/pull/676) - -**Bug Fixes** -* fix CouponList text max-width [\#675](https://github.com/youzan/vant/pull/675) - - -### [v0.12.12](https://github.com/youzan/vant/tree/v0.12.12) -`2018-03-06` - -**Improvements** - -* Swipe: support disable loop [\#670](https://github.com/youzan/vant/pull/670) -* Document: add swipe change event demo [\#666](https://github.com/youzan/vant/pull/666) -* update static source CDN domain [\#652](https://github.com/youzan/vant/pull/652) - -**Bug Fixes** - -* fix Field disabled color in safari [\#669](https://github.com/youzan/vant/pull/669) -* fix Swipe autoplay not stop when value set to 0 [\#660](https://github.com/youzan/vant/pull/660) - - -### [v0.12.11](https://github.com/youzan/vant/tree/v0.12.11) -`2018-02-27` - -**Improvements** - -* Checkbox: add label-disabled prop [\#644](https://github.com/youzan/vant/pull/644) -* Popup: add click-overlay event [\#647](https://github.com/youzan/vant/pull/647) -* Icon: add warn icon [\#651](https://github.com/youzan/vant/pull/651) -* Icon: add info-o icon, optimize checked & underway icon [\#648](https://github.com/youzan/vant/pull/648) - -**Bug Fixes** - -* fix Button loading horizontal align [\#645](https://github.com/youzan/vant/pull/645) - - -### [v0.12.10](https://github.com/youzan/vant/tree/v0.12.10) -`2018-02-12` - -**Improvements** - -* add build-in style document [\#633](https://github.com/youzan/vant/pull/633) -* Checkbox: optimzie DOM struct [\#636](https://github.com/youzan/vant/pull/636) -* Checkbox: support config the maximum amount of checked options [\#631](https://github.com/youzan/vant/pull/631) - -**Bug Fixes** - -* Stepper: change event error when clear input [\#635](https://github.com/youzan/vant/pull/635) - - -### [v0.12.9](https://github.com/youzan/vant/tree/v0.12.9) -`2018-02-08` - -**Improvements** - -* PullRefresh: add refersh event [\#625](https://github.com/youzan/vant/pull/625) -* Circle: optimzie linecap [\#624](https://github.com/youzan/vant/pull/624) -* Picker: add loading prop [\#619](https://github.com/youzan/vant/pull/619) -* Loading: add size prop [\#620](https://github.com/youzan/vant/pull/620) -* Loading: add circular type [\#618](https://github.com/youzan/vant/pull/618) -* Loading: change default type to circular [\#623](https://github.com/youzan/vant/pull/623) - -**Bug Fixes** -* fix Sku message observation [\#627](https://github.com/youzan/vant/pull/627) - - -### [v0.12.8](https://github.com/youzan/vant/tree/v0.12.8) -`2018-02-07` - -**Improvements** -* add Circle component [\#608](https://github.com/youzan/vant/pull/608) -* Tab: add title slot [\#603](https://github.com/youzan/vant/pull/603) -* Toast: adjust background color [\#601](https://github.com/youzan/vant/pull/601) -* Popup: support getContaienr [\#611](https://github.com/youzan/vant/pull/611) -* Sku: support imgage upload [\#612](https://github.com/youzan/vant/pull/612) -* Sku: support custom stepper [\#600](https://github.com/youzan/vant/pull/600) - -**Bug Fixes** -* fix Picker style error in some andriod devices [\#609](https://github.com/youzan/vant/pull/609) -* fix TreeSelect arrow position error [\#605](https://github.com/youzan/vant/pull/605) - - -### [v0.12.7](https://github.com/youzan/vant/tree/v0.12.7) -`2018-01-31` - -**Improvements** -* Area: add item-height & visible-item-count props [\#591](https://github.com/youzan/vant/pull/591) -* Dialog: support component call [\#593](https://github.com/youzan/vant/pull/593) -* Toast: support multiple instance [\#586](https://github.com/youzan/vant/pull/586) -* Sku: add getSkuData method [\#585](https://github.com/youzan/vant/pull/585) - -**Bug Fixes** -* fix Field multi line label style error [\#583](https://github.com/youzan/vant/pull/583) - -### [v0.12.6](https://github.com/youzan/vant/tree/v0.12.6) -`2018-01-25` - -**Improvements** - -* AddressEdit: add default slot [\#573](https://github.com/youzan/vant/pull/573) -* Uploader: support maxSize prop [\#575](https://github.com/youzan/vant/pull/575) -* Sku: add sku-body-top slot and resetSelectedSkuOnHide prop [\#568](https://github.com/youzan/vant/pull/568) - -**Bug Fixes** - -* fix Sku message error when overlimit [\#568](https://github.com/youzan/vant/pull/568) -* fix Toast work break [\#567](https://github.com/youzan/vant/pull/567) -* fix Tab active not work [\#572](https://github.com/youzan/vant/pull/572) - -### [v0.12.5](https://github.com/youzan/vant/tree/v0.12.5) -`2018-01-23` - -**Improvements** - -* Button: add text prop [\#563](https://github.com/youzan/vant/pull/563) -* CouponList: support v-model、exchangeButtonLoading、exchangeMinLength [\#556](https://github.com/youzan/vant/pull/556) [\#566](https://github.com/youzan/vant/pull/566) -* Icon: update share icon [\#562](https://github.com/youzan/vant/pull/562) -* Sku: improve render performance [\#550](https://github.com/youzan/vant/pull/550) - -**Bug Fixes** -* Area: should not display city & county list when not select province [\#560](https://github.com/youzan/vant/pull/560) -* Cell: fix required style [\#553](https://github.com/youzan/vant/pull/553) - - -### [v0.12.4](https://github.com/youzan/vant/tree/v0.12.4) -`2018-01-18` - -**Improvements** - -* Picker: add props to custom button text [\#548](https://github.com/youzan/vant/pull/548) -* Toast: add setDefaultOptions method [\#541](https://github.com/youzan/vant/pull/541) -* Dialog: add setDefaultOptions method [\#539](https://github.com/youzan/vant/pull/539) - -**Bug Fixes** - -* Stepper: not fire event on changing the value prop [\#546](https://github.com/youzan/vant/pull/546) -* Picker: fix misspelling of visibleItemCount prop [\#549](https://github.com/youzan/vant/pull/549) - -### [v0.12.3](https://github.com/youzan/vant/tree/v0.12.3) - -`2018-01-12` - -**Improvements** - -* NavBar: add zIndex prop [\#525](https://github.com/youzan/vant/pull/525) -* Cell: adjust right padding of arrow [\#531](https://github.com/youzan/vant/pull/531) - -**Bug Fixes** - -* Area: should valid data before get area list [\#520](https://github.com/youzan/vant/pull/520) -* AddressEdit: setAreaCode now work [\#524](https://github.com/youzan/vant/pull/524) -* Picker: change event not triggered when click option [\#532](https://github.com/youzan/vant/pull/532) -* PullRefresh: only triggered when drag in vertical direction [\#521](https://github.com/youzan/vant/pull/521) - -### [v0.12.2](https://github.com/youzan/vant/tree/v0.12.2) - -`2018-01-08` - -**Bug Fixes** - -* Swipe: use translate2d to aviod iOS11 crash bug [\#518](https://github.com/youzan/vant/pull/518) -* Picker: should not emit change event after init [\#517](https://github.com/youzan/vant/pull/517) -* NoticeBar: should reinitialize when text changed [\#515](https://github.com/youzan/vant/pull/515) -* AddressEdit: fix search result style error [\#514](https://github.com/youzan/vant/pull/514) - -### [v0.12.1](https://github.com/youzan/vant/tree/v0.12.1) - -`2018-01-05` - -**Improvements** - -* Button: adjust padding of small button [\#511](https://github.com/youzan/vant/pull/511) - -**Bug Fixes** - -* fix Cell icon can't render when no title [\#508](https://github.com/youzan/vant/pull/508) -* fix Cell inner border width [\#506](https://github.com/youzan/vant/pull/506) -* fix CouponList line height [\#507](https://github.com/youzan/vant/pull/507) -* fix CouponList input style [\#502](https://github.com/youzan/vant/pull/502) -* fix Radio icon not clickable [\#505](https://github.com/youzan/vant/pull/505) - -### [v0.12.0](https://github.com/youzan/vant/tree/v0.12.0) - -`2017-12-29` - -**Breaking changes** - -* Cell: move left padding from CellGroup to Cell, add 'border'、'clickable' props [\#497](https://github.com/youzan/vant/pull/497) -* follow eslint-plugin-vue strongly-recommended code style, use kebab-case props [\#482](https://github.com/youzan/vant/pull/482) - -**Improvements** - -* Field: add error-message prop [\#492](https://github.com/youzan/vant/pull/492) -* Document: update site UI [\#490](https://github.com/youzan/vant/pull/490) - -**Bug Fixes** - -* fix Tab height calc error when use sticky [\#493](https://github.com/youzan/vant/pull/493) -* fix Component should not inheritAttrs when use $attrs [\#488](https://github.com/youzan/vant/pull/488) - -### [v0.11.15](https://github.com/youzan/vant/tree/v0.11.15) - -`2017-12-25` - -**Improvements** - -* Uploader: support multiple files [\#480](https://github.com/youzan/vant/pull/480) -* NumberKeyboard: add new theme [\#472](https://github.com/youzan/vant/pull/472) -* Icon: update search icon [\#474](https://github.com/youzan/vant/pull/474) -* Support passive events [\#478](https://github.com/youzan/vant/pull/478) - -**Bug Fixes** - -* fix popup should remove event handler when destroyed [\#477](https://github.com/youzan/vant/pull/477) -* fix popup mixin should treat empty string as true for boolean props [\#468](https://github.com/youzan/vant/pull/468) -* fix package.json should include 'types' in 'files' field [\#462](https://github.com/youzan/vant/pull/462) - -### [v0.11.14](https://github.com/youzan/vant/tree/v0.11.14) - -`2017-12-21` - -**Improvements** - -* NumberKeyboard: add hideOnClickOutside & closeButtonText props [\#458](https://github.com/youzan/vant/pull/458) -* Area: optimize performance [\#457](https://github.com/youzan/vant/pull/457) -* auto run eslint before build dist [\#455](https://github.com/youzan/vant/pull/455) [\#453](https://github.com/youzan/vant/pull/453) - -**Bug Fixes** - -* fix cell arrow style error - -### [v0.11.13](https://github.com/youzan/vant/tree/v0.11.13) - -`2017-12-19` - -**Improvements** - -* Area: add 'title' prop [\#450](https://github.com/youzan/vant/pull/450) -* Icon: add 'info' prop [\#447](https://github.com/youzan/vant/pull/447) -* Picker: optimzie performance [\#450](https://github.com/youzan/vant/pull/450) -* Search: support input native events [\#451](https://github.com/youzan/vant/pull/451) -* GoodsAction: add 'info' prop, support router link [\#448](https://github.com/youzan/vant/pull/448) -* Area & Sku: support i18n [\#439](https://github.com/youzan/vant/pull/439) [\#440](https://github.com/youzan/vant/pull/440) - -**Bug Fixes** - -* fix GoodsAction display error in small screen [\#446](https://github.com/youzan/vant/pull/446) - -### [v0.11.12](https://github.com/youzan/vant/tree/v0.11.12) - -`2017-12-15` - -**Improvements** - -* ContactCard: add 'editable' prop [\#435](https://github.com/youzan/vant/pull/435) -* Coupon: support i18n [\#431](https://github.com/youzan/vant/pull/431) - -**Bug Fixes** - -* fix Popup preventScroll not work in some cases [\#429](https://github.com/youzan/vant/pull/429) -* fix Picker should prevent default touchmove [\#432](https://github.com/youzan/vant/pull/432) -* fix Picker bottom area not dragable [\#433](https://github.com/youzan/vant/pull/433) -* fix PullRefresh head display error [\#436](https://github.com/youzan/vant/pull/436) - -### [v0.11.11](https://github.com/youzan/vant/tree/v0.11.11) - -`2017-12-13` - -**Improvements** - -* Field: support native events [\#421](https://github.com/youzan/vant/pull/421) -* Search: support native input attrs [\#418](https://github.com/youzan/vant/pull/418) -* CellGroup: add 'border' prop [\#420](https://github.com/youzan/vant/pull/420) -* AddressEdit: add focus、change-area、select-search events [\#426](https://github.com/youzan/vant/pull/426) -* Sidebar、CouponList、ContactCard: add active color [\#419](https://github.com/youzan/vant/pull/419) - -**Bug Fixes** - -* fix Checkbox disabled not work when inside CheckboxGroup [\#425](https://github.com/youzan/vant/pull/425) -* fix AddressEdit searchResult type validate [\#417](https://github.com/youzan/vant/pull/417) - -### [v0.11.10](https://github.com/youzan/vant/tree/v0.11.10) - -`2017-12-12` - -**Improvements** - -* Support Vue.use to register a component [\#401](https://github.com/youzan/vant/pull/401) -* Uniform fade animation [\#410](https://github.com/youzan/vant/pull/410) - -**Bug Fixes** - -* Icon: fix 'shopping-cart' icon not align center [\#415](https://github.com/youzan/vant/pull/415) - -### [v0.11.9](https://github.com/youzan/vant/tree/v0.11.9) - -`2017-12-11` - -**Improvements** - -* Icon: add share & arrow-left icons [\#407](https://github.com/youzan/vant/pull/407) -* Icon: support local font file [\#408](https://github.com/youzan/vant/pull/408) - -**Bug Fixes** - -* fix raf error in SSR [\#405](https://github.com/youzan/vant/pull/405) -* fix NoticeBar animationend event in old browser [\#402](https://github.com/youzan/vant/pull/402) - -### [v0.11.8](https://github.com/youzan/vant/tree/v0.11.8) - -`2017-12-08` - -**Improvements** - -* Icon: add two new icon [\#396](https://github.com/youzan/vant/pull/396) -* Button: adjust default button border color [\#392](https://github.com/youzan/vant/pull/392) - -**Bug Fixes** - -* Tab: hide scrollbar in mobile safari [\#390](https://github.com/youzan/vant/pull/390) -* Tab: active tab should keep center when scrollable [\#394](https://github.com/youzan/vant/pull/394) - -### [v0.11.7](https://github.com/youzan/vant/tree/v0.11.7) - -`2017-12-07` - -**Improvements** - -* Tab: scroll to top when change tab & sticky [\#389](https://github.com/youzan/vant/pull/389) [chenjiahan](https://github.com/chenjiahan) - -**Bug Fixes** - -* fix Tab initail tab position [\#389](https://github.com/youzan/vant/pull/389) [chenjiahan](https://github.com/chenjiahan) - -### [v0.11.6](https://github.com/youzan/vant/tree/v0.11.6) - -`2017-12-07` - -**Improvements** - -* Picker: support click to select and disabled option [\#370](https://github.com/youzan/vant/pull/370) -* Tab: support sticky prop [\#382](https://github.com/youzan/vant/pull/382) -* Tab: improve animation fluency [\#379](https://github.com/youzan/vant/pull/379) - -**Bug Fixes** - -* fix Popup overlayClass type [\#374](https://github.com/youzan/vant/pull/374) -* fix Field number type value filter [\#386](https://github.com/youzan/vant/pull/386) -* fix Icon 'new' display [\#381](https://github.com/youzan/vant/pull/381) -* fix Sku button border radius [\#378](https://github.com/youzan/vant/pull/378) -* fix Radio & Checkbox disabled color [\#383](https://github.com/youzan/vant/pull/383) - -### [v0.11.5](https://github.com/youzan/vant/tree/v0.11.5) - -`2017-12-04` - -**Improvements** - -* Coupon: adjust cell text [\#371](https://github.com/youzan/vant/pull/371) -* GoodsAction: support i18n [\#367](https://github.com/youzan/vant/pull/367) -* Document: add props name style guide [\#366](https://github.com/youzan/vant/pull/366) - -**Bug Fixes** - -* fix Tab active block disappeared when delete tab [\#372](https://github.com/youzan/vant/pull/372) - -### [v0.11.4](https://github.com/youzan/vant/tree/v0.11.4) - -`2017-11-30` - -**Improvements** - -* add type definition files [\#361](https://github.com/youzan/vant/pull/361) -* support use this.$toast/$dialog to call Toast/Dialog [\#363](https://github.com/youzan/vant/pull/363) - -### [v0.11.3](https://github.com/youzan/vant/tree/v0.11.3) - -`2017-11-28` - -**Breaking changes** - -* NavBar: rename click event, change 'clickLeft' to 'click-left' [\#354](https://github.com/youzan/vant/pull/354) - -**Improvements** - -* SwipeCell: add onClose prop, support async controll [\#356](https://github.com/youzan/vant/pull/356) -* Uploader: support inherit attrs [\#357](https://github.com/youzan/vant/pull/357) -* optimize local compile speed [\#355](https://github.com/youzan/vant/pull/355) - -### [v0.11.2](https://github.com/youzan/vant/tree/v0.11.2) - -`2017-11-24` - -**Improvements** - -* Icon: add seven new icons [\#351](https://github.com/youzan/vant/pull/351) - -### [v0.11.1](https://github.com/youzan/vant/tree/v0.11.1) - -`2017-11-24` - -**Improvements** - -* ActionSheet: update close icon style [\#340](https://github.com/youzan/vant/pull/340) -* Popup: add overlayClass and overlayStyle props [\#349](https://github.com/youzan/vant/pull/349) [\#343](https://github.com/youzan/vant/pull/343) -* Icon: adjust unicode for better display [\#330](https://github.com/youzan/vant/pull/330) -* ImagePreview: support manually close [\#346](https://github.com/youzan/vant/pull/346) -* Tabbar: add slot-scope to avoid check by index [\#347](https://github.com/youzan/vant/pull/347) -* SubmitBar: add left slot [\#345](https://github.com/youzan/vant/pull/345) -* optimize component static classnames [\#337](https://github.com/youzan/vant/pull/337) -* optimize single line text ellipsis [\#334](https://github.com/youzan/vant/pull/334) -* optimize button css layer and GPU cost [\#336](https://github.com/youzan/vant/pull/336) - -**Bug Fixes** - -* fix some bugs in SSR [\#344](https://github.com/youzan/vant/pull/344) -* fix DateTimePicker crashed when pass invalid props [\#333](https://github.com/youzan/vant/pull/333) - -### [v0.11.0](https://github.com/youzan/vant/tree/v0.11.0) - -`2017-11-17` - -**Breaking changes** - -* add i18n support [\#310](https://github.com/youzan/vant/pull/310) -* remove some unnecessary props [\#323](https://github.com/youzan/vant/pull/323) - -**Improvements** - -* add Pagination component [\#327](https://github.com/youzan/vant/pull/327) [\#328](https://github.com/youzan/vant/pull/328) -* add Locale component [\#310](https://github.com/youzan/vant/pull/310) -* add Internationalization document [\#321](https://github.com/youzan/vant/pull/321) -* Icon: add-o icon add radius [\#326](https://github.com/youzan/vant/pull/326) - -### [v0.10.9](https://github.com/youzan/vant/tree/v0.10.9) - -`2017-11-15` - -**Improvements** - -* Icon: add new icons [\#315](https://github.com/youzan/vant/pull/315) - -**Bug Fixes** - -* Search: fix box-sizing [\#312](https://github.com/youzan/vant/pull/312) - -### [v0.10.8](https://github.com/youzan/vant/tree/v0.10.8) - -`2017-11-11` - -**Improvements** - -* Tabbar: support vue-router [\#305](https://github.com/youzan/vant/pull/305) -* Stepper: add plus & minus event [\#294](https://github.com/youzan/vant/pull/294) -* Progress: add showPivot prop [\#300](https://github.com/youzan/vant/pull/300) -* Loading: add spinner type [\#297](https://github.com/youzan/vant/pull/297) -* Toast: add mask option [\#296](https://github.com/youzan/vant/pull/296) -* add Tab english document [\#308](https://github.com/youzan/vant/pull/308) -* add Toast english document [\#307](https://github.com/youzan/vant/pull/307) - -**Bug Fixes** - -* fix npm run dist errors in windows [\#301](https://github.com/youzan/vant/pull/301) - -### [v0.10.7](https://github.com/youzan/vant/tree/v0.10.7) - -`2017-11-08` - -**Improvements** - -* Normalize size of all icons [\#292](https://github.com/youzan/vant/pull/292) -* ImagePreview support custom startPosition [\#286](https://github.com/youzan/vant/pull/286) - -**Bug Fixes** - -* fix Sku scroll lock [\#291](https://github.com/youzan/vant/pull/291) -* fix Steps style error when has more than 4 items [\#287](https://github.com/youzan/vant/pull/287) - -### [v0.10.6](https://github.com/youzan/vant/tree/v0.10.6) - -`2017-11-06` - -**Improvements** - -* add Swipe initialSwipe prop [\#279](https://github.com/youzan/vant/pull/279) - -**Bug Fixes** - -* fix Dialog button text not reset when showed [\#278](https://github.com/youzan/vant/pull/278) -* fix Tab dynamic generate bug [\#284](https://github.com/youzan/vant/pull/284) -* fix NoticeBar text disappeared when page back [\#280](https://github.com/youzan/vant/pull/280) - -### [v0.10.5](https://github.com/youzan/vant/tree/v0.10.5) - -`2017-10-30` - -**Improvements** - -* Cell support vue-router target route [\#268](https://github.com/youzan/vant/pull/268) - -**Bug Fixes** - -* fix Tabbar info display when use icon slot [\#269](https://github.com/youzan/vant/pull/269) -* fix Uploader input type [\#265](https://github.com/youzan/vant/pull/265) - -### [v0.10.4](https://github.com/youzan/vant/tree/v0.10.4) - -`2017-10-26` - -**Improvements** - -* add more icons [\#253](https://github.com/youzan/vant/pull/253) -* add document of custom theme [\#251](https://github.com/youzan/vant/pull/251) -* add click feedback of buttons in components [\#248](https://github.com/youzan/vant/pull/248) -* add more props of NoticeBar [\#254](https://github.com/youzan/vant/pull/254) - -**Bug Fixes** - -* fix Swipe width calc error [\#258](https://github.com/youzan/vant/pull/258) -* fix PullRefreash scroll bug when parent is scrollable [\#247](https://github.com/youzan/vant/pull/247) -* fix CouponList empty info display bug [\#246](https://github.com/youzan/vant/pull/246) - -### [v0.10.3](https://github.com/youzan/vant/tree/v0.10.3) - -`2017-10-25` - -**Improvements** - -* add Tabbar info prop [\#245](https://github.com/youzan/vant/pull/245) -* add Toast position prop [\#244](https://github.com/youzan/vant/pull/244) -* add Coupon showExchangeBar prop [\#243](https://github.com/youzan/vant/pull/243) -* add Advanced components english document [\#236](https://github.com/youzan/vant/pull/236) -* add demo pages in document [\#237](https://github.com/youzan/vant/pull/237) - -**Bug Fixes** - -* fix Address & Contact list style error [\#230](https://github.com/youzan/vant/pull/230) -* fix popup style missing when build style entry [\#231](https://github.com/youzan/vant/pull/231) -* fix PullRefresh touchcancel event [\#239](https://github.com/youzan/vant/pull/239) - -### [v0.10.2](https://github.com/youzan/vant/tree/v0.10.2) - -`2017-10-20` - -**Improvements** - -* Sku: sku-group slot add event bus [\#226](https://github.com/youzan/vant/pull/226) -* add English documents [\#220](https://github.com/youzan/vant/pull/220) - -**Bug Fixes** - -* Optimize component dependency analyze when build style entry [\#224](https://github.com/youzan/vant/pull/224) - -### [v0.10.1](https://github.com/youzan/vant/tree/v0.10.1) - -`2017-10-18` - -**Improvements** - -* upgrade Vue version to 2.5.0 -* add Tabs swipeThreshold prop [\#206](https://github.com/youzan/vant/pull/206) - -**Bug Fixes** - -* fix Swipe not clear autoplay timer when destroyed [\#218](https://github.com/youzan/vant/pull/218) -* fix Tab slot text ellipsis [\#217](https://github.com/youzan/vant/pull/217) -* fix TreeSelect denpendency path error [\#216](https://github.com/youzan/vant/pull/216) -* fix Checkbox border render error in Weixin browser [\#214](https://github.com/youzan/vant/pull/214) -* fix Popup modal can not display in some cases [\#211](https://github.com/youzan/vant/pull/211) -* fix Waterfall repeated event bind - -### [v0.10.0](https://github.com/youzan/vant/tree/v0.10.0) - -`2017-10-13` - -**Breaking changes** - -* remove reset.css in style [\#192](https://github.com/youzan/vant/issues/192) [\#196](https://github.com/youzan/vant/pull/196) -* reconstruct Swipe component, adjust some API [#174](https://github.com/youzan/vant/issues/174) [#180](https://github.com/youzan/vant/issues/180) [\#194](https://github.com/youzan/vant/pull/194) [\#200](https://github.com/youzan/vant/pull/200) -* optimize Search component,adjust struct [\#198](https://github.com/youzan/vant/pull/198) - -**Improvements** - -* add Tabbar componnet [#157](https://github.com/youzan/vant/issues/157) [\#204](https://github.com/youzan/vant/pull/204) -* add english document of Form components [\#199](https://github.com/youzan/vant/pull/199) -* optimize Sku style [\#205](https://github.com/youzan/vant/pull/205) - -**Bug Fixes** - -* fix ImagePreview beating bug when loading image [\#201](https://github.com/youzan/vant/pull/201) -* fix Field height error when type is textarea and display none [\#181](https://github.com/youzan/vant/issues/181) - -### [v0.9.12](https://github.com/youzan/vant/tree/v0.9.12) - -`2017-10-11` - -**Bug Fixes** - -* fix Search style bug [\#191](https://github.com/youzan/vant/pull/191) - -### [v0.9.11](https://github.com/youzan/vant/tree/v0.9.11) - -`2017-10-11` - -**Improvements** - -* add Contribute document [\#182](https://github.com/youzan/vant/pull/182) - -**Bug Fixes** - -* fix AddressEdit name key [\#187](https://github.com/youzan/vant/pull/187) -* fix Field textarea wrong height when display none [\#188](https://github.com/youzan/vant/pull/188) -* fix compile error in windows [\#185](https://github.com/youzan/vant/pull/182) - -### [v0.9.10](https://github.com/youzan/vant/tree/v0.9.10) - -`2017-10-09` - -**Improvements** - -* add Contact component [\#160](https://github.com/youzan/vant/pull/160) -* add AddressEdit component [\#147](https://github.com/youzan/vant/pull/147) -* add english document support [\#170](https://github.com/youzan/vant/pull/170) -* remove dependency of zan-utils [\#168](https://github.com/youzan/vant/pull/168) -* remove unnecessary codes in transition.js [\#162](https://github.com/youzan/vant/pull/162) -* use clean-css instead of gulp-cssmin to minify css - -**Bug Fixes** - -* fix Tab props not observable [\#148](https://github.com/youzan/vant/pull/148) -* fix Button active border color [\#150](https://github.com/youzan/vant/issues/150) -* fix Stepper input style [\#159](https://github.com/youzan/vant/pull/159) -* fix Waterfall disable props not work when display none [\#166](https://github.com/youzan/vant/pull/166) -* fix style not compile calc property after build -* fix npm run dev error in MacOS [\#152](https://github.com/youzan/vant/issues/152) -* fix document router not work in some browsers [\#158](https://github.com/youzan/vant/pull/158) - -### [v0.9.9](https://github.com/youzan/vant/tree/v0.9.9) - -`2017-09-26` - -**Improvements** - -* Sku:support Stepper [\#146](https://github.com/youzan/vant/pull/146) - -**Bug Fixes** - -* fix license error in packages.json [\#144](https://github.com/youzan/vant/pull/144) -* fix Waterfall scroll bug [\#145](https://github.com/youzan/vant/pull/145) - -### [v0.9.8](https://github.com/youzan/vant/tree/v0.9.8) - -`2017-09-24` - -**Improvements** - -* add AddressList component [\#138](https://github.com/youzan/vant/pull/138) -* modify changelog [\#140](https://github.com/youzan/vant/pull/140) - -**Bug Fixes** - -* fix Sku message render bug [\#142](https://github.com/youzan/vant/pull/142) - -### [v0.9.7](https://github.com/youzan/vant/tree/v0.9.7) - -`2017-09-21` - -**Improvements** - -* Checkbox: support shape prop [\#137](https://github.com/youzan/vant/pull/137) +- add `name` prop diff --git a/docs/markdown/changelog.zh-CN.md b/docs/markdown/changelog.zh-CN.md index 84fa03f24..242615770 100644 --- a/docs/markdown/changelog.zh-CN.md +++ b/docs/markdown/changelog.zh-CN.md @@ -1,2339 +1,171 @@ # 更新日志 -### [v1.6.19](https://github.com/youzan/vant/tree/v1.6.19) -`2019-05-16` +### [v2.0.0-beta.0](https://github.com/youzan/vant/tree/v2.0.0-beta.0) +`2019-05-21` -**Bug Fixes** +#### 主要变动 -- 修复 Col 内容为空时宽度错误的问题 -- 修复 Uploader 在 safari 浏览器上最小宽度错误的问题 -- 修复 Tabbar info 传入空字符串时会渲染空节点的问题 -- 修复 Icon 等组件判断图片 URL 时不支持 blob 格式的问题 [\#3308](https://github.com/youzan/vant/pull/3308) [\#3300](https://github.com/youzan/vant/pull/3300) +- 增加四个新组件 +- 增加数十个 API +- 全新的卡片风格文档,支持文档搜索 +- 所有组件支持通过`less`变量自定义样式 +- 调整了部分不合理的命名,废弃少量 API +#### 新组件 -### [v1.6.18](https://github.com/youzan/vant/tree/v1.6.18) -`2019-05-10` +在 2.0 版本中,我们按照社区反馈新增以下组件: -**Bug Fixes** +- `Image`图片组件 +- `Skeleton`骨架屏组件 +- `IndexBar`、`IndexAnchor`索引栏组件 +- `DropdownMenu`、`DropdownItem`下拉菜单组件 -- 移除 AddressEdit 中部分冗余样式 -- 修复 Radio 点击事件未冒泡的问题 -- 修复 Checkbox 点击事件未冒泡的问题 -- 修复 PullRefresh 静止情况下存在 transform 样式的问题 [\#3258](https://github.com/youzan/vant/pull/3258) -- 修复 Progress 动态更新 pivoit-text 时宽度计算错误的问题 -- 修复 Swipe 在部分情况下提示 preventDefault 警告的问题 +#### 不兼容更新 +在 2.0 版本中,我们对部分组件和 API 进行重命名,以更加符合业界的命名规范,同时移除了少量不常用的属性,具体改动如下: -### [v1.6.17](https://github.com/youzan/vant/tree/v1.6.17) -`2019-05-05` +##### Actionsheet -**Improvements** +- 重命名为`ActionSheet` -- List: 新增 direction 属性 [\#3223](https://github.com/youzan/vant/pull/3223) -- Cell: 新增 title-style 属性 [\#3233](https://github.com/youzan/vant/pull/3233) -- Field: 新增 label-width 属性 [\#3235](https://github.com/youzan/vant/pull/3235) +##### Button -**Bug Fixes** +- 移除`bottom-action`属性,请使用`square`和`size`代替 -- 修复 Card 图片未居中的问题 [\#3229](https://github.com/youzan/vant/pull/3229) -- 修复 Icon new、question 图标展示不全的问题 -- 修复 Step 异步插入步骤时顺序错误的问题 -- 修复 Step 步骤超过五项时在小屏设备上文字重叠的问题 -- 修复 Popup 弹出多个弹层时 click-overlay 事件重复触发的问题 +##### Field +- 移除`on-icon-click`属性,请使用`click-right-icon`事件代替 +- `icon`属性重命名为`right-icon` +- `icon`插槽重命名为`right-icon` +- `click-icon`事件重命名为`click-right-icon` -### [v1.6.16](https://github.com/youzan/vant/tree/v1.6.16) -`2019-04-26` +##### GoodsAction -**Improvements** +- `GoodsActionBigBtn`重命名为`GoodsActionButton` +- `GoodsActionMiniBtn`重命名为`GoodsActionIcon` +- `GoodsActionBigBtn`移除`primary`属性,请使用`type`属性代替 -- Step: 新增 active-icon 插槽 [\#3193](https://github.com/youzan/vant/pull/3193) -- NumberKeyboard: 新增 title-left 插槽 [\#3194](https://github.com/youzan/vant/pull/3194) -- Icon: 更新 new、hot 图标 [\#3203](https://github.com/youzan/vant/pull/3203) +##### Step -**Bug Fixes** +- 移除`icon`属性 +- 移除`title`属性 +- 移除`icon-class`属性 +- 移除`description`属性 +- 移除`message-extra`插槽 -- 修复 Field 在 iOS12 上滚动位置偏移的问题 [\#3204](https://github.com/youzan/vant/pull/3204) -- 修复 Row align 设置为 bottom 时不生效的问题 [\#3209](https://github.com/youzan/vant/pull/3209) -- 修复 Area change 事件回传的 values 参数错误的问题 [\#3219](https://github.com/youzan/vant/pull/3219) -- 修复 AddressList 点击单选框无法触发 select 事件的问题 [\#3214](https://github.com/youzan/vant/pull/3214) -- 修复 ContactList 点击单选框无法触发 select 事件的问题 [\#3218](https://github.com/youzan/vant/pull/3218) -- 修复 Slider 拖动同时设置 value 属性导致拖动失败的问题 [\#3206](https://github.com/youzan/vant/pull/3206) +##### Badge +- `BadgeGroup`重命名为`Sidebar` +- `Badge`重命名为`SlideBarItem` -### [v1.6.15](https://github.com/youzan/vant/tree/v1.6.15) -`2019-04-19` +##### Loading -**Improvements** +- 移除`circle`类型 +- 移除`gradient-circle`类型 -- Card: 新增多个 Less 变量 [\#3167](https://github.com/youzan/vant/pull/3167) -- Swipe: 新增多个 Less 变量 [\#3169](https://github.com/youzan/vant/pull/3169) -- Field: 新增多个 Less 变量 [\#3168](https://github.com/youzan/vant/pull/3168) -- ImagePreview: 支持组件调用 [\#3154](https://github.com/youzan/vant/pull/3154) -- ImagePreview: 新增 index 插槽 [\#3157](https://github.com/youzan/vant/pull/3157) -- ImagePreview: 新增 change 事件 [\#3155](https://github.com/youzan/vant/pull/3155) -- SubmitBar: 新增 decimal-length 属性 [\#3151](https://github.com/youzan/vant/pull/3151) -- Tabbar: 新增 safe-area-inset-bottom 属性 [\#3149](https://github.com/youzan/vant/pull/3149) -- SubmitBar: 新增 safe-area-inset-bottom 属性 [\#3172](https://github.com/youzan/vant/pull/3172) -- GoodsAction: 新增 safe-area-inset-bottom 属性 [\#3174](https://github.com/youzan/vant/pull/3174) -- ActionSheet: 新增 safe-area-inset-bottom 属性 [\#3171](https://github.com/youzan/vant/pull/3171) -- NumberKeyboard: 新增 safe-area-inset-bottom 属性 [\#3173](https://github.com/youzan/vant/pull/3173) +##### Checkbox -**Bug Fixes** +- 调整为`flex`布局,可能对原有布局产生影响 -- 修复 Card 渲染空标签的问题 [\#3152](https://github.com/youzan/vant/pull/3152) -- 修复 Popup 会触发浏览器事件 uncancelable 提示的问题 [\#3150](https://github.com/youzan/vant/pull/3150) -- 修复 Toast z-index 未正确递增的问题 [\#3153](https://github.com/youzan/vant/pull/3153) +##### Radio +- 调整为`flex`布局,可能对原有布局产生影响 -### [v1.6.14](https://github.com/youzan/vant/tree/v1.6.14) -`2019-04-13` +##### Waterfall -**Improvements** +- 移除在 1.0 版本废弃的 Waterfall 组件,请使用`List`组件代替,或使用独立的[@vant/waterfall](https://github.com/chenjiahan/vant-waterfall)包。 -- Rate: 新增 allow-half 属性 [\#3134](https://github.com/youzan/vant/pull/3134) -- ImagePreview: 新增 max-zoom、min-zoom 属性 [\#3133](https://github.com/youzan/vant/pull/3133) -- Dialog: 新增 confirm-button-color、cancel-button-color 属性 [\#3107](https://github.com/youzan/vant/pull/3107) -- Cell: 新增多个 Less 变量 [\#3122](https://github.com/youzan/vant/pull/3122) -- Rate: 新增多个 Less 变量 [\#3135](https://github.com/youzan/vant/pull/3135) -- Panel: 新增多个 Less 变量 [\#3136](https://github.com/youzan/vant/pull/3136) -- Sidebar: 新增多个 Less 变量 [\#3131](https://github.com/youzan/vant/pull/3131) -- Dialog: 新增多个 Less 变量 [\#3123](https://github.com/youzan/vant/pull/3123) -- Slider: 新增多个 Less 变量 [\#3125](https://github.com/youzan/vant/pull/3125) -- Tabbar: 新增多个 Less 变量 [\#3124](https://github.com/youzan/vant/pull/3124) +#### 新特性 -**Bug Fixes** +##### ActionSheet -- 修复 Steps 子组件销毁后未正确选中当前选项的问题 [\#3140](https://github.com/youzan/vant/pull/3140) -- 修复 Toast 使用 getContainer 属性后可能出现节点被回收导致无法渲染的问题 [\#3115](https://github.com/youzan/vant/pull/3115) -- 修复 Dialog 使用 getContainer 属性后可能出现节点被回收导致无法渲染的问题 [\#3111](https://github.com/youzan/vant/pull/3111) +- 新增`close-on-click-action`属性 +- 支持同时使用`title`和`actions`属性 +##### Button -### [v1.6.13](https://github.com/youzan/vant/tree/v1.6.13) -`2019-04-06` +- 新增`loading-type`属性 -**Improvements** +##### Checkbox -- Uploader: 新增 name 属性 [\#3096](https://github.com/youzan/vant/pull/3096) -- Slider: 新增 vertical 属性 [\#3078](https://github.com/youzan/vant/pull/3078) -- Stepper: 新增 input-width 属性 [\#3076](https://github.com/youzan/vant/pull/3076) -- Tag: 新增多个 Less 变量 [\#3087](https://github.com/youzan/vant/pull/3087) -- Button: 新增多个 Less 变量 [\#3093](https://github.com/youzan/vant/pull/3093) -- CellGroup: 新增多个 Less 变量 [\#3094](https://github.com/youzan/vant/pull/3094) +- 新增`icon-size`属性 -**Bug Fixes** +##### Field -- 修复 Tab 包裹在`keep-alive`内时底部条渲染错误的问题 [\#3097](https://github.com/youzan/vant/pull/3097) +- 新增`label-class`属性 +##### GoodsActionButton -### [v1.6.12](https://github.com/youzan/vant/tree/v1.6.12) -`2019-03-28` +- 新增`type`属性 -**Improvements** +##### Icon -- ActionSheet: 新增 less 变量 [\#3049](https://github.com/youzan/vant/pull/3049) +- 支持`Number`类型的`size`属性 -**Bug Fixes** +##### Loading -- 修复 SwipeCell 展示时无法触发滚动事件的问题 [\#3056](https://github.com/youzan/vant/pull/3056) -- 修复 Button 细边框状态下 square 属性失效的问题 [\#3058](https://github.com/youzan/vant/pull/3058) -- 修复 Picker 使用 loading 属性时展示出现异常的问题 [\#3064](https://github.com/youzan/vant/pull/3064) +- 新增`default`插槽 +- 新增`vertical`属性 +- 新增`text-size`属性 +- 支持`Number`类型的`size`属性 +##### Notify -### [v1.6.11](https://github.com/youzan/vant/tree/v1.6.11) -`2019-03-22` +- 新增`onClick`属性 -**Improvements** +##### NoticeBar -- Icon: 更新店铺相关图标 [\#3044](https://github.com/youzan/vant/pull/3044) -- Radio: 新增 click 事件 [\#2990](https://github.com/youzan/vant/pull/2990) -- Checkbox: 新增 click 事件 [\#2990](https://github.com/youzan/vant/pull/2990) -- Button: 新增 hairline 属性 [\#3031](https://github.com/youzan/vant/pull/3031) -- Button: 新增 touchstart 属性 [\#3039](https://github.com/youzan/vant/pull/3039) -- Dialog: 新增 getContainer 选项 [\#3040](https://github.com/youzan/vant/pull/3040) -- NoticeBar: 新增 wrapable 属性 [\#2992](https://github.com/youzan/vant/pull/2992) -- Field: 新增 error-message-align 属性 [\#3016](https://github.com/youzan/vant/pull/3016) -- Sku: 支持在初始化时设置选中商品数量 [\#3045](https://github.com/youzan/vant/pull/3045) -- ActionSheet: 支持同时设置默认插槽和 cancel-text [\#3021](https://github.com/youzan/vant/pull/3021) +- 新增`left-icon`插槽 +- 新增`right-icon`插槽 -**Bug Fixes** +##### PasswordInput -- 修复 Swipe 在部分浏览器上文字模糊的问题 [\#3030](https://github.com/youzan/vant/pull/3030) -- 修复 Steps 垂直方向 active-icon 样式错误的问题 [\#3007](https://github.com/youzan/vant/pull/3007) -- 修复 Toast 在某些情况下遮罩层无法被清除的问题 [\#3025](https://github.com/youzan/vant/pull/3025) -- 修复 Dialog 使用 getContainer 属性时遮罩层位置错误的问题 [\#3041](https://github.com/youzan/vant/pull/3041) -- 修复 Collapse 在渲染较慢的情况下可能出现高度为 0 的问题 [\#2993](https://github.com/youzan/vant/pull/2993) +- 新增`gutter`属性 +##### Popup -### [v1.6.10](https://github.com/youzan/vant/tree/v1.6.10) -`2019-03-17` +- 新增`click`事件 +- 新增`duration`属性 -**Improvements** +##### Radio -- Icon: 新增 tag 属性 [\#2986](https://github.com/youzan/vant/pull/2986) -- Cell: 新增 label 插槽 [\#2956](https://github.com/youzan/vant/pull/2956) -- Toast: 新增 onClose 属性 [\#2964](https://github.com/youzan/vant/pull/2964) -- AddressEdit: 新增 setAddressDetail 方法 [\#2984](https://github.com/youzan/vant/pull/2984) +- 新增`icon-size`属性 -**Bug Fixes** +##### Steps -- 修复 List 子元素 scoped 样式无法生效的问题 [\#2983](https://github.com/youzan/vant/pull/2983) -- 修复 Steps 设置为 vertical 时样式错误的问题 [\#2981](https://github.com/youzan/vant/pull/2981) -- 修复 Coupon 单独传入 value-desc 属性时不展示的问题 [\#2980](https://github.com/youzan/vant/pull/2980) -- 修复 Uploader 使用 before-read 属性后重复上传同个文件不触发事件的问题 [\#2971](https://github.com/youzan/vant/pull/2971) +- 新增`inactive-icon`属性 +- 新增`inactive-icon`插槽 +##### SubmitBar -### [v1.6.9](https://github.com/youzan/vant/tree/v1.6.9) -`2019-03-11` +- 新增`tip-icon`属性 +- 新增`suffix-label`属性 -**Improvements** +##### Switch -- Field: 新增 size 属性 [\#2936](https://github.com/youzan/vant/pull/2936) -- Collapse: 新增 size 属性 [\#2946](https://github.com/youzan/vant/pull/2946) -- Collapse: 新增 border 属性 [\#2933](https://github.com/youzan/vant/pull/2933) -- CellGroup: 新增 title 属性 [\#2928](https://github.com/youzan/vant/pull/2928) -- Steps: 新增 active-icon 属性 [\#2934](https://github.com/youzan/vant/pull/2934) -- Picker: 新增 default-index 属性 [\#2935](https://github.com/youzan/vant/pull/2935) -- ActionSheet: 新增 index 作为 select 事件的回调参数 [\#2917](https://github.com/youzan/vant/pull/2917) +- 加载图标颜色现在会跟随背景色变化 -**Bug Fixes** +##### SwitchCell -- 修复 Card origin-price 插槽未生效的问题 [\#2927](https://github.com/youzan/vant/pull/2927) -- 修复 Swipe change 事件触发时机错误的问题 [\#2909](https://github.com/youzan/vant/pull/2909) +- 新增`border`属性 +- 新增`cell-size`属性 +##### Sku -### [v1.6.8](https://github.com/youzan/vant/tree/v1.6.8) -`2019-03-02` +- 新增`preview-open`事件 +- 新增`preview-close`事件 -**Improvements** +##### Tab -- CouponList: 优化列表为空的样式 [\#2878](https://github.com/youzan/vant/pull/2878) -- 支持在函数式组件上使用 ref 属性 [\#2863](https://github.com/youzan/vant/pull/2863) +- 优化`animated`动画性能 +- 修复开启`animated`后高度错误的问题 -**Bug Fixes** +##### Tabbar -- 修复 Field label 插槽未生效的问题 [\#2872](https://github.com/youzan/vant/pull/2872) -- 修复 Icon new 图标无法展示的问题 [\#2887](https://github.com/youzan/vant/pull/2887) -- 修复 AddressList 使用 switchable 属性时的样式错误 [\#2886](https://github.com/youzan/vant/pull/2886) -- 修复 Tab 使用 offset-top 属性时切换标签未滚动到正确位置的问题 [\#2873](https://github.com/youzan/vant/pull/2873) +- 新增`route`属性 +- 新增`border`属性 +- 新增`inactive-color`属性 +##### TabbarItem -### [v1.6.7](https://github.com/youzan/vant/tree/v1.6.7) -`2019-02-26` - -**Improvements** - -- Button: 新增 loading-size 属性 [\#2854](https://github.com/youzan/vant/pull/2854) -- Stepper: 新增 focus 事件 [\#2841](https://github.com/youzan/vant/pull/2841) -- Sku: 支持自定义 Stepper 库存信息 [\#2839](https://github.com/youzan/vant/pull/2839) -- Icon: 优化部分图标的圆角线条 [\#2856](https://github.com/youzan/vant/pull/2856) - -**Bug Fixes** - -- 修复 ActionSheet lazy-render 属性不生效的问题 [\#2840](https://github.com/youzan/vant/pull/2840) -- 修复 ActionSheet get-container 属性不生效的问题 [\#2853](https://github.com/youzan/vant/pull/2853) -- 修复 Tab 初始化时导航栏未自动滚动到当前标签位置的问题 [\#2857](https://github.com/youzan/vant/pull/2857) -- 修复 Checkbox 与 Cell 组件嵌套用法在 Vue 2.6+ 上的兼容问题 [\#2855](https://github.com/youzan/vant/pull/2855) -- 修复 CouponList 不可用券列表为空时展示错误的问题 [\#2845](https://github.com/youzan/vant/pull/2845) - - -### [v1.6.6](https://github.com/youzan/vant/tree/v1.6.6) -`2019-02-24` - -**Improvements** - -- Button: 新增 info 类型 [\#2831](https://github.com/youzan/vant/pull/2831) -- Picker: 新增 title 插槽 [\#2811](https://github.com/youzan/vant/pull/2811) -- Tab: 新增 lazy-render 属性 [\#2800](https://github.com/youzan/vant/pull/2800) -- Tab: 新增 nav-left、nav-right 插槽 [\#2828](https://github.com/youzan/vant/pull/2828) -- PasswordInput: 新增 mask 属性 [\#2796](https://github.com/youzan/vant/pull/2796) -- Stepper: 样式升级 [\#2790](https://github.com/youzan/vant/pull/2790) -- Search: 样式升级, 新增 shape、label 属性 [\#2788](https://github.com/youzan/vant/pull/2788) -- Dialog: 支持在 message 中使用换行符 [\#2799](https://github.com/youzan/vant/pull/2799) -- Notify: 支持在 message 中使用换行符 [\#2798](https://github.com/youzan/vant/pull/2798) - -**Bug Fixes** - -- 修复 Cell title-class 类型定义错误 [\#2780](https://github.com/youzan/vant/pull/2780) -- 修复 Tab 在 card 类型中嵌套 line 类型时样式错误的问题 [\#2825](https://github.com/youzan/vant/pull/2825) - - -### [v1.6.5](https://github.com/youzan/vant/tree/v1.6.5) -`2019-02-17` - -**Improvements** - -- Button: 新增 url、to、replace 属性 [\#2754](https://github.com/youzan/vant/pull/2754) -- Tabs: 新增 background 属性 [\#2772](https://github.com/youzan/vant/pull/2772) -- Tabs: 新增 title-active-color、title-inactive-color 属性 [\#2773](https://github.com/youzan/vant/pull/2773) -- CouponCell: 重构为函数式组件 [\#2759](https://github.com/youzan/vant/pull/2759) -- AddressList: 重构为函数式组件 [\#2757](https://github.com/youzan/vant/pull/2757) -- Sku: 部分重构为函数式组件 [\#2756](https://github.com/youzan/vant/pull/2756) - -**Bug Fixes** - -- 修复 Collapse title 插槽不生效的问题 [\#2753](https://github.com/youzan/vant/pull/2753) -- 修复 Panel 使用 v-slot 不生效的问题 [\#2752](https://github.com/youzan/vant/pull/2752) - - -### [v1.6.4](https://github.com/youzan/vant/tree/v1.6.4) -`2019-02-14` - -**Bug Fixes** - -- 修复 Sku 购买事件错误地触发为加入购物车事件的问题 [\#2741](https://github.com/youzan/vant/pull/2741) - - -### [v1.6.3](https://github.com/youzan/vant/tree/v1.6.3) -`2019-02-14` - -**Improvements** - -- Toast: 新增 getContainer 属性 [\#2724](https://github.com/youzan/vant/pull/2724) -- Button: 新增 loading-text 属性 [\#2732](https://github.com/youzan/vant/pull/2732) -- Coupon: 新增 value-desc、unit-desc 属性 [\#2710](https://github.com/youzan/vant/pull/2710) -- Card: 重构为函数式组件 [\#2740](https://github.com/youzan/vant/pull/2740) -- Cell: 重构为函数式组件 [\#2729](https://github.com/youzan/vant/pull/2729) -- Switch: 重构为函数式组件 [\#2736](https://github.com/youzan/vant/pull/2736) -- GoodsAction: 重构为函数式组件 [\#2730](https://github.com/youzan/vant/pull/2730) - -**Bug Fixes** - -- 修复 Field 左侧内容较多时右侧按钮样式错误的问题 [\#2713](https://github.com/youzan/vant/pull/2713) -- 修复 Field 设置为 datetime-local 类型时在 iOS 下高度错误的问题 [\#2720](https://github.com/youzan/vant/pull/2720) -- 修复 Sku 在 iOS 12 下点击区域可能出现偏移的问题 [\#2722](https://github.com/youzan/vant/pull/2722) -- 修复 SwipeCell left-width 设置为 0 时渲染错误的问题 [\#2737](https://github.com/youzan/vant/pull/2737) -- 修复函数式组件传入多个同名事件导致错误的问题 [\#2717](https://github.com/youzan/vant/pull/2717) - - -### [v1.6.2](https://github.com/youzan/vant/tree/v1.6.2) -`2019-02-10` - -**Improvements** - -- Tag: 新增 click 事件 [\#2693](https://github.com/youzan/vant/pull/2693) -- Swipe: 新增 click 事件 [\#2690](https://github.com/youzan/vant/pull/2690) -- NoticeBar: 新增 close 事件 [\#2692](https://github.com/youzan/vant/pull/2692) -- PullRefresh: 新增 success-text、success-duration 属性 [\#2709](https://github.com/youzan/vant/pull/2709) -- 针对 Vue 2.6 优化插槽渲染效率 [\#2688](https://github.com/youzan/vant/pull/2688) - -**Bug Fixes** - -- 修复函数式组件未继承标签属性的问题 [\#2706](https://github.com/youzan/vant/pull/2706) -- 修复 Swipe 内懒加载图片无法正确加载的问题 [\#2708](https://github.com/youzan/vant/pull/2708) -- 修复 Collpase 在特定情况下高度计算错误的问题 [\#2702](https://github.com/youzan/vant/pull/2702) -- 修复 Dialog 点击遮罩层时无法触发 beforeClose 属性的问题 [\#2707](https://github.com/youzan/vant/pull/2707) -- 修复 AddressList 在禁用状态下样式错误的问题 [\#2687](https://github.com/youzan/vant/pull/2687) -- 修复 AddressEdit 在 Vue 2.6 版本下无法选择推荐地址的问题 [\#2689](https://github.com/youzan/vant/pull/2689) - - -### [v1.6.1](https://github.com/youzan/vant/tree/v1.6.1) -`2019-02-05` - -**Improvements** - -- 修复函数式组件无法继承指令和原生事件的问题 [\#2686](https://github.com/youzan/vant/pull/2686) - - -### [v1.6.0](https://github.com/youzan/vant/tree/v1.6.0) -`2019-02-04` - -**Breaking changes** - -- Radio: 重写了组件结构,现在提供和 Checkbox 一致的 UI 和 DOM 结构 [\#2651](https://github.com/youzan/vant/pull/2651) - -**Improvements** - -- 使用 JSX 重写了所有组件 -- 部分组件现在是函数式组件了,渲染性能更佳 -- Card: 新增 tag 插槽 [\#2636](https://github.com/youzan/vant/pull/2636) -- Radio: 新增 icon 插槽 [\#2651](https://github.com/youzan/vant/pull/2651) -- Radio: 新增 shape 属性 [\#2651](https://github.com/youzan/vant/pull/2651) -- Icon: 新增 weapp-nav 图标 [\#2682](https://github.com/youzan/vant/pull/2682) -- Toast: 新增 className 属性 [\#2680](https://github.com/youzan/vant/pull/2680) -- Notify: 新增 className 属性 [\#2681](https://github.com/youzan/vant/pull/2681) -- Popup: 新增 open/close 事件 [\#2649](https://github.com/youzan/vant/pull/2649) -- Popup: 新增 opened/closed 事件 [\#2650](https://github.com/youzan/vant/pull/2650) - -**Bug Fixes** - -- 修复 SwipeCell 左侧内容滑动距离过大的问题 [\#2633](https://github.com/youzan/vant/pull/2633) -- 修复 ContactList 列表内容较多时按钮位置错误的问题 [\#2634](https://github.com/youzan/vant/pull/2634) -- 修复 Toast clear 方法在 multiple 模式下可能报错的问题 [\#2635](https://github.com/youzan/vant/pull/2635) -- 修复 Popup 使用 get-container 属性后销毁时可能报错的问题 [\#2679](https://github.com/youzan/vant/pull/2679) - - -### [v1.5.7](https://github.com/youzan/vant/tree/v1.5.7) -`2019-01-24` - -**Improvements** - -- 新增 live 图标 -- 新增 lock 图标 -- 新增 audio 图标 -- 新增 column 图标 -- 新增 replay 图标 -- 新增 shrink 图标 -- 新增 graphic 图标 -- 新增 invition 图标 -- 新增 ascending 图标 -- 新增 descending 图标 -- 新增 play-circle 图标 -- 新增 stop-circle 图标 -- 新增 pause-circle 图标 -- 新增 play-circle-o 图标 -- 新增 stop-circle-o 图标 -- 新增 pause-circle-o 图标 -- Field: 新增 click-left-icon 事件 [\#2605](https://github.com/youzan/vant/pull/2605) - -### [v1.5.6](https://github.com/youzan/vant/tree/v1.5.6) -`2019-01-22` - -**Improvements** - -- Card: 新增 origin-price slot [\#2588](https://github.com/youzan/vant/pull/2588) -- Switch: 新增 active-value、inactive-value 属性 [\#2590](https://github.com/youzan/vant/pull/2590) -- SwitchCell: 新增 active-value、inactive-value 属性 [\#2591](https://github.com/youzan/vant/pull/2591) - -**Bug Fixes** - -- 修复 Card centered 属性不生效的问题 [\#2589](https://github.com/youzan/vant/pull/2589) -- 修复 Icon name 属性传入 URL 不生效的问题 [\#2585](https://github.com/youzan/vant/pull/2585) - - -### [v1.5.5](https://github.com/youzan/vant/tree/v1.5.5) -`2019-01-21` - -**Bug Fixes** - -- 修复 Field type 属性不生效的问题 [\#2579](https://github.com/youzan/vant/pull/2579) - - -### [v1.5.4](https://github.com/youzan/vant/tree/v1.5.4) -`2019-01-20` - -**Bug Fixes** - -- 修复缺少 @vue/babel-helper-vue-jsx-merge-props 依赖的问题 [\#2474](https://github.com/youzan/vant/issues/2474) - - -### [v1.5.3](https://github.com/youzan/vant/tree/v1.5.3) -`2019-01-20` - -**Improvements** - -- List: 新增 error-text 属性 [\#2568](https://github.com/youzan/vant/pull/2568) -- Coupon: 新增 condition 属性 [\#2551](https://github.com/youzan/vant/pull/2551) -- ImagePreview: 新增 lazyLoad 属性 [\#2569](https://github.com/youzan/vant/pull/2569) -- NavBar: 新增样式相关 Less 变量 [\#2570](https://github.com/youzan/vant/pull/2570) -- Dialog: 默认开启 lazy-render [\#2495](https://github.com/youzan/vant/pull/2495) -- Toast: 支持在 message 中使用换行符 [\#2496](https://github.com/youzan/vant/pull/2496) -- Area: 新增 confirm-button-text、cancel-button-text 属性 [\#2556](https://github.com/youzan/vant/pull/2556) - -**Bug Fixes** - -- 修复 Card 价格区域样式 [\#2549](https://github.com/youzan/vant/pull/2549) -- 修复 Radio 未选中状态图标颜色错误 [\#2484](https://github.com/youzan/vant/pull/2484) -- 修复 Radio label-position 类型定义错误 [\#2485](https://github.com/youzan/vant/pull/2485) -- 修复 Dialog 按钮点击事件触发时机错误 [\#2571](https://github.com/youzan/vant/pull/2571) - - -### [v1.5.2](https://github.com/youzan/vant/tree/v1.5.2) -`2019-01-10` - -**Improvements** - -- Color: 基础绿色调整为微信绿 [\#2479](https://github.com/youzan/vant/pull/2479) -- Icon: 新增 cart-circle 图标 [\#2480](https://github.com/youzan/vant/pull/2480) -- Coupon: 新增 description 属性 [\#2458](https://github.com/youzan/vant/pull/2458) -- ImagePreview: 新增 className 属性 [\#2433](https://github.com/youzan/vant/pull/2433) -- Sku: 支持隐藏已售罄的规格 [\#2472](https://github.com/youzan/vant/pull/2472) - -**Bug Fixes** - -- 修复 Icon 部分图标的线条应使用圆角的问题 [\#2437](https://github.com/youzan/vant/pull/2437) -- 修复 DatetimePicker time 类型 v-model 变化后未触发更新的问题 [\#2427](https://github.com/youzan/vant/pull/2427) -- 修复 SubmitBar 未传 price 时无法隐藏价格和文本的问题 [\#2469](https://github.com/youzan/vant/pull/2469) -- 修复 Swipe 在使用 swipeTo 时可能导致轮播空白的问题 [\#2471](https://github.com/youzan/vant/pull/2471) -- 修复 Stepper 输入框为空且最小值为 0 时无法自动设置默认值的问题 [\#2470](https://github.com/youzan/vant/pull/2470) -- 修复 Tab 首次渲染时会触发底部条动画的问题 [\#2459](https://github.com/youzan/vant/pull/2459) - - -### [v1.5.1](https://github.com/youzan/vant/tree/v1.5.1) -`2019-01-01` - -**Improvements** - -- Card: 新增 price、num 插槽 [\#2416](https://github.com/youzan/vant/pull/2416) -- Slider: 新增 button 插槽 [\#2373](https://github.com/youzan/vant/pull/2373) -- Slider: 新增 active-color、inactive-color 属性 [\#2374](https://github.com/youzan/vant/pull/2374) -- Tabbar: 新增 active-color 属性 [\#2372](https://github.com/youzan/vant/pull/2372) -- Sku: 新增 sku-selected 事件 [\#2386](https://github.com/youzan/vant/pull/2386) - -**Bug Fixes** - -- 修复 Card 描述过长时的样式问题 [\#2414](https://github.com/youzan/vant/pull/2414) -- 修复 ContactList 未注册依赖的 button 组件的问题 [\#2415](https://github.com/youzan/vant/pull/2415) -- 修复 Icon 在 file 协议网页下无法展示的问题 [\#2385](https://github.com/youzan/vant/pull/2385) - - -### [v1.5.0](https://github.com/youzan/vant/tree/v1.5.0) -`2018-12-22` - -**Breaking changes** - -在 1.5.0 版本中,我们统一图标规范并重绘了所有图标,同时增加约 100 个新图标。对于同一个图标,我们会提供`实底`和`线框`两种风格,以星星图标为例,`star`表示实底风格的星星,`star-o`表示线框风格的星星。 - - - -同时我们也对原有图标做了一定调整,具体改动如下: - -- 移除 edit-data -- 移除 pending-deliver -- 移除 pending-evaluate -- 移除 points-mall -- 移除 exchange-record -- 重命名 warn 为 info -- 重命名 check 为 circle -- 重命名 add2 为 add-square -- 重命名 question2 为 question -- 重命名 password-view 为 eye -- 重命名 password-not-view 为 closed-eye -- 重命名 value-card 为 balance-o -- 重命名 receive-gift 为 gift -- 重命名 pending-orders 为 orders-o -- 重命名 gift-card-pay 为 gift-card - -同时我们对下列组件的样式细节进行了优化: - -- Cell 单元格 -- Card 卡片 -- Checkbox 复选框 -- Collapse 折叠面板 -- Tab 标签页 -- Toast 轻提示 -- Switch 开关 -- Swipe 轮播 -- TreeSelect 分类选择 - -**Improvements** - -- 支持通过 vetur 插件实现组件标签/属性名的提示和自动补全 [\#2261](https://github.com/youzan/vant/pull/2261) -- 支持通过大驼峰格式的标签名使用组件 [\#2296](https://github.com/youzan/vant/pull/2296) -- Tab: 新增 ellipsis 属性 [\#2299](https://github.com/youzan/vant/pull/2299) -- Tab: 新增 line-height 属性 [\#2357](https://github.com/youzan/vant/pull/2357) -- Tag: 新增 text-color 属性 [\#2277](https://github.com/youzan/vant/pull/2277) -- Card: 新增 lazy-load 属性 [\#2301](https://github.com/youzan/vant/pull/2301) -- Coupon: 新增 currency 属性 [\#2274](https://github.com/youzan/vant/pull/2274) [\#2256](https://github.com/youzan/vant/pull/2256) -- Dialog: 新增 message-align 属性 [\#2259](https://github.com/youzan/vant/pull/2259) -- Stepper: 新增 async-change 属性 [\#2318](https://github.com/youzan/vant/pull/2318) -- SwitchCell: 新增 active-color、inactive-color 属性 [\#2273](https://github.com/youzan/vant/pull/2273) -- NoticeBar: 支持使用内置图标 [\#2305](https://github.com/youzan/vant/pull/2305) -- TreeSelect: 支持禁用左侧栏选项 [\#2308](https://github.com/youzan/vant/pull/2308) - -**Bug Fixes** - -- 修复 Dialog 在部分低端机型上文字模糊的问题 [\#2300](https://github.com/youzan/vant/pull/2300) -- 修复 Checkbox 文字高度错误的问题 [\#2293](https://github.com/youzan/vant/pull/2293) -- 修复 Field 使用 maxlength 属性后中文输入法截断的问题 [\#2295](https://github.com/youzan/vant/pull/2295) -- 修复 Swipe 包裹在 keep-alive 组件内时未重新初始化的问题 [\#2297](https://github.com/youzan/vant/pull/2297) -- 修复 Swipe 在边界情况下可能报错的问题 [\#2253](https://github.com/youzan/vant/pull/2253) -- 修复 Swipe 事件冒泡导致无法嵌套使用的问题 [\#2355](https://github.com/youzan/vant/pull/2355) -- 修复 Tab 在使用 animated 属性时标签内容无法展示的问题 [\#2238](https://github.com/youzan/vant/pull/2238) [\#2322](https://github.com/youzan/vant/pull/2322) -- 修复 Tab 在禁用所有选项时报错的问题 [\#2356](https://github.com/youzan/vant/pull/2356) -- 修复 Tab 在使用 color 属性时下划线初始颜色错误的问题 [\#2344](https://github.com/youzan/vant/pull/2344) -- 修复 Tabbar 提示位置错误的问题 [\#2257](https://github.com/youzan/vant/pull/2257) -- 修复 Toast 实例上缺少 clear 方法类型定义的问题 [\#2354](https://github.com/youzan/vant/pull/2354) -- 修复 dev 命令在 node 10 环境下报错的问题 [\#2251](https://github.com/youzan/vant/pull/2251) -- 修复 dev 命令在 windows 环境下报错的问题 [\#2229](https://github.com/youzan/vant/pull/2229) - - -### [v1.4.8](https://github.com/youzan/vant/tree/v1.4.8) -`2018-12-05` - -**Improvements** - -- Sku: 新增 hide-quota-text 属性 [\#2216](https://github.com/youzan/vant/pull/2216) -- ImagePreview: 新增 asyncClose 属性 [\#2198](https://github.com/youzan/vant/pull/2198) -- ImagePreview: 新增 onClose 回调参数 [\#2197](https://github.com/youzan/vant/pull/2197) -- ImagePreview: 新增淡入淡出动画效果 [\#2196](https://github.com/youzan/vant/pull/2196) - -**Bug Fixes** - -- 修复 Notify TS 类型定义错误 [\#2210](https://github.com/youzan/vant/pull/2210) -- 修复 Dialog 通过函数调用时默认值错误 [\#2208](https://github.com/youzan/vant/pull/2208) -- 修复 ImagePreview 指示器颜色错误 [\#2187](https://github.com/youzan/vant/pull/2187) - - -### [v1.4.7](https://github.com/youzan/vant/tree/v1.4.7) -`2018-11-27` - -**Improvements** - -- 新增 Notify 消息通知组件 [\#2135](https://github.com/youzan/vant/pull/2135) -- Cell: 新增 title-class、value-class、label-class 属性 [\#2138](https://github.com/youzan/vant/pull/2138) -- Icon: 增加更多基础图标 [\#2159](https://github.com/youzan/vant/pull/2159) [\#2169](https://github.com/youzan/vant/pull/2169) -- Icon: 支持传入图片链接作为图标展示 [\#2149](https://github.com/youzan/vant/pull/2149) -- List: 新增 finished-text 属性 [\#2131](https://github.com/youzan/vant/pull/2131) -- Rate: 新增 icon、void-icon 属性 [\#2148](https://github.com/youzan/vant/pull/2148) -- NavBar: 新增 border 属性 [\#2143](https://github.com/youzan/vant/pull/2143) -- Style: 新增多个内置 transition 动画 [\#2163](https://github.com/youzan/vant/pull/2163) -- CouponCell: 移除了默认外边框 [\#2145](https://github.com/youzan/vant/pull/2145) -- CDN 服务商更换为 jsdelivr,以提供更快的国内访问速度 [\#2167](https://github.com/youzan/vant/pull/2167) - -**Bug Fixes** - -- 修复 ImagePreview 页码出现 NaN 的问题 [\#2146](https://github.com/youzan/vant/pull/2146) -- 修复 Toast 在 iOS 设备上文字错误换行的问题 [\#2142](https://github.com/youzan/vant/pull/2142) -- 修复 GoodsAction 部分样式代码重复的问题 [\#2140](https://github.com/youzan/vant/pull/2140) -- 修复 DatetimePicker 设置了 minDate 时初始 value 错误的问题 [\#2137](https://github.com/youzan/vant/pull/2137) - -PS: 不小心跳过了 1.4.6 版本 ^_^ - -### [v1.4.5](https://github.com/youzan/vant/tree/v1.4.5) -`2018-11-23` - -**Improvements** - -- Tab: 新增 animated 属性 [\#2126](https://github.com/youzan/vant/pull/2126) -- Tab: 更新标题栏样式 [\#2120](https://github.com/youzan/vant/pull/2120) -- Sidebar: 更新提示样式 [\#2122](https://github.com/youzan/vant/pull/2122) -- Radio: 新增 checked-color 属性 [\#2129](https://github.com/youzan/vant/pull/2129) -- Swipe: 新增 indica为r-color 属性 [\#2110](https://github.com/youzan/vant/pull/2110) -- TreeSelect: 支持禁用选项 [\#2107](https://github.com/youzan/vant/pull/2107) - -**Bug Fixes** - -- 修复 Tab swipe-threshold 属性小于 4 时不生效的问题 [\#2128](https://github.com/youzan/vant/pull/2128) - - -### [v1.4.4](https://github.com/youzan/vant/tree/v1.4.4) -`2018-11-18` - -**Improvements** - -- Cell: 新增 size 属性 [\#2086](https://github.com/youzan/vant/pull/2086) -- Icon: 新增 star、star-o 图标 [\#2092](https://github.com/youzan/vant/pull/2092) -- ImagePreview: 新增 loop 属性 [\#2103](https://github.com/youzan/vant/pull/2103) -- Rate: 更新星星图标样式 [\#2093](https://github.com/youzan/vant/pull/2093) -- Dialog: 内容超过屏幕高度时展示滚动条 [\#2104](https://github.com/youzan/vant/pull/2104) - -**Bug Fixes** - -- 修复 Sku mobile 类型留言缺少 placeholder 的问题 [\#2098](https://github.com/youzan/vant/pull/2098) -- 修复 Tab line-width 传入 0 时不生效的问题 [\#2081](https://github.com/youzan/vant/pull/2081) -- 修复 Tab 在 sticky 模式下切换标签未自动滚动到顶部的问题 [\#2105](https://github.com/youzan/vant/pull/2105) -- 修复 Toast 最大宽度错误的问题 [\#2074](https://github.com/youzan/vant/pull/2074) -- 修复 Steps CSS 选择器优先级错误 [\#2072](https://github.com/youzan/vant/pull/2072) - - -### [v1.4.3](https://github.com/youzan/vant/tree/v1.4.3) -`2018-11-10` - -**Improvements** - -- Checkbox: 新增 checked-color 属性 [\#2057](https://github.com/youzan/vant/pull/2057) -- NumberKeyboard: 新增 close-but为n-text 属性 [\#2051](https://github.com/youzan/vant/pull/2051) -- Swipe: 优化手势操作体验 [\#2039](https://github.com/youzan/vant/pull/2039) -- 文档:重新对组件进行了分类 [\#2032](https://github.com/youzan/vant/pull/2032) - -**Bug Fixes** - -- 修复 Circle 在部分安卓手机上样式错误的问题 [\#2062](https://github.com/youzan/vant/pull/2062) -- 修复 DatetimePicker time 类型且使用 formatter 时获取当前值错误的问题 [\#2059](https://github.com/youzan/vant/pull/2059) -- 修复 Tab 可以通过手势切换到禁用项的问题 [\#2064](https://github.com/youzan/vant/pull/2064) - - -### [v1.4.2](https://github.com/youzan/vant/tree/v1.4.2) -`2018-11-04` - -**Breaking changes** - -- 优化引入样式的文件路径(仅影响手动引入样式的方式)详见[快速上手](#/zh-CN/quickstart). [\#2021](https://github.com/youzan/vant/pull/2021) -- 支持基于 Less 变量的定制主题方式,不再支持原先的定制主题方式,详见[定制主题](#/en-US/theme). [\#2027](https://github.com/youzan/vant/pull/2027) - -**Improvements** - -- Sku: 支持预览商品图片 [\#2019](https://github.com/youzan/vant/pull/2019) -- i18n: 支持土耳其语 [\#1998](https://github.com/youzan/vant/pull/1998) -- i18n: 支持繁体中文(台) [\#1999](https://github.com/youzan/vant/pull/1999) -- Icon: 新增 question2 图标 [\#2005](https://github.com/youzan/vant/pull/2005) -- Sidebar: 新增 change 事件 [\#2017](https://github.com/youzan/vant/pull/2017) -- Switch: 新增 active-color 属性 [\#2013](https://github.com/youzan/vant/pull/2013) -- Switch: 新增 inactive-color 属性 [\#2013](https://github.com/youzan/vant/pull/2013) -- Radio: 选中态颜色调整为蓝色 [\#2018](https://github.com/youzan/vant/pull/2018) -- Checkbox: 选中态颜色调整为蓝色 [\#2018](https://github.com/youzan/vant/pull/2018) - - -### [v1.3.10](https://github.com/youzan/vant/tree/v1.3.10) -`2018-10-29` - -**Improvements** - -- Field: 新增 focus 方法 [\#1987](https://github.com/youzan/vant/pull/1987) -- Search: 新增 left-icon 插槽 [\#1974](https://github.com/youzan/vant/pull/1974) -- CouponCell: 新增 border 属性 [\#1993](https://github.com/youzan/vant/pull/1993) -- CouponCell: 优化优惠金额展示规则 [\#1976](https://github.com/youzan/vant/pull/1976) -- ImagePreview: 新增 showIndica为rs 属性 [\#1992](https://github.com/youzan/vant/pull/1992) -- GoodsAction: 新增 loading、disabled 属性 [\#1994](https://github.com/youzan/vant/pull/1994) - -**Bug Fixes** - -- 修复 Swipe height 属性不生效的问题 [\#1982](https://github.com/youzan/vant/pull/1982) -- 修复 Toast 在多实例模式下未正确销毁导致无法点击的问题 [\#1991](https://github.com/youzan/vant/pull/1991) - - -### [v1.3.9](https://github.com/youzan/vant/tree/v1.3.9) -`2018-10-24` - -**Improvements** - -- Field: 新增 left-icon 插槽 [\#1973](https://github.com/youzan/vant/pull/1973) -- Toast: 优化多实例模式下的 DOM 节点回收 [\#1959](https://github.com/youzan/vant/pull/1959) -- AddressEdit: 新增 valida为r 属性 [\#1971](https://github.com/youzan/vant/pull/1971) -- AddressEdit: 新增 change-default 事件 [\#1972](https://github.com/youzan/vant/pull/1972) - -**Bug Fixes** - -- 修复 ImagePreview 页码索引显示错误的问题 [\#1961](https://github.com/youzan/vant/pull/1961) -- 修复 Sku 在部分浏览器下键盘弹出时遮挡输入框的问题 [\#1965](https://github.com/youzan/vant/pull/1965) - - -### [v1.3.8](https://github.com/youzan/vant/tree/v1.3.8) -`2018-10-17` - -**Improvements** - -- Tag: 新增 size 属性 [\#1949](https://github.com/youzan/vant/pull/1949) -- Tag: 新增 color 属性 [\#1946](https://github.com/youzan/vant/pull/1946) -- Tag: 新增 round 属性 [\#1947](https://github.com/youzan/vant/pull/1947) -- Panel: 新增 icon 属性 [\#1942](https://github.com/youzan/vant/pull/1942) -- Field: 新增 clear 事件 [\#1944](https://github.com/youzan/vant/pull/1944) -- Icon: 新增 cart-o 图标 [\#1932](https://github.com/youzan/vant/pull/1932) -- Rate: 支持手势滑动修改评分 [\#1951](https://github.com/youzan/vant/pull/1951) -- AddressList: 新增 switchable 属性 [\#1938](https://github.com/youzan/vant/pull/1938) - -**Bug Fixes** - -- 修复 Card 描述过长时文字溢出的问题 [\#1935](https://github.com/youzan/vant/pull/1935) -- 修复 SubmitBar 按钮文字过大时显示不全的问题 [\#1940](https://github.com/youzan/vant/pull/1940) - - -### [v1.3.7](https://github.com/youzan/vant/tree/v1.3.7) -`2018-10-12` - -**Improvements** - -- Swipe: 新增 indica为r 插槽 [\#1923](https://github.com/youzan/vant/pull/1923) -- AddressEdit: 优化清除按钮颜色 [\#1919](https://github.com/youzan/vant/pull/1919) - -**Bug Fixes** - -- 修复 Toast 在 SSR 时未返回实例的问题 [\#1927](https://github.com/youzan/vant/pull/1927) -- 修复 Tab 所有标签禁用时默认标签错误的问题 [\#1926](https://github.com/youzan/vant/pull/1926) -- 修复 SubmitBar 文字颜色 - - -### [v1.3.6](https://github.com/youzan/vant/tree/v1.3.6) -`2018-10-11` - -**Improvements** - -- Card: 新增 origin-price 属性,优化内部结构 [\#1916](https://github.com/youzan/vant/pull/1916) - -**Bug Fixes** - -- 修复 Toast 设置 forbidClick 后出现点击高亮背景色的问题 [\#1914](https://github.com/youzan/vant/pull/1914) - - -### [v1.3.5](https://github.com/youzan/vant/tree/v1.3.5) -`2018-10-10` - -**Improvements** - -- Tab: 样式升级 [\#1908](https://github.com/youzan/vant/pull/1908) -- Sidebar: 样式升级 [\#1907](https://github.com/youzan/vant/pull/1907) -- Dialog: 样式升级 [\#1906](https://github.com/youzan/vant/pull/1906) -- NoticeBar: 样式升级 [\#1893](https://github.com/youzan/vant/pull/1893) -- Collapse: 新增 disabled 属性 [\#1892](https://github.com/youzan/vant/pull/1892) -- TreeSelect: 新增 height 属性 [\#1905](https://github.com/youzan/vant/pull/1905) -- ImagePreview: 支持手势缩放图片 [\#1895](https://github.com/youzan/vant/pull/1895) - -**Bug Fixes** - -- 修复 Toast 在 SSR 时报错的问题 [\#1910](https://github.com/youzan/vant/pull/1910) -- 修复 Swipe 多指触控时可能导致展示错误的问题 [\#1890](https://github.com/youzan/vant/pull/1890) - - -### [v1.3.4](https://github.com/youzan/vant/tree/v1.3.4) -`2018-10-02` - -**Improvements** - -- But为n: 新增 round 属性 [\#1885](https://github.com/youzan/vant/pull/1885) -- But为n: 优化禁用态样式 [\#1886](https://github.com/youzan/vant/pull/1886) -- Card: 新增 tag 属性 [\#1878](https://github.com/youzan/vant/pull/1878) -- Card: 新增 thumb-link 属性 [\#1879](https://github.com/youzan/vant/pull/1879) -- ImagePreview: 新增 show-index 属性 [\#1889](https://github.com/youzan/vant/pull/1889) -- Picker: 优化样式 [\#1887](https://github.com/youzan/vant/pull/1887) -- SwipeCell: 新增 disabled 属性 [\#1884](https://github.com/youzan/vant/pull/1884) - -**Bug Fixes** - -- 修复 Toast 类型定义错误 [\#1859](https://github.com/youzan/vant/pull/1859) - - -### [v1.3.3](https://github.com/youzan/vant/tree/v1.3.3) -`2018-09-23` - -**Improvements** - -- SwipeCell: 新增 click 事件 [\#1848](https://github.com/youzan/vant/pull/1848) -- Locale: 优化错误处理 [\#1835](https://github.com/youzan/vant/pull/1835) -- 文档: 增加单个组件的更新日志 [\#1816](https://github.com/youzan/vant/pull/1816) - -**Bug Fixes** - -- 修复 DatetimePicker 时间范围变化时未正确更新 value 的问题 [\#1825](https://github.com/youzan/vant/pull/1825) -- 修复 Field 类型为 number 时 maxlength 属性不生效的问题 [\#1839](https://github.com/youzan/vant/pull/1839) -- 修复 PullRefresh 在部分情况下提示 preventDefault 警告的问题 [\#1819](https://github.com/youzan/vant/pull/1819) -- 修复 Tag 边框颜色错误的问题 [\#1834](https://github.com/youzan/vant/pull/1834) - - -### [v1.3.2](https://github.com/youzan/vant/tree/v1.3.2) -`2018-09-14` - -**Improvements** - -- AddressEdit: 优化地区展示 [\#1785](https://github.com/youzan/vant/pull/1785) -- Dialog: 更新按钮颜色 [\#1774](https://github.com/youzan/vant/pull/1774) -- List: 新增 loading 插槽 [\#1804](https://github.com/youzan/vant/pull/1804) -- Tab: 优化点击反馈 [\#1775](https://github.com/youzan/vant/pull/1775) -- 更新组件边框色值 [\#1773](https://github.com/youzan/vant/pull/1773) - -**Bug Fixes** - -- 修复 hairline 在 Chrome 69 下有时无法展示的问题 [\#1776](https://github.com/youzan/vant/pull/1776) [\#1805](https://github.com/youzan/vant/pull/1805) -- 修复 AddressEdit 详细地址下边框未展示的问题 [\#1800](https://github.com/youzan/vant/pull/1800) -- 修复 AddressList 详细地址未完全展示的问题 [\#1786](https://github.com/youzan/vant/pull/1786) -- 修复 Dialog 缺少 className 类型定义的问题 [\#1799](https://github.com/youzan/vant/pull/1799) - - -### [v1.3.1](https://github.com/youzan/vant/tree/v1.3.1) -`2018-09-07` - -**Improvements** - -- 增加 vue-cli 3 使用介绍 [\#1754](https://github.com/youzan/vant/pull/1754) - -**Bug Fixes** - -- 修复 But为n 加载图标颜色错误的问题 [\#1768](https://github.com/youzan/vant/pull/1768) -- 修复 ImagePreview 类型定义错误 [\#1767](https://github.com/youzan/vant/pull/1767) -- 修复 Tab 使用 card 主题时 color 属性不生效的问题 [\#1763](https://github.com/youzan/vant/pull/1763) -- 修复 webpack 1 无法引入 babel-runtime 的问题 [\#1753](https://github.com/youzan/vant/pull/1753) - - -### [v1.3.0](https://github.com/youzan/vant/tree/v1.3.0) -`2018-08-31` - -**Breaking changes** - -- 升级至 babel 7, 同时组件库不再默认内置 Promise 兼容库 [\#1712](https://github.com/youzan/vant/pull/1712) -- 考虑到可维护性和实际需求,Sku 组件不再支持 i18n 国际化 [\#1734](https://github.com/youzan/vant/pull/1734) - -**Improvements** - -- 升级至 precss 3.0 [\#1696](https://github.com/youzan/vant/pull/1696) -- AddressList: 支持禁用地址 [\#1729](https://github.com/youzan/vant/pull/1729) -- Contact: 样式升级 [\#1693](https://github.com/youzan/vant/pull/1693) -- Popup: 优化动画时长 [\#1694](https://github.com/youzan/vant/pull/1694) -- Popup: get-container 属性支持传入 CSS 选择器 [\#1699](https://github.com/youzan/vant/pull/1699) -- Rate: 新增 readonly 属性 [\#1731](https://github.com/youzan/vant/pull/1731) -- Sku: 支持自定义 valida为r [\#1732](https://github.com/youzan/vant/pull/1732) -- Sku: 增加对手机号留言的格式校验 [\#1732](https://github.com/youzan/vant/pull/1732) -- Tab: 新增 scroll 事件 [\#1730](https://github.com/youzan/vant/pull/1730) -- Loading: 支持配置为任意颜色 [\#1717](https://github.com/youzan/vant/pull/1717) - -**Bug Fixes** - -- 修复打包后版本号错误的问题 [\#1703](https://github.com/youzan/vant/pull/1703) -- 修复 DatetimePicker 使用 minMinute 属性时初始值错误的问题 [\#1724](https://github.com/youzan/vant/pull/1724) -- 修复 Swipe 在特定手势下可能出现位置错误的问题 [\#1723](https://github.com/youzan/vant/pull/1723) -- 修复 Tab 能通过手势滑动至禁用标签的问题 [\#1704](https://github.com/youzan/vant/pull/1704) -- 修复 Tabbar 使用 icon 插槽时 info 属性不生效的问题 [\#1705](https://github.com/youzan/vant/pull/1705) - - -### [v1.2.1](https://github.com/youzan/vant/tree/v1.2.1) -`2018-08-24` - -**Improvements** - -- AddressEdit: 样式升级 [\#1676](https://github.com/youzan/vant/pull/1676) -- ContactEdit: 样式升级 [\#1677](https://github.com/youzan/vant/pull/1677) -- Collapse: 增加多个 props 和插槽 [\#1671](https://github.com/youzan/vant/pull/1671) -- Field: 优化清除按钮颜色 [\#1678](https://github.com/youzan/vant/pull/1678) -- Icon: 新增 class-prefix 属性 [\#1688](https://github.com/youzan/vant/pull/1688) -- Swipe: 支持自定义 item 高度、宽度 [\#1664](https://github.com/youzan/vant/pull/1664) - -**Bug Fixes** - -- 修复 Stepper 初始值不能为 0 的问题 [\#1687](https://github.com/youzan/vant/pull/1687) -- 修复 Tab 使用 color 属性时下划线样式错误的问题 [\#1686](https://github.com/youzan/vant/pull/1686) -- 修复 share 图标加粗时样式错误的问题 [\#1670](https://github.com/youzan/vant/pull/1670) -- 修复 Popup 使用 get-conntainer 属性时不能被正确销毁的问题 [\#1665](https://github.com/youzan/vant/pull/1665) - - -### [v1.2.0](https://github.com/youzan/vant/tree/v1.2.0) -`2018-08-20` - -**Breaking changes** - -- AddressEdit: 采用驼峰命名的数据结构 [\#1644](https://github.com/youzan/vant/pull/1644) -- Coupon: 采用驼峰命名的数据结构 [\#1643](https://github.com/youzan/vant/pull/1643) -- CellSwipe: 规范命名为 SwipeCell [\#1652](https://github.com/youzan/vant/pull/1652) - -**Improvements** - -- Area: 更新省市区数据 [\#1653](https://github.com/youzan/vant/pull/1653) -- AddressList: 样式优化升级 [\#1628](https://github.com/youzan/vant/pull/1628) -- Coupon: 样式优化升级 [\#1636](https://github.com/youzan/vant/pull/1636) -- SubmitBar: 样式优化升级 [\#1631](https://github.com/youzan/vant/pull/1631) -- But为n: 新增 square 属性 [\#1627](https://github.com/youzan/vant/pull/1627) -- Icon: 新增 aim 图标 [\#1655](https://github.com/youzan/vant/pull/1655) -- Icon: 更新 edit 图标 [\#1635](https://github.com/youzan/vant/pull/1635) -- Radio: 优化样式 [\#1626](https://github.com/youzan/vant/pull/1626) -- Tab : 支持自定义颜色 [\#1622](https://github.com/youzan/vant/pull/1622) -- Tabbar: 优化 DOM 结构 [\#1640](https://github.com/youzan/vant/pull/1640) - -**Bug Fixes** - -- 修复 AddressEdit 删除按钮展示逻辑 [\#1648](https://github.com/youzan/vant/pull/1648) -- 修复 Icon size 属性不生效的问题 [\#1634](https://github.com/youzan/vant/pull/1634) - - -### [v1.1.16](https://github.com/youzan/vant/tree/v1.1.16) -`2018-08-10` - -**Improvements** - -- ActionSheet: 新增 select 事件 [\#1594](https://github.com/youzan/vant/pull/1594) -- ImagePreview: 支持传入 onClose 回调函数 [\#1589](https://github.com/youzan/vant/pull/1589) -- List: 新增 check 方法 [\#1590](https://github.com/youzan/vant/pull/1590) -- Search: 优化样式结构 [\#1603](https://github.com/youzan/vant/pull/1603) - -**Bug Fixes** - -- 修复 ActionSheet 选项加载中时仍然有点击态的问题 [\#1587](https://github.com/youzan/vant/pull/1587) -- 修复 DatetimePicker 使用 formatter 时默认值错误的问题 [\#1591](https://github.com/youzan/vant/pull/1591) - - -### [v1.1.15](https://github.com/youzan/vant/tree/v1.1.15) -`2018-08-03` - -**Improvements** - -- But为n: 新增 warning 类型 [\#1558](https://github.com/youzan/vant/pull/1558) -- SwipeCell: 新增 open 方法 [\#1546](https://github.com/youzan/vant/pull/1546) -- DatetimePicker: 支持限制分钟范围 [\#1583](https://github.com/youzan/vant/pull/1583) -- Icon: 新增 size 属性 [\#1555](https://github.com/youzan/vant/pull/1555) -- Stepper: 优化禁用态样式 [\#1560](https://github.com/youzan/vant/pull/1560) -- Stepper: 优化输入体验 [\#1534](https://github.com/youzan/vant/pull/1534) -- Tab: 支持定义 sticky 时距离顶部的高度 [\#1519](https://github.com/youzan/vant/pull/1519) - -**Bug Fixes** - -- 修复 But为n 在浏览器文字缩放时样式错误的问题 [\#1545](https://github.com/youzan/vant/pull/1545) -- 修复 Field date 类型在 iOS 设备下显示错误的问题 [\#1586](https://github.com/youzan/vant/pull/1586) -- 修复 van-clearfix 样式类未生效的问题 [\#1559](https://github.com/youzan/vant/pull/1559) -- 修复 Tabbar 点击当前标签时依然会触发 change 事件的问题 [\#1571](https://github.com/youzan/vant/pull/1571) - -### [v1.1.14](https://github.com/youzan/vant/tree/v1.1.14) -`2018-07-19` - -**Improvements** - -- Collapse: 增加切换动画 [\#1500](https://github.com/youzan/vant/pull/1500) -- CouponCell: 优化文案 [\#1499](https://github.com/youzan/vant/pull/1499) -- Stepper: 优化输入体验 [\#1484](https://github.com/youzan/vant/pull/1484) -- Tab: 新增 change 事件 [\#1503](https://github.com/youzan/vant/pull/1503) -- DatetimePicker: 支持自定义选项文字 [\#1497](https://github.com/youzan/vant/pull/1497) - -**Bug Fixes** -- 修复 Field 行高错误 [\#1486](https://github.com/youzan/vant/pull/1486) -- 修复 AddressEdit 格式化字符串时报错的问题 [\#1487](https://github.com/youzan/vant/pull/1487) -- 修复 Progress 与 Collapse 嵌套使用时无法正确渲染的问题 [\#1513](https://github.com/youzan/vant/pull/1513) -- 修复 Stepper integer 属性在 Android 上无法生效的问题 [\#1482](https://github.com/youzan/vant/pull/1482) -- 修复 Tab 在路由切换时标签位置错误的问题 [\#1512](https://github.com/youzan/vant/pull/1512) -- 修复 Tab sticky 属性在局部滚动元素下无法生效的问题 [\#1496](https://github.com/youzan/vant/pull/1496) - - -### [v1.1.13](https://github.com/youzan/vant/tree/v1.1.13) -`2018-07-13` - -**Improvements** - -- But为n: 新增 plain 属性 [\#1444](https://github.com/youzan/vant/pull/1444) -- Toast: 完善 TS 类型定义 [\#1468](https://github.com/youzan/vant/pull/1468) -- Dialog: 完善 TS 类型定义 [\#1467](https://github.com/youzan/vant/pull/1467) -- Radio: 新增 label-position 属性 [\#1446](https://github.com/youzan/vant/pull/1446) -- Radio: 新增 label-disabled 属性 [\#1445](https://github.com/youzan/vant/pull/1445) -- Search: 点击搜索按钮后收起键盘 [\#1448](https://github.com/youzan/vant/pull/1448) - -**Bug Fixes** - -- 修复 Swipe 多指触控时导致空白的问题 [\#1478](https://github.com/youzan/vant/pull/1478) -- 修复 ImagePreview startPosition 属性不生效的问题 [\#1456](https://github.com/youzan/vant/pull/1456) -- 修复 Picker 在部分安卓机型下选项高度错误的问题 [\#1449](https://github.com/youzan/vant/pull/1449) -- 修复 vue-lazyload 1.2.6 版本出现不兼容更新的问题,暂时降级至 1.2.3 版本 [\#1481](https://github.com/youzan/vant/pull/1481) - - -### [v1.1.12](https://github.com/youzan/vant/tree/v1.1.12) -`2018-07-06` - -**Improvements** - -- Area: 新增 reset 方法 [\#1427](https://github.com/youzan/vant/pull/1427) -- Checkbox: 支持自定义图标 [\#1414](https://github.com/youzan/vant/pull/1414) -- Checkbox: 优化与 Cell 搭配使用的方式 [\#1430](https://github.com/youzan/vant/pull/1430) -- Swipe: 屏幕滚动时不会左右滑动 [\#1425](https://github.com/youzan/vant/pull/1425) -- Swipe: 屏幕大小变化时自动调整宽度 [\#1413](https://github.com/youzan/vant/pull/1413) - -**Bug Fixes** - -- 修复 Progress 文字为空时样式错误的问题 [\#1411](https://github.com/youzan/vant/pull/1411) -- 修复 Tab 同时进行插入和删除时顺序错误的问题 [\#1429](https://github.com/youzan/vant/pull/1429) -- 修复 Vue.use 方法 TypeScript 类型错误 [\#1410](https://github.com/youzan/vant/pull/1410) -- 修复 style 依赖丢失 [\#1426](https://github.com/youzan/vant/pull/1426) - - -### [v1.1.11](https://github.com/youzan/vant/tree/v1.1.11) -`2018-07-04` - -**Improvements** - -- ActionSheet: 支持 lazy-render [\#1365](https://github.com/youzan/vant/pull/1365) -- AddressEdit: 优化事件触发顺序 [\#1402](https://github.com/youzan/vant/pull/1402) -- SwitchCell: 新增 size 属性 [\#1371](https://github.com/youzan/vant/pull/1371) -- Checkbox: 新增 label-position 属性 [\#1394](https://github.com/youzan/vant/pull/1394) -- Picker: 优化渲染性能 [\#1391](https://github.com/youzan/vant/pull/1391) -- Tab: 更新 card 风格样式 [\#1364](https://github.com/youzan/vant/pull/1364) -- Document: 完善 Dialog before-close 用法 [\#1383](https://github.com/youzan/vant/pull/1383) - -**Bug Fixes** - -- 修复 Area city_list 为空时报错的问题 [\#1374](https://github.com/youzan/vant/pull/1374) -- 修复 DatetimePicker change 事件回调参数不正确的问题 [\#1370](https://github.com/youzan/vant/pull/1370) -- 修复 Field readonly 状态下在 safari 上出现光标的问题 [\#1399](https://github.com/youzan/vant/pull/1399) -- 修复 Field readonly 状态下仍然会显示清除按钮的问题 [\#1395](https://github.com/youzan/vant/pull/1395) -- 修复 Tab 动态渲染时顺序错误的问题 [\#1372](https://github.com/youzan/vant/pull/1372) - - -### [v1.1.10](https://github.com/youzan/vant/tree/v1.1.10) -`2018-06-28` - -**Breaking changes** - -- Icon: 移除 birthday-privilege、member-day-privilege、balance-details [\#1331](https://github.com/youzan/vant/pull/1331) - -**Improvements** - -- Cell: 新增 arrow-direction 属性 [\#1323](https://github.com/youzan/vant/pull/1323) -- Field: 新增 is-link 属性 [\#1347](https://github.com/youzan/vant/pull/1347) -- Field: 新增 input-align 属性 [\#1352](https://github.com/youzan/vant/pull/1352) -- Field: 新增 label-align 属性 [\#1353](https://github.com/youzan/vant/pull/1353) -- Icon: 新增 idcard 图标 [\#1331](https://github.com/youzan/vant/pull/1331) -- Sku: 新增 stepper-change 事件 [\#1349](https://github.com/youzan/vant/pull/1349) -- PullRefresh: 新增 disabled 属性 [\#1336](https://github.com/youzan/vant/pull/1336) - -**Bug Fixes** - -- 修复 List 不可见时依旧会触发 load 事件的问题 [\#1345](https://github.com/youzan/vant/pull/1345) -- 修复 Sku 图片截断问题 [\#1334](https://github.com/youzan/vant/pull/1334) - - -### [v1.1.9](https://github.com/youzan/vant/tree/v1.1.9) -`2018-06-22` - -**Improvements** - -- ActionSheet: 支持禁用选项 [\#1293](https://github.com/youzan/vant/pull/1293) -- Field: 支持展示清除控件 [\#1309](https://github.com/youzan/vant/pull/1309) -- Layout: 支持 Flex 布局 [\#1305](https://github.com/youzan/vant/pull/1305) -- Locale: 新增 TS 类型定义 [\#1294](https://github.com/youzan/vant/pull/1294) -- Tabbar: 新增 z-index 属性 [\#1310](https://github.com/youzan/vant/pull/1310) -- Stepper: 输入框失焦且内容为空时,自动补全为最小值 [\#1316](https://github.com/youzan/vant/pull/1316) - -**Bug Fixes** - -- 修复 DatetimePicker visible-item-count 属性拼写错误 [\#1312](https://github.com/youzan/vant/pull/1312) -- 修复 Tab 在屏幕尺寸变化时未重新渲染的问题 [\#1304](https://github.com/youzan/vant/pull/1304) - - -### [v1.1.8](https://github.com/youzan/vant/tree/v1.1.8) -`2018-06-14` - -**Improvements** - -- AddressEdit: 支持配置按钮文字 [\#1287](https://github.com/youzan/vant/pull/1287) -- AddressEdit: 简化内部代码结构 [\#1274](https://github.com/youzan/vant/pull/1274) -- Area: 优化默认选项 [\#1272](https://github.com/youzan/vant/pull/1272) -- Dialog: 支持单独传入 title 属性 [\#1270](https://github.com/youzan/vant/pull/1270) -- Field: 新增 blur 方法 [\#1264](https://github.com/youzan/vant/pull/1264) -- Field: 更新右侧按钮默认颜色 [\#1262](https://github.com/youzan/vant/pull/1262) -- Sku: 限制留言最大长度 [\#1271](https://github.com/youzan/vant/pull/1271) -- Build: 新增 stylelint 格式校验 [\#1280](https://github.com/youzan/vant/pull/1280) -- Document: 新增示例源码链接 [\#1266](https://github.com/youzan/vant/pull/1266) -- Document: 新增代码风格指引 [\#1245](https://github.com/youzan/vant/pull/1245) - -**Bug Fixes** - -- 修复 ActionSheet 在 rem 布局下标题文字大小错误的问题 [\#1267](https://github.com/youzan/vant/pull/1267) -- 修复 CheckboxGroup v-model 类型检查错误 [\#1254](https://github.com/youzan/vant/pull/1254) -- 修复 Tab 标题长度变化时底部条未重新渲染的问题 [\#1260](https://github.com/youzan/vant/pull/1260) -- 修复 Popup 内容过高时超出屏幕可视范围的问题 [\#1256](https://github.com/youzan/vant/pull/1256) - - -### [v1.1.7](https://github.com/youzan/vant/tree/v1.1.7) -`2018-06-06` - -**Improvements** - -- Dialog: 支持 className 定制 [\#1224](https://github.com/youzan/vant/pull/1224) -- Dialog: 优化内容为空时的样式 [\#1233](https://github.com/youzan/vant/pull/1233) -- Field: 支持 v-model.number [\#1221](https://github.com/youzan/vant/pull/1221) -- Swipe: 新增 swipeTo 方法 [\#1222](https://github.com/youzan/vant/pull/1222) -- Document: 新增 ts-import-plugin 指引 [\#1230](https://github.com/youzan/vant/pull/1230) - - -### [v1.1.6](https://github.com/youzan/vant/tree/v1.1.6) -`2018-06-01` - -**Improvements** - -- Dialog: 新增 get-container 属性 [\#1176](https://github.com/youzan/vant/pull/1176) -- Dialog: beforeClose 支持通过回调参数控制关闭动作 [\#1166](https://github.com/youzan/vant/pull/1166) -- Icon: 更新 wechat 图标 [\#1156](https://github.com/youzan/vant/pull/1156) -- Picker: 支持 html 类型的选项 [\#1213](https://github.com/youzan/vant/pull/1213) -- SubmitBar: 优化渲染结构 [\#1184](https://github.com/youzan/vant/pull/1184) -- Test: 增加大量单元测试用例 [\#1202](https://github.com/youzan/vant/pull/1202) -- Doc: 完善快速上手文档 [\#1187](https://github.com/youzan/vant/pull/1187) - -**Bug Fixes** - -- 修复 Tab title 插槽渲染无法更新的问题 [\#1212](https://github.com/youzan/vant/pull/1212) -- 修复 AddressEdit 省市区弹层样式错误的问题 [\#1211](https://github.com/youzan/vant/pull/1211) - - -### [v1.1.5](https://github.com/youzan/vant/tree/v1.1.5) -`2018-05-24` - -**Improvements** - -- Rate: 新增 change 事件 [\#1102](https://github.com/youzan/vant/pull/1102) -- Popup: 新增 lazyRender 属性 [\#1138](https://github.com/youzan/vant/pull/1138) -- NumberKeyboard: 新增 close 事件 [\#1127](https://github.com/youzan/vant/pull/1127) -- Sku: 优化错误提示 [\#1100](https://github.com/youzan/vantpull/1100) -- Dialog: 优化按钮文字选中 [\#1148](https://github.com/youzan/vant/pull/1148) -- Picker: 优化未选中项的颜色 [\#1142](https://github.com/youzan/vant/pull/1142) -- AddressEdit: 优化空值校验 [\#1150](https://github.com/youzan/vant/pull/1150) -- TreeSelect: 支持 string 类型 id [\#1126](https://github.com/youzan/vant/pull/1126) -- Utils: 移除未使用的 scroll 方法 [\#1112](https://github.com/youzan/vant/pull/1112) - -**Bug Fixes** - -- 修复 Toast 使用 forbidClick 属性时导致其他弹层的遮罩层失效的问题 [\#1154](https://github.com/youzan/vant/pull/1154) -- 修复 Field 在 safari 上不正确的 margin [\#1147](https://github.com/youzan/vant/pull/1147) -- 修复 Progress 文字超出边界的问题 [\#1135](https://github.com/youzan/vant/pull/1135) - - -### [v1.1.4](https://github.com/youzan/vant/tree/v1.1.4) -`2018-05-18` - -**Improvements** - -- AddressEdit: 适配小屏手机 [\#1082](https://github.com/youzan/vant/pull/1082) -- Cell: 支持 number 类型的 title、value [\#1073](https://github.com/youzan/vant/pull/1073) -- Field: 新增 left-icon 属性 [\#1092](https://github.com/youzan/vant/pull/1092) -- Progress: 支持渐变色 [\#1098](https://github.com/youzan/vant/pull/1098) -- Build: 升级 webpack-serve [\#1056](https://github.com/youzan/vant/pull/1056) -- 调整示例的目录结构 [\#1052](https://github.com/youzan/vant/pull/1052) -- 调整文档的目录结构 [\#1066](https://github.com/youzan/vant/pull/1066) -- 使用 Jest 重构单元测试 [\#1051](https://github.com/youzan/vant/pull/1051) - -**Bug Fixes** - -- 修复 DatetimePicker 初始值错误的问题 [\#1093](https://github.com/youzan/vant/pull/1093) -- 修复 GoodsAction info 长度超过三位数时显示错误 [\#1074](https://github.com/youzan/vant/pull/1074) -- 修复 icon 样式模板错误 [\#1091](https://github.com/youzan/vant/pull/1091) - - -### [v1.1.3](https://github.com/youzan/vant/tree/v1.1.3) -`2018-05-12` - -**Improvements** - -- AddressEdit: 新增 cancel-delete 事件 [\#1047](https://github.com/youzan/vant/pull/1047) -- Field: 新增 label 插槽 [\#1048](https://github.com/youzan/vant/pull/1048) -- Icon: 更新 search 图标 [\#1025](https://github.com/youzan/vant/pull/1025) -- Icon: 新增 color 属性 [\#1031](https://github.com/youzan/vant/pull/1031) -- ImagePreview: 优化点击检测 [\#1042](https://github.com/youzan/vant/pull/1042) -- NoticeBar: 优化 ref 检测 [\#1037](https://github.com/youzan/vant/pull/1037) -- Search: 样式更新 [\#1027](https://github.com/youzan/vant/pull/1027) -- Toast: 新增 loadingType 选项 [\#1049](https://github.com/youzan/vant/pull/1049) - -**Bug Fixes** - -- 修复 Cell 默认宽度 [\#1029](https://github.com/youzan/vant/pull/1029) -- 修复 ImagePreview 只有一张图片时无法关闭的问题 [\#1046](https://github.com/youzan/vant/pull/1046) - - -### [v1.1.2](https://github.com/youzan/vant/tree/v1.1.2) -`2018-05-08` - -**Improvements** - -- 新增 Rate 评分组件 [\#901](https://github.com/youzan/vant/pull/901) [\#1002](https://github.com/youzan/vant/pull/1002) [\#1010](https://github.com/youzan/vant/pull/1010) [\#1011](https://github.com/youzan/vant/pull/1011) -- Area: 新增 change 事件 [\#1019](https://github.com/youzan/vant/pull/1019) -- But为n: 更新边框样式 [\#998](https://github.com/youzan/vant/pull/998) -- Locale: 新增错误提示 [\#1012](https://github.com/youzan/vant/pull/1012) -- Stepper: 更新禁用状态样式 [\#997](https://github.com/youzan/vant/pull/997) -- 优化组件 watch 写法 [\#1001](https://github.com/youzan/vant/pull/1001) -- 优化文档 API 展示 [\#990](https://github.com/youzan/vant/pull/990) [\#991](https://github.com/youzan/vant/pull/991) - -**Bug Fixes** - -- 修复 Search 错误展示边框的问题 [\#1000](https://github.com/youzan/vant/pull/1000) -- 修复 Tab 初始化时的渲染问题 [\#978](https://github.com/youzan/vant/pull/978) ([jerryni](https://github.com/jerryni)) -- 修复 Stepper integer 属性拼写错误 [\#992](https://github.com/youzan/vant/pull/992) - - -### [v1.1.1](https://github.com/youzan/vant/tree/v1.1.1) -`2018-05-04` - -**Improvements** - -* Contact: 优化背景图 [\#972](https://github.com/youzan/vant/pull/972) -* List: 新增 loading-text 属性 [\#948](https://github.com/youzan/vant/pull/948) -* Swipe: 优化轮播性能 [\#985](https://github.com/youzan/vant/pull/985) -* Swipe: 新增 为uchable 属性 [\#975](https://github.com/youzan/vant/pull/975) -* Swipe: 新增 vertical 属性,支持垂直布局 [\#938](https://github.com/youzan/vant/pull/938) -* Slider: 增加滑动触摸区域 [\#977](https://github.com/youzan/vant/pull/977) -* Stepper: 新增 interger 属性 [\#951](https://github.com/youzan/vant/pull/951) -* Tab: 新增 line-width 属性 [\#988](https://github.com/youzan/vant/pull/988) - -**Bug Fixes** -* 修复 ImagePreview offset 计算错误[\#980](https://github.com/youzan/vant/pull/980) -* 修复 Search 在 iOS 下文字被遮挡的问题 [\#974](https://github.com/youzan/vant/pull/974) - - -### [v1.1.0](https://github.com/youzan/vant/tree/v1.1.0) -`2018-04-25` - -**Improvements** - -* 新增 Slider 滑块组件 [\#897](https://github.com/youzan/vant/pull/897) [\#915](https://github.com/youzan/vant/pull/915) -* 新增 BEM mixin,规范 BEM 命名格式 [\#921](https://github.com/youzan/vant/pull/921) [\#924](https://github.com/youzan/vant/pull/924) [\#932](https://github.com/youzan/vant/pull/932) [\#934](https://github.com/youzan/vant/pull/934) -* Cell: 优化 flex 结构 [\#919](https://github.com/youzan/vant/pull/919) -* Panel: 优化结构,使用 Cell 代替部分样式 [\#927](https://github.com/youzan/vant/pull/927) -* Build: 升级至 vue-loader 15 [\#937](https://github.com/youzan/vant/pull/937) -* Build: 使用 ChromeHeadless 代替 Phan为mJS 作为测试运行环境 [\#913](https://github.com/youzan/vant/pull/913) -* Build: 使用 MiniCssExtractPlugin 代替 ExtractTextPlugin [\#936](https://github.com/youzan/vant/pull/936) -* Build: 增加针对 webpack4 优化的 sideEffects 配置 [\#926](https://github.com/youzan/vant/pull/926) -* 文档: 新增 rem 指引 [\#928](https://github.com/youzan/vant/pull/928) -* 文档: 移除 Loading circle 类型,不推荐使用 [\#941](https://github.com/youzan/vant/pull/941) - -**Bug Fixes** - -* 修复 Uploader 在安卓下无法上传图片的问题 [\#929](https://github.com/youzan/vant/pull/929) -* 修复 Checkbox 内容为空时渲染了空 label 元素的问题 [\#920](https://github.com/youzan/vant/pull/920) -* 修复 Dialog TS 类型定义错误 [\#918](https://github.com/youzan/vant/pull/918) -* 修复 Popup 多层级关闭时未正确移除 lock-scroll 导致无法滚动的问题 [\#912](https://github.com/youzan/vant/pull/912) -* 修复 Picker 在系统字体大小缩放时布局错乱的问题 [\#916](https://github.com/youzan/vant/pull/916) - - -### [v1.0.8](https://github.com/youzan/vant/tree/v1.0.8) -`2018-04-20` - -**Improvements** -- 新增 git hook, 提交代码时进行格式校验 [\#883](https://github.com/youzan/vant/pull/883) - -**Bug Fixes** -- 修复构建结果中未完全使用 es module 的问题 [\#885](https://github.com/youzan/vant/pull/885) -- 修复 Cell 文字垂直不对齐的问题 [\#893](https://github.com/youzan/vant/pull/893) -- 修复 Field number 类型无法输入负数的问题 [\#889](https://github.com/youzan/vant/pull/889) -- 修复 Popup lock-scroll 属性在 iOS 下无效的问题 [\#891](https://github.com/youzan/vant/pull/891) - - -### [v1.0.7](https://github.com/youzan/vant/tree/v1.0.7) -`2018-04-17` - -**Bug Fixes** - -* 修复构建结果 lib 目录下样式丢失的问题 - -### [v1.0.6](https://github.com/youzan/vant/tree/v1.0.6) -`2018-04-17` - -**Improvements** - -* 支持 ES module 引入 [\#875](https://github.com/youzan/vant/pull/875) -* Dialog: 新增 before-close 属性, 支持异步关闭 [\#854](https://github.com/youzan/vant/pull/854) [\#881](https://github.com/youzan/vant/pull/881) -* SubmitBar: 支持自定义金额符号 [\#876](https://github.com/youzan/vant/pull/876) -* Tab: 支持 v-model 绑定当前 active 标签 [\#879](https://github.com/youzan/vant/pull/879) - -**Bug Fixes** - -* 修复 DatetimePicker change 事件参数错误 [\#878](https://github.com/youzan/vant/pull/878) - -### [v1.0.5](https://github.com/youzan/vant/tree/v1.0.5) -`2018-04-13` - -**Improvements** - -- 抽象 为uch 通用 mixin [\#869](https://github.com/youzan/vant/pull/869) -- Tabbar: 支持 Number 类型的 info [\#845](https://github.com/youzan/vant/pull/845) -- Radio: name 属性支持任意类型 [\#863](https://github.com/youzan/vant/pull/863) - -**Bug Fixes** - -- 修复 NavBar 标题长度未限制的问题 [\#867](https://github.com/youzan/vant/pull/867) -- 修复 But为n loading 状态下无法水平对齐的问题 [\#858](https://github.com/youzan/vant/pull/858) -- 修复 SwipeCell 在垂直滑动时也会触发 Swipe 的问题 [\#866](https://github.com/youzan/vant/pull/866) -- 修复 ImagePreview close 方法失效的问题 [\#864](https://github.com/youzan/vant/pull/864) -- 修复 SubmitBar 字体大小继承错误的问题 [\#857](https://github.com/youzan/vant/pull/857) -- 修复 SwitchCell 文字未垂直居中的问题 [\#852](https://github.com/youzan/vant/pull/852) -- 修复 Swipe 为uch 事件冒泡问题 [\#846](https://github.com/youzan/vant/pull/846) - - -### [v1.0.4](https://github.com/youzan/vant/tree/v1.0.4) -`2018-04-10` - -**Improvements** - -- ActionSheet: 新增 cancel 事件 [\#796](https://github.com/youzan/vant/pull/796) -- ActionSheet: 增加最大高度限制 [\#777](https://github.com/youzan/vant/pull/777) -- DatetimePicker: 支持所有 picker 组件配置 [\#788](https://github.com/youzan/vant/pull/788) -- SubmitBar: 统一文字大小 [\#774](https://github.com/youzan/vant/pull/774) -- i18n: 支持 zh-HK 语言 [\#812](https://github.com/youzan/vant/pull/812) - -**Bug Fixes** - -- 修复 But为n 加载状态下可点击的问题 [\#779](https://github.com/youzan/vant/pull/779) -- 修复 Dialog 未初始化时 close 方法报错的问题 [\#841](https://github.com/youzan/vant/pull/841) -- 修复 Popup 多层弹出时 lockScroll 失效的问题 [\#842](https://github.com/youzan/vant/pull/842) -- 修复 SubmitBar 金额保留位数错误的问题 [\#820](https://github.com/youzan/vant/pull/820) -- 修复 Sku row 行高错误 [\#840](https://github.com/youzan/vant/pull/840) - - -### [v1.0.3](https://github.com/youzan/vant/tree/v1.0.3) -`2018-03-26` - -**Improvements** - -- Cell: 新增 center 属性 [\#771](https://github.com/youzan/vant/pull/771) -- Cell: 布局方式由 table 升级为 flex-box [\#770](https://github.com/youzan/vant/pull/770) -- Field: 新增 but为n 插槽,支持插入按钮 [\#772](https://github.com/youzan/vant/pull/772) -- Tab: click 事件回调新增 title 参数 [\#761](https://github.com/youzan/vant/pull/761) - -**Bug Fixes** -- 修复 Tag 文字在部分安卓手机上未垂直居中的问题 [\#773](https://github.com/youzan/vant/pull/773) -- 修复 Toast 遮罩层在某些情况下无法收起的问题 [\#762](https://github.com/youzan/vant/pull/762) - -### [v1.0.2](https://github.com/youzan/vant/tree/v1.0.2) -`2018-03-22` - -**Improvements** - -* DatetimePicker: 新增 show-为olbar 属性以及 month-year 类型 [\#736](https://github.com/youzan/vant/pull/736) -* NavBar: 移除顶部 border [\#744](https://github.com/youzan/vant/pull/744) -* NoticeBar: 修正内边距 [\#737](https://github.com/youzan/vant/pull/737) -* Doc: 新增自定义图标指引 [\#754](https://github.com/youzan/vant/pull/754) - -**Bug Fixes** - -* 修复 AddressEdit 初始化时省市区未正确选中的问题 [\#748](https://github.com/youzan/vant/pull/748) -* 修复 List 隐藏时依然会触发 load 事件的问题 [\#751](https://github.com/youzan/vant/pull/751) -* 修复 Sku 默认选中不生效的问题 [\#752](https://github.com/youzan/vant/pull/752) -* 修复 Toast 遮罩层被其他元素遮挡的问题 [\#740](https://github.com/youzan/vant/pull/740) -* 修复 Tab 内容无法点击的问题 [\#749](https://github.com/youzan/vant/pull/749) - - -### [v1.0.1](https://github.com/youzan/vant/tree/v1.0.1) -`2018-03-19` - -**Bug Fixes** - -* 修复 create 模块循环引用导致某些情况下编译错误的问题 [\#728](https://github.com/youzan/vant/pull/728) - - -### [v1.0.0](https://github.com/youzan/vant/tree/v1.0.0) -`2018-03-19` - -**Breaking changes** - -* 新增 List 组件 [\#682](https://github.com/youzan/vant/pull/682) -* 新增 Collapse 组件 [\#674](https://github.com/youzan/vant/pull/674) -* 构建: 升级至 webpack 4,优化构建配置 [\#693](https://github.com/youzan/vant/pull/693) -* Popup: 新增 lock-scroll 属性,废弃 lock-on-scroll、prevent-scroll 属性 [\#688](https://github.com/youzan/vant/pull/688) -* Waterfall 组件不再维护,推荐使用 List 组件代替 [\#683](https://github.com/youzan/vant/pull/683) - -**Improvements** - -* AddressEdit: 新增 show-delete 属性 [\#716](https://github.com/youzan/vant/pull/716) -* SwipeCell: 优化 Swipe 动画流畅度 [\#685](https://github.com/youzan/vant/pull/685) -* Field: 支持配置 au为size 最大/最小高度 [\#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) -* Sku: 新增头部金额插槽 [\#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) -* Tag: 调整标签样式 [\#689](https://github.com/youzan/vant/pull/689) -* Toast: 支持通过 Vue.use 注册 [\#690](https://github.com/youzan/vant/pull/690) - - -**Bug Fixes** - -* 修复 ActionSheet 下边框未展示的问题 [\#686](https://github.com/youzan/vant/pull/686) -* 修复 AddressEdit 在数据变更时未正确选中省市区的问题 [\#680](https://github.com/youzan/vant/pull/680) -* 修复 Stepper value 溢出的问题 [\#691](https://github.com/youzan/vant/issues/691) -* 修复 Sidebar 选中时字体粗细 [\#687](https://github.com/youzan/vant/pull/687) - -### [v0.12.14](https://github.com/youzan/vant/tree/v0.12.14) -`2018-03-09` - -**Bug Fixes** -* Area: 修复 area-list 更新时未正确选中省市区的问题 [\#678](https://github.com/youzan/vant/pull/678) - - -### [v0.12.13](https://github.com/youzan/vant/tree/v0.12.13) -`2018-03-09` - -**Improvements** - -* AddressEdit: 支持自定义手机号校验函数 [\#673](https://github.com/youzan/vant/pull/673) -* Sku: 新增 close-on-click-overlay 属性 [\#676](https://github.com/youzan/vant/pull/676) - -**Bug Fixes** -* 修复 CouponList 文字截断的问题 [\#675](https://github.com/youzan/vant/pull/675) - - -### [v0.12.12](https://github.com/youzan/vant/tree/v0.12.12) -`2018-03-06` - -**Improvements** - -* Swipe: 新增 loop 属性,支持禁用循环滚动 [\#670](https://github.com/youzan/vant/pull/670) -* Document: 新增 change 事件示例 [\#666](https://github.com/youzan/vant/pull/666) -* 更新静态资源 CDN 域名 [\#652](https://github.com/youzan/vant/pull/652) - -**Bug Fixes** - -* 修复 Field 在 safari 下禁用态颜色过浅的问题 [\#669](https://github.com/youzan/vant/pull/669) -* 修复 Swipe au为play 设置为 0 时不会立刻取消的问题 [\#660](https://github.com/youzan/vant/pull/660) - -### [v0.12.11](https://github.com/youzan/vant/tree/v0.12.11) -`2018-02-27` - -**Improvements** - -* Checkbox: 新增 label-disabled 属性,支持禁用 label 点击 [\#644](https://github.com/youzan/vant/pull/644) -* Popup: 新增 click-overlay 事件 [\#647](https://github.com/youzan/vant/pull/647) -* Icon: 新增 warn 图标 [\#651](https://github.com/youzan/vant/pull/651) -* Icon: 新增 info-o 图标, 优化 checked & underway 图标 [\#648](https://github.com/youzan/vant/pull/648) - -**Bug Fixes** - -* 修复 But为n loading 样式未居中的问题 [\#645](https://github.com/youzan/vant/pull/645) - -### [v0.12.10](https://github.com/youzan/vant/tree/v0.12.10) -`2018-02-12` - -**Improvements** - -* 新增内置样式文档 [\#633](https://github.com/youzan/vant/pull/633) -* Checkbox: 优化 DOM 结构 [\#636](https://github.com/youzan/vant/pull/636) -* Checkbox: 支持设置最大可选数 [\#631](https://github.com/youzan/vant/pull/631) - -**Bug Fixes** - -* Stepper: 修复清空输入框时 change 事件未正确触发的问题 [\#635](https://github.com/youzan/vant/pull/635) - -### [v0.12.9](https://github.com/youzan/vant/tree/v0.12.9) -`2018-02-08` - -**Improvements** - -* PullRefresh: 新增 refersh 事件 [\#625](https://github.com/youzan/vant/pull/625) -* Circle: 优化线条圆角 [\#624](https://github.com/youzan/vant/pull/624) -* Picker: 新增 loading 属性 [\#619](https://github.com/youzan/vant/pull/619) -* Loading: 新增 size 属性 [\#620](https://github.com/youzan/vant/pull/620) -* Loading: 新增 circular 类型 [\#618](https://github.com/youzan/vant/pull/618) -* Loading: 默认类型调整为 circular [\#623](https://github.com/youzan/vant/pull/623) - -**Bug Fixes** -* 修复 Sku message 更新时未重新渲染的问题 [\#627](https://github.com/youzan/vant/pull/627) - - -### [v0.12.8](https://github.com/youzan/vant/tree/v0.12.8) -`2018-02-07` - -**Improvements** -* 新增 Circle 组件 [\#608](https://github.com/youzan/vant/pull/608) -* Tab: 新增 title 插槽 [\#603](https://github.com/youzan/vant/pull/603) -* Toast: 加深背景色 [\#601](https://github.com/youzan/vant/pull/601) -* Popup: 新增 getContaienr 属性 [\#611](https://github.com/youzan/vant/pull/611) -* Sku: 支持图片上传 [\#612](https://github.com/youzan/vant/pull/612) -* Sku: 支持自定义 Stepper [\#600](https://github.com/youzan/vant/pull/600) - -**Bug Fixes** -* 修复 Picker 在部分设备下的样式问题 [\#609](https://github.com/youzan/vant/pull/609) -* 修复 TreeSelect 箭头位置错误 [\#605](https://github.com/youzan/vant/pull/605) - - -### [v0.12.7](https://github.com/youzan/vant/tree/v0.12.7) -`2018-01-31` - -**Improvements** -* Area: 新增 item-height、visible-item-count 属性 [\#591](https://github.com/youzan/vant/pull/591) -* Dialog: 支持以组件形式调用 [\#593](https://github.com/youzan/vant/pull/593) -* Toast: 支持同时弹出多个 Toast [\#586](https://github.com/youzan/vant/pull/586) -* Sku: 新增 getSkuData 方法 [\#585](https://github.com/youzan/vant/pull/585) - -**Bug Fixes** -* 修复 Field label 多行时样式错误的问题 [\#583](https://github.com/youzan/vant/pull/583) - - -### [v0.12.6](https://github.com/youzan/vant/tree/v0.12.6) -`2018-01-25` - -**Improvements** - -- AddressEdit: 增加默认插槽 [\#573](https://github.com/youzan/vant/pull/573) -- Uploader: 新增 maxSize 属性 [\#575](https://github.com/youzan/vant/pull/575) -- Sku: 新增 sku-body-为p 插槽、resetSelectedSkuOnHide 属性 [\#568](https://github.com/youzan/vant/pull/568) - -**Bug Fixes** - -- 修复 Toast 文案换行 [\#567](https://github.com/youzan/vant/pull/567) -- 修复 Sku 限购情况下,未超出限购数时的错误文案显示 [\#568](https://github.com/youzan/vant/pull/568) -- 修复 Tab active 在初始化时未生效的问题 [\#572](https://github.com/youzan/vant/pull/572) - - -### [v0.12.5](https://github.com/youzan/vant/tree/v0.12.5) -`2018-01-23` - -**Improvements** - -* But为n: 新增 text 属性 [\#563](https://github.com/youzan/vant/pull/563) -* CouponList: 支持 v-model、exchangeBut为nLoading、exchangeMinLength [\#556](https://github.com/youzan/vant/pull/556) [\#566](https://github.com/youzan/vant/pull/566) -* Icon: 更新 share 图标 [\#562](https://github.com/youzan/vant/pull/562) -* Sku: 优化渲染性能 [\#550](https://github.com/youzan/vant/pull/550) - -**Bug Fixes** -* Area: 修复未选中省份时市区展示错误的问题 [\#560](https://github.com/youzan/vant/pull/560) -* Cell: 修复 required 样式错误的问题 [\#553](https://github.com/youzan/vant/pull/553) - - -### [v0.12.4](https://github.com/youzan/vant/tree/v0.12.4) -`2018-01-18` - -**Improvements** - -* Picker: 新增 confirmBut为nText、cancelBut为nText 属性 [\#548](https://github.com/youzan/vant/pull/548) -* Toast: 新增 setDefaultOptions 方法 [\#541](https://github.com/youzan/vant/pull/541) -* Dialog: 新增 setDefaultOptions 方法 [\#539](https://github.com/youzan/vant/pull/539) - -**Bug Fixes** - -* Stepper: 修改 value 值时不触发 change 事件 [\#546](https://github.com/youzan/vant/pull/546) -* Picker: 修复 visibleItemCount 属性拼写错误 [\#549](https://github.com/youzan/vant/pull/549) - -### [v0.12.3](https://github.com/youzan/vant/tree/v0.12.3) - -`2018-01-12` - -**Improvements** - -* NavBar: 新增 zIndex 属性 [\#525](https://github.com/youzan/vant/pull/525) -* Cell: 调整右侧箭头位置 [\#531](https://github.com/youzan/vant/pull/531) - -**Bug Fixes** - -* 修复 Area 传空 AreaList 时报错的问题 [\#520](https://github.com/youzan/vant/pull/520) -* 修复 AddressEdit 的 setAreaCode 方法失效的问题 [\#524](https://github.com/youzan/vant/pull/524) -* 修复 Picker 点击选项时无法触发 change 事件的问题 [\#532](https://github.com/youzan/vant/pull/532) -* 修复 PullRefresh 在横向滑动时也会触发的问题 [\#521](https://github.com/youzan/vant/pull/521) - -### [v0.12.2](https://github.com/youzan/vant/tree/v0.12.2) - -`2018-01-08` - -**Bug Fixes** - -* Swipe: 使用 translate2d 代替 translate3d, 避免 iOS11 下的 crash 问题 [\#518](https://github.com/youzan/vant/pull/518) -* Picker: change 事件只在用户操作后触发 [\#517](https://github.com/youzan/vant/pull/517) -* NoticeBar: 修复 text 属性变化时未重新计算的问题 [\#515](https://github.com/youzan/vant/pull/515) -* AddressEdit: 修复搜索结果样式错误 [\#514](https://github.com/youzan/vant/pull/514) - -### [v0.12.1](https://github.com/youzan/vant/tree/v0.12.1) - -`2018-01-05` - -**Improvements** - -* But为n: 调整 small 按钮内边距 [\#511](https://github.com/youzan/vant/pull/511) - -**Bug Fixes** - -* 修复 Cell 标题为空时 icon 属性无法生效的问题 [\#508](https://github.com/youzan/vant/pull/508) -* 修复 Cell 内边框宽度错误的问题 [\#506](https://github.com/youzan/vant/pull/506) -* 修复 CouponList 行高错误的问题 [\#507](https://github.com/youzan/vant/pull/507) -* 修复 CouponList 输入框样式错误 [\#502](https://github.com/youzan/vant/pull/502) -* 修复 Radio 图标无法点击的问题 [\#505](https://github.com/youzan/vant/pull/505) - -### [v0.12.0](https://github.com/youzan/vant/tree/v0.12.0) - -`2017-12-29` - -**Breaking changes** - -* Cell: CellGroup 左内边距移至 Cell 内, 新增 'border'、'clickable' 属性 [\#497](https://github.com/youzan/vant/pull/497) -* 调整编码规范, 使用官方推荐的 kebab-case 属性命名 [\#482](https://github.com/youzan/vant/pull/482) - -**Improvements** - -* Field: 新增 error-message 属性 [\#492](https://github.com/youzan/vant/pull/492) -* Document: 更新到新版文档样式 [\#490](https://github.com/youzan/vant/pull/490) - -**Bug Fixes** - -* 修复 Tab 使用 sticky 时高度计算错误的问题 [\#493](https://github.com/youzan/vant/pull/493) -* 修复组件使用 $attrs 时继承的问题 [\#488](https://github.com/youzan/vant/pull/488) - -### [v0.11.15](https://github.com/youzan/vant/tree/v0.11.15) - -`2017-12-25` - -**Improvements** - -* Uploader: 支持多文件上传 [\#480](https://github.com/youzan/vant/pull/480) -* NumberKeyboard: 增加一种键盘样式 [\#472](https://github.com/youzan/vant/pull/472) -* Icon: 更新 search 图标样式 [\#474](https://github.com/youzan/vant/pull/474) -* 支持 passive 事件 [\#478](https://github.com/youzan/vant/pull/478) - -**Bug Fixes** - -* 修复 popup 销毁时未解绑事件的问题 [\#477](https://github.com/youzan/vant/pull/477) -* 修复使用 popup mixin 的组件未设定 props 类型的问题 [\#468](https://github.com/youzan/vant/pull/468) -* 修复 package.json 配置中未包含 types 目录的问题 [\#462](https://github.com/youzan/vant/pull/462) - -### [v0.11.14](https://github.com/youzan/vant/tree/v0.11.14) - -`2017-12-21` - -**Improvements** - -* NumberKeyboard: 新增 hideOnClickOutside & closeBut为nText 属性 [\#458](https://github.com/youzan/vant/pull/458) -* Area: 优化性能 [\#457](https://github.com/youzan/vant/pull/457) -* 优化代码格式检查命令 [\#455](https://github.com/youzan/vant/pull/455) [\#453](https://github.com/youzan/vant/pull/453) - -**Bug Fixes** - -* 修复全局引入样式时 Cell 箭头错位的问题 - -### [v0.11.13](https://github.com/youzan/vant/tree/v0.11.13) - -`2017-12-19` - -**Improvements** - -* Area: 新增 'title' prop [\#450](https://github.com/youzan/vant/pull/450) -* Icon: 新增 'info' prop [\#447](https://github.com/youzan/vant/pull/447) -* Picker: 优化性能 [\#450](https://github.com/youzan/vant/pull/450) -* Search: 支持 input 原生事件 [\#451](https://github.com/youzan/vant/pull/451) -* GoodsAction: 新增 'info' 属性,支持路由跳转 [\#448](https://github.com/youzan/vant/pull/448) -* Area & Sku: 支持多语言切换 [\#439](https://github.com/youzan/vant/pull/439) [\#440](https://github.com/youzan/vant/pull/440) - -**Bug Fixes** - -* 修复 GoodsAction 在小屏下文字显示不全的问题 [\#446](https://github.com/youzan/vant/pull/446) - -### [v0.11.12](https://github.com/youzan/vant/tree/v0.11.12) - -`2017-12-15` - -**Improvements** - -* ContactCard: 新增 'editable' 属性 [\#435](https://github.com/youzan/vant/pull/435) -* Coupon: 支持英文语言 [\#431](https://github.com/youzan/vant/pull/431) - -**Bug Fixes** - -* 修复 Popup preventScroll 属性失效的问题 [\#429](https://github.com/youzan/vant/pull/429) -* 修复 Picker 滑动时未禁止页面滚动的问题 [\#432](https://github.com/youzan/vant/pull/432) -* 修复 Picker 底部区域无法滑动的问题 [\#433](https://github.com/youzan/vant/pull/433) -* 修复 PullRefresh 顶部内容遮挡的问题 [\#436](https://github.com/youzan/vant/pull/436) - -### [v0.11.11](https://github.com/youzan/vant/tree/v0.11.11) - -`2017-12-13` - -**Improvements** - -* Field: 支持 input 标签原生事件 [\#421](https://github.com/youzan/vant/pull/421) -* Search: 支持 input 标签原生属性 [\#418](https://github.com/youzan/vant/pull/418) -* CellGroup: 新增 'border' 属性 [\#420](https://github.com/youzan/vant/pull/420) -* AddressEdit: 新增 focus、change-area、select-search 事件 [\#426](https://github.com/youzan/vant/pull/426) -* Sidebar、CouponList、ContactCard: 增加点击反馈 [\#419](https://github.com/youzan/vant/pull/419) - -**Bug Fixes** - -* 修复 Checkbox 在 CheckboxGroup 内时 disabled 属性无法生效的问题 [\#425](https://github.com/youzan/vant/pull/425) -* 修复 AddressEdit 搜索结果展示错误 [\#417](https://github.com/youzan/vant/pull/417) - -### [v0.11.10](https://github.com/youzan/vant/tree/v0.11.10) - -`2017-12-12` - -**Improvements** - -* 支持通过 Vue.use 来全局注册组件 [\#401](https://github.com/youzan/vant/pull/401) -* 统一组件间的 fade 动画,优化过渡效果 [\#410](https://github.com/youzan/vant/pull/410) - -**Bug Fixes** - -* Icon: 修复 'shopping-cart' 图标高度不居中的问题 [\#415](https://github.com/youzan/vant/pull/415) - -### [v0.11.9](https://github.com/youzan/vant/tree/v0.11.9) - -`2017-12-11` - -**Improvements** - -* Icon: 新增 share & arrow-left 图标 [\#407](https://github.com/youzan/vant/pull/407) -* Icon: 支持使用本地字体文件 [\#408](https://github.com/youzan/vant/pull/408) - -**Bug Fixes** - -* 修复 raf SSR 报错的问题 [\#405](https://github.com/youzan/vant/pull/405) -* 修复 NoticeBar animationend 事件兼容问题 [\#402](https://github.com/youzan/vant/pull/402) - -### [v0.11.8](https://github.com/youzan/vant/tree/v0.11.8) - -`2017-12-08` - -**Improvements** - -* Icon: 新增两个图标 [\#396](https://github.com/youzan/vant/pull/396) -* But为n: 调整默认按钮边框颜色 [\#392](https://github.com/youzan/vant/pull/392) - -**Bug Fixes** - -* Tab: 修复 safari 下的滚动条问题 [\#390](https://github.com/youzan/vant/pull/390) -* Tab: 修复 active 标签不能自动居中的问题 [\#394](https://github.com/youzan/vant/pull/394) - -### [v0.11.7](https://github.com/youzan/vant/tree/v0.11.7) - -`2017-12-07` - -**Improvements** - -* Tab: 传入 sticky 属性且切换标签时,自动滚动至顶部 [\#389](https://github.com/youzan/vant/pull/389) [chenjiahan](https://github.com/chenjiahan) - -**Bug Fixes** - -* 修复 Tab 初始标签滚动位置 [\#389](https://github.com/youzan/vant/pull/389) [chenjiahan](https://github.com/chenjiahan) - -### [v0.11.6](https://github.com/youzan/vant/tree/v0.11.6) - -`2017-12-07` - -**Improvements** - -* Picker: 支持点击切换选项、禁用选项 [\#370](https://github.com/youzan/vant/pull/370) -* Tab: 新增 sticky 属性 [\#382](https://github.com/youzan/vant/pull/382) -* Tab: 优化动画流畅度 [\#379](https://github.com/youzan/vant/pull/379) - -**Bug Fixes** - -* 修复 Popup overlayClass 类型错误 [\#374](https://github.com/youzan/vant/pull/374) -* 修复 Field number 类型输入值过滤 [\#386](https://github.com/youzan/vant/pull/386) -* 修复 Icon 'new' 显示问题 [\#381](https://github.com/youzan/vant/pull/381) -* 修复 Sku 按钮圆角问题 [\#378](https://github.com/youzan/vant/pull/378) -* 修复 Radio & Checkbox 禁用态样式 [\#383](https://github.com/youzan/vant/pull/383) -* 修复 Field disabled 在安卓下的显示问题 [\#388](https://github.com/youzan/vant/pull/388) - -### [v0.11.5](https://github.com/youzan/vant/tree/v0.11.5) - -`2017-12-04` - -**Improvements** - -* Coupon:调整 Cell 右侧文案 [\#371](https://github.com/youzan/vant/pull/371) -* GoodsAction: 支持国际化 [\#367](https://github.com/youzan/vant/pull/367) -* 增加 Props 命名规范相关文档 [\#366](https://github.com/youzan/vant/pull/366) - -**Bug Fixes** - -* 修复 Tab 删除时未自动切换 active 值的问题 [\#372](https://github.com/youzan/vant/pull/372) - -### [v0.11.4](https://github.com/youzan/vant/tree/v0.11.4) - -`2017-11-30` - -**Improvements** - -* 新增类型定义文件,增强对 TypeScript 支持 [\#361](https://github.com/youzan/vant/pull/361) -* Toast/Dialog 自动挂载至 Vue.pro为type, 支持 this.$为ast 等方式调用 [\#363](https://github.com/youzan/vant/pull/363) - -### [v0.11.3](https://github.com/youzan/vant/tree/v0.11.3) - -`2017-11-28` - -**Breaking changes** - -* NavBar: 规范事件命名, 由 'clickLeft' 改为 'click-left' [\#354](https://github.com/youzan/vant/pull/354) - -**Improvements** - -* SwipeCell: 新增 onClose 属性,支持异步控制 [\#356](https://github.com/youzan/vant/pull/356) -* Uploader: 支持继承原生属性 [\#357](https://github.com/youzan/vant/pull/357) -* 优化本地构建速度 [\#355](https://github.com/youzan/vant/pull/355) - -### [v0.11.2](https://github.com/youzan/vant/tree/v0.11.2) - -`2017-11-24` - -**Improvements** - -* Icon: 增加 7 个新图标 [\#351](https://github.com/youzan/vant/pull/351) - -### [v0.11.1](https://github.com/youzan/vant/tree/v0.11.1) - -`2017-11-24` - -**Improvements** - -* ActionSheet: 更新关闭按钮样式 [\#340](https://github.com/youzan/vant/pull/340) -* Popup: 新增 overlayClass、overlayStyle 属性 [\#349](https://github.com/youzan/vant/pull/349) [\#343](https://github.com/youzan/vant/pull/343) -* Icon: 调整 unicode,避免展示特殊字符 [\#330](https://github.com/youzan/vant/pull/330) -* ImagePreview: 支持手动关闭 [\#346](https://github.com/youzan/vant/pull/346) -* Tabbar: 支持通过 slot-scope 判断 active 状态 [\#347](https://github.com/youzan/vant/pull/347) -* SubmitBar: 新增左侧内容插槽 [\#345](https://github.com/youzan/vant/pull/345) -* 优化组件 staticClass 渲染效率 [\#337](https://github.com/youzan/vant/pull/337) -* 优化文字截取相关样式 [\#334](https://github.com/youzan/vant/pull/334) -* 优化按钮 css layer 及 GPU 开销 [\#336](https://github.com/youzan/vant/pull/336) - -**Bug Fixes** - -* 修复 SSR 过程中报错的问题 [\#344](https://github.com/youzan/vant/pull/344) -* 修复 DateTimePicker 接受非法参数时卡死的问题 [\#333](https://github.com/youzan/vant/pull/333) - -### [v0.11.0](https://github.com/youzan/vant/tree/v0.11.0) - -`2017-11-17` - -**Breaking changes** - -* 组件支持国际化 [\#310](https://github.com/youzan/vant/pull/310) -* 移除部分无用的 props 及有效性检测 [\#323](https://github.com/youzan/vant/pull/323) - -**Improvements** - -* 新增 Pagination 组件 [\#327](https://github.com/youzan/vant/pull/327) [\#328](https://github.com/youzan/vant/pull/328) -* 新增 Locale 组件 [\#310](https://github.com/youzan/vant/pull/310) -* 新增国际化文档 [\#321](https://github.com/youzan/vant/pull/321) -* Icon: add-o 图标更正为圆角 [\#326](https://github.com/youzan/vant/pull/326) - -### [v0.10.9](https://github.com/youzan/vant/tree/v0.10.9) - -`2017-11-15` - -**Improvements** - -* Icon: 增加几个新 icons [\#315](https://github.com/youzan/vant/pull/315) - -**Bug Fixes** - -* Search: 修复 box-sizing 错误 [\#312](https://github.com/youzan/vant/pull/312) - -### [v0.10.8](https://github.com/youzan/vant/tree/v0.10.8) - -`2017-11-11` - -**Improvements** - -* Tabbar: 支持 vue-router [\#305](https://github.com/youzan/vant/pull/305) -* Stepper: 新增 plus & minus 事件 [\#294](https://github.com/youzan/vant/pull/294) -* Progress: 新增 showPivot 属性 [\#300](https://github.com/youzan/vant/pull/300) -* Loading: 新增 spinner 类型 [\#297](https://github.com/youzan/vant/pull/297) -* Toast: 新增 mask 选项 [\#296](https://github.com/youzan/vant/pull/296) -* 新增 Tab 英文文档 [\#308](https://github.com/youzan/vant/pull/308) -* 新增 Toast 英文文档 [\#307](https://github.com/youzan/vant/pull/307) - -**Bug Fixes** - -* 修复 npm run dist 在 windows 下报错的问题 [\#301](https://github.com/youzan/vant/pull/301) - -### [v0.10.7](https://github.com/youzan/vant/tree/v0.10.7) - -`2017-11-08` - -**Improvements** - -* 修正了所有图标尺寸,保持大小统一 [\#292](https://github.com/youzan/vant/pull/292) -* ImagePreview 支持自定义初始位置 [\#286](https://github.com/youzan/vant/pull/286) - -**Bug Fixes** - -* 修复 Sku 滚动锁定问题 [\#291](https://github.com/youzan/vant/pull/291) -* 修复 Steps 超过四项时样式错误 [\#287](https://github.com/youzan/vant/pull/287) - -### [v0.10.6](https://github.com/youzan/vant/tree/v0.10.6) - -`2017-11-06` - -**Improvements** - -* 新增 Swipe initialSwipe 属性 [\#279](https://github.com/youzan/vant/pull/279) - -**Bug Fixes** - -* 修复 Dialog 按钮文字未重置的问题 [\#278](https://github.com/youzan/vant/pull/278) -* 修复 Tab 动态生成问题 [\#284](https://github.com/youzan/vant/pull/284) -* 修复 NoticeBar 在页面返回时文字消失的问题 [\#280](https://github.com/youzan/vant/pull/280) - -### [v0.10.5](https://github.com/youzan/vant/tree/v0.10.5) - -`2017-10-30` - -**Improvements** - -* Cell 支持 vue-router 路由跳转 [\#268](https://github.com/youzan/vant/pull/268) - -**Bug Fixes** - -* 修复 Tabbar 使用 icon 插槽时 info prop 失效的问题 [\#269](https://github.com/youzan/vant/pull/269) -* 修复 Uploader input 类型错误 [\#265](https://github.com/youzan/vant/pull/265) - -### [v0.10.4](https://github.com/youzan/vant/tree/v0.10.4) - -`2017-10-26` - -**Improvements** - -* 新增多个图标 [\#253](https://github.com/youzan/vant/pull/253) -* 新增定制主题文档 [\#251](https://github.com/youzan/vant/pull/251) -* 新增多个组件的按钮点击态提示 [\#248](https://github.com/youzan/vant/pull/248) -* NoticeBar:增加多个 props [\#254](https://github.com/youzan/vant/pull/254) - -**Bug Fixes** - -* 修复 Swipe 在某些情况下宽度计算错误的问题 [\#258](https://github.com/youzan/vant/pull/258) -* 修复 PullRefreash 父元素可滚动时无法正常运行的问题 [\#247](https://github.com/youzan/vant/pull/247) -* 修复 CouponList 空列表样式一直存在的问题 [\#246](https://github.com/youzan/vant/pull/246) - -### [v0.10.3](https://github.com/youzan/vant/tree/v0.10.3) - -`2017-10-25` - -**Improvements** - -* 新增 Tabbar info 属性 [\#245](https://github.com/youzan/vant/pull/245) -* 新增 Toast position 属性 [\#244](https://github.com/youzan/vant/pull/244) -* 新增 Coupon showExchangeBar 属性 [\#243](https://github.com/youzan/vant/pull/243) -* 新增高阶组件英文文档 [\#236](https://github.com/youzan/vant/pull/236) -* 新增示例页面文档 [\#237](https://github.com/youzan/vant/pull/237) - -**Bug Fixes** - -* 修复 Address & Contact 列表底部遮挡问题 [\#230](https://github.com/youzan/vant/pull/230) -* 修复 popup 被依赖时未自动引入样式的问题 [\#231](https://github.com/youzan/vant/pull/231) -* 修复 PullRefresh 为uchcancel 事件名拼写错误 [\#239](https://github.com/youzan/vant/pull/239) - -### [v0.10.2](https://github.com/youzan/vant/tree/v0.10.2) - -`2017-10-20` - -**Improvements** - -* Sku: sku-group 插槽增加 event bus [\#226](https://github.com/youzan/vant/pull/226) -* 新增基础英文文档 [\#220](https://github.com/youzan/vant/pull/220) - -**Bug Fixes** - -* 修复组件间样式依赖分析遗漏的问题 [\#224](https://github.com/youzan/vant/pull/224) - -### [v0.10.1](https://github.com/youzan/vant/tree/v0.10.1) - -`2017-10-18` - -**Improvements** - -* 升级 Vue 依赖至 2.5.0 版本 -* 新增 Tabs swipeThreshold 属性 [\#206](https://github.com/youzan/vant/pull/206) - -**Bug Fixes** - -* 修复 Swipe 组件 destroyed 时未清除 au为play timer 的问题 [\#218](https://github.com/youzan/vant/pull/218) -* 修复 Tab 组件插槽 text 文本换行问题 [\#217](https://github.com/youzan/vant/pull/217) -* 修复 TreeSelect 依赖路径错误 [\#216](https://github.com/youzan/vant/pull/216) -* 修复 Checkbox 在微信浏览器下的边框渲染错误 [\#214](https://github.com/youzan/vant/pull/214) -* 修复 Popup modal 层在某些情况下无法展示的问题 [\#211](https://github.com/youzan/vant/pull/211) -* 修复 Waterfall 重复绑定事件的问题 - -### [v0.10.0](https://github.com/youzan/vant/tree/v0.10.0) - -`2017-10-13` - -**Breaking changes** - -* 移除 style 中对 reset.css 的默认引用 [\#192](https://github.com/youzan/vant/issues/192) [\#196](https://github.com/youzan/vant/pull/196) -* 重写 Swipe 组件,调整部分 API [#174](https://github.com/youzan/vant/issues/174) [#180](https://github.com/youzan/vant/issues/180) [\#194](https://github.com/youzan/vant/pull/194) [\#200](https://github.com/youzan/vant/pull/200) -* 优化 Search 组件,修改原有结构 [\#198](https://github.com/youzan/vant/pull/198) - -**Improvements** - -* 新增 Tabbar 组件 [#157](https://github.com/youzan/vant/issues/157) [\#204](https://github.com/youzan/vant/pull/204) -* 新增表单相关组件英文文档 [\#199](https://github.com/youzan/vant/pull/199) -* 优化 Sku 样式 [\#205](https://github.com/youzan/vant/pull/205) - -**Bug Fixes** - -* 修复 ImagePreview 图片加载过程中跳动的问题 [\#201](https://github.com/youzan/vant/pull/201) -* 修复 Field 组件 type 为 textarea 且 display none 时高度计算错误的问题 [\#181](https://github.com/youzan/vant/issues/181) - -### [v0.9.12](https://github.com/youzan/vant/tree/v0.9.12) - -`2017-10-11` - -**Bug Fixes** - -* 修复 Search 样式问题 [\#191](https://github.com/youzan/vant/pull/191) - -### [v0.9.11](https://github.com/youzan/vant/tree/v0.9.11) - -`2017-10-11` - -**Improvements** - -* 新增 Contribute 相关文档 [\#182](https://github.com/youzan/vant/pull/182) - -**Bug Fixes** - -* 修正 AddressEdit 组件姓名字段的键名为 name [\#187](https://github.com/youzan/vant/pull/187) -* 修复 Field type 为 textarea 且 display none 时高度计算错误的问题 [\#188](https://github.com/youzan/vant/pull/188) -* 修复 windows 下项目编译失败的问题 [\#185](https://github.com/youzan/vant/pull/182) - -### [v0.9.10](https://github.com/youzan/vant/tree/v0.9.10) - -`2017-10-09` - -**Improvements** - -* 新增 Contact 组件 [\#160](https://github.com/youzan/vant/pull/160) -* 新增 AddressEdit 组件 [\#147](https://github.com/youzan/vant/pull/147) -* 新增英文文档支持 [\#170](https://github.com/youzan/vant/pull/170) -* 去除 zan-utils 依赖 [\#168](https://github.com/youzan/vant/pull/168) -* 去除 transition 中冗余的兼容代码 [\#162](https://github.com/youzan/vant/pull/162) -* 使用 clean-css 代替 gulp-cssmin - -**Bug Fixes** - -* 修复 Tab props 修改后未同步至父组件的问题 [\#148](https://github.com/youzan/vant/pull/148) -* 修复 But为n active 状态下边框样式问题 [\#150](https://github.com/youzan/vant/issues/150) -* 修复 Stepper 组件输入框样式错误 [\#159](https://github.com/youzan/vant/pull/159) -* 修复 Waterfall 未显示时 disable 属性无法生效的问题 [\#166](https://github.com/youzan/vant/pull/166) -* 修复 style 构建过程中未编译 calc 属性的问题 -* 修复 MacOS 下 npm run dev 报错的问题 [\#152](https://github.com/youzan/vant/issues/152) -* 修复文档在部分低版本浏览器路由失效的问题 [\#158](https://github.com/youzan/vant/pull/158) -* 修复文档中遗漏 SwipeItem 组件引入方式的问题 [\#167](https://github.com/youzan/vant/pull/167) - -### [v0.9.9](https://github.com/youzan/vant/tree/v0.9.9) - -`2017-09-26` - -**Improvements** - -* Sku:支持禁用 Stepper [\#146](https://github.com/youzan/vant/pull/146) - -**Bug Fixes** - -* 修复 packages.json 中 license 标注错误 [\#144](https://github.com/youzan/vant/pull/144) -* 修复 Waterfall 滚动计算错误的问题 [\#145](https://github.com/youzan/vant/pull/145) - -### [v0.9.8](https://github.com/youzan/vant/tree/v0.9.8) - -`2017-09-24` - -**Improvements** - -* 新增 AddressList 组件 [\#138](https://github.com/youzan/vant/pull/138) -* 优化 changelog 结构 [\#140](https://github.com/youzan/vant/pull/140) - -**Bug Fixes** - -* 修复 Sku 留言渲染错误 [\#142](https://github.com/youzan/vant/pull/142) - -### [v0.9.7](https://github.com/youzan/vant/tree/v0.9.7) - -`2017-09-21` - -**Improvements** - -* Checkbox: 支持 shape 属性 [\#137](https://github.com/youzan/vant/pull/137) - -### [v0.9.6](https://github.com/youzan/vant/tree/v0.9.6) - -`2017-09-20` - -**Improvements** - -* Sku:移除大部分 Lodash 函数 [\#135](https://github.com/youzan/vant/pull/135) -* Icon:增加会员余额图标 [\#133](https://github.com/youzan/vant/pull/133) - -**Bug Fixes** - -* 修复 ImagePreview 滑动后无法展示图片的问题 [\#126](https://github.com/youzan/vant/issues/126) -* 修复 reset.css 编译失败的问题 [\#136](https://github.com/youzan/vant/pull/136) - -### [v0.9.4](https://github.com/youzan/vant/tree/v0.9.4) - -`2017-09-15` - -**Improvements** - -* Icon: 增加已完成图标 [\#129](https://github.com/youzan/vant/pull/129) - -**Bug Fixes** - -* 修复 But为n 同时使用 disabled 和 bot为mAction 属性时颜色错误的问题 [\#131](https://github.com/youzan/vant/pull/131) -* 修复 But为n 不可用状态下 acitive 背景色错误的问题 [\#132](https://github.com/youzan/vant/pull/132) - -### [v0.9.3](https://github.com/youzan/vant/tree/v0.9.3) - -`2017-09-13` - -**Improvements** - -* 新增 PasswordInput 组件 [\#124](https://github.com/youzan/vant/pull/124) -* 新增 NumberKeyboard 组件 [\#122](https://github.com/youzan/vant/pull/122) -* 新增文档底部 issue 入口 [\#127](https://github.com/youzan/vant/issues/127) - -**Bug Fixes** - -* 修复部分组件样式依赖 reset.css 的问题 [\#128](https://github.com/youzan/vant/pull/128) - -### [v0.9.2](https://github.com/youzan/vant/tree/v0.9.2) - -`2017-09-08` - -**Breaking changes** - -* 内置 van-hairline 类,用于添加 0.5px 边框 [\#110](https://github.com/youzan/vant/pull/110) -* Quantity:重命名为 Stepper [\#120](https://github.com/youzan/vant/pull/120) -* PayOrder 重命名为 SubmitBar [\#120](https://github.com/youzan/vant/pull/120) -* DeepSelect: 重命名为 TreeSelect [\#120](https://github.com/youzan/vant/pull/120) -* OrderCoupon: 拆分为 CouponList 和 CouponCell 组件 [\#120](https://github.com/youzan/vant/pull/120) - -**Bug Fixes** - -* 修复 Tabs 动画过渡效果 [\#111](https://github.com/youzan/vant/pull/111) -* 修复 Swipe 页数为一时指示器未隐藏的问题 [\#106](https://github.com/youzan/vant/pull/106) -* 修复 Toast 背景色值错误的问题 [\#118](https://github.com/youzan/vant/pull/118) -* 修复自动引入组件样式时未引入内部依赖组件样式的问题 [\#115](https://github.com/youzan/vant/pull/115) - -**Improvements** - -* 新增 Sku 组件 [\#123](https://github.com/youzan/vant/pull/123) -* 新增 Area 组件 [\#113](https://github.com/youzan/vant/pull/113) -* 新增 NavBar 组件 [\#121](https://github.com/youzan/vant/pull/121) -* 新增 PullRefresh 组件 [\#117](https://github.com/youzan/vant/pull/117) -* 新增 OrderCoupon 组件 [\#108](https://github.com/youzan/vant/pull/108) -* 优化文档加载速度 [\#107](https://github.com/youzan/vant/pull/107) -* 优化 Popup 文档 [\#109](https://github.com/youzan/vant/pull/109) -* Card:支持 num 和 price 属性 [\#112](https://github.com/youzan/vant/pull/112) -* Toast: 支持 loading 和 text 属性同时使用,优化渲染性能 [\#114](https://github.com/youzan/vant/pull/114) -* Toast:布局方式改为 Flex 布局 [\#114](https://github.com/youzan/vant/pull/114) - -### [v0.8.8](https://github.com/youzan/vant/tree/v0.8.8) - -`2017-09-01` - -**Improvements** - -* 新增 DeepSelect 组件 [\#103](https://github.com/youzan/vant/pull/103) -* 新增 GoodsAction 组件 [\#102](https://github.com/youzan/vant/pull/102) -* 新增 OrderGoods 组件 [\#99](https://github.com/youzan/vant/pull/99) -* 新增 PayOrder 组件 [\#98](https://github.com/youzan/vant/pull/98) -* 优化 Step、Loading、Tag、Sidebar 文档 [\#101](https://github.com/youzan/vant/pull/101) -* Checkbox: 支持 change 事件 [\#104](https://github.com/youzan/vant/pull/104) - -**Bug Fixes** - -* 修复 make init 命令报错的问题 [\#97](https://github.com/youzan/vant/pull/97) - -### [v0.8.7](https://github.com/youzan/vant/tree/v0.8.7) - -`2017-08-29` - -**Improvements** - -* 新增 NoticeBar 组件 [\#94](https://github.com/youzan/vant/pull/94) -* 新增 CellSwitch 组件 [\#95](https://github.com/youzan/vant/pull/95) -* Dialog: 支持通过组件的方式进行调用 [\#93](https://github.com/youzan/vant/pull/93) -* Progress: 简化 DOM 结构 [\#90](https://github.com/youzan/vant/pull/90) -* SwipeCell: 性能优化,补充单元测试 [\#91](https://github.com/youzan/vant/pull/91) - -### [v0.8.6](https://github.com/youzan/vant/tree/v0.8.6) - -`2017-08-24` - -**Improvements** - -* 去除对 merge 和 class 操作方法的依赖 [\#88](https://github.com/youzan/vant/pull/88) -* 目录结构简化,去除 index.js 文件 [\#87](https://github.com/youzan/vant/pull/87) -* But为n: 精简部分样式 [\#86](https://github.com/youzan/vant/pull/86) -* Layout: 文档优化 [\#85](https://github.com/youzan/vant/pull/85) - -**Bug Fixes** - -* 修复 DatetimePicker 初始值错误的问题 [\#89](https://github.com/youzan/vant/pull/89) - -### [v0.8.5](https://github.com/youzan/vant/tree/v0.8.5) - -`2017-08-21` - -**Breaking changes** - -* 优化单个组件构建方式, 减少文件体积 [\#74](https://github.com/youzan/vant/pull/74) - -**Improvements** - -* 新增文档组件使用指南 [\#83](https://github.com/youzan/vant/pull/83) -* 新增文档加载动效 [\#83](https://github.com/youzan/vant/pull/83) -* Field:新增 icon 插槽 [\#76](https://github.com/youzan/vant/pull/76) - -**Bug Fixes** - -* 修复 Popup 默认开启 preventScroll 导致无法局部滚动的问题 [\#84](https://github.com/youzan/vant/pull/84) -* 修复 Field au为size 高度错误的问题 [\#78](https://github.com/youzan/vant/pull/78) -* 修复 Dialog z-index 错误的问题 [\#77](https://github.com/youzan/vant/pull/77) - -### [v0.7.8](https://github.com/youzan/vant/tree/v0.7.8) - -`2017-08-10` - -**Improvements** - -* 新增 README 英文文档 [\#66](https://github.com/youzan/vant/pull/66) -* 新增 babel-plugin-import 使用教程 [\#71](https://github.com/youzan/vant/pull/71) -* 新增多个 Icon 类型 [\#69](https://github.com/youzan/vant/pull/69) - -**Bug Fixes** - -* 修复 Swipe 组件报错的问题 [\#70](https://github.com/youzan/vant/pull/70) -* 修复 DatetimePicker cancel 事件无法触发的问题 [\#45](https://github.com/youzan/vant/issues/45) -* 修复 utils 编译时未转成 ES5 的问题 [\#67](https://github.com/youzan/vant/pull/67) - -### [v0.7.2](https://github.com/youzan/vant/tree/v0.7.2) - -`2017-07-31` - -**Breaking changes** - -* 文档站点样式改版 [\#55](https://github.com/youzan/vant/pull/55) -* 支持 babel-plugin-import [\#62](https://github.com/youzan/vant/pull/62) - -**Bug Fixes** - -* 修复 Popup 多层级 modal 未插入到正确的位置的问题 [\#63](https://github.com/youzan/vant/pull/63) -* 修复 Tabs 组件为空报错的问题 [\#61](https://github.com/youzan/vant/pull/61) - -**Improvements** - -* Switch:增加过渡动画效果 [\#59](https://github.com/youzan/vant/pull/59) [BosenY](https://github.com/BosenY) -* Card:支持 centered 属性 [\#54](https://github.com/youzan/vant/pull/54) - -### [v0.6.6](https://github.com/youzan/vant/tree/v0.6.6) - -`2017-07-15` - -**Improvements** - -* Tabs:支持滑动 [\#52](https://github.com/youzan/vant/pull/52) -* Steps:新增 direction 和 activeColor 属性,支持竖向展示 [\#49](https://github.com/youzan/vant/pull/49) -* Card:支持 thumb 插槽 [\#48](https://github.com/youzan/vant/pull/48) -* Field:支持 blur 事件,新增 icon 插槽 [\#53](https://github.com/youzan/vant/pull/53) - -### [v0.6.2](https://github.com/youzan/vant/tree/v0.6.2) - -`2017-06-26` - -**Improvements** - -* Field 组件:支持 time 类型 [\#43](https://github.com/youzan/vant/pull/43) - -**Bug Fixes** - -* 修复 Toast 样式问题 [\#42](https://github.com/youzan/vant/pull/42) -* 修复人民币符号在 iOS 下显示问题 [\#44](https://github.com/youzan/vant/pull/44) - -### [v0.6.0](https://github.com/youzan/vant/tree/v0.6.0) - -`2017-06-15` - -**Improvements** - -* 支持 SSR [\#40](https://github.com/youzan/vant/pull/40) -* 新增多个 Icon 类型 [\#40](https://github.com/youzan/vant/pull/40) -* 新增 SwipeCell 组件 [\#39](https://github.com/youzan/vant/pull/39) -* 新增 Search 组件微杂志样式 [\#38](https://github.com/youzan/vant/pull/38) - -### [v0.5.8](https://github.com/youzan/vant/tree/v0.5.8) - -`2017-05-25` - -**Improvements** - -* 新增多个 Icon 类型 [\#29](https://github.com/youzan/vant/pull/29) -* 新增打包后的 amd 模块名称 [\#28](https://github.com/youzan/vant/pull/28) -* 移除 postcss-reset 插件 [\#35](https://github.com/youzan/vant/pull/35) -* Picker:支持 title 属性 [\#30](https://github.com/youzan/vant/pull/30) - -**Bug Fixes** - -* 修复长按图片后隐藏的问题 [\#32](https://github.com/youzan/vant/pull/32) - -### [v0.5.4](https://github.com/youzan/vant/tree/v0.5.4) - -`2017-05-09` - -**Bug Fixes** - -* 修复 Cell 同时设置 title 和 label 时 value 不居中的问题 [\#26](https://github.com/youzan/vant/pull/26) -* 修复 Popup zIndex 类型错误 [\#24](https://github.com/youzan/vant/pull/24) -* 修复 Picker 状态更新错误 [\#23](https://github.com/youzan/vant/pull/23) - -**Improvements** - -* 新增 reset.css [\#27](https://github.com/youzan/vant/pull/27) -* Cell: 新增 right-icon 插槽 [\#27](https://github.com/youzan/vant/pull/27) - -### [v0.5.2](https://github.com/youzan/vant/tree/v0.5.2) - -`2017-04-26` - -**Improvements** - -* 新增 Picker 组件测试用例 [\#20](https://github.com/youzan/vant/pull/20) -* 新增 Col & Row 组件测试用例 [\#16](https://github.com/youzan/vant/pull/16) -* 新增 Uploader 单元测试 [\#9](https://github.com/youzan/vant/pull/9) - -**Bug Fixes** - -* 修复 Webpack 打包错误 [\#21](https://github.com/youzan/vant/pull/21) -* 修复 Toast 关闭时未移除 Dom 节点的问题 [\#19](https://github.com/youzan/vant/pull/19) -* 修复组件样式问题 [\#5](https://github.com/youzan/vant/pull/5) +- 新增`name`属性 diff --git a/docs/markdown/quickstart.zh-CN.md b/docs/markdown/quickstart.zh-CN.md index 7e65ff24a..5ac2891f3 100644 --- a/docs/markdown/quickstart.zh-CN.md +++ b/docs/markdown/quickstart.zh-CN.md @@ -88,7 +88,7 @@ module.exports = { ```js // 接着你可以在代码中直接引入 Vant 组件 // 插件会自动将代码转化为方式二中的按需引入形式 -import { Button, Cell } from 'vant'; +import { Button } from 'vant'; ``` > 如果你在使用 TypeScript,可以使用 [ts-import-plugin](https://github.com/Brooooooklyn/ts-import-plugin) 实现按需引入 diff --git a/package.json b/package.json index 271de003e..6c33dfc85 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "@babel/preset-env": "^7.4.4", "@babel/preset-typescript": "^7.3.3", "@types/jest": "^24.0.13", - "@vant/doc": "^2.2.0", + "@vant/doc": "^2.2.2", "@vant/eslint-config": "^1.1.2", "@vant/markdown-loader": "^2.0.0", "@vue/babel-preset-jsx": "^1.0.0", diff --git a/packages/col/index.less b/packages/col/index.less index cdc5534e3..9d39cd27e 100644 --- a/packages/col/index.less +++ b/packages/col/index.less @@ -2,8 +2,8 @@ .van-col { float: left; - min-height: 1px; box-sizing: border-box; + min-height: 1px; } .generate-col(24); diff --git a/yarn.lock b/yarn.lock index e97d69e16..1790e882b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1024,10 +1024,10 @@ lodash.unescape "4.0.1" semver "5.5.0" -"@vant/doc@^2.2.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.2.0.tgz#ffe3592d1a36023ca2cfd81be2f86a417e221869" - integrity sha512-PW90FaXdJFa1kbzuCEfH+9nRvf3S3ha2OSViCuMWVU8su8JP+tozIz+JtgiX7Y/P/VWG+X6MuowzvWAGOhnWog== +"@vant/doc@^2.2.2": + version "2.2.2" + resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.2.2.tgz#0c32c44e37da12cc5478583b53d42a70aca9aa27" + integrity sha512-FpzGa/0w+vS+qLuFDUH+Gby8MNgDs2dLaVu3sE8RGZ70mfztU+sVLjrKkUMjIKdI1Q6ejmtQJEgiwACN3vRGeA== dependencies: cheerio "0.22.0" commander "^2.17.1"