feat(platform-web): add source quick actions
This commit is contained in:
@@ -245,15 +245,35 @@ export function VehicleDetail({
|
||||
))}
|
||||
</Space>
|
||||
<div className="vp-source-card-actions">
|
||||
<Button
|
||||
size="small"
|
||||
theme={activeProtocol === source.protocol ? 'solid' : 'light'}
|
||||
type={activeProtocol === source.protocol ? 'primary' : 'tertiary'}
|
||||
disabled={activeProtocol === source.protocol}
|
||||
onClick={() => switchSource(source.protocol)}
|
||||
>
|
||||
仅看 {source.protocol}
|
||||
</Button>
|
||||
<Space spacing={6} wrap>
|
||||
<Button
|
||||
size="small"
|
||||
theme={activeProtocol === source.protocol ? 'solid' : 'light'}
|
||||
type={activeProtocol === source.protocol ? 'primary' : 'tertiary'}
|
||||
disabled={activeProtocol === source.protocol}
|
||||
onClick={() => switchSource(source.protocol)}
|
||||
>
|
||||
仅看 {source.protocol}
|
||||
</Button>
|
||||
<Button
|
||||
size="small"
|
||||
theme="light"
|
||||
type="tertiary"
|
||||
disabled={!source.hasHistory}
|
||||
onClick={() => onOpenHistory(resolvedVIN, source.protocol)}
|
||||
>
|
||||
查看 {source.protocol} 历史
|
||||
</Button>
|
||||
<Button
|
||||
size="small"
|
||||
theme="light"
|
||||
type="tertiary"
|
||||
disabled={!source.hasMileage}
|
||||
onClick={() => onOpenMileage(resolvedVIN, source.protocol)}
|
||||
>
|
||||
查看 {source.protocol} 里程
|
||||
</Button>
|
||||
</Space>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user