hy-app 0.5.4 → 0.5.5

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 (89) hide show
  1. package/components/hy-action-sheet/typing.d.ts +1 -63
  2. package/components/hy-address-picker/hy-address-picker.vue +7 -6
  3. package/components/hy-address-picker/typing.d.ts +0 -84
  4. package/components/hy-avatar/typing.d.ts +0 -66
  5. package/components/hy-back-top/typing.d.ts +0 -47
  6. package/components/hy-badge/typing.d.ts +0 -62
  7. package/components/hy-button/typing.d.ts +28 -162
  8. package/components/hy-calendar/hy-calendar.vue +2 -2
  9. package/components/hy-calendar/typing.d.ts +0 -128
  10. package/components/hy-card/hy-card.vue +12 -12
  11. package/components/hy-card/index.scss +17 -5
  12. package/components/hy-card/props.ts +1 -2
  13. package/components/hy-card/typing.d.ts +1 -114
  14. package/components/hy-cell/props.ts +1 -1
  15. package/components/hy-cell/typing.d.ts +0 -55
  16. package/components/hy-check-button/typing.d.ts +0 -43
  17. package/components/hy-checkbox/typing.d.ts +1 -73
  18. package/components/hy-checkbox-group/typing.d.ts +0 -65
  19. package/components/hy-code-input/typing.d.ts +0 -70
  20. package/components/hy-count-down/typing.d.ts +1 -20
  21. package/components/hy-count-to/typing.d.ts +0 -47
  22. package/components/hy-coupon/typing.d.ts +0 -133
  23. package/components/hy-datetime-picker/typing.d.ts +0 -119
  24. package/components/hy-dropdown-item/typing.d.ts +12 -31
  25. package/components/hy-empty/typing.d.ts +1 -59
  26. package/components/hy-float-button/typing.d.ts +24 -113
  27. package/components/hy-form/typing.d.ts +0 -27
  28. package/components/hy-form-item/hy-form-item.vue +7 -5
  29. package/components/hy-form-item/typing.d.ts +0 -19
  30. package/components/hy-grid/typing.d.ts +0 -43
  31. package/components/hy-icon/typing.d.ts +0 -86
  32. package/components/hy-image/typing.d.ts +0 -80
  33. package/components/hy-input/typing.d.ts +0 -149
  34. package/components/hy-list/typing.d.ts +0 -51
  35. package/components/hy-menu/typing.d.ts +0 -35
  36. package/components/hy-modal/typing.d.ts +9 -84
  37. package/components/hy-navbar/typing.d.ts +0 -81
  38. package/components/hy-notice-bar/typing.d.ts +0 -65
  39. package/components/hy-number-step/typing.d.ts +0 -110
  40. package/components/hy-overlay/typing.d.ts +2 -27
  41. package/components/hy-pagination/typing.d.ts +6 -49
  42. package/components/hy-picker/typing.d.ts +27 -124
  43. package/components/hy-popover/typing.d.ts +25 -66
  44. package/components/hy-popup/typing.d.ts +8 -77
  45. package/components/hy-price/typing.d.ts +0 -41
  46. package/components/hy-qrcode/hy-qrcode.vue +3 -4
  47. package/components/hy-qrcode/index.scss +3 -3
  48. package/components/hy-qrcode/qrcode.js +0 -138
  49. package/components/hy-qrcode/typing.d.ts +0 -66
  50. package/components/hy-radio/typing.d.ts +1 -86
  51. package/components/hy-rate/typing.d.ts +0 -62
  52. package/components/hy-read-more/typing.d.ts +4 -49
  53. package/components/hy-scroll-list/typing.d.ts +4 -33
  54. package/components/hy-search/typing.d.ts +19 -120
  55. package/components/hy-signature/typing.d.ts +0 -101
  56. package/components/hy-slider/typing.d.ts +8 -77
  57. package/components/hy-steps/typing.d.ts +16 -60
  58. package/components/hy-submit-bar/typing.d.ts +0 -72
  59. package/components/hy-subsection/typing.d.ts +0 -49
  60. package/components/hy-swipe-action/index.ts +13 -22
  61. package/components/hy-swipe-action/typing.d.ts +1 -38
  62. package/components/hy-swiper/typing.d.ts +0 -101
  63. package/components/hy-switch/typing.d.ts +0 -62
  64. package/components/hy-tabbar/index.scss +1 -1
  65. package/components/hy-tabbar/typing.d.ts +0 -40
  66. package/components/hy-tabbar-item/typing.ts +0 -12
  67. package/components/hy-tabs/typing.d.ts +25 -92
  68. package/components/hy-tag/typing.d.ts +9 -78
  69. package/components/hy-text/typing.d.ts +3 -100
  70. package/components/hy-textarea/typing.d.ts +0 -27
  71. package/components/hy-tooltip/props.ts +0 -1
  72. package/components/hy-tooltip/typing.d.ts +2 -55
  73. package/components/hy-transition/typing.d.ts +14 -43
  74. package/components/hy-upload/typing.d.ts +56 -164
  75. package/components/hy-warn/typing.d.ts +4 -45
  76. package/package.json +2 -2
  77. package/web-types.json +1 -1
  78. package/components/hy-config-provider/typing.d.ts +0 -24
  79. package/components/hy-divider/typing.d.ts +0 -64
  80. package/components/hy-dropdown/typing.d.ts +0 -48
  81. package/components/hy-form-group/typing.d.ts +0 -0
  82. package/components/hy-line/typing.d.ts +0 -32
  83. package/components/hy-line-progress/typing.d.ts +0 -32
  84. package/components/hy-loading/typing.d.ts +0 -52
  85. package/components/hy-notify/typing.d.ts +0 -48
  86. package/components/hy-status-bar/typing.d.ts +0 -12
  87. package/components/hy-tabbar-group/README.md +0 -326
  88. package/components/hy-waterfall/typing.d.ts +0 -14
  89. package/components/hy-watermark/typing.d.ts +0 -76
