We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fb5d9b commit 6f295faCopy full SHA for 6f295fa
seatunnel-engine/seatunnel-engine-ui/src/components/configuration/index.tsx
@@ -9,11 +9,18 @@ export default defineComponent({
9
}
10
},
11
setup(props) {
12
+ const format = (value: any) => {
13
+ value = JSON.stringify(value)
14
+ if (value) {
15
+ value = value.replace(/^\"(.*)\"$/, '$1')
16
+ }
17
+ return value || ''
18
19
return () => (
20
<NDescriptions label-placement="left" bordered column={1}>
21
{props.data &&
22
Object.entries(props.data).map(([key, value]) => (
- <NDescriptionsItem label={key}>{JSON.stringify(value)}</NDescriptionsItem>
23
+ <NDescriptionsItem label={key}>{format(value)}</NDescriptionsItem>
24
))}
25
</NDescriptions>
26
)
0 commit comments