@xhsreds/reds-rn-next 0.10.1-beta202512111732 → 0.10.1-beta202512111822

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.
Files changed (76) hide show
  1. package/coverage/.tmp/coverage-0.json +1 -1
  2. package/coverage/.tmp/coverage-10.json +1 -1
  3. package/coverage/.tmp/coverage-11.json +1 -1
  4. package/coverage/.tmp/coverage-12.json +1 -1
  5. package/coverage/.tmp/coverage-13.json +1 -1
  6. package/coverage/.tmp/coverage-14.json +1 -1
  7. package/coverage/.tmp/coverage-15.json +1 -1
  8. package/coverage/.tmp/coverage-16.json +1 -1
  9. package/coverage/.tmp/coverage-17.json +1 -1
  10. package/coverage/.tmp/coverage-18.json +1 -1
  11. package/coverage/.tmp/coverage-19.json +1 -1
  12. package/coverage/.tmp/coverage-2.json +1 -1
  13. package/coverage/.tmp/coverage-20.json +1 -1
  14. package/coverage/.tmp/coverage-21.json +1 -1
  15. package/coverage/.tmp/coverage-22.json +1 -1
  16. package/coverage/.tmp/coverage-23.json +1 -1
  17. package/coverage/.tmp/coverage-24.json +1 -1
  18. package/coverage/.tmp/coverage-25.json +1 -1
  19. package/coverage/.tmp/coverage-27.json +1 -1
  20. package/coverage/.tmp/coverage-29.json +1 -1
  21. package/coverage/.tmp/coverage-3.json +1 -1
  22. package/coverage/.tmp/coverage-30.json +1 -1
  23. package/coverage/.tmp/coverage-31.json +1 -1
  24. package/coverage/.tmp/coverage-32.json +1 -1
  25. package/coverage/.tmp/coverage-33.json +1 -1
  26. package/coverage/.tmp/coverage-34.json +1 -1
  27. package/coverage/.tmp/coverage-35.json +1 -1
  28. package/coverage/.tmp/coverage-36.json +1 -1
  29. package/coverage/.tmp/coverage-38.json +1 -1
  30. package/coverage/.tmp/coverage-4.json +1 -1
  31. package/coverage/.tmp/coverage-5.json +1 -1
  32. package/coverage/.tmp/coverage-6.json +1 -1
  33. package/coverage/.tmp/coverage-7.json +1 -1
  34. package/coverage/.tmp/coverage-8.json +1 -1
  35. package/coverage/.tmp/coverage-9.json +1 -1
  36. package/lib/cjs/i18n/index.js +33 -33
  37. package/lib/esm/i18n/index.js +33 -33
  38. package/package.json +2 -2
  39. package/src/components/ActionSheets/doc/index.mdx +4 -4
  40. package/src/components/ActionablePopover/doc/index.mdx +5 -5
  41. package/src/components/Alert/doc/index.mdx +7 -7
  42. package/src/components/Button/doc/index.mdx +4 -4
  43. package/src/components/Carousel/doc/index.mdx +4 -4
  44. package/src/components/CheckBoxGroup/doc/index.mdx +3 -3
  45. package/src/components/Collapse/doc/index.mdx +3 -3
  46. package/src/components/DatePicker/doc/index.mdx +21 -21
  47. package/src/components/DropDown/doc/index.mdx +6 -6
  48. package/src/components/Empty/doc/index.mdx +3 -3
  49. package/src/components/FAB/doc/index.mdx +3 -3
  50. package/src/components/Form/doc/index.mdx +4 -4
  51. package/src/components/Icon/doc/index.mdx +3 -3
  52. package/src/components/Image/doc/index.mdx +4 -4
  53. package/src/components/MiniSnackBar/doc/index.mdx +3 -3
  54. package/src/components/NoticeBar/doc/index.mdx +4 -4
  55. package/src/components/Picker/doc/index.mdx +5 -5
  56. package/src/components/PickerView/doc/index.mdx +3 -3
  57. package/src/components/Popover/doc/index.mdx +5 -5
  58. package/src/components/ProgressIndicator/doc/index.mdx +11 -11
  59. package/src/components/PullRefresh/doc/index.mdx +3 -3
  60. package/src/components/Radio/doc/index.mdx +3 -3
  61. package/src/components/Rate/doc/index.mdx +3 -3
  62. package/src/components/Search/doc/index.mdx +17 -17
  63. package/src/components/SegmentedControl/doc/index.mdx +3 -3
  64. package/src/components/Sheets/doc/index.mdx +35 -43
  65. package/src/components/Slider/doc/index.mdx +6 -6
  66. package/src/components/Stepper/doc/index.mdx +3 -3
  67. package/src/components/Switch/doc/index.mdx +4 -4
  68. package/src/components/Tab/doc/index.mdx +3 -3
  69. package/src/components/TabBar/doc/index.mdx +3 -3
  70. package/src/components/Tag/doc/index.mdx +4 -4
  71. package/src/components/Text/doc/index.mdx +4 -4
  72. package/src/components/TextField/doc/index.mdx +32 -32
  73. package/src/components/TextView/doc/index.mdx +5 -5
  74. package/src/components/Toast/doc/index.mdx +6 -6
  75. package/src/components/Uploader/doc/index.mdx +26 -26
  76. package/src/components/Video/doc/index.mdx +4 -4
