fix: 默认word-break: break-word;会导致json预览样式异常
This commit is contained in:
parent
4df62b563e
commit
827ef2e403
@ -157,12 +157,15 @@ export const descSchema: DescItem[] = [
|
||||
field: 'method',
|
||||
label: '方法',
|
||||
},
|
||||
/**
|
||||
* 默认word-break: break-word;会导致json预览样式异常
|
||||
*/
|
||||
{
|
||||
field: 'operParam',
|
||||
label: '请求参数',
|
||||
render(value) {
|
||||
return (
|
||||
<div class="max-h-[300px] overflow-y-auto">
|
||||
<div class="max-h-[300px] overflow-y-auto break-normal">
|
||||
{renderJsonPreview(value)}
|
||||
</div>
|
||||
);
|
||||
@ -173,7 +176,7 @@ export const descSchema: DescItem[] = [
|
||||
label: '响应参数',
|
||||
render(value) {
|
||||
return (
|
||||
<div class="max-h-[300px] overflow-y-auto">
|
||||
<div class="max-h-[300px] overflow-y-auto break-normal">
|
||||
{renderJsonPreview(value)}
|
||||
</div>
|
||||
);
|
||||
|
@ -30,9 +30,3 @@ function handleOpenChange(open: boolean) {
|
||||
<Description @register="registerDescription" />
|
||||
</BasicDrawer>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.ant-descriptions :deep(.ant-descriptions-item-content) {
|
||||
word-break: normal;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user