mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-22 21:34:24 +08:00
多选型用 ul
This commit is contained in:
parent
4547d10fbb
commit
c702920754
1 changed files with 7 additions and 1 deletions
|
@ -126,7 +126,13 @@ class PreviewTable extends React.Component {
|
|||
} else if (item.type === 'BOOL') {
|
||||
return $L(item.value === 'T' ? 'True' : 'False')
|
||||
} else if (item.type === 'MULTISELECT') {
|
||||
return (item.value.text || []).join(', ')
|
||||
return (
|
||||
<ul className="m-0 p-0 pl-3">
|
||||
{(item.value.text || []).map((x) => {
|
||||
return <li key={x}>{x}</li>
|
||||
})}
|
||||
</ul>
|
||||
)
|
||||
} else if (item.type === 'PICKLIST' || item.type === 'STATE') {
|
||||
// eslint-disable-next-line no-undef
|
||||
return __findOptionText(item.options, item.value)
|
||||
|
|
Loading…
Reference in a new issue