@@ -28,6 +28,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
28
28
 
29
29
  ### Events
30
30
 
31
- | 事件 | 描述 | 类型 | 默认值 |
32
- | -------- | ------------------ | ----------------------- | ------ |
33
- | onChange | 当值发生变化时触发 | (value: number) => void | |
31
+ | 事件 | 描述 | 类型 | 默认值 |
32
+ | -------- | ------------------ | -------------------------- | ------ |
33
+ | onChange | 当值发生变化时触发 | (value: number) => void | |
@@ -19,7 +19,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
19
19
  | disabled | 是否禁用输入框 | boolean | |
20
20
  | readonly | 是否为只读状态,只读状态下无法输入内容 | boolean | |
21
21
  | clearable | 是否启用清除图标,点击清除图标后会清空输入框 | boolean | true |
22
- | formatter | 输入内容格式化函数 | (val: string) => string | |
22
+ | formatter | 输入内容格式化函数 | (val: string) => string | |
23
23
  | formatterTrigger | 格式化函数触发的时机 | TextFieldFormatTriggerType | onChange |
24
24
  | inputAlign | 输入框对齐方式 | "left" | "right" | |
25
25
  | autocomplete | 对齐方式 | string | |
@@ -37,19 +37,19 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
37
37
 
38
38
  ### Events
39
39
 
40
- | 事件 | 描述 | 类型 | 默认值 |
41
- | ---------------------- | ---------------------------------- | -------------------------- | -------- |
42
- | onSearch | 键盘的搜索事件 | (val: Event) => void | |
43
- | onInput | 输入框输入时触发 | (value: string) => any | |
44
- | onChange | 当modelValue发生变化时触发 | (e: any) => void | |
45
- | onFocus | 输入框获得焦点时触发 | (event: FocusEvent) => any | |
46
- | onBlur | 输入框失去焦点时触发 | (event: FocusEvent) => any | |
47
- | onClear | 点击清除按钮时触发 | () => any | |
48
- | onCameraIconClick | 相机图标 | () => any | |
49
- | onSearchIconClick | 搜索图标 | () => any | |
50
- | onLeftBackIconClick | 左箭头返回 | () => any | |
51
- | onButtonClick | 文字按钮 | (value: string) => any | |
52
- | onCancelClick | 取消按钮 | () => any | |
53
- | onSearchClick | 搜索按钮 | (value: string) => any | |
54
- | onAdditionalIconsClick | 额外图标区域 | () => any | |
55
- | onButtonTextClick | 自定义操作文案buttonText的点击事件 | (value: string) => any | () => {} |
40
+ | 事件 | 描述 | 类型 | 默认值 |
41
+ | ---------------------- | ---------------------------------- | ----------------------------- | ----------- |
42
+ | onSearch | 键盘的搜索事件 | (val: Event) => void | |
43
+ | onInput | 输入框输入时触发 | (value: string) => any | |
44
+ | onChange | 当modelValue发生变化时触发 | (e: any) => void | |
45
+ | onFocus | 输入框获得焦点时触发 | (event: FocusEvent) => any | |
46
+ | onBlur | 输入框失去焦点时触发 | (event: FocusEvent) => any | |
47
+ | onClear | 点击清除按钮时触发 | () => any | |
48
+ | onCameraIconClick | 相机图标 | () => any | |
49
+ | onSearchIconClick | 搜索图标 | () => any | |
50
+ | onLeftBackIconClick | 左箭头返回 | () => any | |
51
+ | onButtonClick | 文字按钮 | (value: string) => any | |
52
+ | onCancelClick | 取消按钮 | () => any | |
53
+ | onSearchClick | 搜索按钮 | (value: string) => any | |
54
+ | onAdditionalIconsClick | 额外图标区域 | () => any | |
55
+ | onButtonTextClick | 自定义操作文案buttonText的点击事件 | (value: string) => any | () => {} |
@@ -18,6 +18,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
18
18
 
