mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-14 20:18:31 +08:00
fix: 样式 & 文案细节优化
This commit is contained in:
@@ -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\\";"
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -329,6 +329,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
&-dashboard {
|
||||
& > .dcloud-spin-nested-loading > .dcloud-spin-container::after {
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.multi-cluster-list {
|
||||
box-sizing: content-box;
|
||||
|
||||
Reference in New Issue
Block a user