@@ -1,123 +1,22 @@
1
- import type { CSSProperties } from "vue";
2
- import type HyIconProps from "../hy-icon/typing";
3
- import type { InputOnConfirmEvent } from "@uni-helper/uni-types";
4
-
5
- export default interface HySearchProps {
6
- /**
7
- * @description 输入框初始值
8
- * */
9
- modelValue: string;
10
- /**
11
- * @description 搜索框形状,circle-圆形,square-方形(默认 'circle' )
12
- * */
13
- shape?: HyApp.ShapeType;
14
- /**
15
- * @description 搜索框背景颜色(默认 '#f2f2f2' )
16
- * */
17
- bgColor?: string;
18
- /**
19
- * @description 占位文字内容(默认 '请输入关键字' )
20
- * */
21
- placeholder?: string;
22
- /**
23
- * @description 是否启用清除控件(默认 true )
24
- * */
25
- clear?: boolean;
26
- /**
27
- * @description 是否自动获得焦点(默认 false )
28
- * */
29
- focus?: boolean;
30
- /**
31
- * @description 是否显示右侧控件(默认 true )
32
- * */
33
- showAction?: boolean;
34
- /**
35
- * @description 右侧控件的样式,对象形式
36
- * */
37
- actionStyle?: CSSProperties;
38
- /**
39
- * @description 右侧控件文字(默认 '搜索' )
40
- * */
41
- actionText?: string;
42
- /**
43
- * @description 输入框内容水平对齐方式 (默认 'left' )
44
- * */
45
- inputAlign?: HyApp.RowCenterType;
46
- /**
47
- * @description 自定义输入框样式,对象形式
48
- * */
49
- inputStyle?: CSSProperties;
50
- /**
51
- * @description 是否启用输入框(默认 false )
52
- * */
53
- disabled?: boolean;
54
- /**
55
- * @description 边框颜色,配置了颜色,才会有边框 (默认 'transparent' )
56
- * */
57
- borderColor?: string;
58
- /**
59
- * @description 输入框字体颜色(默认 '#606266' )
60
- * */
61
- color?: string;
62
- /**
63
- * @description placeholder的颜色(默认 '#909399' )
64
- * */
65
- placeholderColor?: string;
66
- /**
67
- * @description 输入框左边的图标属性集合,可以为图标名称或图片路径 (默认 'search' )
68
- * */
69
- searchIcon?: Partial<HyIconProps>;
70
- /**
71
- * @description 组件与其他上下左右之间的距离,带单位的字符串形式,如"30px" (默认 '0' )
72
- * */
73
- margin?: string;
74
- /**
75
- * @description 是否开启动画,见上方说明(默认 false )
76
- * */
77
- animation?: boolean;
78
- /**
79
- * @description 输入框最大能输入的长度,-1为不限制长度 (默认 '-1' )
80
- * */
81
- maxlength?: string | number;
82
- /**
83
- * @description 输入框高度,单位px(默认 64 )
84
- * */
85
- height?: number;
86
- /**
87
- * @description 搜索框左边显示内容
88
- * */
89
- label?: string | null;
90
- /**
91
- * @description 键盘弹起时,是否自动上推页面
92
- * */
93
- adjustPosition?: boolean;
94
- /**
95
- * @description 键盘收起时,是否自动失去焦点
96
- * */
97
- autoBlur?: boolean;
98
- /**
99
- * @description 定义需要用到的外部样式
100
- * */
101
- customStyle?: CSSProperties;
102
- }
1
+ import type { InputOnConfirmEvent } from '@uni-helper/uni-types'
103
2
 