19
19
  ### Events
20
20
 
21
- | 事件 | 描述 | 类型 | 默认值 |
22
- | -------- | ------------------ | ------------------------------------- | ------ |
23
- | onChange | 当值发生变化时触发 | (value: string | number) => void | |
21
+ | 事件 | 描述 | 类型 | 默认值 |
22
+ | -------- | ------------------ | ---------------------------------------- | ------ |
23
+ | onChange | 当值发生变化时触发 | (value: string | number) => void | |
@@ -10,49 +10,41 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
10
10
 
11
11
  ### Props
12
12
 
13
- | 属性 | 描述 | 类型 | 默认值 |
14
- | ------------------ | ---------------------------------- | ---------------------- | ----------------------- |
15
- | label | 标题 | string | |
16
- | mask | 是否展示遮罩层 | boolean | true |
17
- | maskMode | 背景颜色类型 | SheetsMaskMode | SheetsMaskMode.light |
18
- | sheetsType | sheets类型 | SheetsType | SheetsType.normal |
19
- | cancel | 返回按钮 | boolean | true |
20
- | close | 关闭按钮 | boolean | true |
21
- | zIndex | 容器层级 | number | 0 |
22
- | cancelType | 返回按钮类型 | SheetsActionType | SheetsActionType.icon |
23
- | closeType | 确定按钮类型 | SheetsActionType | SheetsActionType.icon |
24
- | cancelText | 取消操作文案 | string | |
25
- | closeText | 确定操作文案 | string | |
26
- | iconType | icon 类型 | SheetsIconType | SheetsIconType.normal |
27
- | size | size | SheetsSize | SheetsSize.auto |
28
- | children | sheets内容 | ReactNode | |
29
- | maskStyle | mask style | ViewStyle | `{}` |
30
- | sheetsStyle | sheets style | ViewStyle | `{}` |
31
- | headerStyle | header样式 | ViewStyle | `{}` |
32
- | autoSize | 高度 | number | |
33
- | header | 自定义header | ReactNode | |
34
- | animatedSheetsSize | AnimatedSheets是否是固定高度 | AnimatedSheetsSize | AnimatedSheetsSize.auto |
35
- | isMaskClose | 点击弹层回调 | boolean | true |
36
- | visible | 是否展示sheets | boolean | false |
37
- | onImmediateCancel | 点击关闭弹窗立即执行 | () => void | () => {} |
38
- | onImmediateConfirm | 点击确定弹窗立即执行 | () => void | () => {} |
39
- | avoidSheetsMove | 安卓上是否阻止键盘弹出弹窗位置上移 | boolean | false |
40
- | headlerLayout | headlerLayout | "center" | "left" | center |
41
- | openAnimation | openAnimation | { |
42
-
43
- duration?: number;
44
- easing?: (value: number) => number;
45
-
46
- } | `{}` |
47
- | closeAnimation | closeAnimation | {
48
- duration?: number;
49
- easing?: (value: number) => number;
50
- } | `{}` |
13
+ | 属性 | 描述 | 类型 | 默认值 |
14
+ | ------------------ | ---------------------------------- | ------------------------------------------------------------------------- | ----------------------- |
15
+ | label | 标题 | string | |
16
+ | mask | 是否展示遮罩层 | boolean | true |
17
+ | maskMode | 背景颜色类型 | SheetsMaskMode | SheetsMaskMode.light |
18
+ | sheetsType | sheets类型 | SheetsType | SheetsType.normal |
19
+ | cancel | 返回按钮 | boolean | true |
20
+ | close | 关闭按钮 | boolean | true |
21
+ | zIndex | 容器层级 | number | 0 |
22
+ | cancelType | 返回按钮类型 | SheetsActionType | SheetsActionType.icon |
23
+ | closeType | 确定按钮类型 | SheetsActionType | SheetsActionType.icon |
24
+ | cancelText | 取消操作文案 | string | |
25
+ | closeText | 确定操作文案 | string | |
26
+ | iconType | icon 类型 | SheetsIconType | SheetsIconType.normal |
27
+ | size | size | SheetsSize | SheetsSize.auto |
28
+ | children | sheets内容 | ReactNode | |
29
+ | maskStyle | mask style | ViewStyle | `{}` |
30
+ | sheetsStyle | sheets style | ViewStyle | `{}` |
31
+ | headerStyle | header样式 | ViewStyle | `{}` |
32
+ | autoSize | 高度 | number | |
33
+ | header | 自定义header | ReactNode | |
34
+ | animatedSheetsSize | AnimatedSheets是否是固定高度 | AnimatedSheetsSize | AnimatedSheetsSize.auto |
35
+ | isMaskClose | 点击弹层回调 | boolean | true |
36
+ | visible | 是否展示sheets | boolean | false |
37
+ | onImmediateCancel | 点击关闭弹窗立即执行 | () => void | () => {} |
38
+ | onImmediateConfirm | 点击确定弹窗立即执行 | () => void | () => {} |
39
+ | avoidSheetsMove | 安卓上是否阻止键盘弹出弹窗位置上移 | boolean | false |
40
+ | headlerLayout | headlerLayout | "center" | "left" | center |
41
+ | openAnimation | openAnimation | `{ duration?: number; easing?: (value: number) => number; }` | `{}` |
42
+ | closeAnimation | closeAnimation | `{ duration?: number; easing?: (value: number) => number; }` | `{}` |
51
43
 
