jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/es/Radio/index.sjs

24 lines
485 B
Plaintext
Raw Normal View History

2024-11-10 07:01:22 +00:00
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;
2024-12-01 11:56:54 +00:00
}
2024-11-10 07:01:22 +00:00
return false;
}
2024-12-01 11:56:54 +00:00
export default {
getClassName: getClassName,
getChecked: getChecked
};