@dcloudio/uni-app-x 0.7.90 → 0.7.92
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-internal/UniElement.d.ts +9 -0
- package/types/dom2-internal/UniNativeBaseView.d.ts +6 -7
- package/types/dom2-internal/UniNativeDefines.d.ts +2 -1
- package/types/dom2-internal/UniNativeRichTextNativelView.d.ts +15 -0
- package/types/dom2-internal/UniPage.d.ts +11 -0
- package/types/dom2-internal/UniRichTextNativeEement.d.ts +15 -0
- package/types/dom2-internal/global.d.ts +2 -0
- package/types/dom2-internal/index.d.ts +3 -0
- package/types/dom2-internal/sharedData.d.ts +10 -1
- package/types/native/CSSStyleDeclaration.d.ts +20 -18
- package/types/native/CanvasRenderingContext2D.d.ts +1872 -905
- package/types/native/DrawableContext.d.ts +214 -55
- package/types/native/IUniElement.d.ts +400 -419
- package/types/native/UniPage.d.ts +74 -0
- package/types/native/UniResizeObserver.d.ts +332 -2
- package/types/native/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +141 -71
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +16 -8
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +16 -8
- package/types/uni/uts-plugin-component/lib/uni-progress-global/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +18 -9
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +131 -110
- package/types/uni-cloud/index.d.ts +3 -1
- package/types/uni-cloud/interface.d.ts +305 -62
package/package.json
CHANGED
|
@@ -229,6 +229,15 @@ declare global {
|
|
|
229
229
|
*/
|
|
230
230
|
getNodeId(): number
|
|
231
231
|
|
|
232
|
+
/**
|
|
233
|
+
* 设置插槽名称
|
|
234
|
+
*/
|
|
235
|
+
setSlot(slot: UniSlotType): void
|
|
236
|
+
/**
|
|
237
|
+
* 获取插槽名称
|
|
238
|
+
*/
|
|
239
|
+
getSlot(): UniSlotType
|
|
240
|
+
|
|
232
241
|
/**
|
|
233
242
|
* 以下方法在FlexNode和DOM层封装
|
|
234
243
|
* - Android平台:c层和kt层都需要封装
|
|
@@ -21,12 +21,6 @@ export interface UniNativeBaseView {
|
|
|
21
21
|
*/
|
|
22
22
|
ext: Map<string, any | null>
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* 插槽名称
|
|
26
|
-
* 默认为UniNativeSlotType.None,提供给特定场景(如自定义下拉刷新)使用
|
|
27
|
-
*/
|
|
28
|
-
slot: UniNativeSlotType
|
|
29
|
-
|
|
30
24
|
/**
|
|
31
25
|
* 获取内部ID值,用于框架调用,不对外公开
|
|
32
26
|
* Android平台在kotlin层实现
|
|
@@ -34,7 +28,6 @@ export interface UniNativeBaseView {
|
|
|
34
28
|
*/
|
|
35
29
|
getNodeId(): number
|
|
36
30
|
|
|
37
|
-
|
|
38
31
|
/**
|
|
39
32
|
* 获取渲染相关样式,用于UniElement封装获取样式
|
|
40
33
|
* 子类需根据支持的样式重写
|
|
@@ -49,6 +42,11 @@ export interface UniNativeBaseView {
|
|
|
49
42
|
getStyleAny(key: UniCSSPropertyID): any | null
|
|
50
43
|
|
|
51
44
|
|
|
45
|
+
/**
|
|
46
|
+
* 插槽名称
|
|
47
|
+
*/
|
|
48
|
+
slot(value: UniNativeSlotType): UniNativeBaseView
|
|
49
|
+
|
|
52
50
|
/**
|
|
53
51
|
* 位置相关
|
|
54
52
|
* 坐标相对于父View
|
|
@@ -219,5 +217,6 @@ export interface UniNativeBaseView {
|
|
|
219
217
|
transitionDuration(value: UniNativeTransitionDuration | UniNativeTransitionDurations): UniNativeBaseView
|
|
220
218
|
transitionDelay(value: UniNativeTransitionDelay | UniNativeTransitionDelays): UniNativeBaseView
|
|
221
219
|
transitionTimingFunction(value: UniNativeTransitionTimingFunction | UniNativeTransitionTimingFunctions): UniNativeBaseView
|
|
220
|
+
|
|
222
221
|
}
|
|
223
222
|
|
|
@@ -410,7 +410,8 @@ export type UniNativeTransitionTimingFunctions = UniCSSTransitionTimingFunctions
|
|
|
410
410
|
|
|
411
411
|
/**
|
|
412
412
|
* 插槽名称
|
|
413
|
-
*
|
|
413
|
+
* 注:鸿蒙/iOS平台都是在C层可以与CSS中的 UniSlotType 复用
|
|
414
|
+
* UniNativeSlotType 与 UniSlotType 相同,重新定义是为了编译器能正确的将其识别为enum
|
|
414
415
|
*/
|
|
415
416
|
export enum UniNativeSlotType {
|
|
416
417
|
/**
|
|
@@ -3,11 +3,13 @@ import { UniElementType, UniElementStyles } from './UniElementType'
|
|
|
3
3
|
import { UniViewElement } from './index'
|
|
4
4
|
import { UniTextElement } from './index'
|
|
5
5
|
import { UniImageElement } from './index'
|
|
6
|
+
import { UniRichTextNativeElement } from './index'
|
|
6
7
|
import { UniNativeView } from './UniNativeView'
|
|
7
8
|
import { UniNativeTextView } from './UniNativeTextView'
|
|
8
9
|
import { UniNativeImageView } from './UniNativeImageView'
|
|
9
10
|
import { UniNativeScrollView, UniNativeScrollViewOptions } from './UniNativeScrollView'
|
|
10
11
|
import { UniNativeCustomView } from './UniNativeCustomView'
|
|
12
|
+
import { UniNativeRichTextNativeView } from './UniNativeRichTextNativelView'
|
|
11
13
|
import { UniTextLayout } from './index'
|
|
12
14
|
import { UniText } from './index'
|
|
13
15
|
|
|
@@ -65,6 +67,11 @@ declare global {
|
|
|
65
67
|
* @internal
|
|
66
68
|
*/
|
|
67
69
|
createNativeViewElement(): UniNativeViewElement
|
|
70
|
+
/**
|
|
71
|
+
* 创建rich-text-native组件的Element
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
createRichTextNativeElement(): UniRichTextNativeElement
|
|
68
75
|
/**
|
|
69
76
|
* 创建注释节点的Element
|
|
70
77
|
* @internal
|
|
@@ -121,6 +128,10 @@ declare global {
|
|
|
121
128
|
* @internal
|
|
122
129
|
*/
|
|
123
130
|
createNativeCustomView(): UniNativeCustomView
|
|
131
|
+
/**
|
|
132
|
+
* 创建原生富文本View(rich-text-native)
|
|
133
|
+
*/
|
|
134
|
+
createNativeRichTextNativeView(): UniNativeRichTextNativeView
|
|
124
135
|
// 废弃通过类型创建NativeView的API,改用上面创建指定类型的原生View
|
|
125
136
|
// createNativeView(type: UniNativeViewType, flatten: boolean): UniNativeBaseView
|
|
126
137
|
// createNativeView<T extends UniNativeBaseView>(type: UniNativeViewType, flatten: boolean): T
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
UniNativeScrollViewRefresherStyleType as UniNativeScrollViewRefresherStyleTypeOrigin,
|
|
12
12
|
UniNativeScrollView as UniNativeScrollViewOrigin,
|
|
13
13
|
UniNativeScrollViewOptions as UniNativeScrollViewOptionsOrigin,
|
|
14
|
+
UniNativeRichTextNativeView as UniNativeRichTextNativeViewOrigin,
|
|
14
15
|
UniNativeImageView as UniNativeImageViewOrigin,
|
|
15
16
|
UniNativeBackgroundClip as UniNativeBackgroundClipOrigin,
|
|
16
17
|
UniNativeLinearGradientDirectionType as UniNativeLinearGradientDirectionTypeOrigin,
|
|
@@ -139,6 +140,7 @@ declare global {
|
|
|
139
140
|
type UniNativeScrollViewRefresherStyleType = UniNativeScrollViewRefresherStyleTypeOrigin
|
|
140
141
|
type UniNativeScrollView = UniNativeScrollViewOrigin
|
|
141
142
|
type UniNativeScrollViewOptions = UniNativeScrollViewOptionsOrigin
|
|
143
|
+
type UniNativeRichTextNativeView = UniNativeRichTextNativeViewOrigin
|
|
142
144
|
type UniNativeImageView = UniNativeImageViewOrigin
|
|
143
145
|
const UniNativeBackgroundClip: typeof UniNativeBackgroundClipOrigin
|
|
144
146
|
type UniNativeBackgroundClip = UniNativeBackgroundClipOrigin
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/// <reference path="./UniTextLayout.d.ts" />
|
|
5
5
|
/// <reference path="./UniTextElement.d.ts" />
|
|
6
6
|
/// <reference path="./UniScrollViewElement.d.ts" />
|
|
7
|
+
/// <reference path="./UniRichTextNativeEement.d.ts" />
|
|
7
8
|
/// <reference path="./UniPage.d.ts" />
|
|
8
9
|
/// <reference path="./UniNestedScrollHeaderElement.d.ts" />
|
|
9
10
|
/// <reference path="./UniNestedScrollBodyElement.d.ts" />
|
|
@@ -14,6 +15,7 @@ export * from './UniViewElement'
|
|
|
14
15
|
export * from './UniTextLayout'
|
|
15
16
|
export * from './UniTextElement'
|
|
16
17
|
export * from './UniScrollViewElement'
|
|
18
|
+
export * from './UniRichTextNativeEement'
|
|
17
19
|
export * from './UniPage'
|
|
18
20
|
export * from './UniNestedScrollHeaderElement'
|
|
19
21
|
export * from './UniNestedScrollBodyElement'
|
|
@@ -21,6 +23,7 @@ export * from './UniNativeViewType'
|
|
|
21
23
|
export * from './UniNativeView'
|
|
22
24
|
export * from './UniNativeTextView'
|
|
23
25
|
export * from './UniNativeScrollView'
|
|
26
|
+
export * from './UniNativeRichTextNativelView'
|
|
24
27
|
export * from './UniNativeNestedScrollView'
|
|
25
28
|
export * from './UniNativeImageView'
|
|
26
29
|
export * from './UniNativeDefines'
|
|
@@ -69,6 +69,11 @@ declare global {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class UniSharedData {
|
|
72
|
+
/**
|
|
73
|
+
* 所属文件
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
_filename?: string | null
|
|
72
77
|
/**
|
|
73
78
|
* 属性变更标识
|
|
74
79
|
* @internal
|
|
@@ -257,9 +262,13 @@ declare global {
|
|
|
257
262
|
type UniSharedDataVForUpdate = {
|
|
258
263
|
/**
|
|
259
264
|
* 需要更新的索引值
|
|
260
|
-
* update((newBlocks[
|
|
265
|
+
* update((newBlocks[index] = oldBlocks[oldIndex]), getItem(source, i))
|
|
261
266
|
*/
|
|
262
267
|
readonly index: number
|
|
268
|
+
/**
|
|
269
|
+
* 旧索引值
|
|
270
|
+
*/
|
|
271
|
+
readonly oldIndex: number
|
|
263
272
|
}
|
|
264
273
|
|
|
265
274
|
class UniSharedDataVFor<T extends UniSharedData> extends UniSharedData {
|
|
@@ -14,9 +14,10 @@
|
|
|
14
14
|
* "unixVer": "4.11"
|
|
15
15
|
* },
|
|
16
16
|
* "harmony": {
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* "osVer": "5.0.0",
|
|
18
|
+
* "uniVer": "x",
|
|
19
|
+
* "unixVer": "4.61",
|
|
20
|
+
* "unixvVer": "4.61"
|
|
20
21
|
* }
|
|
21
22
|
* },
|
|
22
23
|
* "web": {
|
|
@@ -44,9 +45,9 @@ export class CSSStyleDeclaration {
|
|
|
44
45
|
* "unixVer": "4.51"
|
|
45
46
|
* },
|
|
46
47
|
* "harmony": {
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
48
|
+
* "osVer": "5.0.0",
|
|
49
|
+
* "uniVer": "x",
|
|
50
|
+
* "unixVer": "4.61"
|
|
50
51
|
* }
|
|
51
52
|
* },
|
|
52
53
|
* "mp": {
|
|
@@ -80,11 +81,11 @@ export class CSSStyleDeclaration {
|
|
|
80
81
|
* "osVer": "12.0",
|
|
81
82
|
* "uniVer": "x",
|
|
82
83
|
* "unixVer": "4.11"
|
|
83
|
-
*
|
|
84
|
+
* },
|
|
84
85
|
* "harmony": {
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
86
|
+
* "osVer": "5.0.0",
|
|
87
|
+
* "uniVer": "x",
|
|
88
|
+
* "unixVer": "4.61"
|
|
88
89
|
* }
|
|
89
90
|
* },
|
|
90
91
|
* "mp": {
|
|
@@ -116,11 +117,11 @@ export class CSSStyleDeclaration {
|
|
|
116
117
|
* "osVer": "12.0",
|
|
117
118
|
* "uniVer": "x",
|
|
118
119
|
* "unixVer": "4.51"
|
|
119
|
-
*
|
|
120
|
+
* },
|
|
120
121
|
* "harmony": {
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
122
|
+
* "osVer": "5.0.0",
|
|
123
|
+
* "uniVer": "x",
|
|
124
|
+
* "unixVer": "4.61"
|
|
124
125
|
* }
|
|
125
126
|
* },
|
|
126
127
|
* "mp": {
|
|
@@ -152,11 +153,12 @@ export class CSSStyleDeclaration {
|
|
|
152
153
|
* "osVer": "12.0",
|
|
153
154
|
* "uniVer": "x",
|
|
154
155
|
* "unixVer": "4.51"
|
|
155
|
-
*
|
|
156
|
+
* },
|
|
156
157
|
* "harmony": {
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
158
|
+
* "osVer": "5.0.0",
|
|
159
|
+
* "uniVer": "x",
|
|
160
|
+
* "unixVer": "4.61",
|
|
161
|
+
* "unixvVer": "x"
|
|
160
162
|
* }
|
|
161
163
|
* }
|
|
162
164
|
* "web": {
|