52
44
  ### Events
53
45
 
54
- | 事件 | 描述 | 类型 | 默认值 |
55
- | ------------- | ---------------- | --------- | -------- |
56
- | onCancel | 取消事件 | () => any | () => {} |
57
- | onConfirm | 确定事件 | () => any | () => {} |
58
- | onAnimatedOut | 弹窗动画结束特效 | () => any | () => {} |
46
+ | 事件 | 描述 | 类型 | 默认值 |
47
+ | ------------- | ---------------- | ------------ | ----------- |
48
+ | onCancel | 取消事件 | () => any | () => {} |
49
+ | onConfirm | 确定事件 | () => any | () => {} |
50
+ | onAnimatedOut | 弹窗动画结束特效 | () => any | () => {} |
@@ -29,9 +29,9 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
29
29
 
30
30
  ### Events
31
31
 
32
- | 事件 | 描述 | 类型 | 默认值 |
33
- | ------------- | ------------------ | ---------------------- | ------ |
34
- | onValueChange | 当值发生变化时触发 | (value: number) => any | |
35
- | onDrag | 拖拽时触发 | (value: Event) => any | |
36
- | onDragStart | 拖拽开始触发 | (value: Event) => any | |
37
- | onDragEnd | 拖拽完成触发 | (value: Event) => any | |
32
+ | 事件 | 描述 | 类型 | 默认值 |
33
+ | ------------- | ------------------ | ------------------------- | ------ |
34
+ | onValueChange | 当值发生变化时触发 | (value: number) => any | |
35
+ | onDrag | 拖拽时触发 | (value: Event) => any | |
36
+ | onDragStart | 拖拽开始触发 | (value: Event) => any | |
37
+ | onDragEnd | 拖拽完成触发 | (value: Event) => any | |
@@ -21,6 +21,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
21
21
 