104
3
  export interface ISearchEmits {
105
- /** disabled为true时,点击输入框,发出此事件,用于跳转搜索页 */
106
- (e: "click"): void;
107
- /** 输入框内容发生变化时触发 */
108
- (e: "change", value: string): void;
109
- /** 左侧icon点击时候时触发 */
110
- (e: "clickIcon", keyword: string): void;
111
- /** 用户确定搜索时触发,用户按回车键,或者手机键盘右下角的"搜索"键时触发 */
112
- (e: "search", event: InputOnConfirmEvent, value: string): void;
113
- /** 配置了clearabled后,清空内容时会发出此事件 */
114
- (e: "clear"): void;
115
- /** 用户点击右侧控件时触发 */
116
- (e: "confirm", value: string): void;
117
- /** 输入框获得焦点时触发 */
118
- (e: "focus", e: InputOnFocusEvent, keyword: string): void;
119
- /** 输入框失去焦点时触发 */
120
- (e: "blur", e: InputOnBlurEvent, keyword: string): void;
121
- /** 输入框内容发生变化时触发 */
122
- (e: "update:modelValue", value: string): void;
4
+ /** disabled为true时,点击输入框,发出此事件,用于跳转搜索页 */
5
+ (e: 'click'): void
6
+ /** 输入框内容发生变化时触发 */
7
+ (e: 'change', value: string): void
8
+ /** 左侧icon点击时候时触发 */
9
+ (e: 'clickIcon', keyword: string): void
10
+ /** 用户确定搜索时触发,用户按回车键,或者手机键盘右下角的"搜索"键时触发 */
11
+ (e: 'search', event: InputOnConfirmEvent, value: string): void
12
+ /** 配置了clearabled后,清空内容时会发出此事件 */
13
+ (e: 'clear'): void
14
+ /** 用户点击右侧控件时触发 */
15
+ (e: 'confirm', value: string): void
16
+ /** 输入框获得焦点时触发 */
17
+ (e: 'focus', e: InputOnFocusEvent, keyword: string): void
18
+ /** 输入框失去焦点时触发 */
19
+ (e: 'blur', e: InputOnBlurEvent, keyword: string): void
20
+ /** 输入框内容发生变化时触发 */
21
+ (e: 'update:modelValue', value: string): void
123
22
  }
