@ray-js/components 0.3.31 → 0.4.2

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 (44) hide show
  1. package/lib/Button/props.d.ts +61 -1
  2. package/lib/Checkbox/props.d.ts +20 -0
  3. package/lib/CheckboxGroup/props.d.ts +15 -0
  4. package/lib/DatePicker/index.md +2 -0
  5. package/lib/DatePicker/props.d.ts +70 -2
  6. package/lib/Form/props.d.ts +10 -0
  7. package/lib/Icon/iconfont/iconfont.android.js +1 -1
  8. package/lib/Icon/iconfont/iconfont.css +196 -193
  9. package/lib/Icon/iconfont/iconfont.ios.js +1 -1
  10. package/lib/Icon/iconfont/iconfont.js +9 -9
  11. package/lib/Icon/iconfont/iconfont.json +1 -1
  12. package/lib/Icon/iconfont/iconfont.tuya.js +9 -9
  13. package/lib/Icon/iconfont/iconfont.web.js +9 -9
  14. package/lib/Icon/iconfont/iconfont.wechat.js +9 -9
  15. package/lib/Icon/iconfont-rn/iconfont.json +1 -1
  16. package/lib/Icon/props.d.ts +15 -0
  17. package/lib/Image/props.d.ts +30 -4
  18. package/lib/Input/props.d.ts +105 -2
  19. package/lib/Label/props.d.ts +3 -5
  20. package/lib/LinearGradient/index.md +2 -1
  21. package/lib/LinearGradient/props.d.ts +10 -0
  22. package/lib/Modal/index.md +2 -1
  23. package/lib/Modal/props.d.ts +35 -0
  24. package/lib/Motion/index.md +2 -1
  25. package/lib/Motion/props.d.ts +5 -0
  26. package/lib/Picker/index.md +2 -0
  27. package/lib/Picker/props.d.ts +65 -2
  28. package/lib/PickerView/props.d.ts +30 -3
  29. package/lib/RadialGradient/index.md +2 -1
  30. package/lib/RadialGradient/props.d.ts +10 -0
  31. package/lib/Radio/props.d.ts +20 -0
  32. package/lib/RadioGroup/props.d.ts +31 -3
  33. package/lib/ScrollView/props.d.ts +76 -3
  34. package/lib/Slider/props.d.ts +80 -0
  35. package/lib/Swiper/props.d.ts +45 -9
  36. package/lib/Switch/props.d.ts +40 -0
  37. package/lib/Text/props.d.ts +15 -1
  38. package/lib/Textarea/index.md +1 -1
  39. package/lib/Textarea/props.d.ts +60 -2
  40. package/lib/TimePicker/index.md +2 -0
  41. package/lib/TimePicker/props.d.ts +55 -2
  42. package/lib/View/props.d.ts +20 -0
  43. package/lib/types/index.d.ts +60 -3
  44. package/package.json +5 -5
@@ -3,23 +3,78 @@ import { NativeScrollEvent, NativeSyntheticEvent } from 'react-native';
3
3
  import { GenericEvent as WxScrollEvent } from '@remax/wechat';
