Commit 9ebc7e3d authored by Tt's avatar Tt

增加限制单字母输入

parent c523bfdc
......@@ -222,7 +222,7 @@
<label nz-checkbox [(ngModel)]="option.right"
[style]="{color: option.right ?'#fff':'#000'}">正确答案</label>
</div> -->
字母:<input type="text" [(ngModel)]="letterList.text" (ngModelChange)="save()">
字母:<input type="text" maxlength="1" [(ngModel)]="letterList.text" (ngModelChange)="save()">
</div>
<div class="letterList-btns">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment