index.sjs 214 B

123456789
  1. function getPickerViewLabel(item) {
  2. if (typeof item === 'object' && typeof item.label === 'string') {
  3. return item.label || '';
  4. }
  5. return item;
  6. }
  7. export default {
  8. getPickerViewLabel: getPickerViewLabel
  9. };