fix: 样式 & 文案细节优化

This commit is contained in:
GraceWalk
2022-09-01 19:51:27 +08:00
parent af2b93983f
commit d5667254f2
5 changed files with 23 additions and 13 deletions

View File

@@ -1,5 +1,3 @@
/* eslint-disable react/display-name */
import { Button, Divider, Drawer, Form, Input, InputNumber, message, Radio, Select, Spin, Space, Utils } from 'knowdesign';
import * as React from 'react';
import { useIntl } from 'react-intl';
@@ -16,10 +14,9 @@ const clientPropertiesPlaceholder = `用于创建Kafka客户端进行信息获
{
"security.protocol": "SASL_PLAINTEXT",
"sasl.mechanism": "SCRAM-SHA-256",
"sasl.jaas.config":
"org.apache.kafka.common.security.scram.
ScramLoginModule required username="xxxxxx"
password="xxxxxx";"
"sasl.jaas.config": "org.apache.kafka.common.security.
scram.ScramLoginModule required username=\\"xxxxxx\\" pass
word=\\"xxxxxx\\";"
}
`;

View File

@@ -93,7 +93,10 @@ const MultiClusterPage = () => {
setVersionLoading(true);
Utils.request(API.getClustersVersion)
.then((versions: string[]) => {
setExistKafkaVersion(versions || []);
if (!Array.isArray(versions)) {
versions = [];
}
setExistKafkaVersion(versions.sort().reverse() || []);
setVersionLoading(false);
setCheckedKafkaVersions(versions || []);
})
@@ -299,7 +302,9 @@ const MultiClusterPage = () => {
<div className="test-modal-23"></div>
</div>
</div>
<Spin spinning={clusterLoading}>{renderList}</Spin>
<div className="multi-cluster-page-dashboard">
<Spin spinning={clusterLoading}>{renderList}</Spin>
</div>
</div>
);
};

View File

@@ -329,6 +329,11 @@
}
}
}
&-dashboard {
& > .dcloud-spin-nested-loading > .dcloud-spin-container::after {
background: transparent;
}
}
.multi-cluster-list {
box-sizing: content-box;