mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
chore(): enable "prefer-for-of"
This commit is contained in:
@ -493,8 +493,8 @@ export class Datetime {
|
||||
col = pickerColumns[i];
|
||||
columnsWidth.push(0);
|
||||
|
||||
for (let j = 0; j < col.options.length; j++) {
|
||||
width = col.options[j].text!.length;
|
||||
for (const option of col.options) {
|
||||
width = option.text!.length;
|
||||
if (width > columnsWidth[i]) {
|
||||
columnsWidth[i] = width;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user