mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-23 13:59:28 +08:00
fix: 接口预览table 表格样式修改
This commit is contained in:
parent
e87d575f95
commit
6ac040f228
@ -78,6 +78,7 @@ const columns = [
|
||||
title: '其他信息',
|
||||
dataIndex: 'sub',
|
||||
key: 'sub',
|
||||
width: 80,
|
||||
render: text => {
|
||||
return Object.keys(text || []).map((item, index) => {
|
||||
let name = messageMap[item];
|
||||
|
@ -72,6 +72,7 @@ class View extends Component {
|
||||
title: '示例',
|
||||
dataIndex: 'example',
|
||||
key: 'example',
|
||||
width: 80,
|
||||
render(_, item) {
|
||||
return <p style={{ whiteSpace: 'pre-wrap' }}>{item.example}</p>;
|
||||
}
|
||||
@ -171,6 +172,7 @@ class View extends Component {
|
||||
title: '示例',
|
||||
dataIndex: 'example',
|
||||
key: 'example',
|
||||
width: 80,
|
||||
render(_, item) {
|
||||
return <p style={{ whiteSpace: 'pre-wrap' }}>{item.example}</p>;
|
||||
}
|
||||
@ -276,6 +278,7 @@ class View extends Component {
|
||||
title: '示例',
|
||||
dataIndex: 'example',
|
||||
key: 'example',
|
||||
width: 80,
|
||||
render(_, item) {
|
||||
return <p style={{ whiteSpace: 'pre-wrap' }}>{item.example}</p>;
|
||||
}
|
||||
@ -313,6 +316,7 @@ class View extends Component {
|
||||
title: '示例',
|
||||
dataIndex: 'example',
|
||||
key: 'example',
|
||||
width: '80px',
|
||||
render(_, item) {
|
||||
return <p style={{ whiteSpace: 'pre-wrap' }}>{item.example}</p>;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user