@nutui/nutui-react 2.6.20 → 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 -
@@ -47,8 +47,8 @@ export interface RateProps extends BasicComponent {
47
47
  */
48
48
  allowHalf: boolean
49
49
  /**
50
- * 是否允许滑动选择 | boolean
51
- * @default
50
+ * 是否允许滑动选择
51
+ * @default false
52
52
  */
53
53
  touchable: boolean
54
54
  /**
@@ -44,6 +44,11 @@ export interface UploaderProps extends BasicComponent {
44
44
  */
45
45
  uploadIcon?: React.ReactNode
46
46
  /**
47
+ * 删除区域的图标名称
48
+ * @default -
49
+ */
50
+ deleteIcon?: React.ReactNode
51
+ /**
47
52
  * 上传区域图片下方文字
48
53
  * @default -
49
54
  */
@@ -34,6 +34,7 @@ export interface UploaderProps extends BasicComponent {
34
34
  previewType: 'picture' | 'list';
35
35
  fit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
36
36
  uploadIcon?: React.ReactNode;
37
+ deleteIcon?: React.ReactNode;
37
38
  uploadLabel?: React.ReactNode;
38
39
  name: string;
39
40
  accept: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "2.6.20",
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",