密码框

$form->field($model, 'password')->passwordInput(['maxlength' => 20])

在模板中解析后的input变成

<input type="password" name="password" maxlength =20 />