@@ -1,104 +1,3 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
- export default interface HySignatureProps {
4
- /**
5
- * @description 签名笔颜色
6
- * */
7
- penColor?: string
8
- /**
9
- * @description 签名笔宽度(默认 2 )
10
- * */
11
- lineWidth?: number
12
- /**
13
- * @description 清空按钮的文本
14
- * */
15
- clearText?: string
16
- /**
17
- * @description 撤回按钮的文本
18
- * */
19
- revokeText?: string
20
- /**
21
- * @description 恢复按钮的文本
22
- * */
23
- restoreText?: string
24
- /**
25
- * @description 确认按钮的文本
26
- * */
27
- confirmText?: string
28
- /**
29
- * @description 目标文件的类型(默认 png )
30
- * */
31
- fileType?: string
32
- /**
33
- * @description 签名笔颜色
34
- * */
35
- quality?: number
36
- /**
37
- * @description 目标文件的质量(默认 1 )
38
- * */
39
- exportScale?: number
40
- /**
41
- * @description 是否禁用签名板(默认 false )
42
- * */
43
- disabled?: boolean
44
- /**
45
- * @description 画布的高度
46
- * */
47
- height?: number
48
- /**
49
- * @description 画布的宽度
50
- * */
51
- width?: number
52
- /**
53
- * @description 边框圆角
54
- * */
55
- round?: string | number
56
- /**
57
- * @description 画板的背景色
58
- * */
59
- backgroundColor?: string
60
- /**
61
- * @description 是否禁用画布滚动(默认 true )
62
- * */
63
- disableScroll?: boolean
64
- /**
65
- * @description 是否开启历史记录(默认 false )
66
- * */
67
- enableHistory?: boolean
68
- /**
69
- * @description 撤回和恢复的步长(默认 1 )
70
- * */
71
- step?: number
72
- /**
73
- * @description 撤回按钮的文本(默认 撤销 )
74
- * */
75
- undoText?: string
76
- /**
77
- * @description 恢复按钮的文本(默认 恢复 )
78
- * */
79
- redoText?: string
80
- /**
81
- * @description 是否启用压感模式(默认 false )
82
- * */
83
- pressure?: boolean
84
- /**
85
- * @description 压感模式下笔画最小宽度(默认 2 )
86
- * */
87
- minWidth?: number
88
- /**
89
- * @description 压感模式下笔画最大宽度(默认 6 )
90
- * */
91
- maxWidth?: number
92
- /**
93
- * @description 最小速度阈值,影响压感模式下的笔画宽度变化(默认 1.5 )
94
- * */
95
- minSpeed?: number
96
- /**
97
- * @description 定义需要用到的外部样式
98
- * */
99
- customStyle?: CSSProperties
100
- }
101
-
102
1
  /**
103
2
  * 签名结果类型
104
3
  * @property tempFilePath - 生成图片的临时路径
@@ -1,79 +1,10 @@
1
- import type { CSSProperties } from "vue";
2
-
3
- export default interface HySliderProps {
4
- /**
5
- * @description 滑块默认值(默认0)
6
- * */
7
- modelValue?: number;
8
- /**
9
- * @description 滑块的大小,取值范围为 12 - 28
10
- * */
11
- blockSize?: number | string;
12
- /**
13
- * @description 最小值(默认0)
14
- * */
15
- min?: number;
16
- /**
17
- * @description 最大值(默认100)
18
- * */
19
- max?: number;
20
- /**
21
- * @description 步长(默认1)
22
- * */
23
- step?: number;
24
- /**
25
- * @description 底部选择部分的背景颜色(默认#2979ff)
26
- * */
27
- activeColor?: string;
28
- /**
29
- * @description 底部条背景颜色(默认#c0c4cc)
30
- * */
31
- inactiveColor?: string;
32
- /**
33
- * @description 滑块颜色(默认#ffffff)
34
- * */
35
- blockColor?: string;
36
- /**
37
- * @description 是否显示当前的选择值
38
- * */
39
- showValue?: boolean;
40
- /**
41
- * @description 是否禁用滑块(默认为false)
42
- * */
43
- disabled?: boolean;
44
- /**
45
- * @description 给滑块自定义样式,对象形式
46
- * */
47
- blockStyle?: CSSProperties;
48
- /**
49
- * @description 是否渲染uni-app框架内置组件(默认false)
50
- * */
51
- useNative?: boolean;
52
- /**
53
- * @description 滑块条高度,单位rpx(默认6)
54
- * */
55
- height?: string | number;
56
- /**
57
- * @description 双滑块时值
58
- * */
59
- rangeValue?: number[];
60
- /**
61
- * @description 是否区间的模式
62
- * */
63
- isRange?: boolean;
64
- /**
65
- * @description 自定义样式
66
- * */
67
- customStyle?: CSSProperties;
68
- }
69
-
70
1
  export interface ISliderEmits {
71
- /** 开始滑动触发 */
72
- (e: "start"): void;
73
- /** 触发事件(拖动过程中) */
74
- (e: "changing", value: number | number[]): void;
75
- /** 触发事件 */
76
- (e: "change", value: number | number[]): void;
77
- /** 数值改变触发 */
78
- (e: "update:modelValue", value: number | number[]): void;
2
+ /** 开始滑动触发 */
3
+ (e: 'start'): void
4
+ /** 触发事件(拖动过程中) */
5
+ (e: 'changing', value: number | number[]): void
6
+ /** 触发事件 */
7
+ (e: 'change', value: number | number[]): void
8
+ /** 数值改变触发 */
9
+ (e: 'update:modelValue', value: number | number[]): void
79
10
  }
