uview-plus 3.1.52 → 3.2.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 (134) hide show
  1. package/changelog.md +51 -0
  2. package/components/u-action-sheet/u-action-sheet.vue +1 -1
  3. package/components/u-album/u-album.vue +261 -261
  4. package/components/u-avatar/u-avatar.vue +3 -2
  5. package/components/u-avatar-group/u-avatar-group.vue +106 -106
  6. package/components/u-button/u-button.vue +6 -1
  7. package/components/u-calendar/u-calendar.vue +4 -3
  8. package/components/u-cell/u-cell.vue +4 -2
  9. package/components/u-checkbox/props.js +5 -0
  10. package/components/u-checkbox/u-checkbox.vue +29 -17
  11. package/components/u-code/u-code.vue +1 -1
  12. package/components/u-dropdown/props.js +8 -14
  13. package/components/u-dropdown/u-dropdown.vue +202 -77
  14. package/components/u-dropdown-item/props.js +45 -36
  15. package/components/u-dropdown-item/u-dropdown-item.vue +121 -148
  16. package/components/u-form/u-form.vue +1 -1
  17. package/components/u-form-item/props.js +6 -1
  18. package/components/u-form-item/u-form-item.vue +1 -1
  19. package/components/u-grid/u-grid.vue +4 -2
  20. package/components/u-grid-item/u-grid-item.vue +8 -7
  21. package/components/u-input/u-input.vue +1 -1
  22. package/components/u-lazy-load/u-lazy-load.vue +251 -0
  23. package/components/u-number-box/u-number-box.vue +4 -4
  24. package/components/u-picker/u-picker.vue +5 -2
  25. package/components/u-popup/u-popup.vue +1 -1
  26. package/components/u-radio/u-radio.vue +2 -2
  27. package/components/u-rate/u-rate.vue +1 -1
  28. package/components/u-read-more/u-read-more.vue +164 -160
  29. package/components/u-slider/u-slider.vue +6 -6
  30. package/components/u-steps-item/u-steps-item.vue +318 -318
  31. package/components/u-subsection/u-subsection.vue +35 -21
  32. package/components/u-swiper/u-swiper.vue +6 -8
  33. package/components/u-switch/u-switch.vue +1 -1
  34. package/components/u-tabbar-item/u-tabbar-item.vue +1 -1
  35. package/components/u-tabs/u-tabs.vue +1 -0
  36. package/components/u-tag/props.js +5 -2
  37. package/components/u-tag/u-tag.vue +1 -1
  38. package/components/u-text/u-text.vue +226 -226
  39. package/components/u-textarea/u-textarea.vue +275 -275
  40. package/components/u-transition/u-transition.vue +1 -1
  41. package/components/u-waterfall/u-waterfall.vue +225 -0
  42. package/index.js +5 -2
  43. package/libs/config/props/formItem.js +1 -0
  44. package/libs/config/props/tag.js +30 -29
  45. package/libs/css/common.scss +4 -1
  46. package/libs/css/components.scss +5 -5
  47. package/libs/css/flex.scss +45 -45
  48. package/libs/mixin/mixin.js +2 -2
  49. package/libs/mixin/mpShare.js +15 -13
  50. package/package.json +1 -1
  51. package/types/comps/_common.d.ts +9 -0
  52. package/types/comps/actionSheet.d.ts +121 -0
  53. package/types/comps/album.d.ts +72 -0
  54. package/types/comps/alert.d.ts +55 -0
  55. package/types/comps/avatar.d.ts +85 -0
  56. package/types/comps/avatarGroup.d.ts +62 -0
  57. package/types/comps/backTop.d.ts +74 -0
  58. package/types/comps/badge.d.ts +76 -0
  59. package/types/comps/button.d.ts +169 -0
  60. package/types/comps/calendar.d.ts +164 -0
  61. package/types/comps/cell.d.ts +133 -0
  62. package/types/comps/cellGroup.d.ts +27 -0
  63. package/types/comps/checkbox.d.ts +69 -0
  64. package/types/comps/checkboxGroup.d.ts +93 -0
  65. package/types/comps/code.d.ts +69 -0
  66. package/types/comps/codeInput.d.ts +98 -0
  67. package/types/comps/col.d.ts +43 -0
  68. package/types/comps/collapse.d.ts +52 -0
  69. package/types/comps/collapseItem.d.ts +83 -0
  70. package/types/comps/countDown.d.ts +60 -0
  71. package/types/comps/countTo.d.ts +88 -0
  72. package/types/comps/datetimePicker.d.ts +146 -0
  73. package/types/comps/divider.d.ts +58 -0
  74. package/types/comps/empty.d.ts +72 -0
  75. package/types/comps/form.d.ts +76 -0
  76. package/types/comps/formItem.d.ts +68 -0
  77. package/types/comps/gap.d.ts +35 -0
  78. package/types/comps/grid.d.ts +34 -0
  79. package/types/comps/gridItem.d.ts +28 -0
  80. package/types/comps/icon.d.ts +93 -0
  81. package/types/comps/image.d.ts +119 -0
  82. package/types/comps/indexAnchor.d.ts +38 -0
  83. package/types/comps/indexItem.d.ts +18 -0
  84. package/types/comps/indexList.d.ts +39 -0
  85. package/types/comps/input.d.ts +234 -0
  86. package/types/comps/keyboard.d.ts +125 -0
  87. package/types/comps/line.d.ts +44 -0
  88. package/types/comps/lineProgress.d.ts +51 -0
  89. package/types/comps/link.d.ts +51 -0
  90. package/types/comps/list.d.ts +92 -0
  91. package/types/comps/listItem.d.ts +18 -0
  92. package/types/comps/loadMore.d.ts +108 -0
  93. package/types/comps/loadingIcon.d.ts +68 -0
  94. package/types/comps/loadingPage.d.ts +58 -0
  95. package/types/comps/modal.d.ts +115 -0
  96. package/types/comps/navbar.d.ts +113 -0
  97. package/types/comps/noNetwork.d.ts +40 -0
  98. package/types/comps/noticeBar.d.ts +85 -0
  99. package/types/comps/notify.d.ts +73 -0
  100. package/types/comps/numberBox.d.ts +155 -0
  101. package/types/comps/overlay.d.ts +46 -0
  102. package/types/comps/parse.d.ts +101 -0
  103. package/types/comps/picker.d.ts +115 -0
  104. package/types/comps/popup.d.ts +103 -0
  105. package/types/comps/radio.d.ts +77 -0
  106. package/types/comps/radioGroup.d.ts +97 -0
  107. package/types/comps/rate.d.ts +85 -0
  108. package/types/comps/readMore.d.ts +80 -0
  109. package/types/comps/row.d.ts +34 -0
  110. package/types/comps/scrollList.d.ts +51 -0
  111. package/types/comps/search.d.ts +167 -0
  112. package/types/comps/skeleton.d.ts +70 -0
  113. package/types/comps/slider.d.ts +79 -0
  114. package/types/comps/steps.d.ts +48 -0
  115. package/types/comps/stepsItem.d.ts +41 -0
  116. package/types/comps/sticky.d.ts +48 -0
  117. package/types/comps/subsection.d.ts +64 -0
  118. package/types/comps/swipeAction.d.ts +24 -0
  119. package/types/comps/swipeActionItem.d.ts +58 -0
  120. package/types/comps/swiper.d.ts +142 -0
  121. package/types/comps/swiperIndicator.d.ts +37 -0
  122. package/types/comps/switch.d.ts +73 -0
  123. package/types/comps/tabbar.d.ts +54 -0
  124. package/types/comps/tabbarItem.d.ts +52 -0
  125. package/types/comps/tabs.d.ts +85 -0
  126. package/types/comps/tag.d.ts +93 -0
  127. package/types/comps/text.d.ts +110 -0
  128. package/types/comps/textarea.d.ts +158 -0
  129. package/types/comps/toast.d.ts +59 -0
  130. package/types/comps/tooltip.d.ts +71 -0
  131. package/types/comps/transition.d.ts +61 -0
  132. package/types/comps/upload.d.ts +163 -0
  133. package/types/comps.d.ts +99 -0
  134. package/types/index.d.ts +47 -0
