@tarojs/components 3.6.27 → 3.6.29
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/taro-components.cjs.js +1 -1
- package/dist/cjs/taro-draggable-sheet-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-grid-builder-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-list-builder-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-nested-scroll-body-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-nested-scroll-header-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-open-container-core.cjs.entry.js +21 -0
- package/dist/cjs/taro-span-core.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/draggable-sheet/draggable-sheet.js +11 -0
- package/dist/collection/components/grid-builder/grid-builder.js +11 -0
- package/dist/collection/components/list-builder/list-builder.js +11 -0
- package/dist/collection/components/nested-scroll-body/nested-scroll-body.js +11 -0
- package/dist/collection/components/nested-scroll-header/nested-scroll-header.js +11 -0
- package/dist/collection/components/open-container/open-container.js +11 -0
- package/dist/collection/components/span/span.js +11 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +7 -0
- package/dist/components/taro-draggable-sheet-core.d.ts +11 -0
- package/dist/components/taro-draggable-sheet-core.js +33 -0
- package/dist/components/taro-grid-builder-core.d.ts +11 -0
- package/dist/components/taro-grid-builder-core.js +33 -0
- package/dist/components/taro-list-builder-core.d.ts +11 -0
- package/dist/components/taro-list-builder-core.js +33 -0
- package/dist/components/taro-nested-scroll-body-core.d.ts +11 -0
- package/dist/components/taro-nested-scroll-body-core.js +33 -0
- package/dist/components/taro-nested-scroll-header-core.d.ts +11 -0
- package/dist/components/taro-nested-scroll-header-core.js +33 -0
- package/dist/components/taro-open-container-core.d.ts +11 -0
- package/dist/components/taro-open-container-core.js +33 -0
- package/dist/components/taro-span-core.d.ts +11 -0
- package/dist/components/taro-span-core.js +33 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/taro-components.js +1 -1
- package/dist/esm/taro-draggable-sheet-core.entry.js +17 -0
- package/dist/esm/taro-grid-builder-core.entry.js +17 -0
- package/dist/esm/taro-list-builder-core.entry.js +17 -0
- package/dist/esm/taro-nested-scroll-body-core.entry.js +17 -0
- package/dist/esm/taro-nested-scroll-header-core.entry.js +17 -0
- package/dist/esm/taro-open-container-core.entry.js +17 -0
- package/dist/esm/taro-span-core.entry.js +17 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/taro-components.js +1 -1
- package/dist/esm-es5/taro-draggable-sheet-core.entry.js +1 -0
- package/dist/esm-es5/taro-grid-builder-core.entry.js +1 -0
- package/dist/esm-es5/taro-list-builder-core.entry.js +1 -0
- package/dist/esm-es5/taro-nested-scroll-body-core.entry.js +1 -0
- package/dist/esm-es5/taro-nested-scroll-header-core.entry.js +1 -0
- package/dist/esm-es5/taro-open-container-core.entry.js +1 -0
- package/dist/esm-es5/taro-span-core.entry.js +1 -0
- package/dist/hydrate/index.js +147 -0
- package/dist/taro-components/p-1d102ddb.system.entry.js +1 -0
- package/dist/taro-components/p-34ba9330.system.entry.js +1 -0
- package/dist/taro-components/p-4621b303.system.entry.js +1 -0
- package/dist/taro-components/p-477f8fbd.system.js +1 -1
- package/dist/taro-components/p-4c30ea10.entry.js +1 -0
- package/dist/taro-components/p-5186ab96.system.entry.js +1 -0
- package/dist/taro-components/p-55e54f2a.system.entry.js +1 -0
- package/dist/taro-components/p-6dd357b9.entry.js +1 -0
- package/dist/taro-components/p-751d42cb.entry.js +1 -0
- package/dist/taro-components/p-76c0f443.entry.js +1 -0
- package/dist/taro-components/p-7bc6aa36.entry.js +1 -0
- package/dist/taro-components/p-9f1b0ae1.entry.js +1 -0
- package/dist/taro-components/p-cc993977.system.entry.js +1 -0
- package/dist/taro-components/p-d6bd1a5b.entry.js +1 -0
- package/dist/taro-components/p-fa9dbb6f.system.entry.js +1 -0
- package/dist/taro-components/taro-components.esm.js +1 -1
- package/dist/types/components/draggable-sheet/draggable-sheet.d.ts +5 -0
- package/dist/types/components/grid-builder/grid-builder.d.ts +5 -0
- package/dist/types/components/list-builder/list-builder.d.ts +5 -0
- package/dist/types/components/nested-scroll-body/nested-scroll-body.d.ts +5 -0
- package/dist/types/components/nested-scroll-header/nested-scroll-header.d.ts +5 -0
- package/dist/types/components/open-container/open-container.d.ts +5 -0
- package/dist/types/components/span/span.d.ts +5 -0
- package/dist/types/components.d.ts +91 -0
- package/lib/react/components.d.ts +8 -1
- package/lib/react/components.js +9 -2
- package/lib/react/components.js.map +1 -1
- package/lib/react/index.js +1 -1
- package/lib/react/react-component-lib/utils/attachProps.js +2 -2
- package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/lib/vue2/components.d.ts +8 -1
- package/lib/vue2/components.js +23 -2
- package/lib/vue2/components.js.map +1 -1
- package/lib/vue2/index.js +1 -1
- package/lib/vue3/components.d.ts +8 -1
- package/lib/vue3/components.js +9 -2
- package/lib/vue3/components.js.map +1 -1
- package/lib/vue3/index.js +1 -1
- package/package.json +3 -3
- package/types/DraggableSheet.d.ts +47 -0
- package/types/GridBuilder.d.ts +72 -0
- package/types/GridView.d.ts +18 -4
- package/types/ListBuilder.d.ts +55 -0
- package/types/ListView.d.ts +8 -1
- package/types/NestedScrollBody.d.ts +15 -0
- package/types/NestedScrollHeader.d.ts +15 -0
- package/types/OpenContainer.d.ts +74 -0
- package/types/ScrollView.d.ts +2 -1
- package/types/Snapshot.d.ts +12 -3
- package/types/Span.d.ts +14 -0
- package/types/StickyHeader.d.ts +14 -1
- package/types/StickySection.d.ts +6 -0
- package/types/Text.d.ts +16 -0
- package/types/index.d.ts +7 -0
- package/types/index.vue3.d.ts +4 -0
package/types/Span.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentType } from 'react'
|
|
2
|
+
|
|
3
|
+
import { StandardProps } from './common'
|
|
4
|
+
|
|
5
|
+
interface SpanProps extends StandardProps { }
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 用于支持内联文本和 image / navigator 的混排
|
|
9
|
+
* @classification skyline
|
|
10
|
+
* @supported weapp
|
|
11
|
+
* @see https://developers.weixin.qq.com/miniprogram/dev/component/span.html
|
|
12
|
+
*/
|
|
13
|
+
declare const Span: ComponentType<SpanProps>
|
|
14
|
+
export { Span, SpanProps }
|
package/types/StickyHeader.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { ComponentType } from 'react'
|
|
2
2
|
import { StandardProps } from './common'
|
|
3
|
-
interface StickyHeaderProps extends StandardProps {
|
|
3
|
+
interface StickyHeaderProps extends StandardProps {
|
|
4
|
+
/**
|
|
5
|
+
* 吸顶时与顶部的距(px)
|
|
6
|
+
* @supported weapp
|
|
7
|
+
* @default 0
|
|
8
|
+
*/
|
|
9
|
+
offsetTop?: number
|
|
10
|
+
/**
|
|
11
|
+
* 长度为 4 的数组,按 top、right、bottom、left 顺序指定内边距
|
|
12
|
+
* @supported weapp
|
|
13
|
+
* @default [0, 0, 0, 0]
|
|
14
|
+
*/
|
|
15
|
+
padding?: [number, number, number, number]
|
|
16
|
+
}
|
|
4
17
|
|
|
5
18
|
/**
|
|
6
19
|
* 吸顶布局容器,仅支持作为 scroll-view 自定义模式下的直接子节点或 sticky-section 组件直接子节点。仅 Skyline 支持。
|
package/types/StickySection.d.ts
CHANGED
|
@@ -6,6 +6,12 @@ interface StickySectionProps extends StandardProps {
|
|
|
6
6
|
* @default true
|
|
7
7
|
*/
|
|
8
8
|
pushPinnedHeader?: boolean
|
|
9
|
+
/**
|
|
10
|
+
* 长度为 4 的数组,按 top、right、bottom、left 顺序指定内边距
|
|
11
|
+
* @supported weapp
|
|
12
|
+
* @default [0, 0, 0, 0]
|
|
13
|
+
*/
|
|
14
|
+
padding?: [number, number, number, number]
|
|
9
15
|
}
|
|
10
16
|
/**
|
|
11
17
|
* 吸顶布局容器,仅支持作为 scroll-view 自定义模式下的直接子节点。仅 Skyline 支持。
|
package/types/Text.d.ts
CHANGED
|
@@ -25,6 +25,12 @@ interface TextProps extends StandardProps {
|
|
|
25
25
|
* @supported alipay
|
|
26
26
|
*/
|
|
27
27
|
numberOfLines?: number
|
|
28
|
+
/**
|
|
29
|
+
* 文本溢出处理
|
|
30
|
+
* @supported weapp-skyline
|
|
31
|
+
* @default 'visible'
|
|
32
|
+
*/
|
|
33
|
+
overflow?: keyof TextProps.Overflow
|
|
28
34
|
/** 限制文本最大行数
|
|
29
35
|
* @supported weapp
|
|
30
36
|
*/
|
|
@@ -40,6 +46,16 @@ declare namespace TextProps {
|
|
|
40
46
|
/** 根据字体设置的空格大小 */
|
|
41
47
|
nbsp
|
|
42
48
|
}
|
|
49
|
+
interface Overflow {
|
|
50
|
+
/** 修剪文本 */
|
|
51
|
+
clip
|
|
52
|
+
/** 淡出 */
|
|
53
|
+
fade
|
|
54
|
+
/** 显示省略号 */
|
|
55
|
+
ellipsis
|
|
56
|
+
/** 文本不截断 */
|
|
57
|
+
visible
|
|
58
|
+
}
|
|
43
59
|
}
|
|
44
60
|
/** 文本
|
|
45
61
|
* @classification base
|
package/types/index.d.ts
CHANGED
|
@@ -42,11 +42,18 @@ export { Textarea } from './Textarea'
|
|
|
42
42
|
|
|
43
43
|
/** Skyline */
|
|
44
44
|
export { GridView } from './GridView'
|
|
45
|
+
export { GridBuilder } from './GridBuilder'
|
|
45
46
|
export { ListView } from './ListView'
|
|
47
|
+
export { ListBuilder } from './ListBuilder'
|
|
46
48
|
export { ShareElement } from './ShareElement'
|
|
47
49
|
export { Snapshot } from './SnapShot'
|
|
50
|
+
export { Span } from './Span'
|
|
48
51
|
export { StickyHeader } from './StickyHeader'
|
|
49
52
|
export { StickySection } from './StickySection'
|
|
53
|
+
export { OpenContainer } from './OpenContainer'
|
|
54
|
+
export { DraggableSheet } from './DraggableSheet'
|
|
55
|
+
export { NestedScrollHeader } from './NestedScrollHeader'
|
|
56
|
+
export { NestedScrollBody } from './NestedScrollBody'
|
|
50
57
|
|
|
51
58
|
/** 导航 */
|
|
52
59
|
export { FunctionalPageNavigator } from './FunctionalPageNavigator'
|
package/types/index.vue3.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ import { ShareElementProps } from './ShareElement'
|
|
|
66
66
|
import { SliderProps } from './Slider'
|
|
67
67
|
import { SlotProps } from './Slot'
|
|
68
68
|
import { SnapshotProps } from './SnapShot'
|
|
69
|
+
import { SpanProps } from './Span'
|
|
69
70
|
import { StickyHeaderProps } from './StickyHeader'
|
|
70
71
|
import { StickySectionProps } from './StickySection'
|
|
71
72
|
import { SwiperProps } from './Swiper'
|
|
@@ -144,6 +145,7 @@ export declare const Textarea: VueComponentType<TextareaProps>
|
|
|
144
145
|
export declare const GridView: VueComponentType<GridViewProps>
|
|
145
146
|
export declare const ListView: VueComponentType<ListViewProps>
|
|
146
147
|
export declare const Snapshot: VueComponentType<SnapshotProps>
|
|
148
|
+
export declare const Span: VueComponentType<SpanProps>
|
|
147
149
|
export declare const ShareElement: VueComponentType<ShareElementProps>
|
|
148
150
|
export declare const StickyHeader: VueComponentType<StickyHeaderProps>
|
|
149
151
|
export declare const StickySection: VueComponentType<StickySectionProps>
|
|
@@ -266,6 +268,8 @@ declare global {
|
|
|
266
268
|
'taro-share-element-core': ElementAttrs<TransformReact2VueType<ShareElementProps>>
|
|
267
269
|
'snapshot': ElementAttrs<TransformReact2VueType<SnapshotProps>>
|
|
268
270
|
'taro-snapshot-core': ElementAttrs<TransformReact2VueType<SnapshotProps>>
|
|
271
|
+
'span': ElementAttrs<TransformReact2VueType<SpanProps>>
|
|
272
|
+
'taro-span-core': ElementAttrs<TransformReact2VueType<SpanProps>>
|
|
269
273
|
'sticky-header': ElementAttrs<TransformReact2VueType<StickyHeaderProps>>
|
|
270
274
|
'taro-sticky-header-core': ElementAttrs<TransformReact2VueType<StickyHeaderProps>>
|
|
271
275
|
'sticky-section': ElementAttrs<TransformReact2VueType<StickySectionProps>>
|