@@ -1,65 +1,21 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
1
  export interface StepListVo {
4
- /**
5
- * @description 标题
6
- * */
7
- title?: string
8
- /**
9
- * @description 描述
10
- * */
11
- desc?: string
12
- /**
13
- * @description 是否错误
14
- * */
15
- error?: boolean
16
- }
17
- export default interface HyStepsProps {
18
- /**
19
- * @description 设置当前处于第几步 (默认 0 )
20
- * */
21
- current: number
22
- /**
23
- * @description 步骤条的数据集
24
- * */
25
- list: StepListVo[]
26
- /**
27
- * @description row-横向,column-竖向 (默认 'row' )
28
- * */
29
- direction?: HyApp.DirectionType
30
- /**
31
- * @description 激活状态颜色 (默认 '#3c9cff' )
32
- * */
33
- activeColor?: string
34
- /**
35
- * @description 未激活状态颜色 (默认 '#969799' )
36
- * */
37
- inactiveColor?: string
38
- /**
39
- * @description 激活状态的图标
40
- * */
41
- activeIcon?: string
42
- /**
43
- * @description 未激活状态图标
44
- * */
45
- inactiveIcon?: string
46
- /**
47
- * @description 是否显示点类型 (默认 false )
48
- * */
49
- dot?: boolean
50
- /**
51
- * @description 图标大小 (默认 17 )
52
- * */
53
- iconSize?: string | number
54
- /**
55
- * @description 定义需要用到的外部样式
56
- * */
57
- customStyle?: CSSProperties
2
+ /**
3
+ * @description 标题
4
+ * */
5
+ title?: string
6
+ /**
7
+ * @description 描述
8
+ * */
9
+ desc?: string
10
+ /**
11
+ * @description 是否错误
12
+ * */
13
+ error?: boolean
58
14
  }
59
15
 
60
16
  export interface IStepsEmits {
61
- /** 值改成触发 */
62
- (e: 'change', index: number): void
63
- /** 值改成触发 */
64
- (e: 'update:current', index: number): void
17
+ /** 值改成触发 */
18
+ (e: 'change', index: number): void
19
+ /** 值改成触发 */
20
+ (e: 'update:current', index: number): void
65
21
  }