4
4
  export interface ScrollViewProps extends BaseProps {
5
5
  /** (default: false) 允许横向滚动 1.0.0 */
6
+ /**
7
+ * @description.en Allow horizontal scrolling
8
+ * @description.zh 允许横向滚动
9
+ * @default false
10
+ */
6
11
  scrollX?: boolean;
7
12
  /** (default: false) 允许纵向滚动 1.0.0 */
13
+ /**
14
+ * @description.en Allow longitudinal roll
15
+ * @description.zh 允许纵向滚动
16
+ * @default false
17
+ */
8
18
  scrollY?: boolean;
9
19
  /** 设置竖向滚动条位置 1.0.0 */
20
+ /**
21
+ * @description.en Sets the vertical scroll bar position
22
+ * @description.zh 设置竖向滚动条位置
23
+ * @default undefined
24
+ */
10
25
  scrollTop?: number;
11
26
  /** 设置横向滚动条位置 1.0.0 */
27
+ /**
28
+ * @description.en Sets the horizontal scroll bar position
29
+ * @description.zh 设置横向滚动条位置
30
+ * @default undefined
31
+ */
12
32
  scrollLeft?: number;
13
- /** (default: 50) 距顶部/左边多远时,触发 onScrollToUpper 事件 1.0.0 */
33
+ /** (default: 50) */
34
+ /**
35
+ * @description.en How far from the top/left is the on Scroll To Upper event 1.0.0 triggered
36
+ * @description.zh 距顶部/左边多远时,触发 onScrollToUpper 事件 1.0.0
37
+ * @default 50
38
+ */
14
39
  upperThreshold?: number;
15
40
  /** (default: 50) 距底部/右边多远时,触发 onScrollToLower 事件 1.0.0 */
41
+ /**
42
+ * @description.en The on Scroll To Lower event 1.0.0 is triggered when it is far from the bottom/right
43
+ * @description.zh 距底部/右边多远时,触发 onScrollToLower 事件 1.0.0
44
+ * @default 50
45
+ */
16
46
  lowerThreshold?: number;
17
47
  /** (default: false) 在设置滚动条位置时使用动画过渡 1.0.0 */
48
+ /**
49
+ * @description.en Animate transition 1.0.0 when setting the scrollbar position
50
+ * @description.zh 在设置滚动条位置时使用动画过渡 1.0.0
51
+ * @default false
52
+ */
18
53
  scrollWithAnimation?: boolean;
19
54
  /** 滚动时触发,event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth, deltaX, deltaY} 1.0.0 */
55
+ /**
56
+ * @description.en onScroll
57
+ * @description.zh 滚动时触发
58
+ * @default undefined
59
+ */
20
60
  onScroll?: (event: {
61
+ /**
62
+ * @description.en type
63
+ * @description.zh 类型
64
+ * @default undefined
65
+ */
21
66
  type: 'scroll';
67
+ /**
68
+ * @description.en Horizontal scroll bar position
69
+ * @description.zh 横向滚动条位置
70
+ * @default undefined
71
+ */
22
72
  scrollLeft: number;
73
+ /**
74
+ * @description.en Vertical scroll bar position
75
+ * @description.zh 竖向滚动条位置
76
+ * @default undefined
77
+ */
23
78
  scrollTop: number;
24
79
  scrollHeight: number;
25
80
  scrollWidth: number;
@@ -27,14 +82,32 @@ export interface ScrollViewProps extends BaseProps {
27
82
  deltaY: number;
28
83
  origin: NativeSyntheticEvent<NativeScrollEvent> | WxScrollEvent;
29
84
  }) => any;
30
- /** 滚动到顶部/左边时触发 1.0.0 */
85
+ /**
86
+ * @description.en Trigger 1.0.0 when scrolling to the top/left
87
+ * @description.zh 滚动到顶部/左边时触发 1.0.0
88
+ * @default undefined
89
+ */
31
90
  onScrollToUpper?: (event: {
91
+ /**
92
+ * @description.en type
93
+ * @description.zh 类型
94
+ * @default undefined
95
+ */
32
96
  type: 'scrolltoupper';
33
97
  direction: 'top' | 'left';
34
98
  origin: NativeSyntheticEvent<NativeScrollEvent> | WxScrollEvent | Event;
35
99
  }) => any;
36
- /** 滚动到底部/右边时触发 1.0.0 */
100
+ /**
101
+ * @description.en Triggered when scrolling to the bottom/right
102
+ * @description.zh 滚动到底部/右边时触发
103
+ * @default undefined
104
+ */
37
105
  onScrollToLower?: (event: {
106
+ /**
107
+ * @description.en type
108
+ * @description.zh 类型
109
+ * @default undefined
110
+ */
38
111
  type: 'scrolltolower';
39
112
  direction: 'bottom' | 'right';
40
113
  origin: NativeSyntheticEvent<NativeScrollEvent> | WxScrollEvent | Event;
@@ -1,22 +1,102 @@
1
1
  import { BaseProps } from '../types';
2
2
  export interface SliderProps extends BaseProps {
3
+ /**
4
+ * @description.en min
5
+ * @description.zh 最小值
6
+ * @default 0
7
+ */
3
8
  min?: number;
9
+ /**
10
+ * @description.en max
11
+ * @description.zh 最大值
12
+ * @default 100
13
+ */
4
14
  max?: number;
15
+ /**
16
+ * @description.en The value must be greater than 0 and divisible by (max-min)
17
+ * @description.zh 步长,取值必须大于 0,并且可被(max - min)整除
18
+ * @default 1
19
+ */
5
20
  step?: number;
21
+ /**
22
+ * @description.en disabled
23
+ * @description.zh 是否禁用
24
+ * @default false
25
+ */
6
26
  disabled?: boolean;
27
+ /**
28
+ * @description.en value
29
+ * @description.zh 当前取值
30
+ * @default 0
31
+ */
7
32
  value?: number;
33
+ /**
34
+ * @description.en activeColor
35
+ * @description.zh 已选择的颜色
36
+ * @default #007aff
37
+ */
8
38
  activeColor?: string;
39
+ /**
40
+ * @description.en backgroundColor
41
+ * @description.zh 背景条的颜色
42
+ * @default rgba(0,0,0,.2)
43
+ */
9
44
  backgroundColor?: string;
45
+ /**
46
+ * @description.en blockSize
47
+ * @description.zh 滑块的大小,取值范围为 12 - 28
48
+ * @default 28
49
+ */
10
50
  blockSize?: number;
51
+ /**
52
+ * @description.en blockColor
53
+ * @description.zh 滑块的颜色
54
+ * @default #ffffff
55
+ */
11
56
  blockColor?: string;
57
+ /**
58
+ * @description.en showValue
59
+ * @description.zh 是否显示当前 value
60
+ * @default false
61
+ */
12
62
  showValue?: boolean;
63
+ /**
64
+ * @description.en onChange
65
+ * @description.zh 完成一次拖动后触发的事件,event.detail = {value}
66
+ * @default undefined
67
+ */
13
68
  onChange?: (event: {
69
+ /**
70
+ * @description.en type
71
+ * @description.zh 类型
72
+ * @default undefined
73
+ */
14
74
  type: string;
75
+ /**
76
+ * @description.en value
77
+ * @description.zh value
78
+ * @default undefined
79
+ */
15
80
  value: number;
16
81
  origin: any;
17
82
  }) => void;
83
+ /**
84
+ * @description.en onChanging
85
+ * @description.zh 拖动过程中触发的事件,event.detail = {value}
86
+ * @default undefined
87
+ */
18
88
  onChanging?: (event: {
89
+ /**
90
+ * @description.en type
91
+ * @description.zh 类型
92
+ * @default undefined
93
+ */
19
94
  type: string;
95
+ /**
96
+ * @description.en value
97
+ * @description.zh 价值
98
+ * @default undefined
99
+ */
20
100
  value: number;
21
101
  origin: any;
22
102
  }) => void;
@@ -2,23 +2,59 @@ import * as React from 'react';
2
2
  import { BaseProps } from '../types';
3
3
  import { GenericEvent as WxEvent } from '@remax/wechat';
4
4
  export declare type SwiperProps<I> = BaseProps & {
5
- /** (default: false) 是否显示面板指示点 */
5
+ /**
6
+ * @description.en Whether to display panel points
7
+ * @description.zh 是否显示面板指示点
8
+ * @default false
9
+ */
6
10
  dots?: boolean;
7
- /** (default: rgba(0, 0, 0, .3)) 指示点颜色 */
11
+ /**
12
+ * @description.en Indicator point color
13
+ * @description.zh 指示点颜色
14
+ * @default rgba(0, 0, 0, .3)
15
+ */
8
16
  dotColor?: string;
9
- /** (default: #000000) 当前选中的指示点颜色 */
17
+ /**
18
+ * @description.en The color of the currently selected indicator point
19
+ * @description.zh 当前选中的指示点颜色
20
+ * @default #000000
21
+ */
10
22
  dotActiveColor?: string;
11
- /** (default: false) 是否自动切换 */
23
+ /**
24
+ * @description.en Automatic switch or not
25
+ * @description.zh 是否自动切换
26
+ * @default false
27
+ */
12
28
  autoplay?: boolean;
13
- /** (default: 0) 当前所在滑块的 index */
29
+ /**
30
+ * @description.en Index of the current slider
31
+ * @description.zh 当前所在滑块的 index
32
+ * @default 0
33
+ */
14
34
  current?: number;
15
- /** (default: 5000) 自动切换时间间隔 */
35
+ /**
36
+ * @description.en Automatically switch the time interval
37
+ * @description.zh 自动切换时间间隔
38
+ * @default 5000
39
+ */
16
40
  interval?: number;
17
- /** (default: 500) 滑动动画时长 */
41
+ /**
42
+ * @description.en Sliding animation duration
43
+ * @description.zh 滑动动画时长
44
+ * @default 500
45
+ */
18
46
  duration?: number;
19
- /** (default: false) 是否采用衔接滑动 */
47
+ /**
48
+ * @description.en Whether to use cohesive sliding
49
+ * @description.zh 是否采用衔接滑动
50
+ * @default false
51
+ */
20
52
  circular?: boolean;
21
- /** (default: false) 滑动方向是否为纵向 */
53
+ /**
54
+ * @description.en Whether the sliding direction is longitudinal
55
+ * @description.zh 滑动方向是否为纵向
56
+ * @default false
57
+ */
22
58
  vertical?: boolean;
23
59
  /** 前边距,可用于露出前一项的一小部分 */
24
60
  /** 后边距,可用于露出后一项的一小部分 */
@@ -2,15 +2,55 @@
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import { BaseProps } from '../types';
4
4
  export interface SwitchProps extends BaseProps {
5
+ /**
6
+ * @description.en onChange
7
+ * @description.zh checked 改变时触发 change 事件,event.detail={ value}
8
+ * @default undefined
9
+ */
5
10
  onChange?: (event: {
11
+ /**
12
+ * @description.en type
13
+ * @description.zh 类型
14
+ * @default undefined
15
+ */
6
16
  type: 'change';
17
+ /**
18
+ * @description.en value
19
+ * @description.zh 价值
20
+ * @default undefined
21
+ */
7
22
  value: boolean;
8
23
  origin: any;
9
24
  }) => void;
25
+ /**
26
+ * @description.en checked
27
+ * @description.zh 当前是否选中
28
+ * @default false
29
+ */
10
30
  checked?: boolean;
31
+ /**
32
+ * @description.en disabled
33
+ * @description.zh 是否禁用
34
+ * @default false
35
+ */
11
36
  disabled?: boolean;
37
+ /**
38
+ * @description.en color
39
+ * @description.zh Switch 的颜色,同 css 的 color
40
+ * @default #007AFF
41
+ */
12
42
  color?: string;
43
+ /**
44
+ * @description.en type
45
+ * @description.zh 可选值 switch checkbox
46
+ * @default switch
47
+ */
13
48
  type?: 'switch' | 'checkbox';
49
+ /**
50
+ * @description.en style
51
+ * @description.zh 风格
52
+ * @default undefined
53
+ */
14
54
  style?: React.CSSProperties | StyleProp<ViewStyle>;
15
55
  }
16
56
  export declare const defaultSwitchProps: {
@@ -1,10 +1,24 @@
1
1
  /// <reference types="react" />
2
2
  import { BaseProps } from '../types';
3
3
  export interface TextProps extends BaseProps {
4
- /** 文本是否可选 */
4
+ /**
5
+ * @description.en selectable
6
+ * @description.zh 文本是否可选
7
+ * @default false
8
+ */
5
9
  selectable?: boolean;
6
10
  children?: React.ReactNode;
11
+ /**
12
+ * @description.en onClick
13
+ * @description.zh 点击事件
14
+ * @default false
15
+ */
7
16
  onClick?: (event: {
17
+ /**
18
+ * @description.en type
19
+ * @description.zh 类型
20
+ * @default undefined
21
+ */
8
22
  type: string;
9
23
  timeStamp: number;
10
24
  pageX: number;
@@ -17,7 +17,7 @@ group:
17
17
  ## 导入
18
18
 
19
19
  ```js
20
- import { Textarea } from '@ray-js/components';
20
+ import { Textarea } from '@ray-js/components'
21
21
  ```
22
22
 
23
23
  ## 代码演示
@@ -4,18 +4,76 @@ export declare type TextareaEvent = FormEvent<{
4
4
  value: string;
5
5
  }>;
6
6
  export interface TextareaProps extends BaseProps {
7
+ /**
8
+ * @description.en id
9
+ * @description.zh 组件的 id
10
+ * @default null
11
+ */
7
12
  name?: string;
13
+ /**
14
+ * @description.en content
15
+ * @description.zh 输入框的内容
16
+ * @default null
17
+ */
8
18
  value?: string;
19
+ /**
20
+ * @description.en Placeholder when the input box is empty
21
+ * @description.zh 输入框为空时占位符
22
+ * @default null
23
+ */
9
24
  placeholder?: string;
25
+ /**
26
+ * @description.en Specify placeholder styles that currently only support Color,font Size, and font Weight
27
+ * @description.zh 指定 placeholder 的样式,目前仅支持 color,fontSize 和 fontWeight
28
+ * @default null
29
+ */
10
30
  placeholderStyle?: React.CSSProperties;
31
+ /**
32
+ * @description.en If the Account is Disabled
33
+ * @description.zh 是否禁用
34
+ * @default null
35
+ */
11
36
  disabled?: boolean;
12
- /** 最大输入长度,设置为 -1 的时候不限制最大长度 */
37
+ /**
38
+ * @description.en Maximum length. If the value is set to -1, the maximum length is not limited
39
+ * @description.zh 最大输入长度,设置为 -1 的时候不限制最大长度
40
+ * @default null
41
+ */
13
42
  maxLength?: number;
43
+ /**
44
+ * @description.en Get focus
45
+ * @description.zh 获取焦点
46
+ * @default null
47
+ */
14
48
  focus?: boolean;
15
- /** 是否自动增高,设置auto-height时,style.height不生效 */
49
+ /**
50
+ * @description.en Automatic increase or not
51
+ * @description.zh 是否自动增高
52
+ * @default null
53
+ */
16
54
  autoHeight?: boolean;
55
+ /**
56
+ * @description.en Triggered when the keyboard is typed
57
+ * @description.zh 当键盘输入时,触发
58
+ * @default null
59
+ */
17
60
  onInput?: (event: TextareaEvent) => any;
61
+ /**
62
+ * @description.en Triggered when the input box is in focus
63
+ * @description.zh 输入框聚焦时触发
64
+ * @default null
65
+ */
18
66
  onFocus?: (event: any) => void;
67
+ /**
68
+ * @description.en Triggered when the input box loses focus
69
+ * @description.zh 输入框失去焦点时触发
70
+ * @default null
71
+ */
19
72
  onBlur?: (event: any) => void;
73
+ /**
74
+ * @description.en Click Finish when triggered
75
+ * @description.zh 点击完成时, 触发
76
+ * @default null
77
+ */
20
78
  onConfirm?: (event: any) => void;
21
79
  }
@@ -18,6 +18,8 @@ import { TimePicker } from '@ray-js/components'
18
18
 
19
19
  ## 代码演示
20
20
 
21
+ > picker 相关组件效果请使用手机模式下查看
22
+
21
23
  <code src="./demos/basic.tsx" title="基本用法" background="#f2f4f6" />
22
24
  <code src="./demos/startend.tsx" title="起止时间" background="#f2f4f6" />
23
25
 
@@ -1,25 +1,78 @@
1
- /// <reference types="react" />
2
1
  import { BaseProps } from '../types';
3
2
  import { TouchEventHandler } from '@ray-js/framework-shared';
4
3
  declare type ChangeEvent = (e: {
4
+ /**
5
+ * @description.en type
6
+ * @description.zh 类型
7
+ * @default undefined
8
+ */
5
9
  type: string;
10
+ /**
11
+ * @description.en value
12
+ * @description.zh 价值
13
+ * @default undefined
14
+ */
6
15
  value: string;
7
16
  origin?: any;
8
17
  }) => void;
9
18
  declare type CancelEvent = (e: {
19
+ /**
20
+ * @description.en type
21
+ * @description.zh 类型
22
+ * @default undefined
23
+ */
10
24
  type: string;
11
25
  origin: any;
12
26
  }) => void;
13
27
  export interface TimePickerProps extends BaseProps, TouchEventHandler {
28
+ /**
29
+ * @description.en disabled
30
+ * @description.zh 是否禁用
31
+ * @default false
32
+ */
14
33
  disabled?: boolean;
34
+ /**
35
+ * @description.en value
36
+ * @description.zh 当前选择的时间
37
+ * @default undefined
38
+ */
15
39
  value?: string;
40
+ /**
41
+ * @description.en start
42
+ * @description.zh 表示有效时间范围的开始,字符串格式为"hh:mm"
43
+ * @default undefined
44
+ */
16
45
  start?: string;
46
+ /**
47
+ * @description.en end
48
+ * @description.zh 表示有效时间范围的结束,字符串格式为"hh:mm"
49
+ * @default undefined
50
+ */
17
51
  end?: string;
52
+ /**
53
+ * @description.en onCancel
54
+ * @description.zh 取消选择时触发
55
+ * @default undefined
56
+ */
18
57
  onCancel?: CancelEvent;
58
+ /**
59
+ * @description.en onChange
60
+ * @description.zh 选择时触发
61
+ * @default undefined
62
+ */
19
63
  onChange?: ChangeEvent;
64
+ /**
65
+ * @description.en confirmText
66
+ * @description.zh 确认文本
67
+ * @default 确认
68
+ */
20
69
  confirmText?: string;
70
+ /**
71
+ * @description.en cancelText
72
+ * @description.zh 取消文本
73
+ * @default 取消
74
+ */
21
75
  cancelText?: string;
22
- children?: React.ReactNode | string;
23
76
  }
24
77
  export declare const IDefaultTimePickerProps: {
25
78
  cancelText: string;
@@ -2,9 +2,29 @@ import * as React from 'react';
2
2
  import { ViewProps as ViewBaseProps, StyleProp } from 'react-native';
3
3
  import { BaseProps } from '../types';
4
4
  export interface ViewProps extends BaseProps {
5
+ /**
6
+ * @description.en hoverClassName
7
+ * @description.zh hover 样式
8
+ * @default undefined
9
+ */
5
10
  hoverClassName?: string;
11
+ /**
12
+ * @description.en hoverStyle
13
+ * @description.zh hover 样式名
14
+ * @default undefined
15
+ */
6
16
  hoverStyle?: StyleProp<ViewBaseProps>;
17
+ /**
18
+ * @description.en How long after the click appears in ms
19
+ * @description.zh 按住后多久出现点击态 单位 ms
20
+ * @default 20
21
+ */
7
22
  hoverStartTime?: number;
23
+ /**
24
+ * @description.en Click retention time ms after finger release
25
+ * @description.zh 手指松开后点击态保留时间 ms
26
+ * @default 70
27
+ */
8
28
  hoverStayTime?: number;
9
29
  children?: React.ReactNode | string;
10
30
  }
@@ -1,15 +1,42 @@
1
1
  import * as React from 'react';
2
2
  export interface BaseProps {
3
+ /**
4
+ * @description.en id
5
+ * @description.zh ID
6
+ * @default undefined
7
+ */
3
8
  id?: string;
9
+ /**
10
+ * @description.en className
11
+ * @description.zh css 类名
12
+ * @default undefined
13
+ */
4
14
  className?: string;
15
+ /**
16
+ * @description.en style
17
+ * @description.zh 样式
18
+ * @default undefined
19
+ */
5
20
  style?: React.CSSProperties;
6
21
  }
7
22
  export interface HoverableProps {
8
- /** 指定按钮按下去的样式类。当 hover-class="none" 时,没有点击态效果 */
23
+ /**
24
+ * @description.en Specifies the style class on which the button is pressed. Hover -class=" None ", no click effect
25
+ * @description.zh 指定按钮按下去的样式类。当 hover-class="none" 时,没有点击态效果
26
+ * @default undefined
27
+ */
9
28
  hoverClassName?: string;
10
- /** 按住后多久出现点击态,单位毫秒 */
29
+ /**
30
+ * @description.en How long does it take for the click state to appear after holding, in milliseconds
31
+ * @description.zh 按住后多久出现点击态,单位毫秒
32
+ * @default undefined
33
+ */
11
34
  hoverStartTime?: number;
12
- /** 手指松开后点击态保留时间,单位毫秒 */
35
+ /**
36
+ * @description.en Click retention time after finger release, in milliseconds
37
+ * @description.zh 手指松开后点击态保留时间,单位毫秒
38
+ * @default undefined
39
+ */
13
40
  hoverStayTime?: number;
14
41
  }
15
42
  interface TouchObj {
@@ -27,11 +54,41 @@ interface TouchEvent {
27
54
  * 多端通用事件
28
55
  */
29
56
  export interface TouchEventHandler {
57
+ /**
58
+ * @description.en onClick
59
+ * @description.zh 点击回调
60
+ * @default undefined
61
+ */
30
62
  onClick?: (e: TouchEvent) => any;
63
+ /**
64
+ * @description.en Long press the trigger
65
+ * @description.zh 长按触发
66
+ * @default undefined
67
+ */
31
68
  onLongClick?: (e: TouchEvent) => any;
69
+ /**
70
+ * @description.en onTouchStart
71
+ * @description.zh 开始触摸事件回调
72
+ * @default undefined
73
+ */
32
74
  onTouchStart?: (e: TouchEvent) => any;
75
+ /**
76
+ * @description.en onTouchMove
77
+ * @description.zh 触摸移动事件回调
78
+ * @default undefined
79
+ */
33
80
  onTouchMove?: (e: TouchEvent) => any;
81
+ /**
82
+ * @description.en onTouchEnd
83
+ * @description.zh 触摸结束事件回调
84
+ * @default undefined
85
+ */
34
86
  onTouchEnd?: (e: TouchEvent) => any;
87
+ /**
88
+ * @description.en onTouchCancel
89
+ * @description.zh 触摸取消事件回调
90
+ * @default undefined
91
+ */
35
92
  onTouchCancel?: (e: TouchEvent) => any;
36
93
  }
37
94
  /**