iView|iView Select

【iView|iView Select】iView Select教程,请移步传送门click
1.iView官网实例


Notes
Notice: If not template/render mode, you need to usei-select, i-option.
Select events
Event Name Description Return Value
on-change Emitted when selected Optionchange.It will return value. See the label-in-value property if need return label The current selected item.
on-query-change Emitted when query word is changed. query
on-clear Emitted when click clear button. -
on-open-change Emitted when dropdown show or hide. true / false
vue 的原生select,使用的是change事件去触发,select change事件,而在iView中,使用的是on-change事件
如下
申请 授权

在没看iview api之前,使用v-on:change 事件触发select无效,所以还得使用iView的on-change事件才能触发

    推荐阅读