From a1aa86c7c340cc6cd759505924e62485071aea56 Mon Sep 17 00:00:00 2001 From: songzhf Date: Mon, 8 Dec 2025 10:36:06 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:#IDBBH2]auto-fill=E6=8C=87?= =?UTF-8?q?=E5=AF=BC=E6=96=87=E6=A1=A3=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: songzhf --- en/react-native-ohos-community-auto-fill.md | 12 +++++++++++- zh-cn/react-native-ohos-community-auto-fill.md | 12 ++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/en/react-native-ohos-community-auto-fill.md b/en/react-native-ohos-community-auto-fill.md index 9c79297e7..3a4d0c985 100644 --- a/en/react-native-ohos-community-auto-fill.md +++ b/en/react-native-ohos-community-auto-fill.md @@ -297,4 +297,14 @@ auto-fill exposes only the **autoSave** API, which is used to save the current f ## License -This project is licensed under [Apache License 2.0](https://github.com/react-native-oh-library/auto-fill/blob/sig/LICENSE). \ No newline at end of file +This project is licensed under [Apache License 2.0](https://github.com/react-native-oh-library/auto-fill/blob/sig/LICENSE). + +## Legacy issue +The following three attributes can save information to Phone Settings - Privacy & Security - Smart Fill - History Forms, but they cannot automatically fill into text input controls. Currently, this issue also exists in the native functionality of HarmonyOS. +```js +{ + "addressCity": CITY_ADDRESS, // City + "addressState": PROVINCE_ADDRESS, // Province + "countryName": COUNTRY_ADDRESS, // Country +} +``` \ No newline at end of file diff --git a/zh-cn/react-native-ohos-community-auto-fill.md b/zh-cn/react-native-ohos-community-auto-fill.md index 84052afee..0c25bb6a0 100644 --- a/zh-cn/react-native-ohos-community-auto-fill.md +++ b/zh-cn/react-native-ohos-community-auto-fill.md @@ -291,3 +291,15 @@ auto-fill 仅暴露一个 autoSave 接口,用于保存当前表单信息 ## 开源协议 本项目基于 [Apache License 2.0](https://github.com/react-native-oh-library/auto-fill/blob/sig/LICENSE) ,请自由地享受和参与开源。 + +## 遗留问题 +以下三个属性可以将信息保存到手机设置-隐私安全-智能填充-历史表单中,但是无法自动填充到textinput控件中,目前在HarmonyOS原生功能也有这个问题 +```js +// key 值为 RN 侧 textContentType 值, +// value 值为 HarmonyOS 侧 ContentType 值 +{ + "addressCity": CITY_ADDRESS, // 市 + "addressState": PROVINCE_ADDRESS, // 省 + "countryName": COUNTRY_ADDRESS, // 国家 +} +``` \ No newline at end of file -- Gitee