Kaynağa Gözat

[doc]Update FAQ

dufu1991 2 yıl önce
ebeveyn
işleme
1b3f85fb25

+ 1 - 1
doc/components/actionSheet/guide.md

@@ -8,7 +8,7 @@ ActionSheet 动作面板是在 Popup 基础上封装的,通过预先定义一
 
 ## actions
 
-ActionSheet 的 actions 属性是一个数组,数组中的每一项都是一个对象,对象中的属性参考 Actions Props。
+ActionSheet 的 actions 属性是一个数组,数组中的每一项都是一个对象,对象属性参考 Actions Props。
 
 ## ActionSheet、Picker、Radio
 

+ 1 - 1
doc/guide/faq.md

@@ -4,4 +4,4 @@
 
 ## 问:部分组件的 Props 需要传入 String 类型,但传入 Number 类型也完全正常使用?
 
-答:由于组件内部这些 Props 作为 Object 的 key,严格来说应该传入 String 类型,若传入数字也会被转为 String,所以传入 Number 或者 String 类型都是可以的,根据个人习惯选择即可。
+答:由于组件内部这些 Props 作为 Object 的 key,严格来说应该传入 String 类型,若传入数字也会被转为 String,所以传入 Number 或者 String 类型都是可以的,根据个人习惯选择即可。需要注意的是,未来会使用 JSDoc 对组件的 Props 增加类型声明,虽然可以正常使用,但还是建议传入规定的类型。

+ 1 - 1
doc/guide/faq_en.md

@@ -4,4 +4,4 @@ A: Using CSS Flexbox directly can easily and quickly achieve rasterization layou
 
 ## Q: Some components require props to be of type string, but passing number types is completely normal?
 
-A: Because these props are used as keys in the object within the component, strictly speaking, they should be of type string. If you pass a number, it will be converted to string, so passing a number or string type is possible. Choose according to personal preference.
+A: Because these props are used as keys in the object within the component, strictly speaking, they should be of type string. If you pass a number, it will be converted to string, so passing a number or string type is possible. Choose according to personal preference. It should be noted that in the future, JSDoc will be used to add type declarations to the props of the component. Although it can be used normally, it is still recommended to pass the specified type.