@tarojs/plugin-platform-harmony-ets 4.0.0-beta.93 → 4.0.0-beta.95
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/components-harmony-ets/button.ets +3 -3
- package/dist/components-harmony-ets/checkbox.ets +5 -5
- package/dist/components-harmony-ets/form.ets +4 -4
- package/dist/components-harmony-ets/icon.ets +1 -1
- package/dist/components-harmony-ets/image.ets +1 -1
- package/dist/components-harmony-ets/input.ets +1 -1
- package/dist/components-harmony-ets/label.ets +4 -4
- package/dist/components-harmony-ets/listView.ets +2 -2
- package/dist/components-harmony-ets/movableArea.ets +4 -4
- package/dist/components-harmony-ets/movableView.ets +4 -4
- package/dist/components-harmony-ets/navigationBar.ets +2 -2
- package/dist/components-harmony-ets/pageMeta.ets +2 -2
- package/dist/components-harmony-ets/picker.ets +3 -3
- package/dist/components-harmony-ets/progress.ets +1 -1
- package/dist/components-harmony-ets/pseudo.ets +2 -2
- package/dist/components-harmony-ets/radio.ets +5 -5
- package/dist/components-harmony-ets/richText.ets +1 -1
- package/dist/components-harmony-ets/scrollList.ets +11 -2
- package/dist/components-harmony-ets/scrollView.ets +3 -3
- package/dist/components-harmony-ets/slider.ets +1 -1
- package/dist/components-harmony-ets/stickySection.ets +3 -3
- package/dist/components-harmony-ets/swiper.ets +2 -2
- package/dist/components-harmony-ets/switch.ets +1 -1
- package/dist/components-harmony-ets/text.ets +1 -1
- package/dist/components-harmony-ets/textArea.ets +1 -1
- package/dist/components-harmony-ets/video.ets +1 -1
- package/dist/components-harmony-ets/view.ets +4 -4
- package/dist/components-harmony-ets/webView.ets +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -15
- package/dist/index.js.map +1 -1
- package/dist/runtime-ets/dom/element/element.ts +2 -2
- package/dist/runtime-ets/dom/element/index.ts +2 -2
- package/dist/runtime-framework/solid/app.ts +1 -1
- package/dist/runtime-utils.js +4 -4
- package/dist/runtime-utils.js.map +1 -1
- package/dist/runtime.js +4 -4
- package/dist/runtime.js.map +1 -1
- package/package.json +13 -14
- package/types/runtime.d.ts +1 -1
|
@@ -111,7 +111,7 @@ function getButtonMinHeight (node: TaroButtonElement): string | number | undefin
|
|
|
111
111
|
@Component
|
|
112
112
|
export default struct TaroButton {
|
|
113
113
|
@Builder customBuilder() {}
|
|
114
|
-
@BuilderParam createLazyChildren: (node: TaroButtonElement) => void = this.customBuilder
|
|
114
|
+
@BuilderParam createLazyChildren: (node: TaroButtonElement, layer?: number) => void = this.customBuilder
|
|
115
115
|
@ObjectLink node: TaroButtonElement
|
|
116
116
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
117
117
|
|
|
@@ -128,10 +128,10 @@ export default struct TaroButton {
|
|
|
128
128
|
LoadingProgress()
|
|
129
129
|
.width(20).height(20)
|
|
130
130
|
.color(getThemeAttributes(this.node).color)
|
|
131
|
-
this.createLazyChildren(this.node)
|
|
131
|
+
this.createLazyChildren(this.node, 0)
|
|
132
132
|
}
|
|
133
133
|
} else {
|
|
134
|
-
this.createLazyChildren(this.node)
|
|
134
|
+
this.createLazyChildren(this.node, 0)
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
.themeStyles(getThemeAttributes(this.node))
|
|
@@ -40,7 +40,7 @@ function getOptions (node: TaroCheckboxElement): CheckboxOptions {
|
|
|
40
40
|
@Component
|
|
41
41
|
export struct TaroCheckbox {
|
|
42
42
|
@Builder customBuilder() {}
|
|
43
|
-
@BuilderParam createLazyChildren: (node: TaroCheckboxElement) => void = this.customBuilder
|
|
43
|
+
@BuilderParam createLazyChildren: (node: TaroCheckboxElement, layer?: number) => void = this.customBuilder
|
|
44
44
|
@ObjectLink node: TaroCheckboxElement
|
|
45
45
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
46
46
|
|
|
@@ -101,7 +101,7 @@ interface ChangeEventDetail { value: string[] }
|
|
|
101
101
|
@Component
|
|
102
102
|
export struct TaroCheckboxGroup {
|
|
103
103
|
@Builder customBuilder() {}
|
|
104
|
-
@BuilderParam createLazyChildren: (node: TaroCheckboxGroupElement) => void = this.customBuilder
|
|
104
|
+
@BuilderParam createLazyChildren: (node: TaroCheckboxGroupElement, layer?: number) => void = this.customBuilder
|
|
105
105
|
@ObjectLink node: TaroCheckboxGroupElement
|
|
106
106
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
107
107
|
|
|
@@ -132,21 +132,21 @@ export struct TaroCheckboxGroup {
|
|
|
132
132
|
build() {
|
|
133
133
|
if (FlexManager.useFlexLayout(this.node)) {
|
|
134
134
|
Flex(FlexManager.flexOptions(this.node)) {
|
|
135
|
-
this.createLazyChildren(this.node)
|
|
135
|
+
this.createLazyChildren(this.node, 0)
|
|
136
136
|
}
|
|
137
137
|
.attributeModifier(commonStyleModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
138
138
|
.defaultEvent()
|
|
139
139
|
.visibleChangeEvent()
|
|
140
140
|
} else if (FlexManager.isFlexNode(this.node) && FlexManager.direction(this.node) !== FlexDirection.Column) {
|
|
141
141
|
Row() {
|
|
142
|
-
this.createLazyChildren(this.node)
|
|
142
|
+
this.createLazyChildren(this.node, 0)
|
|
143
143
|
}
|
|
144
144
|
.attributeModifier(rowModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
145
145
|
.defaultEvent()
|
|
146
146
|
.visibleChangeEvent()
|
|
147
147
|
} else {
|
|
148
148
|
Column() {
|
|
149
|
-
this.createLazyChildren(this.node)
|
|
149
|
+
this.createLazyChildren(this.node, 0)
|
|
150
150
|
}
|
|
151
151
|
.attributeModifier(columnModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
152
152
|
.defaultEvent()
|
|
@@ -12,7 +12,7 @@ import { isUndefined } from '@tarojs/shared'
|
|
|
12
12
|
@Component
|
|
13
13
|
export default struct TaroForm {
|
|
14
14
|
@Builder customBuilder() {}
|
|
15
|
-
@BuilderParam createLazyChildren: (node: TaroFormElement) => void = this.customBuilder
|
|
15
|
+
@BuilderParam createLazyChildren: (node: TaroFormElement, layer?: number) => void = this.customBuilder
|
|
16
16
|
@ObjectLink node: TaroFormElement
|
|
17
17
|
|
|
18
18
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
@@ -26,7 +26,7 @@ export default struct TaroForm {
|
|
|
26
26
|
build() {
|
|
27
27
|
if (FlexManager.useFlexLayout(this.node)) {
|
|
28
28
|
Flex(FlexManager.flexOptions(this.node)) {
|
|
29
|
-
this.createLazyChildren(this.node)
|
|
29
|
+
this.createLazyChildren(this.node, 0)
|
|
30
30
|
}
|
|
31
31
|
.attributeModifier(commonStyleModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
32
32
|
.onClick(shouldBindEvent((e: ClickEvent) => eventHandler(e, 'click', this.node), this.node, ['click']))
|
|
@@ -37,7 +37,7 @@ export default struct TaroForm {
|
|
|
37
37
|
.onVisibleAreaChange(getNodeThresholds(this.node) || [0.0, 1.0], getComponentEventCallback(this.node, VISIBLE_CHANGE_EVENT_NAME))
|
|
38
38
|
} else if (FlexManager.isFlexNode(this.node) && FlexManager.direction(this.node) !== FlexDirection.Column) {
|
|
39
39
|
Row() {
|
|
40
|
-
this.createLazyChildren(this.node)
|
|
40
|
+
this.createLazyChildren(this.node, 0)
|
|
41
41
|
}
|
|
42
42
|
.attributeModifier(rowModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
43
43
|
.onClick(shouldBindEvent((e: ClickEvent) => eventHandler(e, 'click', this.node), this.node, ['click']))
|
|
@@ -48,7 +48,7 @@ export default struct TaroForm {
|
|
|
48
48
|
.onVisibleAreaChange(getNodeThresholds(this.node) || [0.0, 1.0], getComponentEventCallback(this.node, VISIBLE_CHANGE_EVENT_NAME))
|
|
49
49
|
} else {
|
|
50
50
|
Column() {
|
|
51
|
-
this.createLazyChildren(this.node)
|
|
51
|
+
this.createLazyChildren(this.node, 0)
|
|
52
52
|
}
|
|
53
53
|
.attributeModifier(columnModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
54
54
|
.onClick(shouldBindEvent((e: ClickEvent) => eventHandler(e, 'click', this.node), this.node, ['click']))
|
|
@@ -51,7 +51,7 @@ function getIconData (node: TaroIconElement): Resource | null {
|
|
|
51
51
|
@Component
|
|
52
52
|
export default struct TaroIcon {
|
|
53
53
|
@Builder customBuilder() {}
|
|
54
|
-
@BuilderParam createLazyChildren: (node: TaroIconElement) => void = this.customBuilder
|
|
54
|
+
@BuilderParam createLazyChildren: (node: TaroIconElement, layer?: number) => void = this.customBuilder
|
|
55
55
|
@ObjectLink node: TaroIconElement
|
|
56
56
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
57
57
|
|
|
@@ -19,7 +19,7 @@ export function getImageMode (mode: string): ImageFit {
|
|
|
19
19
|
@Component
|
|
20
20
|
export default struct TaroImage {
|
|
21
21
|
@Builder customBuilder() {}
|
|
22
|
-
@BuilderParam createLazyChildren: (node: TaroImageElement) => void = this.customBuilder
|
|
22
|
+
@BuilderParam createLazyChildren: (node: TaroImageElement, layer?: number) => void = this.customBuilder
|
|
23
23
|
@ObjectLink node: TaroImageElement
|
|
24
24
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
25
25
|
|
|
@@ -54,7 +54,7 @@ export default struct TaroInput {
|
|
|
54
54
|
@State value: string = ''
|
|
55
55
|
|
|
56
56
|
@Builder customBuilder() {}
|
|
57
|
-
@BuilderParam createLazyChildren: (node: TaroInputElement) => void = this.customBuilder
|
|
57
|
+
@BuilderParam createLazyChildren: (node: TaroInputElement, layer?: number) => void = this.customBuilder
|
|
58
58
|
@ObjectLink node: TaroInputElement
|
|
59
59
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
60
60
|
|
|
@@ -38,7 +38,7 @@ function handleTargetChange (id: string) {
|
|
|
38
38
|
@Component
|
|
39
39
|
export default struct TaroLabel {
|
|
40
40
|
@Builder customBuilder() {}
|
|
41
|
-
@BuilderParam createLazyChildren: (node: TaroLabelElement) => void = this.customBuilder
|
|
41
|
+
@BuilderParam createLazyChildren: (node: TaroLabelElement, layer?: number) => void = this.customBuilder
|
|
42
42
|
@ObjectLink node: TaroLabelElement
|
|
43
43
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
44
44
|
|
|
@@ -51,7 +51,7 @@ export default struct TaroLabel {
|
|
|
51
51
|
build() {
|
|
52
52
|
if (FlexManager.useFlexLayout(this.node)) {
|
|
53
53
|
Flex(FlexManager.flexOptions(this.node)) {
|
|
54
|
-
this.createLazyChildren(this.node)
|
|
54
|
+
this.createLazyChildren(this.node, 0)
|
|
55
55
|
}
|
|
56
56
|
.attributeModifier(commonStyleModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
57
57
|
.onClick((e: ClickEvent) => {
|
|
@@ -68,7 +68,7 @@ export default struct TaroLabel {
|
|
|
68
68
|
.onVisibleAreaChange(getNodeThresholds(this.node) || [0.0, 1.0], getComponentEventCallback(this.node, VISIBLE_CHANGE_EVENT_NAME))
|
|
69
69
|
} else if (FlexManager.isFlexNode(this.node) && FlexManager.direction(this.node) !== FlexDirection.Column) {
|
|
70
70
|
Row() {
|
|
71
|
-
this.createLazyChildren(this.node)
|
|
71
|
+
this.createLazyChildren(this.node, 0)
|
|
72
72
|
}
|
|
73
73
|
.attributeModifier(rowModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
74
74
|
.onClick((e: ClickEvent) => {
|
|
@@ -85,7 +85,7 @@ export default struct TaroLabel {
|
|
|
85
85
|
.onVisibleAreaChange(getNodeThresholds(this.node) || [0.0, 1.0], getComponentEventCallback(this.node, VISIBLE_CHANGE_EVENT_NAME))
|
|
86
86
|
} else {
|
|
87
87
|
Column() {
|
|
88
|
-
this.createLazyChildren(this.node)
|
|
88
|
+
this.createLazyChildren(this.node, 0)
|
|
89
89
|
}
|
|
90
90
|
.attributeModifier(columnModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
91
91
|
.onClick((e: ClickEvent) => {
|
|
@@ -6,7 +6,7 @@ import type { TaroViewElement, TaroAny } from '@tarojs/runtime'
|
|
|
6
6
|
@Component
|
|
7
7
|
export default struct TaroListView {
|
|
8
8
|
@Builder customBuilder() {}
|
|
9
|
-
@BuilderParam createLazyChildren: (node: TaroViewElement) => void = this.customBuilder
|
|
9
|
+
@BuilderParam createLazyChildren: (node: TaroViewElement, layer?: number) => void = this.customBuilder
|
|
10
10
|
@ObjectLink node: TaroViewElement
|
|
11
11
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
12
12
|
|
|
@@ -23,7 +23,7 @@ export default struct TaroListView {
|
|
|
23
23
|
build() {
|
|
24
24
|
ListItem() {
|
|
25
25
|
Stack() {
|
|
26
|
-
this.createLazyChildren(this.node)
|
|
26
|
+
this.createLazyChildren(this.node, 0)
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
.attributeModifier(commonStyleModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
@@ -11,7 +11,7 @@ export default struct TaroMovableArea {
|
|
|
11
11
|
customBuilder() {
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
@BuilderParam createLazyChildren: (node: TaroMovableAreaElement) => void = this.customBuilder
|
|
14
|
+
@BuilderParam createLazyChildren: (node: TaroMovableAreaElement, layer?: number) => void = this.customBuilder
|
|
15
15
|
@ObjectLink node: TaroMovableAreaElement
|
|
16
16
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
17
17
|
|
|
@@ -28,7 +28,7 @@ export default struct TaroMovableArea {
|
|
|
28
28
|
build() {
|
|
29
29
|
if (FlexManager.useFlexLayout(this.node)) {
|
|
30
30
|
Flex(FlexManager.flexOptions(this.node)) {
|
|
31
|
-
this.createLazyChildren(this.node)
|
|
31
|
+
this.createLazyChildren(this.node, 0)
|
|
32
32
|
}
|
|
33
33
|
.attributeModifier(commonStyleModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
34
34
|
.clip(true)
|
|
@@ -55,7 +55,7 @@ export default struct TaroMovableArea {
|
|
|
55
55
|
)
|
|
56
56
|
} else if (FlexManager.isFlexNode(this.node) && FlexManager.direction(this.node) !== FlexDirection.Column) {
|
|
57
57
|
Row() {
|
|
58
|
-
this.createLazyChildren(this.node)
|
|
58
|
+
this.createLazyChildren(this.node, 0)
|
|
59
59
|
}
|
|
60
60
|
.attributeModifier(rowModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
61
61
|
.clip(true)
|
|
@@ -82,7 +82,7 @@ export default struct TaroMovableArea {
|
|
|
82
82
|
)
|
|
83
83
|
} else {
|
|
84
84
|
Column() {
|
|
85
|
-
this.createLazyChildren(this.node)
|
|
85
|
+
this.createLazyChildren(this.node, 0)
|
|
86
86
|
}
|
|
87
87
|
.attributeModifier(columnModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
88
88
|
.clip(true)
|
|
@@ -9,7 +9,7 @@ import { FlexManager } from './utils/flexManager'
|
|
|
9
9
|
@Component
|
|
10
10
|
export default struct TaroMovableView {
|
|
11
11
|
@Builder customBuilder() {}
|
|
12
|
-
@BuilderParam createLazyChildren: (node: TaroMovableViewElement) => void = this.customBuilder
|
|
12
|
+
@BuilderParam createLazyChildren: (node: TaroMovableViewElement, layer?: number) => void = this.customBuilder
|
|
13
13
|
@ObjectLink node: TaroMovableViewElement
|
|
14
14
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
15
15
|
|
|
@@ -24,17 +24,17 @@ export default struct TaroMovableView {
|
|
|
24
24
|
Stack() {
|
|
25
25
|
if (FlexManager.useFlexLayout(this.node)) {
|
|
26
26
|
Flex(FlexManager.flexOptions(this.node)) {
|
|
27
|
-
this.createLazyChildren(this.node)
|
|
27
|
+
this.createLazyChildren(this.node, 0)
|
|
28
28
|
}
|
|
29
29
|
.attributeModifier(commonStyleModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
30
30
|
} else if (FlexManager.isFlexNode(this.node) && FlexManager.direction(this.node) !== FlexDirection.Column) {
|
|
31
31
|
Row() {
|
|
32
|
-
this.createLazyChildren(this.node)
|
|
32
|
+
this.createLazyChildren(this.node, 0)
|
|
33
33
|
}
|
|
34
34
|
.attributeModifier(rowModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
35
35
|
} else {
|
|
36
36
|
Column() {
|
|
37
|
-
this.createLazyChildren(this.node)
|
|
37
|
+
this.createLazyChildren(this.node, 0)
|
|
38
38
|
}
|
|
39
39
|
.attributeModifier(columnModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
40
40
|
}
|
|
@@ -8,7 +8,7 @@ import type { IComponentAttributeUpdateEvents } from './pageMeta'
|
|
|
8
8
|
@Component
|
|
9
9
|
export default struct TaroNavigationBar {
|
|
10
10
|
@Builder customBuilder() {}
|
|
11
|
-
@BuilderParam createLazyChildren: (node: TaroNavigationBarElement) => void = this.customBuilder
|
|
11
|
+
@BuilderParam createLazyChildren: (node: TaroNavigationBarElement, layer?: number) => void = this.customBuilder
|
|
12
12
|
@ObjectLink node: TaroNavigationBarElement
|
|
13
13
|
|
|
14
14
|
aboutToAppear(): void {
|
|
@@ -59,7 +59,7 @@ export default struct TaroNavigationBar {
|
|
|
59
59
|
|
|
60
60
|
build() {
|
|
61
61
|
if (true) {
|
|
62
|
-
this.createLazyChildren(this.node)
|
|
62
|
+
this.createLazyChildren(this.node, 0)
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -15,7 +15,7 @@ export interface IComponentAttributeUpdateEvents {
|
|
|
15
15
|
@Component
|
|
16
16
|
export default struct TaroPageMeta {
|
|
17
17
|
@Builder customBuilder() {}
|
|
18
|
-
@BuilderParam createLazyChildren: (node: TaroPageMetaElement) => void = this.customBuilder
|
|
18
|
+
@BuilderParam createLazyChildren: (node: TaroPageMetaElement, layer?: number) => void = this.customBuilder
|
|
19
19
|
@ObjectLink node: TaroPageMetaElement
|
|
20
20
|
|
|
21
21
|
page: TaroAny = {}
|
|
@@ -88,7 +88,7 @@ export default struct TaroPageMeta {
|
|
|
88
88
|
|
|
89
89
|
build() {
|
|
90
90
|
if (true) {
|
|
91
|
-
this.createLazyChildren(this.node)
|
|
91
|
+
this.createLazyChildren(this.node, 0)
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -226,7 +226,7 @@ export struct PickerView {
|
|
|
226
226
|
@Component
|
|
227
227
|
export default struct TaroPicker {
|
|
228
228
|
@Builder customBuilder() {}
|
|
229
|
-
@BuilderParam createLazyChildren: (node: TaroPickerElement) => void = this.customBuilder
|
|
229
|
+
@BuilderParam createLazyChildren: (node: TaroPickerElement, layer?: number) => void = this.customBuilder
|
|
230
230
|
@ObjectLink node: TaroPickerElement
|
|
231
231
|
|
|
232
232
|
aboutToAppear () {
|
|
@@ -313,7 +313,7 @@ export default struct TaroPicker {
|
|
|
313
313
|
build() {
|
|
314
314
|
if (FlexManager.isFlexNode(this.node) && FlexManager.direction(this.node) !== FlexDirection.Column) {
|
|
315
315
|
Row() {
|
|
316
|
-
this.createLazyChildren(this.node)
|
|
316
|
+
this.createLazyChildren(this.node, 0)
|
|
317
317
|
}
|
|
318
318
|
.defaultEvent()
|
|
319
319
|
.visibleChangeEvent()
|
|
@@ -321,7 +321,7 @@ export default struct TaroPicker {
|
|
|
321
321
|
.justifyContent(FlexManager.justifyContent(this.node))
|
|
322
322
|
} else {
|
|
323
323
|
Column() {
|
|
324
|
-
this.createLazyChildren(this.node)
|
|
324
|
+
this.createLazyChildren(this.node, 0)
|
|
325
325
|
}
|
|
326
326
|
.defaultEvent()
|
|
327
327
|
.visibleChangeEvent()
|
|
@@ -10,7 +10,7 @@ const PROGRESS_DEFAULTINFOFONTSIZE = 16
|
|
|
10
10
|
@Component
|
|
11
11
|
export default struct TaroProgress {
|
|
12
12
|
@Builder customBuilder() {}
|
|
13
|
-
@BuilderParam createLazyChildren: (node: TaroProgressElement) => void = this.customBuilder
|
|
13
|
+
@BuilderParam createLazyChildren: (node: TaroProgressElement, layer?: number) => void = this.customBuilder
|
|
14
14
|
@ObjectLink node: TaroProgressElement
|
|
15
15
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
16
16
|
|
|
@@ -43,7 +43,7 @@ function textSpecialFontStyle(attr: TaroTextStyleType) {
|
|
|
43
43
|
@Component
|
|
44
44
|
export default struct PseduoChildren {
|
|
45
45
|
@Builder customBuilder() {}
|
|
46
|
-
@BuilderParam createLazyChildren: (node: TaroAny) => void = this.customBuilder
|
|
46
|
+
@BuilderParam createLazyChildren: (node: TaroAny, layer?: number) => void = this.customBuilder
|
|
47
47
|
@ObjectLink node: TaroViewElement
|
|
48
48
|
|
|
49
49
|
build () {
|
|
@@ -61,7 +61,7 @@ export default struct PseduoChildren {
|
|
|
61
61
|
.flexAttrs(this.node._pseudo_before.hmStyle || {})
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
this.createLazyChildren(this.node)
|
|
64
|
+
this.createLazyChildren(this.node, 0)
|
|
65
65
|
// 伪类::After
|
|
66
66
|
if (this.node._pseudo_after) {
|
|
67
67
|
if (this.node._pseudo_after?.hmStyle.content) {
|
|
@@ -39,7 +39,7 @@ function themeStyles(isDisabled: boolean) {
|
|
|
39
39
|
@Component
|
|
40
40
|
export struct TaroRadio {
|
|
41
41
|
@Builder customBuilder() {}
|
|
42
|
-
@BuilderParam createLazyChildren: (node: TaroRadioElement) => void = this.customBuilder
|
|
42
|
+
@BuilderParam createLazyChildren: (node: TaroRadioElement, layer?: number) => void = this.customBuilder
|
|
43
43
|
@ObjectLink node: TaroRadioElement
|
|
44
44
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
45
45
|
|
|
@@ -101,7 +101,7 @@ export struct TaroRadio {
|
|
|
101
101
|
@Component
|
|
102
102
|
export struct TaroRadioGroup {
|
|
103
103
|
@Builder customBuilder() {}
|
|
104
|
-
@BuilderParam createLazyChildren: (node: TaroRadioGroupElement) => void = this.customBuilder
|
|
104
|
+
@BuilderParam createLazyChildren: (node: TaroRadioGroupElement, layer?: number) => void = this.customBuilder
|
|
105
105
|
@ObjectLink node: TaroRadioGroupElement
|
|
106
106
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
107
107
|
|
|
@@ -134,21 +134,21 @@ export struct TaroRadioGroup {
|
|
|
134
134
|
build() {
|
|
135
135
|
if (FlexManager.useFlexLayout(this.node)) {
|
|
136
136
|
Flex(FlexManager.flexOptions(this.node)) {
|
|
137
|
-
this.createLazyChildren(this.node)
|
|
137
|
+
this.createLazyChildren(this.node, 0)
|
|
138
138
|
}
|
|
139
139
|
.attributeModifier(commonStyleModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
140
140
|
.defaultEvent()
|
|
141
141
|
.visibleChangeEvent()
|
|
142
142
|
} else if (FlexManager.isFlexNode(this.node) && FlexManager.direction(this.node) !== FlexDirection.Column) {
|
|
143
143
|
Row() {
|
|
144
|
-
this.createLazyChildren(this.node)
|
|
144
|
+
this.createLazyChildren(this.node, 0)
|
|
145
145
|
}
|
|
146
146
|
.attributeModifier(rowModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
147
147
|
.defaultEvent()
|
|
148
148
|
.visibleChangeEvent()
|
|
149
149
|
} else {
|
|
150
150
|
Column() {
|
|
151
|
-
this.createLazyChildren(this.node)
|
|
151
|
+
this.createLazyChildren(this.node, 0)
|
|
152
152
|
}
|
|
153
153
|
.attributeModifier(columnModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
154
154
|
.defaultEvent()
|
|
@@ -9,7 +9,7 @@ import type { TaroAny, TaroRichTextElement } from '@tarojs/runtime'
|
|
|
9
9
|
@Component
|
|
10
10
|
export default struct TaroRichText {
|
|
11
11
|
@Builder customBuilder() {}
|
|
12
|
-
@BuilderParam createLazyChildren: (node: TaroRichTextElement) => void = this.customBuilder
|
|
12
|
+
@BuilderParam createLazyChildren: (node: TaroRichTextElement, layer?: number) => void = this.customBuilder
|
|
13
13
|
@ObjectLink node: TaroRichTextElement
|
|
14
14
|
|
|
15
15
|
build () {
|
|
@@ -52,7 +52,7 @@ function handleScrollEvent (node: TaroScrollViewElement, eventName = 'scroll', s
|
|
|
52
52
|
@Component
|
|
53
53
|
export default struct TaroScrollList {
|
|
54
54
|
@Builder customBuilder() {}
|
|
55
|
-
@BuilderParam createLazyChildren: (node: TaroScrollViewElement) => void = this.customBuilder
|
|
55
|
+
@BuilderParam createLazyChildren: (node: TaroScrollViewElement, layer?: number) => void = this.customBuilder
|
|
56
56
|
@ObjectLink node: TaroScrollViewElement
|
|
57
57
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
58
58
|
|
|
@@ -70,7 +70,7 @@ export default struct TaroScrollList {
|
|
|
70
70
|
List({
|
|
71
71
|
scroller: this.node.scroller
|
|
72
72
|
}) {
|
|
73
|
-
this.createLazyChildren(this.node)
|
|
73
|
+
this.createLazyChildren(this.node, 0)
|
|
74
74
|
}
|
|
75
75
|
.attributeModifier(commonStyleModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
76
76
|
.sticky(StickyStyle.Header)
|
|
@@ -78,6 +78,15 @@ export default struct TaroScrollList {
|
|
|
78
78
|
.align(Alignment.TopStart)
|
|
79
79
|
.clip(true)
|
|
80
80
|
.scrollBar(getAttributes(this.node).scrollBar)
|
|
81
|
+
.onScrollIndex((first: number, last: number) => {
|
|
82
|
+
const scrollindexfns = (this.node?.__listeners?.['scrollindex'] || []) as Function[]
|
|
83
|
+
scrollindexfns.forEach(fn => {
|
|
84
|
+
fn({
|
|
85
|
+
first,
|
|
86
|
+
last
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
})
|
|
81
90
|
.onClick(shouldBindEvent((e: ClickEvent) => eventHandler(e, 'click', this.node), this.node, ['click']))
|
|
82
91
|
.onTouch(shouldBindEvent((e: TouchEvent) => eventHandler(e, TOUCH_EVENT_MAP.get(e.type), this.node), this.node, TOUCH_EVENT_MAP.values()))
|
|
83
92
|
.onAreaChange(getComponentEventCallback(this.node, AREA_CHANGE_EVENT_NAME, (res: TaroAny) => {
|
|
@@ -60,7 +60,7 @@ function handleScrollEvent (node: TaroScrollViewElement, eventName = 'scroll', x
|
|
|
60
60
|
@Component
|
|
61
61
|
export default struct TaroScrollView {
|
|
62
62
|
@Builder customBuilder() {}
|
|
63
|
-
@BuilderParam createLazyChildren: (node: TaroScrollViewElement) => void = this.customBuilder
|
|
63
|
+
@BuilderParam createLazyChildren: (node: TaroScrollViewElement, layer?: number) => void = this.customBuilder
|
|
64
64
|
@ObjectLink node: TaroScrollViewElement
|
|
65
65
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
66
66
|
|
|
@@ -81,7 +81,7 @@ export default struct TaroScrollView {
|
|
|
81
81
|
if (this.node._pseudo_before || this.node._pseudo_after) {
|
|
82
82
|
PseduoChildren({ node: this.node, createLazyChildren: this.createLazyChildren })
|
|
83
83
|
} else {
|
|
84
|
-
this.createLazyChildren(this.node)
|
|
84
|
+
this.createLazyChildren(this.node, 0)
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
.alignItems(FlexManager.alignItems<VerticalAlign>(this.node))
|
|
@@ -97,7 +97,7 @@ export default struct TaroScrollView {
|
|
|
97
97
|
if (this.node._pseudo_before || this.node._pseudo_after) {
|
|
98
98
|
PseduoChildren({ node: this.node, createLazyChildren: this.createLazyChildren })
|
|
99
99
|
} else {
|
|
100
|
-
this.createLazyChildren(this.node)
|
|
100
|
+
this.createLazyChildren(this.node, 0)
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
.alignItems(FlexManager.alignItems<HorizontalAlign>(this.node))
|
|
@@ -41,7 +41,7 @@ function themeStyles(isDisabled: boolean) {
|
|
|
41
41
|
@Component
|
|
42
42
|
export default struct TaroSlider {
|
|
43
43
|
@Builder customBuilder() {}
|
|
44
|
-
@BuilderParam createLazyChildren: (node: TaroSliderElement) => void = this.customBuilder
|
|
44
|
+
@BuilderParam createLazyChildren: (node: TaroSliderElement, layer?: number) => void = this.customBuilder
|
|
45
45
|
@ObjectLink node: TaroSliderElement
|
|
46
46
|
|
|
47
47
|
@State value: number = 0
|
|
@@ -5,7 +5,7 @@ import type { TaroViewElement, TaroElement, TaroAny } from '@tarojs/runtime'
|
|
|
5
5
|
@Component
|
|
6
6
|
export default struct TaroStickySection {
|
|
7
7
|
@Builder customBuilder() {}
|
|
8
|
-
@BuilderParam createLazyChildren: (node: TaroViewElement) => void = this.customBuilder
|
|
8
|
+
@BuilderParam createLazyChildren: (node: TaroViewElement, layer?: number) => void = this.customBuilder
|
|
9
9
|
@ObjectLink node: TaroViewElement
|
|
10
10
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
11
11
|
|
|
@@ -20,7 +20,7 @@ export default struct TaroStickySection {
|
|
|
20
20
|
Stack() {
|
|
21
21
|
LazyForEach(header, (item: TaroElement) => {
|
|
22
22
|
if (item.tagName === 'STICKY-HEADER') {
|
|
23
|
-
this.createLazyChildren(item as TaroViewElement)
|
|
23
|
+
this.createLazyChildren(item as TaroViewElement, 0)
|
|
24
24
|
}
|
|
25
25
|
}, (item: TaroElement) => `${item._nid}-${item._nodeInfo?.layer || 0}`)
|
|
26
26
|
}
|
|
@@ -32,7 +32,7 @@ export default struct TaroStickySection {
|
|
|
32
32
|
}) {
|
|
33
33
|
ForEach(this.node.children, (item: TaroElement) => {
|
|
34
34
|
if (item.tagName === 'LIST-VIEW') {
|
|
35
|
-
this.createLazyChildren(item as TaroViewElement)
|
|
35
|
+
this.createLazyChildren(item as TaroViewElement, 0)
|
|
36
36
|
}
|
|
37
37
|
}, (item: TaroElement) => `${item._nid}-${item._nodeInfo?.layer || 0}`)
|
|
38
38
|
|
|
@@ -48,7 +48,7 @@ function getSwiperAttributes (node: TaroSwiperElement): SwiperAttrs {
|
|
|
48
48
|
@Component
|
|
49
49
|
export default struct TaroSwiper {
|
|
50
50
|
@Builder customBuilder() {}
|
|
51
|
-
@BuilderParam createLazyChildren: (node: TaroSwiperElement) => void = this.customBuilder
|
|
51
|
+
@BuilderParam createLazyChildren: (node: TaroSwiperElement, layer?: number) => void = this.customBuilder
|
|
52
52
|
@ObjectLink node: TaroSwiperElement
|
|
53
53
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
54
54
|
|
|
@@ -60,7 +60,7 @@ export default struct TaroSwiper {
|
|
|
60
60
|
|
|
61
61
|
build () {
|
|
62
62
|
Swiper(this.node.controller) {
|
|
63
|
-
this.createLazyChildren(this.node)
|
|
63
|
+
this.createLazyChildren(this.node, 0)
|
|
64
64
|
}
|
|
65
65
|
.attributeModifier(commonStyleModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
66
66
|
.swiperAttr(getSwiperAttributes(this.node))
|
|
@@ -31,7 +31,7 @@ function themeStyles(isDisabled: boolean) {
|
|
|
31
31
|
@Component
|
|
32
32
|
export default struct TaroSwitch {
|
|
33
33
|
@Builder customBuilder() {}
|
|
34
|
-
@BuilderParam createLazyChildren: (node: TaroSwitchElement) => void = this.customBuilder
|
|
34
|
+
@BuilderParam createLazyChildren: (node: TaroSwitchElement, layer?: number) => void = this.customBuilder
|
|
35
35
|
@ObjectLink node: TaroSwitchElement
|
|
36
36
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
37
37
|
|
|
@@ -30,7 +30,7 @@ function getTextInViewWidth (node: TaroElement | null): TaroAny {
|
|
|
30
30
|
@Component
|
|
31
31
|
export default struct TaroText {
|
|
32
32
|
@Builder customBuilder() {}
|
|
33
|
-
@BuilderParam createLazyChildren: (node: TaroTextElement) => void = this.customBuilder
|
|
33
|
+
@BuilderParam createLazyChildren: (node: TaroTextElement, layer?: number) => void = this.customBuilder
|
|
34
34
|
@ObjectLink node: TaroTextElement
|
|
35
35
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
36
36
|
|
|
@@ -45,7 +45,7 @@ export default struct TaroTextArea {
|
|
|
45
45
|
@State value: string = ''
|
|
46
46
|
|
|
47
47
|
@Builder customBuilder() {}
|
|
48
|
-
@BuilderParam createLazyChildren: (node: TaroTextAreaElement) => void = this.customBuilder
|
|
48
|
+
@BuilderParam createLazyChildren: (node: TaroTextAreaElement, layer?: number) => void = this.customBuilder
|
|
49
49
|
@ObjectLink node: TaroTextAreaElement
|
|
50
50
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
51
51
|
|
|
@@ -81,7 +81,7 @@ function handleUpdate (node: TaroVideoElement, e: VideoUpdateEvent) {
|
|
|
81
81
|
@Component
|
|
82
82
|
export default struct TaroVideo {
|
|
83
83
|
@Builder customBuilder() {}
|
|
84
|
-
@BuilderParam createLazyChildren: (node: TaroVideoElement) => void = this.customBuilder
|
|
84
|
+
@BuilderParam createLazyChildren: (node: TaroVideoElement, layer?: number) => void = this.customBuilder
|
|
85
85
|
@ObjectLink node: TaroVideoElement
|
|
86
86
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
87
87
|
|
|
@@ -12,7 +12,7 @@ import { isUndefined } from '@tarojs/shared'
|
|
|
12
12
|
@Component
|
|
13
13
|
export default struct TaroView {
|
|
14
14
|
@Builder customBuilder() {}
|
|
15
|
-
@BuilderParam createLazyChildren: (node: TaroViewElement) => void = this.customBuilder
|
|
15
|
+
@BuilderParam createLazyChildren: (node: TaroViewElement, layer?: number) => void = this.customBuilder
|
|
16
16
|
@ObjectLink node: TaroViewElement
|
|
17
17
|
@State overwriteStyle: Record<string, TaroAny> = {}
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ export default struct TaroView {
|
|
|
28
28
|
if (this.node._pseudo_before || this.node._pseudo_after) {
|
|
29
29
|
PseduoChildren({ node: this.node, createLazyChildren: this.createLazyChildren })
|
|
30
30
|
} else {
|
|
31
|
-
this.createLazyChildren(this.node)
|
|
31
|
+
this.createLazyChildren(this.node, 0)
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
.attributeModifier(commonStyleModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
@@ -43,7 +43,7 @@ export default struct TaroView {
|
|
|
43
43
|
if (this.node._pseudo_before || this.node._pseudo_after) {
|
|
44
44
|
PseduoChildren({ node: this.node, createLazyChildren: this.createLazyChildren })
|
|
45
45
|
} else {
|
|
46
|
-
this.createLazyChildren(this.node)
|
|
46
|
+
this.createLazyChildren(this.node, 0)
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
.attributeModifier(rowModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
@@ -58,7 +58,7 @@ export default struct TaroView {
|
|
|
58
58
|
if (this.node._pseudo_before || this.node._pseudo_after) {
|
|
59
59
|
PseduoChildren({ node: this.node, createLazyChildren: this.createLazyChildren })
|
|
60
60
|
} else {
|
|
61
|
-
this.createLazyChildren(this.node)
|
|
61
|
+
this.createLazyChildren(this.node, 0)
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
.attributeModifier(columnModify.setNode(this.node).setAnimationStyle(this.overwriteStyle))
|
|
@@ -17,7 +17,7 @@ interface IError {
|
|
|
17
17
|
@Component
|
|
18
18
|
export default struct TaroWebView {
|
|
19
19
|
@Builder customBuilder() {}
|
|
20
|
-
@BuilderParam createLazyChildren: (node: TaroWebViewElement) => void = this.customBuilder
|
|
20
|
+
@BuilderParam createLazyChildren: (node: TaroWebViewElement, layer?: number) => void = this.customBuilder
|
|
21
21
|
@ObjectLink node: TaroWebViewElement
|
|
22
22
|
|
|
23
23
|
build () {
|
package/dist/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ declare class Harmony extends TaroPlatformHarmony {
|
|
|
51
51
|
taroComponentsPath: string;
|
|
52
52
|
apiEntryList: RegExp[];
|
|
53
53
|
constructor(ctx: IPluginContext, config: TConfig);
|
|
54
|
-
get framework(): "solid" | "vue3" | "react" | "preact"
|
|
54
|
+
get framework(): "solid" | "vue3" | "react" | "preact";
|
|
55
55
|
get aliasFramework(): string;
|
|
56
56
|
get apiLibrary(): string;
|
|
57
57
|
get apiEntry(): RegExp[];
|