#4589·Hippy

[ohos] TextInput keyboardType="numeric" 映射为 InputType.Number,键盘没有小数点,与 Android 端的行为不一致

作者: 17714574361创建于 2026年9月3日更新于 2026年9月3日

Expected results: ohos keyboardType="numeric" should display a numeric keyboard with a decimal point, aligned with the semantics of the Android side (Android: TYPE_CLASS_NUMBER | TYPE_NUMBER_FLAG_DECIMAL | TYPE_NUMBER_FLAG_SIGNED); or at least provide a mapping of a numeric keyboard with a decimal point (ArkUI InputType.NUMBER_DECIMAL), otherwise the amount input cannot be entered with a decimal point on the ohos side.