mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-19 09:50:33 +03:00
fix function comment
This commit is contained in:
@@ -265,18 +265,13 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Callback to generate the label text. If {option}
|
||||||
|
* is an object, returns option[this.label] by default.
|
||||||
|
* @param {Object || String} option
|
||||||
|
* @return {String}
|
||||||
*/
|
*/
|
||||||
getOptionLabel: {
|
getOptionLabel: {
|
||||||
type: Function,
|
type: Function,
|
||||||
|
|
||||||
/**
|
|
||||||
* Generate the option label text. If {option}
|
|
||||||
* is an object, return option[this.label].
|
|
||||||
*
|
|
||||||
* @param {Object || String} option
|
|
||||||
* @return {String}
|
|
||||||
*/
|
|
||||||
default(option) {
|
default(option) {
|
||||||
if( typeof option === 'object' ) {
|
if( typeof option === 'object' ) {
|
||||||
if( this.label && option[this.label] ) {
|
if( this.label && option[this.label] ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user