提交
This commit is contained in:
16
甲情_甲意/miniprogram/node_modules/antd-mini/less/Loading/index.sjs
generated
vendored
Normal file
16
甲情_甲意/miniprogram/node_modules/antd-mini/less/Loading/index.sjs
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
function getLoadingColor(color) {
|
||||
if (typeof color === 'string' && color[0] === '#') {
|
||||
return color.slice(1);
|
||||
}
|
||||
}
|
||||
function getClass(size) {
|
||||
var list = ['small', 'medium', 'large', 'x-large'];
|
||||
if (list.indexOf(size) >= 0) {
|
||||
return "ant-loading-".concat(size);
|
||||
}
|
||||
return 'ant-loading-medium';
|
||||
}
|
||||
export default {
|
||||
getLoadingColor: getLoadingColor,
|
||||
getClass: getClass
|
||||
};
|
Reference in New Issue
Block a user