提交
This commit is contained in:
24
甲情_甲意/miniprogram/node_modules/antd-mini/es/Radio/index.sjs
generated
vendored
Normal file
24
甲情_甲意/miniprogram/node_modules/antd-mini/es/Radio/index.sjs
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
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 getChecked(index, options, value) {
|
||||
if (options[index].value === value) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
export default {
|
||||
getClassName: getClassName,
|
||||
getChecked: getChecked
|
||||
};
|
Reference in New Issue
Block a user