提交
This commit is contained in:
21
甲情_甲意/miniprogram/node_modules/antd-mini/es/Checkbox/index.sjs
generated
vendored
Normal file
21
甲情_甲意/miniprogram/node_modules/antd-mini/es/Checkbox/index.sjs
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
function getClassName(checked, disabled) {
|
||||
if (!checked && !disabled) {
|
||||
return 'icon';
|
||||
}
|
||||
if (checked && !disabled) {
|
||||
return 'checkedIcon';
|
||||
}
|
||||
if (!checked && disabled) {
|
||||
return 'disbaledIcon';
|
||||
}
|
||||
if (checked && disabled) {
|
||||
return 'disabledCheckedIcon';
|
||||
}
|
||||
}
|
||||
function getCheckboxChecked(item, value) {
|
||||
return (value || []).indexOf(item.value) > -1;
|
||||
}
|
||||
export default {
|
||||
getClassName: getClassName,
|
||||
getCheckboxChecked: getCheckboxChecked
|
||||
};
|
Reference in New Issue
Block a user