@tarojs/components 4.0.10-beta.9 → 4.0.11
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.
- package/package.json +6 -6
- package/types/List.d.ts +38 -0
- package/types/ListItem.d.ts +6 -0
- package/types/index.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"resolve-pathname": "^3.0.0",
|
|
42
42
|
"swiper": "11.1.15",
|
|
43
43
|
"tslib": "^2.6.2",
|
|
44
|
-
"@tarojs/runtime": "4.0.
|
|
45
|
-
"@tarojs/shared": "4.0.
|
|
46
|
-
"@tarojs/components-advanced": "4.0.
|
|
47
|
-
"@tarojs/taro": "4.0.
|
|
44
|
+
"@tarojs/runtime": "4.0.11",
|
|
45
|
+
"@tarojs/shared": "4.0.11",
|
|
46
|
+
"@tarojs/components-advanced": "4.0.11",
|
|
47
|
+
"@tarojs/taro": "4.0.11"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/generator": "^7.21.4",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"jest-cli": "27.5.1",
|
|
71
71
|
"jest-runner": "27.5.1",
|
|
72
72
|
"jest-environment-node": "27.5.1",
|
|
73
|
-
"@tarojs/helper": "4.0.
|
|
73
|
+
"@tarojs/helper": "4.0.11"
|
|
74
74
|
},
|
|
75
75
|
"peerDependenciesMeta": {
|
|
76
76
|
"@types/react": {
|
package/types/List.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ComponentType, PropsWithChildren } from 'react'
|
|
2
|
+
import type { ListBuilderProps } from './ListBuilder'
|
|
3
|
+
import type { ScrollViewProps } from './ScrollView'
|
|
4
|
+
import type { StandardProps } from './common'
|
|
5
|
+
|
|
6
|
+
interface ListProps
|
|
7
|
+
extends Pick<
|
|
8
|
+
ScrollViewProps,
|
|
9
|
+
| 'scrollX'
|
|
10
|
+
| 'scrollY'
|
|
11
|
+
| 'scrollTop'
|
|
12
|
+
| 'scrollIntoView'
|
|
13
|
+
| 'enableBackToTop'
|
|
14
|
+
| 'showScrollbar'
|
|
15
|
+
| 'onScroll'
|
|
16
|
+
| 'onScrollStart'
|
|
17
|
+
| 'onScrollEnd'
|
|
18
|
+
| 'onScrollToUpper'
|
|
19
|
+
| 'onScrollToLower'
|
|
20
|
+
| 'cacheExtent'
|
|
21
|
+
>,
|
|
22
|
+
Omit<ListBuilderProps, keyof StandardProps>,
|
|
23
|
+
Pick<StandardProps, 'id' | 'className' | 'style' | 'compileMode' | 'key'> {
|
|
24
|
+
/** 距顶部/左边多远时(单位px),触发 scrolltoupper 事件
|
|
25
|
+
* @default 50
|
|
26
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
27
|
+
*/
|
|
28
|
+
upperThresholdCount?: number
|
|
29
|
+
/** 距底部/右边多远时(单位px),触发 scrolltolower 事件
|
|
30
|
+
* @default 50
|
|
31
|
+
* @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
|
|
32
|
+
*/
|
|
33
|
+
lowerThresholdCount?: number
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare const List: ComponentType<PropsWithChildren<ListProps>>
|
|
37
|
+
|
|
38
|
+
export { List, ListProps }
|
package/types/index.d.ts
CHANGED
|
@@ -63,6 +63,8 @@ export { OpenContainer } from './OpenContainer'
|
|
|
63
63
|
export { DraggableSheet } from './DraggableSheet'
|
|
64
64
|
export { NestedScrollHeader } from './NestedScrollHeader'
|
|
65
65
|
export { NestedScrollBody } from './NestedScrollBody'
|
|
66
|
+
export { List } from './List'
|
|
67
|
+
export { ListItem } from './ListItem'
|
|
66
68
|
|
|
67
69
|
/** 导航 */
|
|
68
70
|
export { FunctionalPageNavigator } from './FunctionalPageNavigator'
|