1金币
Input-number 在wijmo 快速编辑模式中输入,光标位置会在数字前
例如 12,光标在2前,导致输入的数字变21
代码如下
<wj-flex-grid-column [header]="'Use Quantity'" [isReadOnly]="IsReadOnly" [allowSorting]="false"
[binding]="'UseQuantity'" [align]="'center'">
<ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell">
<span>
{{ cell.item.UseQuantity | number: '1.' + cell.item.DecimalPlaces + '-' + cell.item.DecimalPlaces }}
</span>
</ng-template>
<ng-template wjFlexGridCellTemplate [cellType]="'CellEdit'" let-cell="cell">
<wj-input-number class="cell-editor" style="text-align: center;" [format]="'n0'+cell.item.DecimalPlaces" [(value)]="cell.value" >
</wj-input-number>
</ng-template>
</wj-flex-grid-column>
|
|