Skip to content

Releases: didi/cube-ui

v1.9.0

13 May 15:29
Compare
Choose a tag to compare

新增

  • Toolbar: 工具栏,支持组合多个操作

优化

  • TypeScript: 支持 TypeScript
  • TimePicker: 支持任意数值的 delay,新增 showNow 属性的子配置项 text 配置现在选项的文案
  • Slide: 新增 options 属性支持 BetterScroll 的所有配置项,新增 scroll-end 事件
  • Scroll: 新增 scroll-events 属性配置需派发的 scroll 事件,新增 scroll-end 事件
  • Warn: 新增非生产环境中的 Cube 报错和提示

Breaking Changes

  • Input: 当 eye.reversefalse 时,opentrue 值对应密码可见,之前版本相反

Fixes

  • Drawer: 修复 #183
  • Slide: 修复竖向轮播时,change事件的参数 bug

依赖


New Features

  • Toolbar: Group several actions into a toolbar.

Improvements

  • TypeScript: Support TypeScript.
  • TimePicker: Support any number set to delay,add the sub option text of showNow to configure the text of now.
  • Slide: Add propertyoptions to support all the options of BetterScroll, add event scroll-end.
  • Scroll: Add property scroll-events to configure which scroll events need to be emitted, add event scroll-end
  • Warn: Add the Cube warnings and tips in non-production environment.

Breaking Changes

  • Input: When eye.reverse is false, the true value of open correspond to visible password now.

Fixes

  • Drawer: Fix #183
  • Slide: Fix the argument bug of change event in vertical slide.

Dependencies

v1.8.3

28 Apr 14:58
Compare
Choose a tag to compare

优化

  • 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

26 Apr 12:19
Compare
Choose a tag to compare

优化

  • 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

20 Apr 07:20
Compare
Choose a tag to compare

优化

  • 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: 当 maskfalse 时,可点击后边内容,之前版本不可点击

Fixes

  • Select: 修复特殊情况下数据不更新问题
  • Select & DatePicker: findIndex bug #163
  • SSR: fix window undefined #161

依赖


Improvements

  • Validator: Support async validate.
  • Form: Same as Validator support async validate. And support decounce & trigger:blur. And field new events 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 of action Prop, this is used to check the file is successful uploaded when the ajax is success.
  • create-api: New $props and $eventsconfig, $props is reactive.

Breaking Changes

  • DatePicker: The default text from 2018年 changed to use format option to format texts.
  • Popup: When mask is false 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

v1.7.3

09 Apr 09:35
Compare
Choose a tag to compare

Fixes

  • Slide: 修复为1个slide的时候可滚动以及动态改变slide的data时refresh时机不对

Fixes

  • Slide: fixed one slide loop error and the refresh should delay after the data changed

v1.7.2

03 Apr 11:05
Compare
Choose a tag to compare

优化

  • IndexList: 新增 navbar Prop 配置导航是否存在
  • Toast: 新增 timeout 事件
  • Drawer: select 事件派发后自动隐藏

Improvements

  • IndexList: new navbar Prop
  • Toast: new timeout event
  • Drawer: auto hide after select

1.7.1

02 Apr 09:42
Compare
Choose a tag to compare

Fixes

  • Drawer: 在 nextTick 中计算 scroll height

Fixes

  • Drawer: compute scroll height at nextTick

v1.7.0

02 Apr 08:48
Compare
Choose a tag to compare

新增

  • 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 改为 modeltrigger 改为 immediate

Fixes

  • SSR: fix window undefined #141

依赖


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 and append
  • create-api: support using SomeComponent.$create({...}) to create instance

Breaking Changes

  • Validator: for Prop changed to model, trigger Prop changed toimmediate

Fixes

  • SSR: fix window undefined #141

Dependencies

v1.6.1

19 Mar 08:53
Compare
Choose a tag to compare

修复

  • 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

09 Mar 07:50
Compare
Choose a tag to compare

优化

  • 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

依赖


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 to cube-rate-item_active, cube-input_active
  • Rate: changed its root element class cube-rate-wrapper to cube-rate
  • Input: changed its root element class cube-input-wrapper to cube-input

Dependencies