uview-plus 3.2.3 → 3.2.6

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 (100) hide show
  1. package/changelog.md +9 -0
  2. package/components/u-checkbox/u-checkbox.vue +2 -2
  3. package/components/u-number-box/u-number-box.vue +4 -4
  4. package/components/u-picker/u-picker.vue +1 -1
  5. package/components/u-radio/u-radio.vue +2 -2
  6. package/components/u-rate/u-rate.vue +1 -1
  7. package/components/u-subsection/u-subsection.vue +22 -14
  8. package/components/u-swipe-action-item/u-swipe-action-item.vue +18 -1
  9. package/components/u-switch/u-switch.vue +1 -1
  10. package/components/u-tabbar-item/u-tabbar-item.vue +1 -1
  11. package/components/u-tag/u-tag.vue +1 -1
  12. package/index.js +5 -2
  13. package/libs/css/common.scss +3 -0
  14. package/libs/mixin/mpShare.js +15 -13
  15. package/package.json +2 -1
  16. package/types/comps/_common.d.ts +9 -0
  17. package/types/comps/actionSheet.d.ts +121 -0
  18. package/types/comps/album.d.ts +72 -0
  19. package/types/comps/alert.d.ts +55 -0
  20. package/types/comps/avatar.d.ts +85 -0
  21. package/types/comps/avatarGroup.d.ts +62 -0
  22. package/types/comps/backTop.d.ts +74 -0
  23. package/types/comps/badge.d.ts +76 -0
  24. package/types/comps/button.d.ts +169 -0
  25. package/types/comps/calendar.d.ts +164 -0
  26. package/types/comps/cell.d.ts +133 -0
  27. package/types/comps/cellGroup.d.ts +27 -0
  28. package/types/comps/checkbox.d.ts +69 -0
  29. package/types/comps/checkboxGroup.d.ts +93 -0
  30. package/types/comps/code.d.ts +69 -0
  31. package/types/comps/codeInput.d.ts +98 -0
  32. package/types/comps/col.d.ts +43 -0
  33. package/types/comps/collapse.d.ts +52 -0
  34. package/types/comps/collapseItem.d.ts +83 -0
  35. package/types/comps/countDown.d.ts +60 -0
  36. package/types/comps/countTo.d.ts +88 -0
  37. package/types/comps/datetimePicker.d.ts +146 -0
  38. package/types/comps/divider.d.ts +58 -0
  39. package/types/comps/empty.d.ts +72 -0
  40. package/types/comps/form.d.ts +76 -0
  41. package/types/comps/formItem.d.ts +68 -0
  42. package/types/comps/gap.d.ts +35 -0
  43. package/types/comps/grid.d.ts +34 -0
  44. package/types/comps/gridItem.d.ts +28 -0
  45. package/types/comps/icon.d.ts +93 -0
  46. package/types/comps/image.d.ts +119 -0
  47. package/types/comps/indexAnchor.d.ts +38 -0
  48. package/types/comps/indexItem.d.ts +18 -0
  49. package/types/comps/indexList.d.ts +39 -0
  50. package/types/comps/input.d.ts +234 -0
  51. package/types/comps/keyboard.d.ts +125 -0
  52. package/types/comps/line.d.ts +44 -0
  53. package/types/comps/lineProgress.d.ts +51 -0
  54. package/types/comps/link.d.ts +51 -0
  55. package/types/comps/list.d.ts +92 -0
  56. package/types/comps/listItem.d.ts +18 -0
  57. package/types/comps/loadMore.d.ts +108 -0
  58. package/types/comps/loadingIcon.d.ts +68 -0
  59. package/types/comps/loadingPage.d.ts +58 -0
  60. package/types/comps/modal.d.ts +115 -0
  61. package/types/comps/navbar.d.ts +113 -0
  62. package/types/comps/noNetwork.d.ts +40 -0
  63. package/types/comps/noticeBar.d.ts +85 -0
  64. package/types/comps/notify.d.ts +73 -0
  65. package/types/comps/numberBox.d.ts +155 -0
  66. package/types/comps/overlay.d.ts +46 -0
  67. package/types/comps/parse.d.ts +101 -0
  68. package/types/comps/picker.d.ts +115 -0
  69. package/types/comps/popup.d.ts +103 -0
  70. package/types/comps/radio.d.ts +77 -0
  71. package/types/comps/radioGroup.d.ts +97 -0
  72. package/types/comps/rate.d.ts +85 -0
  73. package/types/comps/readMore.d.ts +80 -0
  74. package/types/comps/row.d.ts +34 -0
  75. package/types/comps/scrollList.d.ts +51 -0
  76. package/types/comps/search.d.ts +167 -0
  77. package/types/comps/skeleton.d.ts +70 -0
  78. package/types/comps/slider.d.ts +79 -0
  79. package/types/comps/steps.d.ts +48 -0
  80. package/types/comps/stepsItem.d.ts +41 -0
  81. package/types/comps/sticky.d.ts +48 -0
  82. package/types/comps/subsection.d.ts +64 -0
  83. package/types/comps/swipeAction.d.ts +24 -0
  84. package/types/comps/swipeActionItem.d.ts +58 -0
  85. package/types/comps/swiper.d.ts +142 -0
  86. package/types/comps/swiperIndicator.d.ts +37 -0
  87. package/types/comps/switch.d.ts +73 -0
  88. package/types/comps/tabbar.d.ts +54 -0
  89. package/types/comps/tabbarItem.d.ts +52 -0
  90. package/types/comps/tabs.d.ts +85 -0
  91. package/types/comps/tag.d.ts +93 -0
  92. package/types/comps/text.d.ts +110 -0
  93. package/types/comps/textarea.d.ts +158 -0
  94. package/types/comps/toast.d.ts +59 -0
  95. package/types/comps/tooltip.d.ts +71 -0
  96. package/types/comps/transition.d.ts +61 -0
  97. package/types/comps/upload.d.ts +163 -0
  98. package/types/comps.d.ts +99 -0
  99. package/types/index.d.ts +48 -0
  100. package/types/package.json +26 -0
