|
|
@ -323,9 +323,9 @@ function extractCheckboxIcon(meta: string | Record<string, any> = null) { |
|
|
|
if (parsedMeta.icon) { |
|
|
|
if (parsedMeta.icon) { |
|
|
|
icon.checked = parsedMeta.icon.checked || icon.checked |
|
|
|
icon.checked = parsedMeta.icon.checked || icon.checked |
|
|
|
icon.unchecked = parsedMeta.icon.unchecked || icon.unchecked |
|
|
|
icon.unchecked = parsedMeta.icon.unchecked || icon.unchecked |
|
|
|
} else if (typeof parsedMeta.iconIndex === 'number' && checkboxIconList[parsedMeta.iconIndex]) { |
|
|
|
} else if (typeof parsedMeta.iconIdx === 'number' && checkboxIconList[parsedMeta.iconIdx]) { |
|
|
|
icon.checked = checkboxIconList[parsedMeta.iconIndex].checked |
|
|
|
icon.checked = checkboxIconList[parsedMeta.iconIdx].checked |
|
|
|
icon.unchecked = checkboxIconList[parsedMeta.iconIndex].unchecked |
|
|
|
icon.unchecked = checkboxIconList[parsedMeta.iconIdx].unchecked |
|
|
|
} |
|
|
|
} |
|
|
|
return icon |
|
|
|
return icon |
|
|
|
} |
|
|
|
} |
|
|
@ -341,9 +341,9 @@ function extractRatingIcon(meta: string | Record<string, any> = null) { |
|
|
|
if (parsedMeta.icon) { |
|
|
|
if (parsedMeta.icon) { |
|
|
|
icon.full = parsedMeta.icon.full || icon.full |
|
|
|
icon.full = parsedMeta.icon.full || icon.full |
|
|
|
icon.empty = parsedMeta.icon.empty || icon.empty |
|
|
|
icon.empty = parsedMeta.icon.empty || icon.empty |
|
|
|
} else if (typeof parsedMeta.iconIndex === 'number' && ratingIconList[parsedMeta.iconIndex]) { |
|
|
|
} else if (typeof parsedMeta.iconIdx === 'number' && ratingIconList[parsedMeta.iconIdx]) { |
|
|
|
icon.full = ratingIconList[parsedMeta.iconIndex].full |
|
|
|
icon.full = ratingIconList[parsedMeta.iconIdx].full |
|
|
|
icon.empty = ratingIconList[parsedMeta.iconIndex].empty |
|
|
|
icon.empty = ratingIconList[parsedMeta.iconIdx].empty |
|
|
|
} |
|
|
|
} |
|
|
|
return icon |
|
|
|
return icon |
|
|
|
} |
|
|
|
} |
|
|
@ -361,4 +361,5 @@ export { |
|
|
|
checkboxIconList, |
|
|
|
checkboxIconList, |
|
|
|
ratingIconList, |
|
|
|
ratingIconList, |
|
|
|
extractCheckboxIcon, |
|
|
|
extractCheckboxIcon, |
|
|
|
|
|
|
|
extractRatingIcon, |
|
|
|
} |
|
|
|
} |
|
|
|