Releases: didi/cube-ui
Releases · didi/cube-ui
v1.9.0
新增
- Toolbar: 工具栏,支持组合多个操作
优化
- TypeScript: 支持 TypeScript
- TimePicker: 支持任意数值的
delay
,新增showNow
属性的子配置项text
配置现在选项的文案 - Slide: 新增
options
属性支持 BetterScroll 的所有配置项,新增scroll-end
事件 - Scroll: 新增
scroll-events
属性配置需派发的 scroll 事件,新增scroll-end
事件 - Warn: 新增非生产环境中的 Cube 报错和提示
Breaking Changes
- Input: 当
eye.reverse
为false
时,open
的true
值对应密码可见,之前版本相反
Fixes
- Drawer: 修复 #183
- Slide: 修复竖向轮播时,
change
事件的参数 bug
依赖
- 升级 BetterScroll 到 v1.11.1,具体更新可见 https://github.com/ustbhuangyi/better-scroll/releases
New Features
- Toolbar: Group several actions into a toolbar.
Improvements
- TypeScript: Support TypeScript.
- TimePicker: Support any number set to
delay
,add the sub optiontext
ofshowNow
to configure the text of now. - Slide: Add property
options
to support all the options of BetterScroll, add eventscroll-end
. - Scroll: Add property
scroll-events
to configure which scroll events need to be emitted, add eventscroll-end
- Warn: Add the Cube warnings and tips in non-production environment.
Breaking Changes
- Input: When
eye.reverse
isfalse
, thetrue
value ofopen
correspond to visible password now.
Fixes
- Drawer: Fix #183
- Slide: Fix the argument bug of
change
event in vertical slide.
Dependencies
- Update BetterScroll to v1.11.1, see changes https://github.com/ustbhuangyi/better-scroll/releases
v1.8.3
优化
- Input: 支持密码眼睛图标行为反转
Fixes
- CreateAPI: 修复单例 API 复用时属性值变化所引起的显示隐藏问题
- Scroll: 修复下拉刷新回弹动画 bug
Improvements
- Input: support reverse the behavior of eye icon.
Fixes
- CreateAPI: fix the show and hide problems caused by the props change when single API be reused.
- Scroll: fix the bug of pull-down-refresh animation.
v1.8.1
优化
- Popup 类组件: 新增支持 v-model 显示/隐藏弹层
- Picker 类组件: 新增支持 subtitle 配置副标题
- CascadePicker: 新增支持异步级联
Fixes
- CreateAPI: 修复 CreateAPI 中不能使用 vuex,vue-router 的问题
- TimePicker: 修复日期格式显示问题
依赖
- 升级 BetterScroll 到 v1.10.1
Improvements
- Popup-based Components: support using v-model to show/hide popup layer.
- Picker-based Components: support using
subtitle
to configure subtitle. - CascadePicker: support async cascade.
Fixes
- CreateAPI: fix the usage of vuex and vue-router in CreateAPI.
- TimePicker: fix the problem of date format.
Dependencies
- Update BetterScroll to v1.10.1
v1.8.0
优化
- 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
依赖
- 升级 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
v1.7.3
v1.7.2
1.7.1
v1.7.0
新增
- SegmentPicker: 多段选择器,多个 Picker 联动
- DatePicker: 日期时间选择器
- Form: 自动化生成表单
- Drawer: 抽屉,解决数据量大场景下的级联选择
优化
- Slide: 新增竖向支持,是否显示 dots Prop
showDots
,以及是否组织冒泡 - Input: 新增
prepend
以及append
插槽 - Picker: 支持动态改变列数,#116 Thanks @Fyerl
- create-api: 支持组件自身实例化方法,通过
SomeComponent.$create({...})
Breaking Changes
- Validator:
for
Prop 改为model
,trigger
改为immediate
Fixes
- SSR: fix window undefined #141
依赖
- 升级 BetterScroll 到 v1.9.1,具体更新可见 https://github.com/ustbhuangyi/better-scroll/releases
New Features
- SegmentPicker: Multiple segment Picker
- DatePicker: Date Time Picker
- Form: Schema-based form generator component
- Drawer: Used to lots of items cascade select
Improvements
- Slide: support vertical slide & new
showDots
Prop &stopPropagation
Prop - Input: new slots -
prepend
andappend
- create-api: support using
SomeComponent.$create({...})
to create instance
Breaking Changes
- Validator:
for
Prop changed tomodel
,trigger
Prop changed toimmediate
Fixes
- SSR: fix window undefined #141
Dependencies
- Update BetterScroll to v1.9.1, see changes https://github.com/ustbhuangyi/better-scroll/releases
v1.6.1
修复
- createAPI: 修复 Vue 2.5.14+ 遇到的事件处理函数无效的问题,#128,与 vuejs/vue#7294 有关
- Slide: 修复 native click 事件的问题
优化
- Swipe: 优化 swipe-item 的动画性能
FIX
- createAPI: fix the bug of event handle function in Vue 2.5.14+, #128 which related to vuejs/vue#7294
- Slide: fix the bug of native click
Improvements
- Swipe: optimize the animation performance of swipe-item
v1.6.0
优化
- Select 新增
picker-show
,picker-hide
事件 - Checkbox, Radio 增加镂空样式
- Rate 增加
justify
自适应容器宽度,填补空白的方式 - Input 增加密码
eye
配置,控制密码显示隐藏 #107
Breaking Changes
- Radio, Checkbox 默认白色背景色去掉,只有对应的 Group 组件默认会有白色背景色
- Radio, Checkbox 状态控制 class 移到组件根元素上
- RateItem 默认大小改为 32px 并自动改变高度使得高度和宽度一定相等
- RateItem & Input 的
active
class 变为cube-rate-item_active
,cube-input_active
- Rate 组件根元素 class 由
cube-rate-wrapper
变为cube-rate
- Input 组件根元素 class 由
cube-input-wrapper
变为cube-input
依赖
- 升级 BetterScroll 到 v1.8.4,具体更新可见 https://github.com/ustbhuangyi/better-scroll/releases
Improvements
- Select: add
picker-show
,picker-hide
events - Checkbox, Radio: add hollow style ui
- Rate: add
justify
to auto justify rate items - Input: add
eye
prop to control password content's visibility
Breaking Changes
- Radio, Checkbox: removed default white background-color, only their Group components have default white background-color now
- Radio, Checkbox: state classes moved to its root element
- RateItem: changed default size to 32px and auto justify item height to its width
- RateItem & Input: changed
active
classes tocube-rate-item_active
,cube-input_active
- Rate: changed its root element class
cube-rate-wrapper
tocube-rate
- Input: changed its root element class
cube-input-wrapper
tocube-input
Dependencies
- Update BetterScroll to v1.8.4, see changes https://github.com/ustbhuangyi/better-scroll/releases