@@ -0,0 +1,52 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TabbarItemProps {
4
+ /**
5
+ * item标签的名称,作为与u-tabbar的value参数匹配的标识符
6
+ * @default null
7
+ */
8
+ name?: string | number
9
+ /**
10
+ * uView内置图标或者绝对路径的图片
11
+ */
12
+ icon?: string
13
+ /**
14
+ * 右上角的角标提示信息
15
+ * @default null
16
+ */
17
+ badge?: string | number
18
+ /**
19
+ * 是否显示圆点,将会覆盖badge参数
20
+ * @default false
21
+ */
22
+ dot?: boolean
23
+ /**
24
+ * 描述文本
25
+ */
26
+ text?: string
27
+ /**
28
+ * 控制徽标的位置
29
+ * @default "top: 6px;right:2px;"
30
+ */
31
+ badgeStyle?: Record<string, any> | string
32
+ /**
33
+ * 切换选项时触发
34
+ * @param index 当前要切换项的name
35
+ */
36
+ onChange?: (index: any) => any
37
+ /**
38
+ * 切换选项时触发
39
+ * @param index 当前要切换项的name
40
+ */
41
+ onClick?: (index: any) => any
42
+ }
43
+
44
+ declare interface _TabbarItem {
45
+ new (): {
46
+ $props: AllowedComponentProps &
47
+ VNodeProps &
48
+ TabbarItemProps
49
+ }
50
+ }
51
+
52
+ export declare const TabbarItem: _TabbarItem
@@ -0,0 +1,85 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TabsProps {
4
+ /**
5
+ * 滑块移动一次所需的时间,单位ms
6
+ * @default 300
7
+ */
8
+ duration?: string | number
9
+ /**
10
+ * 标签数组,元素为对象
11
+ */
12
+ list?: any[]
13
+ /**
14
+ * 滑块颜色
15
+ * @default "#3c9cff"
16
+ */
17
+ lineColor?: string
18
+ /**
19
+ * 菜单选择中时的样式
20
+ * @default "{ color: '#303133' }"
21
+ */
22
+ activeStyle?: unknown
23
+ /**
24
+ * 菜单非选中时的样式
25
+ * @default "{ color: '#606266' }"
26
+ */
27
+ inactiveStyle?: unknown
28
+ /**
29
+ * 滑块长度
30
+ * @default 20
31
+ */
32
+ lineWidth?: string | number
33
+ /**
34
+ * 滑块高度
35
+ * @default 3
36
+ */
37
+ lineHeight?: string | number
38
+ /**
39
+ * 滑块背景显示大小
40
+ * @default "cover"
41
+ */
42
+ lineBgSize?: string
43
+ /**
44
+ * 菜单item的样式
45
+ * @default "{ height: '44px' }"
46
+ */
47
+ itemStyle?: unknown
48
+ /**
49
+ * 菜单是否可滚动
50
+ * @default true
51
+ */
52
+ scrollable?: boolean
53
+ /**
54
+ * 当前选中标签的索引
55
+ * @default 0
56
+ */
57
+ current?: string | number
58
+ /**
59
+ * 从`list`元素对象中读取的键名
60
+ * @default "name"
61
+ */
62
+ keyName?: string
63
+ /**
64
+ * 点击标签时触发
65
+ * @param index 标签索引值
66
+ * @param item 传入的其他值
67
+ */
68
+ onClick?: (index: number, item: any) => any
69
+ /**
70
+ * 标签索引改变时触发(`disalbed`时不会触发)
71
+ * @param index 标签索引值
72
+ * @param item 传入的其他值
73
+ */
74
+ onChange?: (index: number, item: any) => any
75
+ }
76
+
77
+ declare interface _Tabs {
78
+ new (): {
79
+ $props: AllowedComponentProps &
80
+ VNodeProps &
81
+ TabsProps
82
+ }
83
+ }
84
+
85
+ export declare const Tabs: _Tabs
@@ -0,0 +1,93 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TagProps {
4
+ /**
5
+ * 主题类型
6
+ * @default "primary"
7
+ */
8
+ type?: 'primary' | 'success' | 'info' | 'warning' | 'error'
9
+ /**
10
+ * 不可用
11
+ * @default false
12
+ */
13
+ disabled?: boolean | string
14
+ /**
15
+ * 标签大小
16
+ * @default "medium"
17
+ */
18
+ size?: 'medium' | 'large' | 'mini'
19
+ /**
20
+ * 标签形状
21
+ * @default "square"
22
+ */
23
+ shape?: 'square' | 'circle'
24
+ /**
25
+ * 标签的文字内容
26
+ */
27
+ text?: string | number
28
+ /**
29
+ * 背景颜色,默认为空字符串,即不处理
30
+ * @default "#C6C7CB"
31
+ */
32
+ bgColor?: string
33
+ /**
34
+ * 标签字体颜色,默认为空字符串,即不处理
35
+ */
36
+ color?: string
37
+ /**
38
+ * 标签的边框颜色
39
+ */
40
+ borderColor?: string
41
+ /**
42
+ * 关闭按钮图标的颜色
43
+ */
44
+ closeColor?: string
45
+ /**
46
+ * 点击时返回的索引值,用于区分例遍的数组哪个元素被点击了
47
+ */
48
+ name?: string | number
49
+ /**
50
+ * 镂空时是否填充背景色
51
+ * @default false
52
+ */
53
+ plainFill?: boolean
54
+ /**
55
+ * 是否镂空
56
+ * @default false
57
+ */
58
+ plain?: boolean
59
+ /**
60
+ * 是否可关闭,设置为`true`,文字右边会出现一个关闭图标
61
+ * @default false
62
+ */
63
+ closable?: boolean
64
+ /**
65
+ * 标签显示与否
66
+ * @default true
67
+ */
68
+ show?: boolean
69
+ /**
70
+ * 内置图标,或绝对路径的图片
71
+ */
72
+ icon?: string
73
+ /**
74
+ * 点击触发事件
75
+ * @param index 传递的`index`参数值
76
+ */
77
+ onClick?: (index: number) => any
78
+ /**
79
+ * `closable`为`true`时,点击标签关闭按钮触发
80
+ * @param index 传递的`index`参数值
81
+ */
82
+ onClose?: (index: number) => any
83
+ }
84
+
85
+ declare interface _Tag {
86
+ new (): {
87
+ $props: AllowedComponentProps &
88
+ VNodeProps &
89
+ TagProps
90
+ }
91
+ }
92
+
93
+ export declare const Tag: _Tag
@@ -0,0 +1,110 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TextProps {
4
+ /**
5
+ * 主题颜色
6
+ */
7
+ type?: string
8
+ /**
9
+ * 是否显示
10
+ * @default true
11
+ */
12
+ show?: boolean
13
+ /**
14
+ * 显示的值
15
+ */
16
+ text?: string | number
17
+ /**
18
+ * 前置图标
19
+ */
20
+ prefixIcon?: string
21
+ /**
22
+ * 后置图标
23
+ */
24
+ suffixIcon?: string
25
+ /**
26
+ * 文本处理的匹配模式text-普通文本,price-价格,phone-手机号,name-姓名,date-日期,link-超链接
27
+ */
28
+ mode?: 'text' | 'price' | 'phone' | 'name' | 'date' | 'link'
29
+ /**
30
+ * mode=link下,配置的链接
31
+ */
32
+ href?: string
33
+ /**
34
+ * 格式化规则
35
+ */
36
+ format?: string | ((value: any) => any)
37
+ /**
38
+ * mode=phone时,点击文本是否拨打电话
39
+ * @default false
40
+ */
41
+ call?: boolean
42
+ /**
43
+ * 小程序的打开方式
44
+ */
45
+ openType?: string
46
+ /**
47
+ * 是否粗体,默认normal
48
+ * @default false
49
+ */
50
+ bold?: boolean
51
+ /**
52
+ * 是否块状
53
+ */
54
+ block?: boolean
55
+ /**
56
+ * 文本显示的行数,如果设置,超出此行数,将会显示省略号
57
+ */
58
+ lines?: string | number
59
+ /**
60
+ * 文本颜色
61
+ * @default "#303133"
62
+ */
63
+ color?: string
64
+ /**
65
+ * 字体大小
66
+ * @default 15
67
+ */
68
+ size?: string | number
69
+ /**
70
+ * 图标的样式
71
+ */
72
+ iconStyle?: Record<string, any> | string
73
+ /**
74
+ * 文字装饰,下划线,中划线等
75
+ * @default "none"
76
+ */
77
+ decoration?: 'none' | 'underline' | 'line-through'
78
+ /**
79
+ * 外边距,对象、字符串,数值形式均可
80
+ */
81
+ margin?: Record<string, any> | string | number
82
+ /**
83
+ * 文本行高
84
+ */
85
+ lineHeight?: number | string
86
+ /**
87
+ * 文本对齐方式
88
+ * @default "left"
89
+ */
90
+ align?: 'left' | 'center' | 'right'
91
+ /**
92
+ * 文字换行
93
+ * @default "normal"
94
+ */
95
+ wordWrap?: 'normal' | 'break-word' | 'any-where'
96
+ /**
97
+ * 点击触发事件
98
+ */
99
+ onClick?: () => any
100
+ }
101
+
102
+ declare interface _Text {
103
+ new (): {
104
+ $props: AllowedComponentProps &
105
+ VNodeProps &
106
+ TextProps
107
+ }
108
+ }
109
+
110
+ export declare const Text: _Text
@@ -0,0 +1,158 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TextareaProps {
4
+ /**
5
+ * 输入框的内容
6
+ */
7
+ value?: string | number
8
+ /**
9
+ * 输入框为空时占位符
10
+ */
11
+ placeholder?: string | number
12
+ /**
13
+ * 输入框高度
14
+ * @default 70
15
+ */
16
+ height?: string | number
17
+ /**
18
+ * 设置键盘右下角按钮的文字,仅微信小程序,App-vue和H5有效
19
+ * @default "done"
20
+ */
21
+ confirmType?: string
22
+ /**
23
+ * 是否禁用
24
+ * @default false
25
+ */
26
+ disabled?: boolean
27
+ /**
28
+ * 是否显示统计字数
29
+ * @default false
30
+ */
31
+ count?: boolean
32
+ /**
33
+ * 是否自动获取焦点,nvue不支持,H5取决于浏览器的实现
34
+ * @default false
35
+ */
36
+ focus?: boolean
37
+ /**
38
+ * 是否自动增加高度
39
+ * @default false
40
+ */
41
+ autoHeight?: boolean
42
+ /**
43
+ * 是否忽略组件内对文本合成系统事件的处理。为 false 时将触发 compositionstart、compositionend、compositionupdate 事件,且在文本合成期间会触发 input 事件
44
+ * @default true
45
+ */
46
+ ignoreCompositionEvent?: boolean
47
+ /**
48
+ * 如果textarea是在一个position:fixed的区域,需要显示指定属性fixed为true
49
+ * @default false
50
+ */
51
+ fixed?: boolean
52
+ /**
53
+ * 指定光标与键盘的距离
54
+ * @default 0
55
+ */
56
+ cursorSpacing?: number
57
+ /**
58
+ * 指定focus时的光标位置
59
+ */
60
+ cursor?: string | number
61
+ /**
62
+ * 是否显示键盘上方带有”完成“按钮那一栏
63
+ * @default true
64
+ */
65
+ showConfirmBar?: boolean
66
+ /**
67
+ * 光标起始位置,自动聚焦时有效,需与selection-end搭配使用
68
+ * @default -1
69
+ */
70
+ selectionStart?: number
71
+ /**
72
+ * 光标结束位置,自动聚焦时有效,需与selection-start搭配使用
73
+ * @default -1
74
+ */
75
+ selectionEnd?: number
76
+ /**
77
+ * 键盘弹起时,是否自动上推页面
78
+ * @default true
79
+ */
80
+ adjustPosition?: boolean
81
+ /**
82
+ * 是否去掉 iOS 下的默认内边距,只微信小程序有效
83
+ * @default false
84
+ */
85
+ disableDefaultPadding?: boolean
86
+ /**
87
+ * focus时,点击页面的时候不收起键盘,只微信小程序有效
88
+ * @default false
89
+ */
90
+ holdKeyboard?: boolean
91
+ /**
92
+ * 最大输入长度,设置为 -1 的时候不限制最大长度
93
+ * @default 140
94
+ */
95
+ maxlength?: string | number
96
+ /**
97
+ * 边框类型,surround-四周边框,none-无边框,bottom-底部边框
98
+ * @default "surround"
99
+ */
100
+ border?: 'surround' | 'none' | 'bottom'
101
+ /**
102
+ * 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
103
+ * @default "textarea-placeholder"
104
+ */
105
+ placeholderClass?: string
106
+ /**
107
+ * 指定placeholder的样式
108
+ * @default "color: #c0c4cc"
109
+ */
110
+ placeholderStyle?: unknown
111
+ /**
112
+ * 输入过滤或格式化函数(如需兼容微信小程序,则只能通过setFormatter方法)
113
+ */
114
+ formatter?: (...args: any) => any
115
+ /**
116
+ * 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
117
+ */
118
+ onFocus?: (...args: any) => any
119
+ /**
120
+ * 输入框失去焦点时触发,event.detail = {value, cursor}
121
+ */
122
+ onBlur?: (...args: any) => any
123
+ /**
124
+ * 输入框行数变化时调用,event.detail = {height: 0, heightRpx: 0, lineCount: 0}
125
+ */
126
+ onLinechange?: (...args: any) => any
127
+ /**
128
+ * 当键盘输入时,触发 input 事件
129
+ */
130
+ onInput?: (...args: any) => any
131
+ /**
132
+ * 点击完成时, 触发 confirm 事件
133
+ */
134
+ onConfirm?: (...args: any) => any
135
+ /**
136
+ * 键盘高度发生变化的时候触发此事件
137
+ */
138
+ onKeyboardheightchange?: (...args: any) => any
139
+ }
140
+
141
+ declare interface _TextareaRef {
142
+ /**
143
+ * 为兼容微信小程序而暴露的内部方法,详细见[文档](https://www.uviewui.com/components/textarea.html#%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%A4%84%E7%90%86)
144
+ */
145
+ setFormatter: (...args: any) => any
146
+ }
147
+
148
+ declare interface _Textarea {
149
+ new (): {
150
+ $props: AllowedComponentProps &
151
+ VNodeProps &
152
+ TextareaProps
153
+ }
154
+ }
155
+
156
+ export declare const Textarea: _Textarea
157
+
158
+ export declare const TextareaRef: _TextareaRef
@@ -0,0 +1,59 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface ToastProps {
4
+ /**
5
+ * 是否加载中
6
+ * @default false
7
+ */
8
+ loading?: boolean
9
+ /**
10
+ * 显示的文本
11
+ */
12
+ message?: string | number
13
+ /**
14
+ * 图标,或者绝对路径的图片
15
+ */
16
+ icon?: string
17
+ /**
18
+ * toast出现的位置
19
+ * @default "center"
20
+ */
21
+ position?: 'top' | 'center' | 'bottom'
22
+ /**
23
+ * 主题类型
24
+ * @default "default"
25
+ */
26
+ type?: 'default' | 'error' | 'success' | 'loading'
27
+ /**
28
+ * 跳转的参数
29
+ */
30
+ params?: Record<string, any>
31
+ /**
32
+ * 展示时间,单位ms
33
+ * @default 2000
34
+ */
35
+ duration?: string | number
36
+ /**
37
+ * 执行完后的回调函数
38
+ */
39
+ complete?: () => any
40
+ }
41
+
42
+ declare interface _ToastRef {
43
+ /**
44
+ * 显示toast,如需一进入页面就显示toast,请在onReady生命周期调用
45
+ */
46
+ show: () => void
47
+ }
48
+
49
+ declare interface _Toast {
50
+ new (): {
51
+ $props: AllowedComponentProps &
52
+ VNodeProps &
53
+ ToastProps
54
+ }
55
+ }
56
+
57
+ export declare const Toast: _Toast
58
+
59
+ export declare const ToastRef: _ToastRef
@@ -0,0 +1,71 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TooltipProps {
4
+ /**
5
+ * 需要显示的提示文字
6
+ */
7
+ text?: string | number
8
+ /**
9
+ * 点击复制按钮时,复制的文本,为空则使用text值
10
+ */
11
+ copyText?: string | number
12
+ /**
13
+ * 文本大小
14
+ * @default 14
15
+ */
16
+ size?: string | number
17
+ /**
18
+ * 字体颜色
19
+ * @default "#606266"
20
+ */
21
+ color?: string
22
+ /**
23
+ * 弹出提示框时,文本的背景色
24
+ * @default "transparent"
25
+ */
26
+ bgColor?: string
27
+ /**
28
+ * 弹出提示的方向
29
+ * @default "top"
30
+ */
31
+ direction?: 'top' | 'bottom'
32
+ /**
33
+ * 弹出提示的z-index,nvue无效
34
+ * @default 10071
35
+ */
36
+ zIndex?: string | number
37
+ /**
38
+ * 是否显示复制按钮
39
+ * @default true
40
+ */
41
+ showCopy?: boolean
42
+ /**
43
+ * 扩展的按钮组
44
+ */
45
+ buttons?: any[]
46
+ /**
47
+ * 是否显示透明遮罩以防止触摸穿透
48
+ * @default true
49
+ */
50
+ overlay?: boolean
51
+ /**
52
+ * 是否显示复制成功或者失败的`toast`
53
+ * @default true
54
+ */
55
+ showToast?: boolean
56
+ /**
57
+ * 点击触发事件
58
+ * @param index 被点击按钮的索引
59
+ */
60
+ onClick?: (index: number) => any
61
+ }
62
+
63
+ declare interface _Tooltip {
64
+ new (): {
65
+ $props: AllowedComponentProps &
66
+ VNodeProps &
67
+ TooltipProps
68
+ }
69
+ }
70
+
71
+ export declare const Tooltip: _Tooltip
@@ -0,0 +1,61 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface TransitionProps {
4
+ /**
5
+ * 是否展示组件
6
+ * @default false
7
+ */
8
+ show?: boolean
9
+ /**
10
+ * 使用的动画模式
11
+ * @default "fade"
12
+ */
13
+ mode?: 'fade' | 'fade-up' | 'fade-down' | 'fade-left' | 'fade-right' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'zoom-in' | 'zoom-out'
14
+ /**
15
+ * 动画的执行时间,单位ms
16
+ * @default 300
17
+ */
18
+ duration?: string | number
19
+ /**
20
+ * 使用的动画过渡函数
21
+ */
22
+ timingFunction?: string
23
+ /**
24
+ * 自定义样式
25
+ */
26
+ customStyle?: unknown
27
+ /**
28
+ * 进入前触发
29
+ */
30
+ onBeforeEnter?: () => any
31
+ /**
32
+ * 进入中触发
33
+ */
34
+ onEnter?: () => any
35
+ /**
36
+ * 进入后触发
37
+ */
38
+ onAfterEnter?: () => any
39
+ /**
40
+ * 离开前触发
41
+ */
42
+ onBeforeLeave?: () => any
43
+ /**
44
+ * 离开中触发
45
+ */
46
+ onLeave?: () => any
47
+ /**
48
+ * 离开后触发
49
+ */
50
+ onAfterLeave?: () => any
51
+ }
52
+
53
+ declare interface _Transition {
54
+ new (): {
55
+ $props: AllowedComponentProps &
56
+ VNodeProps &
57
+ TransitionProps
58
+ }
59
+ }
60
+
61
+ export declare const Transition: _Transition