@tarojs/components 3.6.35 → 3.6.36-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.6.35",
3
+ "version": "3.6.36-alpha.2",
4
4
  "description": "Taro 组件库",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -37,8 +37,8 @@
37
37
  "resolve-pathname": "^3.0.0",
38
38
  "swiper": "6.8.0",
39
39
  "tslib": "^2.6.2",
40
- "@tarojs/components-advanced": "3.6.35",
41
- "@tarojs/taro": "3.6.35"
40
+ "@tarojs/components-advanced": "3.6.36-alpha.2",
41
+ "@tarojs/taro": "3.6.36-alpha.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@babel/generator": "^7.20.0",
@@ -0,0 +1,37 @@
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
+ >,
21
+ Omit<ListBuilderProps, keyof StandardProps>,
22
+ Pick<StandardProps, 'id' | 'className' | 'style' | 'compileMode' | 'key'> {
23
+ /** 距顶部/左边多远时(单位px),触发 scrolltoupper 事件
24
+ * @default 50
25
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
26
+ */
27
+ upperThresholdCount?: number
28
+ /** 距底部/右边多远时(单位px),触发 scrolltolower 事件
29
+ * @default 50
30
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony_hybrid
31
+ */
32
+ lowerThresholdCount?: number
33
+ }
34
+
35
+ declare const List: ComponentType<PropsWithChildren<ListProps>>
36
+
37
+ export { List, ListProps }
@@ -0,0 +1,6 @@
1
+ import type { ComponentType, Key, PropsWithChildren } from 'react'
2
+ import type { ViewProps } from './View'
3
+
4
+ declare const ListItem: ComponentType<PropsWithChildren<ViewProps>>
5
+
6
+ export { ListItem }
@@ -18,7 +18,7 @@ interface RichTextProps extends StandardProps {
18
18
  * @default false(基础库 3.150.1 以前版本)true(基础库 3.150.1 及以后版本)
19
19
  * @supported swan, h5, harmony_hybrid
20
20
  */
21
- selectable?: string
21
+ selectable?: boolean;
22
22
  /** 阻止长按图片时弹起默认菜单(将该属性设置为image-menu-prevent或image-menu-prevent="true"),只在初始化时有效,不能动态变更;若不想阻止弹起默认菜单,则不需要设置此属性
23
23
  * @default false
24
24
  * @supported swan
package/types/index.d.ts CHANGED
@@ -54,6 +54,8 @@ export { OpenContainer } from './OpenContainer'
54
54
  export { DraggableSheet } from './DraggableSheet'
55
55
  export { NestedScrollHeader } from './NestedScrollHeader'
56
56
  export { NestedScrollBody } from './NestedScrollBody'
57
+ export { List } from './List'
58
+ export { ListItem } from './ListItem'
57
59
 
58
60
  /** 导航 */
59
61
  export { FunctionalPageNavigator } from './FunctionalPageNavigator'