primeng editable table, issue pEditable专栏

primeng editable table, issue pEditableColumn

stackblitz

输出名称不包含 space(" "),即使我在它前面放了 space。

不是Angular,而是it's behavior of the HTML specification:

In particular, user agents should collapse input white space sequences when producing output inter-word space.

如果要在输出中保留空格,可以使用 <pre> 标签:

<ng-template pTemplate="output">
    <pre>{{rowData.name}}</pre>
</ng-template>

您可以在此处阅读有关 pre 标签的更多信息 at w3.org docs