diff --git a/src/pickerson/List.js b/src/pickerson/List.js index 6f312a7cb..2afa60676 100644 --- a/src/pickerson/List.js +++ b/src/pickerson/List.js @@ -119,7 +119,7 @@ export default createComponent({ {this.multiple && (
- {this.slots('option', item) || + {this.slots('option', {...item, item}) || (isInDesigner ? ( ) : ( @@ -130,7 +130,7 @@ export default createComponent({ )} {!this.multiple && - (this.slots('option', item) || + (this.slots('option', {...item, item}) || (isInDesigner ? ( ) : ( diff --git a/src/pickerson/PickerColumn.js b/src/pickerson/PickerColumn.js index de3ea8d4d..3fa9d4a68 100644 --- a/src/pickerson/PickerColumn.js +++ b/src/pickerson/PickerColumn.js @@ -201,8 +201,8 @@ export default createComponent({ }, getOptionText(option) { - if (isObject(option) && isDef(_get(option, this.textField))) { - return _get(option, this.textField); + if (isObject(option)) { + return _get(option, this.textField) || ''; } return option; @@ -309,7 +309,7 @@ export default createComponent({ return (
  • - {this.slots('option', option) || + {this.slots('option', {...option, item: option}) || (isInDesigner ? :
    )}
  • );