other props are the same as Picker
API
Props
name | type | default | description | required version |
value | array | picker value, use v-model for binding | -- | |
title | string | label text | -- | |
cancel-text | string | popup cancel text | -- | |
confirm-text | string | popup confirm text | -- | |
placeholder | string | placeholder | -- | |
show-name | boolean | false | if show names instead of keys | -- |
inline-desc | string | description text below label | -- | |
show | boolean | popup show (supports the .sync modifier next) | -- | |
value-text-align | string | right | value's text align | v2.1.0-rc.3 |
display-format | function | used to format display text on cell, param: (currentValue) | v2.1.1-rc.7 | |
popup-style | object | popup style | v2.5.2 | |
popup-title | string | popup title | v2.7.0 | |
disabled | boolean | false | whether disable selecting | v2.9.0 |
Events
name | params | description | required version |
@on-change | (value) | emits when value is changed | -- |
@on-show | -- | emits when popup shows | -- |
@on-hide | (closeType) true表示confirm(选择确认), false表示其他情况的关闭 | emits when popup is closed | -- |
@on-shadow-change | (Array ids, Array names) | emits when picker value is changed | v2.5.6 |
Slots
name | description | required version |
title | title slot, use scope.labelClass and scope.labelStyle to inherit label styles | v2.3.7 |
Contributors
Contributors
Total commits quantity: 69,Total contributors quantity: 4
unclayairyland万刚wgChangelog
Releases
- v2.9.0 [feature] add prop:disabled #2594
- v2.7.7 [fix] remove the first top line #2371
- v2.7.0 [feature] add prop:popup-title(use component:popup-header) #1866
- v2.5.10 [feature] support @cell-value-color #1874
- v2.5.8 [fix] prevent background scrolling when popup is show #1830
- v2.5.7 [fix] Fix render issue after changing value #1793
- v2.5.6 [feature] Support event:on-shadow-change #1778
- v2.5.3 [fix] Fix label style being overwrite after importing x-textarea #1696
- v2.5.2 [feature] Add prop:popup-style #1656
- v2.4.1 [fix] popup-picker-header add touchmove.prevent event #1596
- v2.3.8 [fix] Fix placeholder missing on iOS9 and iOS8 #1293
- v2.3.7 [feature] Add slot:title
- v2.2.1-rc.7 [fix] Fix popup-picker filter issue on v2.2.1-rc.6
- v2.2.1-rc.6 [enhance] Add param names for display-format
- v2.2.1-rc.1 [fix] Fix wrong closeType #1209
- v2.1.1-rc.13 [enhance] Use gray for cancel text color
- v2.1.1-rc.11 [enhance] Fix mask render slowly in Safari. #1083 @sixiakun
- v2.1.1-rc.11 [enhance] Enable transfer-dom by default
- v2.1.1-rc.8 [enhance] Update header style and add less variables
- v2.1.1-rc.7 [enhance] Support PC mouse drag #1039 @michael829
- v2.1.1-rc.7 [enhance] Support prop:display-format
- v2.1.1-rc.1 [fix] Fix labelMarginRight #977 @wg5945
- v2.1.0-rc.50 [fix] Fix no on-change emits #934 @howyhuang