优化
- Validator: 新增异步校验支持
- Form: 同步 Validator 的异步支持,同时支持 debounce & trigger:blur,新增 field 的 events
- DatePicker: 新增
format
Prop,用于格式化 - Scroll: 新增
resetPullUpTxt
方法,重置上拉文案 - IndexList: 新增下拉刷新和上拉更多
- Input: 新增
change
事件 - Upload: 新增 action 的
checkSuccess{Function}
配置,用于检测当请求成功时是否真的上传成功 - create-api: 新增
$props
和$events
配置,$props
的数据是响应式的
Breaking Changes
- DatePicker: 之前的默认文本
2018年
改为可配置式的,默认都是纯数字文本,可通过format
格式化 - Popup: 当
mask
为false
时,可点击后边内容,之前版本不可点击
Fixes
- Select: 修复特殊情况下数据不更新问题
- Select & DatePicker: findIndex bug #163
- SSR: fix window undefined #161
依赖
- 升级 BetterScroll 到 v1.10.0,具体更新可见 https://github.com/ustbhuangyi/better-scroll/releases
Improvements
- Validator: Support async validate.
- Form: Same as Validator support async validate. And support
decounce
&trigger:blur
. And field newevents
to config events - DatePicker: New
format
Prop to format text. - Scroll: New
resetPullUpTxt
method to reset pullUp text. - IndexList: Support Pull Down Refresh & Pull Up Load More.
- Input: New
change
event. - Upload: New
checkSuccess{Function}
option ofaction
Prop, this is used to check the file is successful uploaded when the ajax is success. - create-api: New
$props
and$events
config,$props
is reactive.
Breaking Changes
- DatePicker: The default text from
2018年
changed to useformat
option to format texts. - Popup: When
mask
isfalse
you can click the backgound content now.
Fixes
- Select: Fix data no change bug
- Select & DatePicker: findIndex bug #163
- SSR: fix window undefined #161
Dependencies
- Update BetterScroll to v1.10.0, see changes https://github.com/ustbhuangyi/better-scroll/releases