mirror of
https://git.beihong.wang/wangbeihong/iot-bedroom-environment-controller.git
synced 2026-04-24 05:43:04 +08:00
增加补充相关资料和小程序源码
This commit is contained in:
14
微信小程序源码/iot-home/node_modules/@vant/weapp/lib/share-sheet/options.wxs
generated
vendored
Normal file
14
微信小程序源码/iot-home/node_modules/@vant/weapp/lib/share-sheet/options.wxs
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/* eslint-disable */
|
||||
var PRESET_ICONS = ['qq', 'link', 'weibo', 'wechat', 'poster', 'qrcode', 'weapp-qrcode', 'wechat-moments'];
|
||||
|
||||
function getIconURL(icon) {
|
||||
if (PRESET_ICONS.indexOf(icon) !== -1) {
|
||||
return 'https://img.yzcdn.cn/vant/share-sheet-' + icon + '.png';
|
||||
}
|
||||
|
||||
return icon;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getIconURL: getIconURL,
|
||||
};
|
||||
Reference in New Issue
Block a user