@nutui/nutui-react 2.6.21 → 2.6.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,11 +13,6 @@ export interface AvatarProps extends BasicComponent {
13
13
  */
14
14
  icon: React.ReactNode
15
15
  /**
16
- * 图片填充模式
17
- * @default -
18
- */
19
- fit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'
20
- /**
21
16
  * 设置头像的形状
22
17
  * @default round
23
18
  */
@@ -33,6 +28,11 @@ export interface AvatarProps extends BasicComponent {
33
28
  */
34
29
  color: string
35
30
  /**
31
+ * 图片填充模式
32
+ * @default -
33
+ */
34
+ fit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'
35
+ /**
36
36
  * 设置图片类型头像的地址
37
37
  * @default -
38
38
  */
@@ -22,10 +22,10 @@ export interface OverlayProps extends BasicComponent {
22
22
  */
23
23
  visible: boolean
24
24
  /**
25
- * 背景是否锁定
25
+ * 背景是否锁定,strict 用于支持 iOS12
26
26
  * @default true
27
27
  */
28
- lockScroll: boolean
28
+ lockScroll: boolean | 'strict'
29
29
  /**
30
30
  * 点击时触发
31
31
  * @default -
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "2.6.21",
3
+ "version": "2.6.22",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",