22
22
  ### Events
23
23
 
24
- | 事件 | 描述 | 类型 | 默认值 |
25
- | -------- | ------------------ | ---------------------- | ------ |
26
- | onChange | 当值发生变化时触发 | (value: number) => any | |
24
+ | 事件 | 描述 | 类型 | 默认值 |
25
+ | -------- | ------------------ | ------------------------- | ------ |
26
+ | onChange | 当值发生变化时触发 | (value: number) => any | |
@@ -25,7 +25,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
25
25
 
26
26
  ### Events
27
27
 
28
- | 事件 | 描述 | 类型 | 默认值 |
29
- | -------- | ------------------ | ------------------------------------- | ------ |
30
- | onChange | 当值发生变化时触发 | (value: boolean) => any | |
31
- | onClick | 被点击时触发 | (value: GestureResponderEvent) => any | |
28
+ | 事件 | 描述 | 类型 | 默认值 |
29
+ | -------- | ------------------ | ---------------------------------------- | ------ |
30
+ | onChange | 当值发生变化时触发 | (value: boolean) => any | |
31
+ | onClick | 被点击时触发 | (value: GestureResponderEvent) => any | |
@@ -29,6 +29,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
29
29
 
30
30
  ### Events
31
31
 
32
- | 事件 | 描述 | 类型 | 默认值 |
33
- | -------- | ------- | ------------------------------------- | ------ |
34
- | onChange | 点击tab | (value: string, index: number) => any | |
32
+ | 事件 | 描述 | 类型 | 默认值 |
33
+ | -------- | ------- | ---------------------------------------- | ------ |
34
+ | onChange | 点击tab | (value: string, index: number) => any | |
@@ -24,6 +24,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
24
24
 
25
25
  ### Events
26
26
 
27
- | 事件 | 描述 | 类型 | 默认值 |
28
- | -------- | ------------ | ---------------------- | ------ |
29
- | onChange | 被点击时触发 | (value: string) => any | |
27
+ | 事件 | 描述 | 类型 | 默认值 |
28
+ | -------- | ------------ | ------------------------- | ------ |
29
+ | onChange | 被点击时触发 | (value: string) => any | |
@@ -29,7 +29,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
29
29
 
30
30
  ### Events
31
31
 
32
- | 事件 | 描述 | 类型 | 默认值 |
33
- | ------- | ------------ | ------------------------------------- | ------ |
34
- | onClose | 点击时触发 | (value?: any) => any | |
35
- | onClick | 被点击时触发 | (value: GestureResponderEvent) => any | |
32
+ | 事件 | 描述 | 类型 | 默认值 |
33
+ | ------- | ------------ | ---------------------------------------- | ------ |
34
+ | onClose | 点击时触发 | (value?: any) => any | |
35
+ | onClick | 被点击时触发 | (value: GestureResponderEvent) => any | |
@@ -70,7 +70,7 @@ import TextFontFamily from "!!raw-loader!../demo/TextFontFamily.tsx";
70
70
 
71
71
  ### Events
72
72
 
73
- | 事件 | 描述 | 类型 | 默认值 |
74
- | ------------------- | ------------------ | ----------------------- | -------- |
75
- | onClick | 点击回调 | (value: string) => void | |
76
- | onFirstDrawFinished | 第一次渲染结束回调 | () => void | () => {} |
73
+ | 事件 | 描述 | 类型 | 默认值 |
74
+ | ------------------- | ------------------ | -------------------------- | ----------- |
75
+ | onClick | 点击回调 | (value: string) => void | |
76
+ | onFirstDrawFinished | 第一次渲染结束回调 | () => void | () => {} |
@@ -10,37 +10,37 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
10
10
 
11
11
  ### Props
12
12
 
