diff --git a/docs/guide-zh-CN.md b/docs/guide-zh-CN.md index 0fb1017..7656c37 100644 --- a/docs/guide-zh-CN.md +++ b/docs/guide-zh-CN.md @@ -81,7 +81,10 @@ sweetProperty { isEnableExcludeNonStringValue = true // 是否启用类型自动转换功能 // 默认启用,启用后将自动识别属性键值中的类型并转换为对应的类型 - // 例如 "name=hello" 和 "number=1" 它们将会被自动转换为 String 和 Int + // 在启用后如果你想要强制设置一个键值内容为字符串类型,你可以使用单引号或双引号包裹整个字符串 + // 注意:在关闭此功能后如上所述的功能也将同时失效 + // 例如 name=hello 和 number=1 它们将会被自动转换为 String 和 Int + // 例如 stringNumber="1" 或 stringNumber='1' 它们将会被强制转换为 String isEnableTypeAutoConversion = true // 是否启用键值内容插值功能 // 默认启用,启用后将自动识别属性键值内容中的 ${...} 内容并进行替换 diff --git a/docs/guide.md b/docs/guide.md index 646e688..d19d2c5 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -85,7 +85,11 @@ sweetProperty { // Whether to enable the type automatic conversion function // Enabled by default, when enabled, // the type in the properties key-values will be automatically recognized and converted to the corresponding type - // For example "name=hello" and "number=1" they will be automatically converted to String and Int + // After enabling, if you want to force the content of a value to be a string type, + // you can use single quotes or double quotes to wrap the entire string + // Note: After turning off this function, the functions mentioned above will also become invalid at the same time + // For example name=hello and number=1 they will be automatically converted to String and Int + // For example stringNumber="1" or stringNumber='1' they will be coerced to String isEnableTypeAutoConversion = true // Whether to enable key-values content interpolation // Enabled by default, after enabling, the ${...} content in the properties key-values content