开始做登录
This commit is contained in:
16
miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs
Normal file
16
miniprogram_npm/@vant/weapp/dropdown-menu/index.wxs
Normal file
@@ -0,0 +1,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
|
||||
};
|
Reference in New Issue
Block a user