@@ -0,0 +1,51 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface ScrollListProps {
4
+ /**
5
+ * 指示器的整体宽度
6
+ * @default 50
7
+ */
8
+ indicatorWidth?: string | number
9
+ /**
10
+ * 滑块的宽度
11
+ * @default 20
12
+ */
13
+ indicatorBarWidth?: string | number
14
+ /**
15
+ * 是否显示面板指示器
16
+ * @default true
17
+ */
18
+ indicator?: boolean
19
+ /**
20
+ * 指示器非激活颜色
21
+ * @default "#f2f2f2"
22
+ */
23
+ indicatorColor?: string
24
+ /**
25
+ * 指示器滑块颜色
26
+ * @default "#3c9cff"
27
+ */
28
+ indicatorActiveColor?: string
29
+ /**
30
+ * 指示器样式,可通过bottom,left,right进行定位
31
+ */
32
+ indicatorStyle: string | Record<string, any>
33
+ /**
34
+ * 滑动到左边时触发
35
+ */
36
+ onLeft?: () => any
37
+ /**
38
+ * 滑动到右边时触发
39
+ */
40
+ onRight?: () => any
41
+ }
42
+
43
+ declare interface _ScrollList {
44
+ new (): {
45
+ $props: AllowedComponentProps &
46
+ VNodeProps &
47
+ ScrollListProps
48
+ }
49
+ }
50
+
51
+ export declare const ScrollList: _ScrollList
@@ -0,0 +1,167 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+
4
+ declare interface SearchProps {
5
+ /**
6
+ * 双向绑定输入框搜索值
7
+ */
8
+ ['v-model']?: string
9
+ /**
10
+ * 搜索框形状,round-圆形,square-方形
11
+ * @default "round"
12
+ */
13
+ shape?: 'round' | 'square'
14
+ /**
15
+ * 搜索框背景颜色
16
+ * @default "#f2f2f2"
17
+ */
18
+ bgColor?: string
19
+ /**
20
+ * 占位文字内容
21
+ * @default "请输入关键字"
22
+ */
23
+ placeholder?: string
24
+ /**
25
+ * 是否启用清除控件
26
+ * @default true
27
+ */
28
+ clearabled?: boolean
29
+ /**
30
+ * 是否自动获得焦点
31
+ * @default false
32
+ */
33
+ focus?: boolean
34
+ /**
35
+ * 是否显示右侧控件(右侧的"搜索"按钮)
36
+ * @default true
37
+ */
38
+ showAction?: boolean
39
+ /**
40
+ * 右侧控件的样式,对象形式
41
+ */
42
+ actionStyle?: unknown
43
+ /**
44
+ * 右侧控件文字
45
+ * @default "搜索"
46
+ */
47
+ actionText?: string
48
+ /**
49
+ * 输入框内容水平对齐方式
50
+ * @default "left"
51
+ */
52
+ inputAlign?: 'left' | 'center' |'right'
53
+ /**
54
+ * 自定义输入框样式,对象形式
55
+ */
56
+ inputStyle?: unknown
57
+ /**
58
+ * 是否启用输入框
59
+ * @default false
60
+ */
61
+ disabled?: boolean
62
+ /**
63
+ * 边框颜色,配置了颜色,才会有边框
64
+ * @default "transparent"
65
+ */
66
+ borderColor?: string
67
+ /**
68
+ * 搜索图标的颜色,默认同输入框字体颜色
69
+ * @default "#909399"
70
+ */
71
+ searchIconColor?: string
72
+ /**
73
+ * 搜索图标的大小
74
+ * @default 22
75
+ */
76
+ searchIconSize?: number
77
+ /**
78
+ * 输入框字体颜色
79
+ * @default "#606266"
80
+ */
81
+ color?: string
82
+ /**
83
+ * placeholder的颜色
84
+ * @default "#909399"
85
+ */
86
+ placeholderColor?: string
87
+ /**
88
+ * 输入框左边的图标,可以为uView图标名称或图片路径
89
+ * @default "search"
90
+ */
91
+ searchIcon?: string
92
+ /**
93
+ * 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30rpx"、"30rpx 20rpx"等写法
94
+ * @default "0"
95
+ */
96
+ margin?: string
97
+ /**
98
+ * 是否开启动画,详见[文档](https://www.uviewui.com/components/search.html#%E6%98%AF%E5%90%A6%E5%BC%80%E5%90%AF%E5%8F%B3%E8%BE%B9%E6%8E%A7%E4%BB%B6)
99
+ * @default false
100
+ */
101
+ animation?: boolean
102
+ /**
103
+ * 输入框初始值
104
+ */
105
+ value?: string
106
+ /**
107
+ * 输入框最大能输入的长度,-1为不限制长度
108
+ * @default -1
109
+ */
110
+ maxlength?: string | number
111
+ /**
112
+ * 输入框高度,单位rpx
113
+ * @default 64
114
+ */
115
+ height?: string | number
116
+ /**
117
+ * 搜索左侧文本信息
118
+ */
119
+ label?: string | number
120
+ /**
121
+ * 输入框内容发生变化时触发
122
+ * @param value 输入框的值
123
+ */
124
+ onChange?: (value: any) => any
125
+ /**
126
+ * 用户确定搜索时触发,用户按回车键,或者手机键盘右下角的"搜索"键时触发
127
+ * @param value 输入框的值
128
+ */
129
+ onSearch?: (value: any) => any
130
+ /**
131
+ * 用户点击右侧控件时触发
132
+ * @param value 输入框的值
133
+ */
134
+ onCustom?: (value: any) => any
135
+ /**
136
+ * 输入框失去焦点时触发
137
+ * @param value 输入框的值
138
+ */
139
+ onBlur?: (value: any) => any
140
+ /**
141
+ * 输入框获得焦点时触发
142
+ * @param value 输入框的值
143
+ */
144
+ onFocus?: (value: any) => any
145
+ /**
146
+ * 配置了`clearabled`后,清空内容时会发出此事件
147
+ */
148
+ onClear?: () => any
149
+ /**
150
+ * `disabled`为`true`时,点击输入框,发出此事件,用于跳转搜索页
151
+ */
152
+ onClick?: () => any
153
+ /**
154
+ * 左侧icon点击时候时触发
155
+ */
156
+ onClickIcon?: () => any
157
+ }
158
+
159
+ declare interface _Search {
160
+ new (): {
161
+ $props: AllowedComponentProps &
162
+ VNodeProps &
163
+ SearchProps
164
+ }
165
+ }
166
+
167
+ export declare const Search: _Search
@@ -0,0 +1,70 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+
4
+ declare interface SkeletonProps {
5
+ /**
6
+ * 是否显示骨架占位图,设置为`false`将会展示子组件内容
7
+ * @default true
8
+ */
9
+ loading?: boolean
10
+ /**
11
+ * 是否开启动画效果
12
+ * @default true
13
+ */
14
+ animate?: boolean
15
+ /**
16
+ * 段落占位图行数
17
+ * @default 0
18
+ */
19
+ rows?: string | number
20
+ /**
21
+ * 段落占位图的宽度,可以为百分比,数值,带单位字符串等,可通过数组传入指定每个段落行的宽度
22
+ * @default "100%"
23
+ */
24
+ rowsWidth?: string | number | any[]
25
+ /**
26
+ * 段落的高度
27
+ * @default 18
28
+ */
29
+ rowsHeight?: string | number | any[]
30
+ /**
31
+ * 是否展示标题占位图
32
+ * @default true
33
+ */
34
+ title?: boolean
35
+ /**
36
+ * 标题的宽度
37
+ * @default "50%"
38
+ */
39
+ titleWidth?: string | number
40
+ /**
41
+ * 标题的高度
42
+ * @default 18
43
+ */
44
+ titleHeight?: string | number
45
+ /**
46
+ * 是否展示头像占位图
47
+ * @default false
48
+ */
49
+ avatar?: boolean
50
+ /**
51
+ * 头像占位图大小
52
+ * @default 32
53
+ */
54
+ avatarSize?: string | number
55
+ /**
56
+ * 头像占位图的形状
57
+ * @default "circle"
58
+ */
59
+ avatarShape?: 'circle' | 'square'
60
+ }
61
+
62
+ declare interface _Skeleton {
63
+ new (): {
64
+ $props: AllowedComponentProps &
65
+ VNodeProps &
66
+ SkeletonProps
67
+ }
68
+ }
69
+
70
+ export declare const Skeleton: _Skeleton
@@ -0,0 +1,79 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+
4
+ declare interface SliderProps {
5
+ /**
6
+ * 双向绑定滑块选择值
7
+ * @default 0
8
+ */
9
+ value?: string | number
10
+ /**
11
+ * 滑块的大小
12
+ * @default 18
13
+ */
14
+ blockSize?: string | number
15
+ /**
16
+ * 可选的最小值(0-100之间)
17
+ * @default 1
18
+ */
19
+ min?: string | number
20
+ /**
21
+ * 可选的最大值(0-100之间)
22
+ * @default 100
23
+ */
24
+ max?: string | number
25
+ /**
26
+ * 选择的步长
27
+ * @default 1
28
+ */
29
+ step?: string | number
30
+ /**
31
+ * 进度条的激活部分颜色
32
+ * @default "#2979ff"
33
+ */
34
+ activeColor?: string
35
+ /**
36
+ * 进度条的背景颜色
37
+ * @default "#c0c4cc"
38
+ */
39
+ inactiveColor?: string
40
+ /**
41
+ * 滑块背景颜色
42
+ * @default "#ffffff"
43
+ */
44
+ blockColor?: string
45
+ /**
46
+ * 是否显示当前 value
47
+ * @default false
48
+ */
49
+ showValue?: boolean
50
+ /**
51
+ * 滑块按钮自定义样式
52
+ */
53
+ blockStyle?: unknown
54
+ /**
55
+ * 更新v-model的
56
+ * @param value 当前值
57
+ */
58
+ onInput?: (value: any) => any
59
+ /**
60
+ * 触发事件(拖动过程中)
61
+ * @param value 当前值
62
+ */
63
+ onChanging?: (value: any) => any
64
+ /**
65
+ * 触发事件
66
+ * @param value 当前值
67
+ */
68
+ onChange?: (value: any) => any
69
+ }
70
+
71
+ declare interface _Slider {
72
+ new (): {
73
+ $props: AllowedComponentProps &
74
+ VNodeProps &
75
+ SliderProps
76
+ }
77
+ }
78
+
79
+ export declare const Slider: _Slider
@@ -0,0 +1,48 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+
4
+ declare interface StepsProps {
5
+ /**
6
+ * 方向
7
+ * @default "row"
8
+ */
9
+ direction?: 'row' | 'column'
10
+ /**
11
+ * 设置当前处于第几步
12
+ * @default 0
13
+ */
14
+ current?: number | string
15
+ /**
16
+ * 激活状态颜色
17
+ * @default "#3c9cff"
18
+ */
19
+ activeColor?: string
20
+ /**
21
+ * 未激活状态颜色
22
+ * @default "#969799"
23
+ */
24
+ inactiveColor?: string
25
+ /**
26
+ * 激活状态的图标
27
+ */
28
+ activeIcon?: string
29
+ /**
30
+ * 未激活状态图标
31
+ */
32
+ inactiveIcon?: string
33
+ /**
34
+ * 是否显示点类型
35
+ * @default false
36
+ */
37
+ dot?: boolean
38
+ }
39
+
40
+ declare interface _Steps {
41
+ new (): {
42
+ $props: AllowedComponentProps &
43
+ VNodeProps &
44
+ StepsProps
45
+ }
46
+ }
47
+
48
+ export declare const Steps: _Steps
@@ -0,0 +1,41 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+
4
+ declare interface StepsItemProps {
5
+ /**
6
+ * 标题文字
7
+ */
8
+ title?: string
9
+ /**
10
+ * 描述文本
11
+ */
12
+ current?: string
13
+ /**
14
+ * 图标大小
15
+ * @default 17
16
+ */
17
+ iconSize?: string | number
18
+ /**
19
+ * 当前步骤是否处于失败状态
20
+ * @default false
21
+ */
22
+ error?: boolean
23
+ }
24
+
25
+ declare interface StepsItemSlots {
26
+ /**
27
+ * 自定步骤状态内容
28
+ */
29
+ ['default']?: () => any
30
+ }
31
+
32
+ declare interface _StepsItem {
33
+ new (): {
34
+ $props: AllowedComponentProps &
35
+ VNodeProps &
36
+ StepsItemProps
37
+ $slots: StepsItemSlots
38
+ }
39
+ }
40
+
41
+ export declare const StepsItem: _StepsItem
@@ -0,0 +1,48 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+
4
+ declare interface StickyProps {
5
+ /**
6
+ * 吸顶时与顶部的距离,单位rpx
7
+ * @default 0
8
+ */
9
+ offsetTop?: string | number
10
+ /**
11
+ * 导航栏高度,自定义导航栏时,需要传入此值
12
+ * @default 0
13
+ */
14
+ customNavHeight?: string | number
15
+ /**
16
+ * 是否禁用吸顶功能
17
+ * @default false
18
+ */
19
+ disabled?: boolean
20
+ /**
21
+ * 组件背景颜色
22
+ * @default #ffffff
23
+ */
24
+ bgColor?: string
25
+ /**
26
+ * 吸顶时的z-index值,NVUE无效
27
+ */
28
+ zIndex?: string | number
29
+ /**
30
+ * 自定义标识,用于区分是哪一个组件
31
+ */
32
+ index?: string | number
33
+ }
34
+
35
+ declare interface StickySlots {
36
+ ['default']?: () => any
37
+ }
38
+
39
+ declare interface _Sticky {
40
+ new (): {
41
+ $props: AllowedComponentProps &
42
+ VNodeProps &
43
+ StickyProps
44
+ $slots: StickySlots
45
+ }
46
+ }
47
+
48
+ export declare const Sticky: _Sticky
@@ -0,0 +1,64 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+
4
+ declare interface SubsectionProps {
5
+ /**
6
+ * 选项的数组
7
+ */
8
+ list?: any[]
9
+ /**
10
+ * 初始化时默认选中的选项索引值
11
+ * @default 0
12
+ */
13
+ current?: string | number
14
+ /**
15
+ * 激活时的颜色
16
+ * @default "#3c9cff"
17
+ */
18
+ activeColor?: string
19
+ /**
20
+ * 未激活时的颜色
21
+ * @default "#303133"
22
+ */
23
+ inactiveColor?: string
24
+ /**
25
+ * 模式选择
26
+ * @default "button"
27
+ */
28
+ mode?: 'button' | 'subsection'
29
+ /**
30
+ * 字体大小,单位px
31
+ * @default 12
32
+ */
33
+ fontSize?: string | number
34
+ /**
35
+ * 激活选项的字体是否加粗
36
+ * @default true
37
+ */
38
+ bold?: boolean
39
+ /**
40
+ * 组件背景颜色,`mode`为`button`时有效
41
+ * @default "#eeeeef"
42
+ */
43
+ bgColor?: string
44
+ /**
45
+ * 从`list`元素对象中读取的键名
46
+ * @default "name"
47
+ */
48
+ keyName?: string
49
+ /**
50
+ * 分段器选项发生改变时触发
51
+ * @param index 选项的index索引值,从0开始
52
+ */
53
+ onChange?: (index: number) => any
54
+ }
55
+
56
+ declare interface _Subsection {
57
+ new (): {
58
+ $props: AllowedComponentProps &
59
+ VNodeProps &
60
+ SubsectionProps
61
+ }
62
+ }
63
+
64
+ export declare const Subsection: _Subsection
@@ -0,0 +1,24 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface SwipeActionProps {
4
+ /**
5
+ * 是否自动关闭其他swipe按钮组
6
+ * @default true
7
+ */
8
+ autoClose?: boolean
9
+ /**
10
+ * 点击组件时触发
11
+ * @param index 索引
12
+ */
13
+ onClick?: (index: number) => any
14
+ }
15
+
16
+ declare interface _SwipeAction {
17
+ new (): {
18
+ $props: AllowedComponentProps &
19
+ VNodeProps &
20
+ SwipeActionProps
21
+ }
22
+ }
23
+
24
+ export declare const SwipeAction: _SwipeAction
@@ -0,0 +1,58 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface SwipeActionItemProps {
4
+ /**
5
+ * 控制打开或者关闭
6
+ * @default false
7
+ */
8
+ show?: boolean
9
+ /**
10
+ * 标识符,如果是v-for,可用index索引
11
+ */
12
+ index?: string | number
13
+ /**
14
+ * 是否禁用
15
+ * @default false
16
+ */
17
+ disabled?: boolean
18
+ /**
19
+ * 是否自动关闭其他swipe按钮组
20
+ * @default true
21
+ */
22
+ autoClose?: boolean
23
+ /**
24
+ * 滑动距离阈值,只有大于此值,才被认为是要打开菜单
25
+ * @default 20
26
+ */
27
+ threshold?: number
28
+ /**
29
+ * 右侧按钮内容
30
+ */
31
+ options?: any[]
32
+ /**
33
+ * 动画过渡时间,单位ms
34
+ * @default 300
35
+ */
36
+ duration?: string | number
37
+ /**
38
+ * 标识符,如果是v-for,可用index索引值
39
+ */
40
+ name?: string | number
41
+ /**
42
+ * 按钮被点击时触发
43
+ * @param name props参数`name`的值
44
+ * @param index 第几个按钮被点击
45
+ */
46
+ onClick?: (name: any, index: number) => any
47
+ }
48
+
49
+
50
+ declare interface _SwipeActionItem {
51
+ new (): {
52
+ $props: AllowedComponentProps &
53
+ VNodeProps &
54
+ SwipeActionItemProps
55
+ }
56
+ }
57
+
58
+ export declare const SwipeActionItem: _SwipeActionItem