|
|
|
|
@ -629,32 +629,32 @@ const GlobalVarContainer = () => {
|
|
|
|
|
</Space>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={styles['comp-list-handle']}>
|
|
|
|
|
<Radio.Group
|
|
|
|
|
defaultValue={''}
|
|
|
|
|
name="button-radio-group"
|
|
|
|
|
value={componentStatus}
|
|
|
|
|
onChange={handleStatusChange}
|
|
|
|
|
style={{ marginRight: 30 }}
|
|
|
|
|
>
|
|
|
|
|
{[{ label: '全部', value: '' }, ...componentStatusDict].map((item) => {
|
|
|
|
|
return (
|
|
|
|
|
<Radio key={item.value} value={item.value}>
|
|
|
|
|
{({ checked }) => {
|
|
|
|
|
return (
|
|
|
|
|
<Button
|
|
|
|
|
tabIndex={-1}
|
|
|
|
|
key={item.value}
|
|
|
|
|
shape="round"
|
|
|
|
|
type={checked ? 'primary' : 'default'}
|
|
|
|
|
>
|
|
|
|
|
{item.label}
|
|
|
|
|
</Button>
|
|
|
|
|
);
|
|
|
|
|
}}
|
|
|
|
|
</Radio>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</Radio.Group>
|
|
|
|
|
{/*<Radio.Group*/}
|
|
|
|
|
{/* defaultValue={''}*/}
|
|
|
|
|
{/* name="button-radio-group"*/}
|
|
|
|
|
{/* value={componentStatus}*/}
|
|
|
|
|
{/* onChange={handleStatusChange}*/}
|
|
|
|
|
{/* style={{ marginRight: 30 }}*/}
|
|
|
|
|
{/*>*/}
|
|
|
|
|
{/* {[{ label: '全部', value: '' }, ...componentStatusDict].map((item) => {*/}
|
|
|
|
|
{/* return (*/}
|
|
|
|
|
{/* <Radio key={item.value} value={item.value}>*/}
|
|
|
|
|
{/* {({ checked }) => {*/}
|
|
|
|
|
{/* return (*/}
|
|
|
|
|
{/* <Button*/}
|
|
|
|
|
{/* tabIndex={-1}*/}
|
|
|
|
|
{/* key={item.value}*/}
|
|
|
|
|
{/* shape="round"*/}
|
|
|
|
|
{/* type={checked ? 'primary' : 'default'}*/}
|
|
|
|
|
{/* >*/}
|
|
|
|
|
{/* {item.label}*/}
|
|
|
|
|
{/* </Button>*/}
|
|
|
|
|
{/* );*/}
|
|
|
|
|
{/* }}*/}
|
|
|
|
|
{/* </Radio>*/}
|
|
|
|
|
{/* );*/}
|
|
|
|
|
{/* })}*/}
|
|
|
|
|
{/*</Radio.Group>*/}
|
|
|
|
|
{selectedItem === '我的组件' && <Space split={<Divider type="vertical" />}>
|
|
|
|
|
{/*<Button type="secondary" status="success" style={{ borderRadius: 4 }}>生成组件</Button>*/}
|
|
|
|
|
<Button
|
|
|
|
|
@ -671,7 +671,6 @@ const GlobalVarContainer = () => {
|
|
|
|
|
新增组件</Button>
|
|
|
|
|
</Space>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{/*数据列表*/}
|
|
|
|
|
<div className={styles['comp-list-list']}>
|
|
|
|
|
|