13
- | 属性 | 描述 | 类型 | 默认值 |
14
- | -------------------- | --------------------------- | ---------------------------- | ------------------------------------ |
15
- | modelValue | 输入框内容 | string | |
16
- | placeholder | 输入框占位提示文字 | string | |
17
- | type | 输入框类型 | inputTypeRN | "default" as inputTypeRN |
18
- | maxLength | 最大长度 | number | |
19
- | showCount | 是否展示字数 | boolean | false |
20
- | isFormItem | 是否是 Form 组件 | boolean | false |
21
- | disabled | 是否禁用状态,默认为 false | boolean | false |
22
- | readonly | 只读 | boolean | false |
23
- | clearable | 是否展示清除按钮 | boolean | false |
24
- | autofocus | 自动聚焦 | boolean | false |
25
- | prefix | 前缀插槽 | ReactNode | |
26
- | suffix | 后缀插槽 | ReactNode | |
27
- | inputAlign | 输入框对齐方式 | inputAlignType | "left" as inputAlignType |
28
- | formatter | 格式化 | TextFieldFormatter | |
29
- | formatterTrigger | 格式化时机 | TextFieldFormatTrigger | "onChange" as TextFieldFormatTrigger |
30
- | iconType | icon支持type | iconType | iconType.svg |
31
- | onChange | 输入框内容变化时的回调 | (value: string) => any | |
32
- | onClear | 按下清除按钮的回调 | (value: string) => any | |
33
- | onFocus | 聚焦 | (event: any) => any | |
34
- | onBlur | 失焦 | (event: any) => any | |
35
- | style | 组件样式 | ViewStyle | `{}` |
36
- | maxLengthStyle | maxLength 自定义颜色 | TextStyle | `{}` |
37
- | inputStyle | textfield input 自定义样式 | ViewStyle | ViewStyle[] | `{}` |
38
- | onSubmitEditing | onSubmitEditing事件 | (nativeEvent: any) => void | () => {} |
39
- | isControl | isControl | boolean | false |
40
- | accessibility | 无障碍的一系列属性 是个对象 | Object | `{}` |
41
- | placeholderStyle | placeholder样式 | Object | `{}` |
42
- | placeholderTextColor | placeholderTextColor | String | |
43
- | ref | ref | any | |
44
- | clearAccessibility | clear accessibility | Object | `{}` |
13
+ | 属性 | 描述 | 类型 | 默认值 |
14
+ | -------------------- | --------------------------- | ----------------------------- | ------------------------------------ |
15
+ | modelValue | 输入框内容 | string | |
16
+ | placeholder | 输入框占位提示文字 | string | |
17
+ | type | 输入框类型 | inputTypeRN | "default" as inputTypeRN |
18
+ | maxLength | 最大长度 | number | |
19
+ | showCount | 是否展示字数 | boolean | false |
20
+ | isFormItem | 是否是 Form 组件 | boolean | false |
21
+ | disabled | 是否禁用状态,默认为 false | boolean | false |
22
+ | readonly | 只读 | boolean | false |
23
+ | clearable | 是否展示清除按钮 | boolean | false |
24
+ | autofocus | 自动聚焦 | boolean | false |
25
+ | prefix | 前缀插槽 | ReactNode | |
26
+ | suffix | 后缀插槽 | ReactNode | |
27
+ | inputAlign | 输入框对齐方式 | inputAlignType | "left" as inputAlignType |
28
+ | formatter | 格式化 | TextFieldFormatter | |
29
+ | formatterTrigger | 格式化时机 | TextFieldFormatTrigger | "onChange" as TextFieldFormatTrigger |
30
+ | iconType | icon支持type | iconType | iconType.svg |
31
+ | onChange | 输入框内容变化时的回调 | (value: string) => any | |
32
+ | onClear | 按下清除按钮的回调 | (value: string) => any | |
33
+ | onFocus | 聚焦 | (event: any) => any | |
34
+ | onBlur | 失焦 | (event: any) => any | |
35
+ | style | 组件样式 | ViewStyle | `{}` |
36
+ | maxLengthStyle | maxLength 自定义颜色 | TextStyle | `{}` |
37
+ | inputStyle | textfield input 自定义样式 | ViewStyle | ViewStyle[] | `{}` |
38
+ | onSubmitEditing | onSubmitEditing事件 | (nativeEvent: any) => void | () => {} |
39
+ | isControl | isControl | boolean | false |
40
+ | accessibility | 无障碍的一系列属性 是个对象 | Object | `{}` |
41
+ | placeholderStyle | placeholder样式 | Object | `{}` |
42
+ | placeholderTextColor | placeholderTextColor | String | |
43
+ | ref | ref | any | |
44
+ | clearAccessibility | clear accessibility | Object | `{}` |
45
45
 
