p 日历只读在 primeng 中不起作用

p calendar readonly not working in primeng

Use [readonlyInput]="true" instead of readonly="true"

注意 - 指定时只读输入,防止使用键盘手动输入日期。默认值为 null

参考 - https://www.primefaces.org/primeng/showcase/#/calendar