mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
智慧宿舍系统小程序
This commit is contained in:
26
wechat/miniprogram/node_modules/@vant/weapp/dist/switch/index.wxs
generated
vendored
Normal file
26
wechat/miniprogram/node_modules/@vant/weapp/dist/switch/index.wxs
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/* eslint-disable */
|
||||
var style = require('../wxs/style.wxs');
|
||||
var addUnit = require('../wxs/add-unit.wxs');
|
||||
|
||||
function rootStyle(data) {
|
||||
var currentColor = data.checked ? data.activeColor : data.inactiveColor;
|
||||
|
||||
return style({
|
||||
'font-size': addUnit(data.size),
|
||||
'background-color': currentColor,
|
||||
});
|
||||
}
|
||||
|
||||
var BLUE = '#1989fa';
|
||||
var GRAY_DARK = '#969799';
|
||||
|
||||
function loadingColor(data) {
|
||||
return data.checked
|
||||
? data.activeColor || BLUE
|
||||
: data.inactiveColor || GRAY_DARK;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
rootStyle: rootStyle,
|
||||
loadingColor: loadingColor,
|
||||
};
|
||||
Reference in New Issue
Block a user