feat: 评论接口对接

This commit is contained in:
landaiqing
2024-07-19 18:58:47 +08:00
parent 359ef60128
commit 6e8b2ae643
38 changed files with 5184 additions and 2096 deletions

View File

@@ -27,10 +27,13 @@ export default () => {
onSelect={(value: any) => {
navigate("/main/setting/" + value);
}}
placeholder={"请选择存储商"}>
{selectOptions.map((storage: any, index: any) => {
fieldNames={{
label: "name",
value: "value",
}}
labelRender={(label: any) => {
return (
<Select.Option value={storage.value} key={index}>
<>
<Card
bordered={false}
style={{
@@ -40,19 +43,44 @@ export default () => {
flexDirection: "row",
}}
size={"small"}>
<Avatar src={StorageIcon[storage.value]} size={"small"} />{" "}
<Avatar src={StorageIcon[label.value]} size={"small"} />
<span
style={{
marginLeft: "10px",
fontWeight: "bolder",
}}>
{storage.name}
{label.label}
</span>
</Card>
</Select.Option>
</>
);
})}
</Select>
}}
options={selectOptions}
optionRender={(item: any) => {
return (
<>
<Card
bordered={false}
style={{
height: 35,
display: "flex",
alignItems: "center",
flexDirection: "row",
}}
size={"small"}>
<Avatar src={StorageIcon[item.value]} size={"small"} />
<span
style={{
marginLeft: "10px",
fontWeight: "bolder",
}}>
{item.label}
</span>
</Card>
</>
);
}}
placeholder={"请选择存储商"}></Select>
</div>
</ProCard>
<ProCard style={{ marginTop: 20, height: "100%" }} bordered boxShadow>