提交
This commit is contained in:
24
甲情_甲意/miniprogram/node_modules/antd-mini/less/Button/index.sjs
generated
vendored
Normal file
24
甲情_甲意/miniprogram/node_modules/antd-mini/less/Button/index.sjs
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
function getClass(size) {
|
||||
var list = ['small', 'medium', 'large'];
|
||||
if (list.indexOf(size) >= 0) {
|
||||
return "ant-button-".concat(size);
|
||||
}
|
||||
return 'ant-button-medium';
|
||||
}
|
||||
function getHoverClass(loading, type, activeClassName) {
|
||||
if (loading) {
|
||||
return '';
|
||||
}
|
||||
var className = 'ant-button-active';
|
||||
if (type === 'text') {
|
||||
className += ' ant-button-text-active';
|
||||
}
|
||||
if (activeClassName) {
|
||||
className += ' ' + activeClassName;
|
||||
}
|
||||
return className;
|
||||
}
|
||||
export default {
|
||||
getClass: getClass,
|
||||
getHoverClass: getHoverClass
|
||||
};
|
Reference in New Issue
Block a user