Skip to content

Commit

Permalink
fix(taro-components): 完善 PickerView 的类型定义 (#2333)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k authored and luckyadam committed Mar 4, 2019
1 parent 074ecc0 commit 3165682
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/taro-components/types/PickerView.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface PickerViewProps extends StandardProps {
/**
* 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。
*/
value: number[]
value: number[],

/**
* 设置选择器中间选中框的样式
Expand All @@ -28,6 +28,16 @@ interface PickerViewProps extends StandardProps {
*/
maskClass?: string,

/**
* 当滚动选择开始时候触发事件
*/
onPickStart?: CommonEventFunction,

/**
* 当滚动选择结束时候触发事件
*/
onPickEnd?: CommonEventFunction,

/**
* 当滚动选择,value 改变时触发 change 事件,event.detail = {value: value};value为数组,表示 picker-view 内的 picker-view-column 当前选择的是第几项(下标从 0 开始)
*/
Expand Down

0 comments on commit 3165682

Please sign in to comment.