@dcloudio/uni-app-x 0.7.79 → 0.7.81
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 +1 -1
- package/types/dom2/UniCSSProperty.d.ts +0 -1
- package/types/dom2/UniCSSTransition.d.ts +30 -6
- package/types/dom2/UniElement.d.ts +5 -0
- package/types/dom2/UniNativeBaseView.d.ts +5 -3
- package/types/dom2/UniNativeDefines.d.ts +10 -10
- package/types/dom2/UniPage.d.ts +36 -3
- package/types/dom2/UniTextElement.d.ts +5 -0
- package/types/dom2/global.d.ts +21 -7
- package/types/dom2/sharedData.d.ts +10 -1
- package/types/dom2-internal/UniElement.d.ts +15 -0
- package/types/native/UniPage.d.ts +97 -1
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +7 -6
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +4 -3
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +2 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +7 -6
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +4 -3
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +69 -23
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +7 -40
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -20
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +66 -495
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +9 -8
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +5 -4
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +29 -28
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +400 -212
- package/types/uni/uts-plugin-component/lib/uni-web-view-global/utssdk/interface.d.ts +5 -0
- package/types/node_modules/.package-lock.json +0 -20
- package/types/node_modules/typescript/LICENSE.txt +0 -55
- package/types/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
- package/types/node_modules/typescript/bin/tsc +0 -2
- package/types/node_modules/typescript/bin/tsserver +0 -2
- package/types/node_modules/typescript/lib/cancellationToken.js +0 -90
- package/types/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/lib.d.ts +0 -22
- package/types/node_modules/typescript/lib/lib.decorators.d.ts +0 -386
- package/types/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
- package/types/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -33
- package/types/node_modules/typescript/lib/lib.dom.d.ts +0 -28596
- package/types/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -475
- package/types/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
- package/types/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
- package/types/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
- package/types/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
- package/types/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -495
- package/types/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
- package/types/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
- package/types/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
- package/types/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
- package/types/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
- package/types/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
- package/types/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
- package/types/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
- package/types/node_modules/typescript/lib/lib.es2017.d.ts +0 -25
- package/types/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
- package/types/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
- package/types/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
- package/types/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
- package/types/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
- package/types/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
- package/types/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
- package/types/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -43
- package/types/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
- package/types/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
- package/types/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
- package/types/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
- package/types/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
- package/types/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
- package/types/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -727
- package/types/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
- package/types/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
- package/types/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
- package/types/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
- package/types/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
- package/types/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -97
- package/types/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -42
- package/types/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -37
- package/types/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
- package/types/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
- package/types/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
- package/types/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -76
- package/types/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
- package/types/node_modules/typescript/lib/lib.es2022.d.ts +0 -26
- package/types/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -73
- package/types/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -117
- package/types/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
- package/types/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
- package/types/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts +0 -39
- package/types/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
- package/types/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
- package/types/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
- package/types/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
- package/types/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
- package/types/node_modules/typescript/lib/lib.es5.d.ts +0 -4585
- package/types/node_modules/typescript/lib/lib.es6.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
- package/types/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -106
- package/types/node_modules/typescript/lib/lib.esnext.d.ts +0 -28
- package/types/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
- package/types/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -185
- package/types/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
- package/types/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
- package/types/node_modules/typescript/lib/lib.esnext.object.d.ts +0 -29
- package/types/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -35
- package/types/node_modules/typescript/lib/lib.esnext.regexp.d.ts +0 -25
- package/types/node_modules/typescript/lib/lib.esnext.string.d.ts +0 -29
- package/types/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
- package/types/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -33
- package/types/node_modules/typescript/lib/lib.webworker.d.ts +0 -9431
- package/types/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
- package/types/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -276
- package/types/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/tsc.js +0 -129741
- package/types/node_modules/typescript/lib/tsserver.js +0 -621
- package/types/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
- package/types/node_modules/typescript/lib/tsserverlibrary.js +0 -21
- package/types/node_modules/typescript/lib/typesMap.json +0 -497
- package/types/node_modules/typescript/lib/typescript.d.ts +0 -11240
- package/types/node_modules/typescript/lib/typescript.js +0 -194910
- package/types/node_modules/typescript/lib/typingsInstaller.js +0 -236
- package/types/node_modules/typescript/lib/watchGuard.js +0 -53
- package/types/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -1880
- package/types/node_modules/typescript/package.json +0 -116
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* transition-timing-function 类型
|
|
4
4
|
*/
|
|
5
|
-
export enum
|
|
5
|
+
export enum UniCSSTransitionTimingFunctionType {
|
|
6
6
|
Ease,
|
|
7
7
|
EaseIn,
|
|
8
8
|
EaseOut,
|
|
@@ -42,18 +42,23 @@ export interface UniCSSTransitionTimingFunction {
|
|
|
42
42
|
/**
|
|
43
43
|
* 动画过渡的速度曲线类型
|
|
44
44
|
*/
|
|
45
|
-
type:
|
|
45
|
+
type: UniCSSTransitionTimingFunctionType
|
|
46
46
|
/**
|
|
47
47
|
* 动画过渡的贝塞尔值
|
|
48
48
|
* 当 timingFunction 为 CubicBezier 时使用
|
|
49
49
|
*/
|
|
50
50
|
timingCubicBezier?: UniCSSCubicBezier | null,
|
|
51
|
-
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* transition-timing-function 数据(多项)
|
|
55
|
+
*/
|
|
56
|
+
export type UniCSSTransitionTimingFunctions = UniCSSTransitionTimingFunction[]
|
|
52
57
|
|
|
53
58
|
/**
|
|
54
59
|
* transition 变换项数据
|
|
55
60
|
*/
|
|
56
|
-
export interface
|
|
61
|
+
export interface UniCSSTransition {
|
|
57
62
|
/**
|
|
58
63
|
* 动画持续时间
|
|
59
64
|
* 单位为ms
|
|
@@ -75,8 +80,27 @@ export interface UniCSSTransitionItem {
|
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
/**
|
|
78
|
-
* CSS transition
|
|
83
|
+
* CSS transition 变换数据(多项)
|
|
79
84
|
*/
|
|
80
|
-
export type
|
|
85
|
+
export type UniCSSTransitions = UniCSSTransition[]
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* CSS transition-property 数据
|
|
89
|
+
*/
|
|
90
|
+
export type UniCSSTransitionProperty = UniCSSPropertyID
|
|
91
|
+
export type UniCSSTransitionProperties = UniCSSPropertyID[]
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* CSS transition-duration 数据
|
|
95
|
+
*/
|
|
96
|
+
export type UniCSSTransitionDuration = number
|
|
97
|
+
export type UniCSSTransitionDurations = number[]
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* CSS transition-delay 数据
|
|
101
|
+
*/
|
|
102
|
+
export type UniCSSTransitionDelay = number
|
|
103
|
+
export type UniCSSTransitionDelays = number[]
|
|
104
|
+
|
|
81
105
|
|
|
82
106
|
|
|
@@ -5,7 +5,7 @@ import { UniNativeBackgroundClip, UniNativeBackgroundImage } from './UniNativeDe
|
|
|
5
5
|
import { UniNativeBorderWidths, UniNativeBorderWidth, UniNativeBorderStyles, UniNativeBorderStyle, UniNativeBorderColors, UniNativeBorderColor, UniNativeBorderRadiuses, UniNativeBorderRadius } from './UniNativeDefines'
|
|
6
6
|
import { UniNativeBoxShadow, UniNativeOverflowType, UniNativeDisplayType, UniNativePointerEventType, UniNativePositionType, UniNativeVisibilityType } from './UniNativeDefines'
|
|
7
7
|
import { UniNativeSlotType, UniNativeTransform, UniNativeTransformOrigin } from './UniNativeDefines'
|
|
8
|
-
import { UniNativeTransition, UniNativeTransitions, UniNativeTransitionProperty,
|
|
8
|
+
import { UniNativeTransition, UniNativeTransitions, UniNativeTransitionProperty, UniNativeTransitionProperties, UniNativeTransitionDuration, UniNativeTransitionDurations, UniNativeTransitionDelay, UniNativeTransitionDelays, UniNativeTransitionTimingFunction, UniNativeTransitionTimingFunctions } from './UniNativeDefines'
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -210,9 +210,11 @@ export interface UniNativeBaseView {
|
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
212
|
* CSS: transition
|
|
213
|
+
* 设置transition动画
|
|
214
|
+
* 注意:transition/transition-property属性值设置为none时,解析设置null值
|
|
213
215
|
*/
|
|
214
|
-
transition(value
|
|
215
|
-
transitionProperty(value
|
|
216
|
+
transition(value?: UniNativeTransition | UniNativeTransitions | null): UniNativeBaseView
|
|
217
|
+
transitionProperty(value?: UniNativeTransitionProperty | UniNativeTransitionProperties | null): UniNativeBaseView
|
|
216
218
|
transitionDuration(value: UniNativeTransitionDuration | UniNativeTransitionDurations): UniNativeBaseView
|
|
217
219
|
transitionDelay(value: UniNativeTransitionDelay | UniNativeTransitionDelays): UniNativeBaseView
|
|
218
220
|
transitionTimingFunction(value: UniNativeTransitionTimingFunction | UniNativeTransitionTimingFunctions): UniNativeBaseView
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { UniSize, UniPosition, UniLTWH, UniLTRB, UniCSSPropertyID, UniCSSUnitValue } from './index'
|
|
8
8
|
import { UniCSSTransform, UniCSSTransformOrigin } from './UniCSSTransform'
|
|
9
|
-
import {
|
|
9
|
+
import { UniCSSTransition, UniCSSTransitions, UniCSSTransitionProperty, UniCSSTransitionProperties, UniCSSTransitionTimingFunction, UniCSSTransitionTimingFunctions, UniCSSTransitionDuration, UniCSSTransitionDurations, UniCSSTransitionDelay, UniCSSTransitionDelays } from './UniCSSTransition'
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -395,16 +395,16 @@ export type UniNativeTransformOrigin = UniCSSTransformOrigin
|
|
|
395
395
|
/**
|
|
396
396
|
* transition数据类型
|
|
397
397
|
*/
|
|
398
|
-
export type UniNativeTransition =
|
|
399
|
-
export type UniNativeTransitions =
|
|
400
|
-
export type UniNativeTransitionProperty =
|
|
401
|
-
export type
|
|
402
|
-
export type UniNativeTransitionDuration =
|
|
403
|
-
export type UniNativeTransitionDurations =
|
|
404
|
-
export type UniNativeTransitionDelay =
|
|
405
|
-
export type UniNativeTransitionDelays =
|
|
398
|
+
export type UniNativeTransition = UniCSSTransition
|
|
399
|
+
export type UniNativeTransitions = UniCSSTransitions
|
|
400
|
+
export type UniNativeTransitionProperty = UniCSSTransitionProperty
|
|
401
|
+
export type UniNativeTransitionProperties = UniCSSTransitionProperties
|
|
402
|
+
export type UniNativeTransitionDuration = UniCSSTransitionDuration
|
|
403
|
+
export type UniNativeTransitionDurations = UniCSSTransitionDurations
|
|
404
|
+
export type UniNativeTransitionDelay = UniCSSTransitionDelay
|
|
405
|
+
export type UniNativeTransitionDelays = UniCSSTransitionDelays
|
|
406
406
|
export type UniNativeTransitionTimingFunction = UniCSSTransitionTimingFunction
|
|
407
|
-
export type UniNativeTransitionTimingFunctions =
|
|
407
|
+
export type UniNativeTransitionTimingFunctions = UniCSSTransitionTimingFunctions
|
|
408
408
|
|
|
409
409
|
|
|
410
410
|
|
package/types/dom2/UniPage.d.ts
CHANGED
|
@@ -111,10 +111,29 @@ declare global {
|
|
|
111
111
|
*/
|
|
112
112
|
increaseNativeViewCounter(count: number): void
|
|
113
113
|
|
|
114
|
+
/**
|
|
115
|
+
* 监听页面触摸事件
|
|
116
|
+
* 注意:这些事件不受事件冒泡影响,也无法阻止默认行为
|
|
117
|
+
*/
|
|
118
|
+
/**
|
|
119
|
+
* 监听页面触摸开始事件
|
|
120
|
+
*/
|
|
121
|
+
onTouchStart(callback: UniPageOnTouchEventCallbakc): number
|
|
122
|
+
/**
|
|
123
|
+
* 取消监听页面触摸开始事件
|
|
124
|
+
*/
|
|
125
|
+
offTouchStart(id: number): void
|
|
126
|
+
/**
|
|
127
|
+
* 监听页面触摸结束事件
|
|
128
|
+
*/
|
|
129
|
+
onTouchEnd(callback: UniPageOnTouchEventCallbakc): number
|
|
130
|
+
/**
|
|
131
|
+
* 取消监听页面触摸结束事件
|
|
132
|
+
*/
|
|
133
|
+
offTouchEnd(id: number): void
|
|
114
134
|
|
|
115
135
|
/**
|
|
116
136
|
* 监听页面布局变化更新事件
|
|
117
|
-
* 前端封装为页面的生命周期 onLayout
|
|
118
137
|
* @internal
|
|
119
138
|
*/
|
|
120
139
|
onLayoutChange(callback: UniPageOnLayoutChangeCallback): number
|
|
@@ -126,7 +145,6 @@ declare global {
|
|
|
126
145
|
|
|
127
146
|
/**
|
|
128
147
|
* 监听页面渲染变化更新事件
|
|
129
|
-
* 前端封装为页面的生命周期 onLayout
|
|
130
148
|
* @internal
|
|
131
149
|
*/
|
|
132
150
|
onRenderChange(callback: UniPageOnRenderChangeCallback): number
|
|
@@ -145,6 +163,11 @@ declare global {
|
|
|
145
163
|
defineStyleVariable(key: string, value: string): void
|
|
146
164
|
}
|
|
147
165
|
|
|
166
|
+
/**
|
|
167
|
+
* 监听页面触摸事件回调函数
|
|
168
|
+
*/
|
|
169
|
+
type UniPageOnTouchEventCallbakc = (event: UniTouchEvent) => void
|
|
170
|
+
|
|
148
171
|
/**
|
|
149
172
|
* 监听页面布局变化更新事件回调函数
|
|
150
173
|
*/
|
|
@@ -161,7 +184,7 @@ declare global {
|
|
|
161
184
|
/**
|
|
162
185
|
* 监听页面布局变化更新事件回调参数
|
|
163
186
|
*/
|
|
164
|
-
type UniPageOnRenderChangeCallbackResult =
|
|
187
|
+
type UniPageOnRenderChangeCallbackResult = UniPagePerformanceRenderTiming
|
|
165
188
|
|
|
166
189
|
/**
|
|
167
190
|
* 页面性能计时信息
|
|
@@ -172,5 +195,15 @@ declare global {
|
|
|
172
195
|
*/
|
|
173
196
|
duration: number
|
|
174
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* 渲染性能计时信息
|
|
200
|
+
* UniPagePerformanceTiming基类的duration属性为渲染到屏幕的总时间
|
|
201
|
+
*/
|
|
202
|
+
interface UniPagePerformanceRenderTiming extends UniPagePerformanceTiming {
|
|
203
|
+
/**
|
|
204
|
+
* 更新渲染属性的总时间,单位为ms
|
|
205
|
+
*/
|
|
206
|
+
updateDuration: number
|
|
207
|
+
}
|
|
175
208
|
}
|
|
176
209
|
export { }
|
package/types/dom2/global.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
UniNativeTransition as UniNativeTransitionOrigin,
|
|
43
43
|
UniNativeTransitions as UniNativeTransitionsOrigin,
|
|
44
44
|
UniNativeTransitionProperty as UniNativeTransitionPropertyOrigin,
|
|
45
|
-
|
|
45
|
+
UniNativeTransitionProperties as UniNativeTransitionPropertiesOrigin,
|
|
46
46
|
UniNativeTransitionDuration as UniNativeTransitionDurationOrigin,
|
|
47
47
|
UniNativeTransitionDurations as UniNativeTransitionDurationsOrigin,
|
|
48
48
|
UniNativeTransitionDelay as UniNativeTransitionDelayOrigin,
|
|
@@ -71,11 +71,18 @@ import {
|
|
|
71
71
|
UniLayoutSize as UniLayoutSizeOrigin,
|
|
72
72
|
UniCSSUnitType as UniCSSUnitTypeOrigin,
|
|
73
73
|
UniCSSUnitValue as UniCSSUnitValueOrigin,
|
|
74
|
-
|
|
74
|
+
UniCSSTransitionTimingFunctionType as UniCSSTransitionTimingFunctionTypeOrigin,
|
|
75
75
|
UniCSSCubicBezier as UniCSSCubicBezierOrigin,
|
|
76
76
|
UniCSSTransitionTimingFunction as UniCSSTransitionTimingFunctionOrigin,
|
|
77
|
-
|
|
77
|
+
UniCSSTransitionTimingFunctions as UniCSSTransitionTimingFunctionsOrigin,
|
|
78
78
|
UniCSSTransition as UniCSSTransitionOrigin,
|
|
79
|
+
UniCSSTransitions as UniCSSTransitionsOrigin,
|
|
80
|
+
UniCSSTransitionProperty as UniCSSTransitionPropertyOrigin,
|
|
81
|
+
UniCSSTransitionProperties as UniCSSTransitionPropertiesOrigin,
|
|
82
|
+
UniCSSTransitionDuration as UniCSSTransitionDurationOrigin,
|
|
83
|
+
UniCSSTransitionDurations as UniCSSTransitionDurationsOrigin,
|
|
84
|
+
UniCSSTransitionDelay as UniCSSTransitionDelayOrigin,
|
|
85
|
+
UniCSSTransitionDelays as UniCSSTransitionDelaysOrigin,
|
|
79
86
|
UniCSSTransformType as UniCSSTransformTypeOrigin,
|
|
80
87
|
UniCSSTransformTranslate as UniCSSTransformTranslateOrigin,
|
|
81
88
|
UniCSSTransformScale as UniCSSTransformScaleOrigin,
|
|
@@ -175,7 +182,7 @@ declare global {
|
|
|
175
182
|
type UniNativeTransition = UniNativeTransitionOrigin
|
|
176
183
|
type UniNativeTransitions = UniNativeTransitionsOrigin
|
|
177
184
|
type UniNativeTransitionProperty = UniNativeTransitionPropertyOrigin
|
|
178
|
-
type
|
|
185
|
+
type UniNativeTransitionProperties = UniNativeTransitionPropertiesOrigin
|
|
179
186
|
type UniNativeTransitionDuration = UniNativeTransitionDurationOrigin
|
|
180
187
|
type UniNativeTransitionDurations = UniNativeTransitionDurationsOrigin
|
|
181
188
|
type UniNativeTransitionDelay = UniNativeTransitionDelayOrigin
|
|
@@ -209,12 +216,19 @@ declare global {
|
|
|
209
216
|
type UniCSSUnitType = UniCSSUnitTypeOrigin
|
|
210
217
|
const UniCSSUnitValue: typeof UniCSSUnitValueOrigin
|
|
211
218
|
type UniCSSUnitValue = UniCSSUnitValueOrigin
|
|
212
|
-
const
|
|
213
|
-
type
|
|
219
|
+
const UniCSSTransitionTimingFunctionType: typeof UniCSSTransitionTimingFunctionTypeOrigin
|
|
220
|
+
type UniCSSTransitionTimingFunctionType = UniCSSTransitionTimingFunctionTypeOrigin
|
|
214
221
|
type UniCSSCubicBezier = UniCSSCubicBezierOrigin
|
|
215
222
|
type UniCSSTransitionTimingFunction = UniCSSTransitionTimingFunctionOrigin
|
|
216
|
-
type
|
|
223
|
+
type UniCSSTransitionTimingFunctions = UniCSSTransitionTimingFunctionsOrigin
|
|
217
224
|
type UniCSSTransition = UniCSSTransitionOrigin
|
|
225
|
+
type UniCSSTransitions = UniCSSTransitionsOrigin
|
|
226
|
+
type UniCSSTransitionProperty = UniCSSTransitionPropertyOrigin
|
|
227
|
+
type UniCSSTransitionProperties = UniCSSTransitionPropertiesOrigin
|
|
228
|
+
type UniCSSTransitionDuration = UniCSSTransitionDurationOrigin
|
|
229
|
+
type UniCSSTransitionDurations = UniCSSTransitionDurationsOrigin
|
|
230
|
+
type UniCSSTransitionDelay = UniCSSTransitionDelayOrigin
|
|
231
|
+
type UniCSSTransitionDelays = UniCSSTransitionDelaysOrigin
|
|
218
232
|
const UniCSSTransformType: typeof UniCSSTransformTypeOrigin
|
|
219
233
|
type UniCSSTransformType = UniCSSTransformTypeOrigin
|
|
220
234
|
const UniCSSTransformTranslate: typeof UniCSSTransformTranslateOrigin
|
|
@@ -18,7 +18,7 @@ declare global {
|
|
|
18
18
|
| UniSharedDataFunctionSetTemplateRef
|
|
19
19
|
|
|
20
20
|
type UniSharedDataFunctionEventListener = (event: /* UniSharedDataEvent */ UniEvent) => void
|
|
21
|
-
type UniSharedDataFunctionSetTemplateRef = (
|
|
21
|
+
type UniSharedDataFunctionSetTemplateRef = (el: UniElement) => void
|
|
22
22
|
|
|
23
23
|
enum UniSharedDataSchedulerJobType {
|
|
24
24
|
/**
|
|
@@ -94,6 +94,11 @@ declare global {
|
|
|
94
94
|
* @internal
|
|
95
95
|
*/
|
|
96
96
|
_queueJobs: (key: string) => void
|
|
97
|
+
/**
|
|
98
|
+
* 设置callMethod
|
|
99
|
+
* @internal
|
|
100
|
+
*/
|
|
101
|
+
_setCallMethod(fn : (...args : any[]) => void): void
|
|
97
102
|
constructor(scope: UniSharedDataPage)
|
|
98
103
|
}
|
|
99
104
|
|
|
@@ -123,6 +128,10 @@ declare global {
|
|
|
123
128
|
*/
|
|
124
129
|
inheritAttrs: UniSharedDataJSONObject
|
|
125
130
|
constructor(scope: UniSharedDataPage)
|
|
131
|
+
/**
|
|
132
|
+
* 监听组件根节点样式变更
|
|
133
|
+
*/
|
|
134
|
+
useComputedStyle(options : { properties : number[], filterProperties ?: boolean | null, callback : (result : Array<[number, any | null]>) => void }) : Map<string, any | null>
|
|
126
135
|
/**
|
|
127
136
|
* 由编译器动态生成的子类中的 Element 渲染器
|
|
128
137
|
*/
|
|
@@ -3,6 +3,7 @@ import { UniCSSPropertyID, UniCSSPropertyName, UniCSSPropertyValue } from '../do
|
|
|
3
3
|
import { UniCSSUnitType, UniCSSUnitValue } from '../dom2/UniCSSType'
|
|
4
4
|
import { UniCSSBoxSizingType, UniCSSDisplayType, UniCSSPositionType, UniCSSBorderStyleType, UniCSSBorderWidthType } from '../dom2/UniCSSProperty'
|
|
5
5
|
import { UniCSSFlexDirectionType, UniCSSFlexWrapType, UniCSSJustifyContentType, UniCSSAlignItemsType, UniCSSAlignSelfType, UniCSSAlignContentType, UniCSSFlexBasisType } from '../dom2/UniCSSProperty'
|
|
6
|
+
import { UniCSSTransitions } from '../dom2/UniCSSTransition'
|
|
6
7
|
|
|
7
8
|
declare global {
|
|
8
9
|
/**
|
|
@@ -149,6 +150,20 @@ declare global {
|
|
|
149
150
|
getStyleAlignSelf(): UniCSSAlignSelfType
|
|
150
151
|
setStyleAlignContent(value: UniCSSAlignContentType): void
|
|
151
152
|
getStyleAlignContent(): UniCSSAlignContentType
|
|
153
|
+
/**
|
|
154
|
+
* 设置Transition相关CSS属性
|
|
155
|
+
* 注意:transition/transition-property属性值设置为none时,解析设置null值
|
|
156
|
+
*/
|
|
157
|
+
setStyleTransition(value?: UniCSSTransition | UniCSSTransitions | null): void
|
|
158
|
+
getStyleTransition(): UniCSSTransitions | null
|
|
159
|
+
setStyleTransitionProperty(value?: UniNativeTransitionProperty | UniNativeTransitionProperties | null): void
|
|
160
|
+
getStyleTransitionProperty(): UniNativeTransitionProperties | null
|
|
161
|
+
setStyleTransitionDuration(value: UniNativeTransitionDuration | UniNativeTransitionDurations): void
|
|
162
|
+
getStyleTransitionDuration(): UniNativeTransitionDurations
|
|
163
|
+
setStyleTransitionDelay(value: UniNativeTransitionDelay | UniNativeTransitionDelays): void
|
|
164
|
+
getStyleTransitionDelay(): UniNativeTransitionDelays
|
|
165
|
+
setStyleTransitionTimingFunction(value: UniNativeTransitionTimingFunction | UniNativeTransitionTimingFunctions): void
|
|
166
|
+
getStyleTransitionTimingFunction(): UniNativeTransitionTimingFunctions
|
|
152
167
|
/**
|
|
153
168
|
* 获取CSS属性
|
|
154
169
|
* 返回字符串格式数据
|
|
@@ -890,13 +890,109 @@ declare global {
|
|
|
890
890
|
* ios 获取当前页面 dialogPage 创建的 API 弹框集合
|
|
891
891
|
*/
|
|
892
892
|
__$$getSystemDialogPages(): UniPage[]
|
|
893
|
+
|
|
894
|
+
/**
|
|
895
|
+
* 监听页面布局变化更新事件
|
|
896
|
+
* @uniPlatform {
|
|
897
|
+
* "app": {
|
|
898
|
+
* "android": {
|
|
899
|
+
* "osVer": "5.0",
|
|
900
|
+
* "uniVer": "x",
|
|
901
|
+
* "unixVer": "x",
|
|
902
|
+
* "unixvVer": "x"
|
|
903
|
+
* },
|
|
904
|
+
* "ios": {
|
|
905
|
+
* "osVer": "12.0",
|
|
906
|
+
* "uniVer": "x",
|
|
907
|
+
* "unixVer": "x",
|
|
908
|
+
* "unixvVer": "x"
|
|
909
|
+
* },
|
|
910
|
+
* "harmony": {
|
|
911
|
+
* "osVer": "6.0",
|
|
912
|
+
* "uniVer": "x",
|
|
913
|
+
* "unixVer": "x",
|
|
914
|
+
* "unixvVer": "5.0"
|
|
915
|
+
* }
|
|
916
|
+
* }
|
|
917
|
+
* }
|
|
918
|
+
*/
|
|
919
|
+
onLayoutChange(callback: UniPageOnLayoutChangeCallback): number
|
|
920
|
+
/**
|
|
921
|
+
* 取消监听页面布局变化更新事件
|
|
922
|
+
* @uniPlatform {
|
|
923
|
+
* "app": {
|
|
924
|
+
* "android": {
|
|
925
|
+
* "osVer": "5.0",
|
|
926
|
+
* "uniVer": "x",
|
|
927
|
+
* "unixVer": "x",
|
|
928
|
+
* "unixvVer": "x"
|
|
929
|
+
* },
|
|
930
|
+
* "ios": {
|
|
931
|
+
* "osVer": "12.0",
|
|
932
|
+
* "uniVer": "x",
|
|
933
|
+
* "unixVer": "x",
|
|
934
|
+
* "unixvVer": "x"
|
|
935
|
+
* },
|
|
936
|
+
* "harmony": {
|
|
937
|
+
* "osVer": "6.0",
|
|
938
|
+
* "uniVer": "x",
|
|
939
|
+
* "unixVer": "x",
|
|
940
|
+
* "unixvVer": "5.0"
|
|
941
|
+
* }
|
|
942
|
+
* }
|
|
943
|
+
* }
|
|
944
|
+
*/
|
|
945
|
+
offLayoutChange(id: number): void
|
|
893
946
|
/**
|
|
894
947
|
* 监听页面渲染变化更新事件
|
|
895
|
-
*
|
|
948
|
+
* @uniPlatform {
|
|
949
|
+
* "app": {
|
|
950
|
+
* "android": {
|
|
951
|
+
* "osVer": "5.0",
|
|
952
|
+
* "uniVer": "x",
|
|
953
|
+
* "unixVer": "x",
|
|
954
|
+
* "unixvVer": "x"
|
|
955
|
+
* },
|
|
956
|
+
* "ios": {
|
|
957
|
+
* "osVer": "12.0",
|
|
958
|
+
* "uniVer": "x",
|
|
959
|
+
* "unixVer": "x",
|
|
960
|
+
* "unixvVer": "x"
|
|
961
|
+
* },
|
|
962
|
+
* "harmony": {
|
|
963
|
+
* "osVer": "6.0",
|
|
964
|
+
* "uniVer": "x",
|
|
965
|
+
* "unixVer": "x",
|
|
966
|
+
* "unixvVer": "5.0"
|
|
967
|
+
* }
|
|
968
|
+
* }
|
|
969
|
+
* }
|
|
896
970
|
*/
|
|
897
971
|
onRenderChange(callback: UniPageOnRenderChangeCallback): number
|
|
898
972
|
/**
|
|
899
973
|
* 取消监听页面渲染变化更新事件
|
|
974
|
+
* @uniPlatform {
|
|
975
|
+
* "app": {
|
|
976
|
+
* "android": {
|
|
977
|
+
* "osVer": "5.0",
|
|
978
|
+
* "uniVer": "x",
|
|
979
|
+
* "unixVer": "x",
|
|
980
|
+
* "unixvVer": "x"
|
|
981
|
+
* },
|
|
982
|
+
* "ios": {
|
|
983
|
+
* "osVer": "12.0",
|
|
984
|
+
* "uniVer": "x",
|
|
985
|
+
* "unixVer": "x",
|
|
986
|
+
* "unixvVer": "x"
|
|
987
|
+
* },
|
|
988
|
+
* "harmony": {
|
|
989
|
+
* "osVer": "6.0",
|
|
990
|
+
* "uniVer": "x",
|
|
991
|
+
* "unixVer": "x",
|
|
992
|
+
* "unixvVer": "5.0"
|
|
993
|
+
* }
|
|
994
|
+
* }
|
|
995
|
+
* }
|
|
900
996
|
*/
|
|
901
997
|
offRenderChange(id: number): void
|
|
902
998
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// 本文件为自动构建生成
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
ExitSuccess as ExitSuccessOrigin,
|
|
4
4
|
ExitErrorCode as ExitErrorCodeOrigin,
|
|
5
5
|
IExitError as IExitErrorOrigin,
|
|
6
6
|
ExitFail as ExitFailOrigin,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
ExitOptions as ExitOptionsOrigin,
|
|
11
11
|
Exit as ExitOrigin,
|
|
12
12
|
Uni as UniOrigin
|
|
13
|
-
} from './interface'
|
|
13
|
+
} from './interface'
|
|
14
14
|
|
|
15
|
-
declare global {
|
|
16
|
-
|
|
15
|
+
declare global {
|
|
16
|
+
type ExitSuccess = ExitSuccessOrigin
|
|
17
17
|
type ExitErrorCode = ExitErrorCodeOrigin
|
|
18
18
|
type IExitError = IExitErrorOrigin
|
|
19
19
|
type ExitFail = ExitFailOrigin
|
|
@@ -23,4 +23,5 @@ declare global {
|
|
|
23
23
|
type ExitOptions = ExitOptionsOrigin
|
|
24
24
|
type Exit = ExitOrigin
|
|
25
25
|
interface Uni extends UniOrigin { }
|
|
26
|
-
}
|
|
26
|
+
}
|
|
27
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// 本文件为自动构建生成
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
GetSystemInfo as GetSystemInfoOrigin,
|
|
4
4
|
GetSystemInfoSync as GetSystemInfoSyncOrigin,
|
|
5
5
|
GetWindowInfo as GetWindowInfoOrigin,
|
|
6
6
|
SafeArea as SafeAreaOrigin,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
GetSystemInfoOptions as GetSystemInfoOptionsOrigin,
|
|
14
14
|
GetWindowInfoResult as GetWindowInfoResultOrigin,
|
|
15
15
|
Uni as UniOrigin
|
|
16
|
-
} from './interface'
|
|
16
|
+
} from './interface'
|
|
17
17
|
|
|
18
|
-
declare global {
|
|
19
|
-
|
|
18
|
+
declare global {
|
|
19
|
+
type GetSystemInfo = GetSystemInfoOrigin
|
|
20
20
|
type GetSystemInfoSync = GetSystemInfoSyncOrigin
|
|
21
21
|
type GetWindowInfo = GetWindowInfoOrigin
|
|
22
22
|
type SafeArea = SafeAreaOrigin
|
|
@@ -29,4 +29,5 @@ declare global {
|
|
|
29
29
|
type GetSystemInfoOptions = GetSystemInfoOptionsOrigin
|
|
30
30
|
type GetWindowInfoResult = GetWindowInfoResultOrigin
|
|
31
31
|
interface Uni extends UniOrigin { }
|
|
32
|
-
}
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// 本文件为自动构建生成
|
|
2
|
-
export {
|
|
3
|
-
|
|
2
|
+
export {
|
|
3
|
+
GetSystemInfo,
|
|
4
4
|
GetSystemInfoSync,
|
|
5
5
|
GetWindowInfo,
|
|
6
6
|
SafeArea,
|
|
@@ -12,4 +12,5 @@ export {
|
|
|
12
12
|
GetSystemInfoCompleteCallback,
|
|
13
13
|
GetSystemInfoOptions,
|
|
14
14
|
GetWindowInfoResult,
|
|
15
|
-
} from './interface'
|
|
15
|
+
} from './interface'
|
|
16
|
+
|