46
46
  ### Events
@@ -25,15 +25,15 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
25
25
  | autofocus | 自动聚焦 | boolean | false |
26
26
  | rows | 最大展示行数 | number | 3 |
27
27
  | style | 自定义容器样式 | ViewStyle | |
28
- | onChange | 输入域内容变化时的回调 | (value: string) => any | |
29
- | onClear | 按下清除按钮的回调 | (value: string) => any | |
30
- | onFocus | 聚焦 | (event: any) => any | |
31
- | onBlur | 失焦 | (event: any) => any | |
28
+ | onChange | 输入域内容变化时的回调 | (value: string) => any | |
29
+ | onClear | 按下清除按钮的回调 | (value: string) => any | |
30
+ | onFocus | 聚焦 | (event: any) => any | |
31
+ | onBlur | 失焦 | (event: any) => any | |
32
32
  | containerStyle | 容器样式 | ViewStyle | |
33
33
  | actionLayout | 容器样式 | "horizontal" | "vertical" | vertical |
34
34
  | placeholderTextColor | placeholderTextColor | String | |
35
35
  | ref | ref | any | |
36
36
  | returnKeyType | returnType key 的 type | string | next |
37
- | onSubmitEditing | onSubmitEditing | () => void | |
37
+ | onSubmitEditing | onSubmitEditing | () => void | |
38
38
 
39
39
  ### Events
@@ -28,9 +28,9 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
28
28
 
29
29
  ### Events
30
30
 
31
- | 事件 | 描述 | 类型 | 默认值 |
32
- | --------- | ------------- | ---------- | ------ |
33
- | onCancel | 点击取消按钮 | () => void | |
34
- | onClick | 点击确定按钮 | () => void | |
35
- | onClose | toast关闭回调 | () => void | |
36
- | onConfirm | toast关闭回调 | () => void | |
31
+ | 事件 | 描述 | 类型 | 默认值 |
32
+ | --------- | ------------- | ------------- | ------ |
33
+ | onCancel | 点击取消按钮 | () => void | |
34
+ | onClick | 点击确定按钮 | () => void | |
35
+ | onClose | toast关闭回调 | () => void | |
36
+ | onConfirm | toast关闭回调 | () => void | |
@@ -10,32 +10,32 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
10
10
 
11
11
  ### Props
12
12
 
13
- | 属性 | 描述 | 类型 | 默认值 |
14
- | ------------------------------ | ------------------------------- | ------------------------------------ | ------------------- |
15
- | value | 已上传的图片列表 | UploaderFileListItem[] | `[]` |
16
- | multiple | 开启文件多选 | boolean | false |
17
- | accept | 允许上传的文件类型 | string | image/\* |
18
- | maxCount | 文件上传数量限制 | number | |
19
- | maxSize | 文件大小限制,单位为k, 默认500k | number | 1000000 \* 1024 |
20
- | type | 上传类型 | UploaderType | UploaderType.NORMAL |
21
- | showDesc | 自定义上传按钮下面的文案描述 | boolean | |
22
- | description | 自定义上传按钮下面的文案描述 | string | |
23
- | size | 上传图片大小 | UploaderSize | UploaderSize.NORMAL |
24
- | disable | 是否可上传 | boolean | false |
25
- | IDCardPhotoText | 身份证人像面文案 | string | |
26
- | nationalEmblemSideOfIDCardText | 身份证国徽面文案 | string | |
27
- | uploadFailText | 上传失败文案 | string | |
28
- | uploadingText | 上传中文案 | string | |
29
- | invoke | invoke | (method: string, params: any) => any | |
30
- | isFormItem | 是否是formItem | boolean | false |
13
+ | 属性 | 描述 | 类型 | 默认值 |
14
+ | ------------------------------ | ------------------------------- | --------------------------------------- | ------------------- |
15
+ | value | 已上传的图片列表 | UploaderFileListItem[] | `[]` |
16
+ | multiple | 开启文件多选 | boolean | false |
17
+ | accept | 允许上传的文件类型 | string | image/\* |
18
+ | maxCount | 文件上传数量限制 | number | |
19
+ | maxSize | 文件大小限制,单位为k, 默认500k | number | 1000000 \* 1024 |
20
+ | type | 上传类型 | UploaderType | UploaderType.NORMAL |
21
+ | showDesc | 自定义上传按钮下面的文案描述 | boolean | |
22
+ | description | 自定义上传按钮下面的文案描述 | string | |
23
+ | size | 上传图片大小 | UploaderSize | UploaderSize.NORMAL |
24
+ | disable | 是否可上传 | boolean | false |
25
+ | IDCardPhotoText | 身份证人像面文案 | string | |
26
+ | nationalEmblemSideOfIDCardText | 身份证国徽面文案 | string | |
27
+ | uploadFailText | 上传失败文案 | string | |
28
+ | uploadingText | 上传中文案 | string | |
29
+ | invoke | invoke | (method: string, params: any) => any | |
30
+ | isFormItem | 是否是formItem | boolean | false |
31
31
 
