Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

saas_plus / store-assistant

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • store-assistant
  • node_modules
  • @vant
  • weapp
  • dist
  • dropdown-menu
  • index.wxs
  • 张立顺's avatar
    improt vant · 5bbd3f62
    张立顺 committed Oct 12, 2022
    5bbd3f62
index.wxs 331 Bytes
RawBlameHistoryPermalink
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
};