update 缺陷分类

This commit is contained in:
lb
2023-12-14 11:06:19 +08:00
parent ac711e6f2a
commit 68065b612a
3 changed files with 191 additions and 177 deletions

View File

@@ -38,6 +38,7 @@ function GraphBase(props) {
onSwitch,
dateOptions,
onDateChange,
defaultSelect,
legend,
} = props;
const iconSrc = useIcon(icon);
@@ -55,6 +56,7 @@ function GraphBase(props) {
});
}
if (dateOptions) {
console.log('[Graph Base] ', dateOptions, defaultSelect)
dto = dateOptions.map((item) => (
<Radio.Button value={item} key={item} className="radio-group__item">
{item}
@@ -107,7 +109,7 @@ function GraphBase(props) {
)}
{dateOptions && (
<Radio.Group
defaultValue={dateOptions[0]}
defaultValue={defaultSelect || dateOptions[0]}
buttonStyle="solid"
className={cls.graphBaseDate + ' ' + cls.radioGroup}
onChange={({ target }) => onDateChange(target.value)}