32
32
  ### Events
33
33
 
34
- | 事件 | 描述 | 类型 | 默认值 |
35
- | ---------- | -------------------------------------------------------------- | ------------------------------------------------------------------- | ------ |
36
- | onSuccess | 上传成功 | (file: UploaderFileListItem[]) => void | |
37
- | onValidate | 上传文件之前的校验 返回 false 可终止文件读取,支持返回 Promise | (file: UploaderFileListItem[]) => boolean | |
38
- | onFail | 上传失败 | (value: any) => void | |
39
- | onChange | 修改文件 | (value: UploaderFileListItem[]) => void | |
40
- | onDelete | 删除文件 | (value: UploaderFileListItem, file: UploaderFileListItem[]) => void | |
41
- | onOversize | 文件大小超出限制函数 | (value: UploaderFileListItem[]) => void | |
34
+ | 事件 | 描述 | 类型 | 默认值 |
35
+ | ---------- | -------------------------------------------------------------- | ---------------------------------------------------------------------- | ------ |
36
+ | onSuccess | 上传成功 | (file: UploaderFileListItem[]) => void | |
37
+ | onValidate | 上传文件之前的校验 返回 false 可终止文件读取,支持返回 Promise | (file: UploaderFileListItem[]) => boolean | |
38
+ | onFail | 上传失败 | (value: any) => void | |
39
+ | onChange | 修改文件 | (value: UploaderFileListItem[]) => void | |
40
+ | onDelete | 删除文件 | (value: UploaderFileListItem, file: UploaderFileListItem[]) => void | |
41
+ | onOversize | 文件大小超出限制函数 | (value: UploaderFileListItem[]) => void | |
@@ -16,7 +16,7 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
16
16
  | url | 播放视频url | string | |
17
17
  | size | 横屏 or 竖屏 播放 | "vertical" | "horizontal" | VideoSize.HORIZONTAL |
18
18
  | type | 视频格式 | VideoType | VideoType.MP4 |
19
- | reportCallback | 上报埋点函数 | () => void | () => {} |
19
+ | reportCallback | 上报埋点函数 | () => void | () => {} |
20
20
  | businessLine | 业务线 | string | infra |
21
21
  | autoplay | 是否是自动播放 | boolean | false |
22
22
  | playsinline | 手机观看时,开启内联模式 | boolean | true |
@@ -24,6 +24,6 @@ import BaseDemo from "!!raw-loader!../demo/index.tsx";
24
24
 
25
25
  ### Events
26
26
 
27
- | 事件 | 描述 | 类型 | 默认值 |
28
- | ------ | ---------- | --------------------- | ------ |
29
- | onPlay | 播放时触发 | (value: Event) => any | |
27
+ | 事件 | 描述 | 类型 | 默认值 |
28
+ | ------ | ---------- | ------------------------ | ------ |
29
+ | onPlay | 播放时触发 | (value: Event) => any | |