forked from gzzfw/frontEnd/gzDyh

liyj
2024-08-30 a7cba2f05df12ab546ef1c20b63aad10ec0e7a5c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* eslint-disable */
function displayTitle(item) {
  if (item.title) {
    return item.title;
  }
 
  var match = item.options.filter(function(option) {
    return option.value === item.value;
  });
  var displayTitle = match.length ? match[0].text : '';
  return displayTitle;
}
 
module.exports = {
  displayTitle: displayTitle
};