|
|
@@ -19,25 +19,23 @@ export default () => { |
|
|
|
const colorsRef = useRef(); |
|
|
|
const sizeRef = useRef(); |
|
|
|
|
|
|
|
const items = useMemo(() => { |
|
|
|
return [ |
|
|
|
{ |
|
|
|
key: '1', |
|
|
|
label: '商品分类', |
|
|
|
children: (<Classify ref={classifyRef} />), |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: '2', |
|
|
|
label: '颜色设置', |
|
|
|
children: (<Colors ref={colorsRef} />), |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: '3', |
|
|
|
label: '尺码设置', |
|
|
|
children: (<Size ref={sizeRef} />), |
|
|
|
}, |
|
|
|
]; |
|
|
|
}, []); |
|
|
|
const items = [ |
|
|
|
{ |
|
|
|
key: '1', |
|
|
|
label: '商品分类', |
|
|
|
children: (<Classify ref={classifyRef} />), |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: '2', |
|
|
|
label: '颜色设置', |
|
|
|
children: (<Colors ref={colorsRef} />), |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: '3', |
|
|
|
label: '尺码设置', |
|
|
|
children: (<Size ref={sizeRef} />), |
|
|
|
}, |
|
|
|
]; |
|
|
|
|
|
|
|
const onChange = (key: string) => { |
|
|
|
setCurrentKey(key as TabKey); |
|
|
|