@@ -1,4 +1,3 @@
1
- import type { CSSProperties } from 'vue'
2
1
  import type BadgeProps from '../hy-badge/props'
3
2
 
4
3
  export interface SubmitBarIconMenus {
@@ -17,77 +16,6 @@ export interface SubmitBarIconMenus {
17
16
  [key: string]: any
18
17
  }
19
18
 
20
- export default interface HySubmitBarProps {
21
- /**
22
- * @description 左边菜单栏
23
- * */
24
- menus?: IconMenus[]
25
- /**
26
- * @description 绝对定位
27
- * */
28
- fixed?: boolean
29
- /**
30
- * @description 是否显示边框
31
- * */
32
- border?: boolean
33
- /**
34
- * @description 加载左边按钮loading
35
- * */
36
- leftLoading?: boolean
37
- /**
38
- * @description 加载右边按钮loading
39
- * */
40
- rightLoading?: boolean
41
- /**
42
- * @description 左边icon的颜色
43
- * */
44
- iconColor?: string
45
- /**
46
- * @description 左边文字的颜色
47
- * */
48
- iconLabelColor?: string
49
- /**
50
- * @description 右边按钮文字颜色
51
- * */
52
- textColor?: string
53
- /**
54
- * @description 显示左边按钮
55
- * */
56
- showLeftBtn?: boolean
57
- /**
58
- * @description 显示右边按钮
59
- * */
60
- showRightBtn?: boolean
61
- /**
62
- * @description 左边按钮文字
63
- * */
64
- leftBtnText?: string
65
- /**
66
- * @description 右边按钮文字
67
- * */
68
- rightBtnText?: string
69
- /**
70
- * @description 左边按钮颜色,支持渐变色
71
- * */
72
- leftBtnColor?: string
73
- /**
74
- * @description 有边按钮颜色,支持渐变色
75
- * */
76
- rightBtnColor?: string
77
- /**
78
- * @description 按钮的形状
79
- * */
80
- shape?: HyApp.ShapeType
81
- /**
82
- * @description 按钮点击等待时长(运用了节流方法)
83
- * */
84
- warn?: number
85
- /**
86
- * @description 定义需要用到的外部样式
87
- * */
88
- customStyle?: CSSProperties
89
- }
90
-
91
19
  export interface ISubmitBarEmits {
92
20
  /** 点击按钮触发 */
93
21
  (e: 'click', index: number): void
@@ -1,5 +1,3 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
1
  export interface SubSectionItemVo extends AnyObject {
4
2
  name: string
5
3
  value: string | number
@@ -7,53 +5,6 @@ export interface SubSectionItemVo extends AnyObject {
7
5
 
8
6
  export type SubSectionVo = string | number | SubSectionItemVo
9
7
 
10
- export default interface HySubsectionProps {
11
- /**
12
- * @description 接收值
13
- * */
14
- modelValue: string | number
15
- /**
16
- * @description 默认值 (默认0)
17
- * */
18
- current?: number
19
- /**
20
- * @description tab的数据
21
- * */
22
- list: SubSectionVo[]
23
- /**
24
- * @description list的键值
25
- * */
26
- customKeys?: HyApp.IFieldNames
27
- /**
28
- * @description 激活时的颜色(默认 '#3c9cff' )
29
- * */
30
- activeColor?: string
31
- /**
32
- * @description 未激活时的颜色(默认 '#303133' )
33
- * */
34
- inactiveColor?: string
35
- /**
36
- * @description 模式选择,mode=button为按钮形式,mode=subsection时为分段模式(默认 'button' )
37
- * */
38
- mode?: 'button' | 'subsection'
39
- /**
40
- * @description 字体大小,单位px(默认 12 )
41
- * */
42
- fontSize?: number | string
43
- /**
44
- * @description 激活选项的字体是否加粗(默认 true )
45
- * */
46
- bold?: boolean
47
- /**
48
- * @description 组件背景颜色,mode为button时有效(默认 '#eeeeef' )
49
- * */
50
- bgColor?: string
51
- /**
52
- * @description 定义需要用到的外部样式
53
- * */
54
- customStyle?: CSSProperties
55
- }
56
-
57
8
  export interface ISubsectionEmits {
58
9
  /** 改变触发 */
59
10
  (e: 'change', index: number): void
@@ -1,34 +1,25 @@
1
- /*
2
- * @Author: weisheng
3
- * @Date: 2023-07-02 22:51:06
4
- * @LastEditTime: 2024-03-16 19:59:07
5
- * @LastEditors: weisheng
6
- * @Description:
7
- * @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/components/common/clickoutside.ts
8
- * 记得注释
9
- */
10
- let queue: any[] = [];
1
+ let queue: any[] = []
11
2
 
12
3
  export function pushToQueue(comp: any) {
13
- queue.push(comp);
4
+ queue.push(comp)
14
5
  }
15
6
 
16
7
  export function removeFromQueue(comp: any) {
17
- queue = queue.filter((item) => {
18
- return item.$.uid !== comp.$.uid;
19
- });
8
+ queue = queue.filter((item) => {
9
+ return item.$.uid !== comp.$.uid
10
+ })
20
11
  }
21
12
 
22
13
  export function closeOther(comp: any) {
23
- queue.forEach((item) => {
24
- if (item.$.uid !== comp.$.uid) {
25
- item.$.exposed.close();
26
- }
27
- });
14
+ queue.forEach((item) => {
15
+ if (item.$.uid !== comp.$.uid) {
16
+ item.$.exposed.close()
17
+ }
18
+ })
28
19
  }
29
20
 
30
21
  export function closeOutside() {
31
- queue.forEach((item) => {
32
- item.$.exposed.close();
33
- });
22
+ queue.forEach((item) => {
23
+ item.$.exposed.close()
24
+ })
34
25
  }
@@ -1,4 +1,4 @@
1
- import type { CSSProperties, PropType } from 'vue'
1
+ import type { CSSProperties } from 'vue'
2
2
 
3
3
  export interface SwipeActionOptionsVo {
4
4
  text: string
@@ -15,43 +15,6 @@ export type SwipeActionBeforeClose = (
15
15
  position: SwipeActionPosition
16
16
  ) => void
17
17
 
18
- export default interface SwipeActionProps {
19
- /**
20
- * @description 滑动按钮的状态,使用v-model进行双向绑定。
21
- * 选值为:'left'(左滑)、'close'(关闭状态)、'right'(右滑)。
22
- * */
23
- modelValue?: SwipeActionStatus
24
- /**
25
- * @description 是否禁用滑动操作
26
- * */
27
- disabled?: boolean
28
- /**
29
- * @description 是否自动关闭其他swipe按钮组(默认 true )
30
- * */
31
- autoClose?: boolean
32
- /**
33
- * @description 显示底部边框
34
- * */
35
- borderBottom?: boolean
36
- /**
37
- * @description 右侧按钮内容
38
- * */
39
- options?: SwipeActionOptionsVo[]
40
- /**
41
- * @description 动画过渡时间,单位ms(默认 350 )
42
- * */
43
- duration?: number
44
- /**
45
- * @description 在关闭滑动按钮前调用的钩子函数
46
- * @desc 可以在此函数中执行一些关闭前的操作,如确认提示等。
47
- * */
48
- beforeClose?: funtion | PropType<SwipeActionBeforeClose>
49
- /**
50
- * @description 定义需要用到的外部样式
51
- * */
52
- customStyle?: CSSProperties
53
- }
54
-
55
18
  export interface ISwipeActionEmits {
56
19
  /** 当滑动按钮打开时,点击整个滑动操作容器触发 click 事件 */
57
20
  (e: 'click', value: SwipeActionPosition): void