update 缺陷分类
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user