mirror of
https://git.beihong.wang/wangbeihong/iot-bedroom-environment-controller.git
synced 2026-04-24 04:53:05 +08:00
增加补充相关资料和小程序源码
This commit is contained in:
16
微信小程序源码/iot-home/node_modules/@vant/weapp/lib/dropdown-menu/index.wxs
generated
vendored
Normal file
16
微信小程序源码/iot-home/node_modules/@vant/weapp/lib/dropdown-menu/index.wxs
generated
vendored
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