@dcloudio/uni-app-x 0.7.97 → 0.7.99
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/UniCSSProperty.d.ts +4 -0
- package/types/dom2-internal/UniPage.d.ts +18 -0
- package/types/dom2-internal/index.d.ts +0 -1
- package/types/dom2-internal/sharedData.d.ts +84 -116
- package/types/native/CSSStyleDeclaration.d.ts +3 -2
- package/types/native/DrawableContext.d.ts +3 -3
- package/types/native/IUniElement.d.ts +8 -7
- package/types/native/IUniNativeViewElement.d.ts +1 -1
- package/types/native/UniDocument.d.ts +2 -1
- package/types/native/UniElement.d.ts +2 -2
- package/types/native/UniEvent.d.ts +1 -1
- package/types/native/UniPage.d.ts +15 -12
- package/types/native/UniResizeObserver.d.ts +1 -1
- package/types/native/UniStartNestedScrollEvent.d.ts +1 -1
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +15 -1
- package/types/native/UniSwiperChangeEvent.d.ts +13 -0
- package/types/native/UniTabsElement.d.ts +2 -1
- package/types/native/UniVideoElement.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +8 -2
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +6 -2
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +34 -7
- package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +117 -45
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-component/lib/uni-match-media-global/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-navigator-global/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +40 -0
- package/types/vue/LifeCycle.d.ts +77 -0
- package/types/vue/global.d.ts +2 -0
- package/types/dom2-internal/UniNativeNestedScrollView.d.ts +0 -49
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +0 -28
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +0 -13
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +0 -212
package/package.json
CHANGED
|
@@ -20,6 +20,24 @@ declare global {
|
|
|
20
20
|
*/
|
|
21
21
|
interface UniPage {
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* 以下属性在DOM层封装
|
|
25
|
+
* - Android平台:kt层封装
|
|
26
|
+
* - iOS平台:c层实现
|
|
27
|
+
* - 鸿蒙平台:c层实现
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* 获取当前页面是否处于可复用状态,
|
|
31
|
+
* 仅内部使用(不公开给开发者),用于解决image组件在复用场景时会闪以下复用前的图片
|
|
32
|
+
* 当页面中的list等复用组件处于复用状态时,将会将此状态设置为true,处于非复用状态时设置为false
|
|
33
|
+
* iamge组件在更新src时如果当前页面处于isRecycling状态,需要先同步清空UI显示内容,避免显示复用前的图片
|
|
34
|
+
*/
|
|
35
|
+
isRecycling(): boolean
|
|
36
|
+
/**
|
|
37
|
+
* 设置当前页面是否处于可复用状态
|
|
38
|
+
*/
|
|
39
|
+
setRecycling(value: boolean): void
|
|
40
|
+
|
|
23
41
|
/**
|
|
24
42
|
* 创建UniElement
|
|
25
43
|
* 仅内部使用,c层实现,在线程1中创建
|
|
@@ -24,7 +24,6 @@ export * from './UniNativeView'
|
|
|
24
24
|
export * from './UniNativeTextView'
|
|
25
25
|
export * from './UniNativeScrollView'
|
|
26
26
|
export * from './UniNativeRichTextNativelView'
|
|
27
|
-
export * from './UniNativeNestedScrollView'
|
|
28
27
|
export * from './UniNativeImageView'
|
|
29
28
|
export * from './UniNativeDefines'
|
|
30
29
|
export * from './UniNativeCustomView'
|
|
@@ -17,94 +17,46 @@ declare global {
|
|
|
17
17
|
| UniSharedDataFunctionEventListener
|
|
18
18
|
| UniSharedDataFunctionSetTemplateRef
|
|
19
19
|
|
|
20
|
-
type UniSharedDataFunctionEventListener = (event:
|
|
21
|
-
type UniSharedDataFunctionSetTemplateRef = (el: UniElement) => void
|
|
22
|
-
|
|
23
|
-
enum UniSharedDataSchedulerJobType {
|
|
24
|
-
/**
|
|
25
|
-
* 各种渲染任务,比如设置属性,样式,更新文字等
|
|
26
|
-
*/
|
|
27
|
-
RENDER_EFFECT,
|
|
28
|
-
/**
|
|
29
|
-
* v-if 任务
|
|
30
|
-
*/
|
|
31
|
-
V_IF,
|
|
32
|
-
/**
|
|
33
|
-
* v-for 任务
|
|
34
|
-
*/
|
|
35
|
-
V_FOR,
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
type UniSharedDataSchedulerJob = {
|
|
39
|
-
// 指定线程执行
|
|
40
|
-
thread?: string
|
|
41
|
-
type: UniSharedDataSchedulerJobType
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
class UniSharedDataEvent {
|
|
45
|
-
/**
|
|
46
|
-
* 事件是否冒泡
|
|
47
|
-
*/
|
|
48
|
-
bubbles: boolean
|
|
49
|
-
/**
|
|
50
|
-
* 事件是否可取消
|
|
51
|
-
*/
|
|
52
|
-
cancelable: boolean
|
|
53
|
-
/**
|
|
54
|
-
* 事件类型
|
|
55
|
-
*/
|
|
56
|
-
type: string
|
|
57
|
-
/**
|
|
58
|
-
* 触发事件的节点ID
|
|
59
|
-
*/
|
|
60
|
-
target: string
|
|
61
|
-
/**
|
|
62
|
-
* 注册事件的节点ID
|
|
63
|
-
*/
|
|
64
|
-
currentTarget: string
|
|
65
|
-
/**
|
|
66
|
-
* 事件创建的时间
|
|
67
|
-
*/
|
|
68
|
-
timeStamp: number
|
|
69
|
-
}
|
|
20
|
+
type UniSharedDataFunctionEventListener = (event : UniEvent) => void
|
|
21
|
+
type UniSharedDataFunctionSetTemplateRef = (el : UniElement) => void
|
|
70
22
|
|
|
71
23
|
class UniSharedData {
|
|
72
24
|
/**
|
|
73
25
|
* 所属文件
|
|
74
26
|
* @internal
|
|
75
27
|
*/
|
|
76
|
-
_filename?: string | null
|
|
77
|
-
/**
|
|
78
|
-
* 属性变更标识
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
|
-
_flag0: number
|
|
28
|
+
_filename ?: string | null
|
|
82
29
|
/**
|
|
83
|
-
* ArkTS
|
|
30
|
+
* ArkTS/Kotlin/JavaScript 层数据缓存,主要用于判断属性值是否有变化
|
|
84
31
|
* @internal
|
|
85
32
|
*/
|
|
86
|
-
_cacheProps: Map<string, UniSharedDataAny>
|
|
33
|
+
_cacheProps : Map<string, UniSharedDataAny>
|
|
87
34
|
/**
|
|
88
35
|
* 所属页面,用于批量执行响应式变更
|
|
89
36
|
* @internal
|
|
90
37
|
*/
|
|
91
|
-
_scope: UniSharedDataPage
|
|
38
|
+
_scope : UniSharedDataPage
|
|
92
39
|
/**
|
|
93
40
|
* 是否已初始化完成,主要用于二次更新时触发响应式
|
|
94
41
|
* @internal
|
|
95
42
|
*/
|
|
96
|
-
_setReady(): void
|
|
43
|
+
_setReady() : void
|
|
97
44
|
/**
|
|
98
45
|
* 属性变更时收集 Jobs
|
|
99
46
|
* @internal
|
|
100
47
|
*/
|
|
101
|
-
_queueJobs: (key: string) => void
|
|
48
|
+
_queueJobs : (key : string) => void
|
|
49
|
+
/**
|
|
50
|
+
* 设置 callMethod,用于 script cpp 调用 $callMethod 方法
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
_setCallMethod(fn : (...args : any[]) => void) : void
|
|
102
54
|
/**
|
|
103
|
-
*
|
|
55
|
+
* 重置当前数据对象的所有标记位
|
|
104
56
|
* @internal
|
|
105
57
|
*/
|
|
106
|
-
|
|
107
|
-
constructor(scope: UniSharedDataPage)
|
|
58
|
+
_resetFlags() : void
|
|
59
|
+
constructor(scope : UniSharedDataPage)
|
|
108
60
|
}
|
|
109
61
|
|
|
110
62
|
enum UniSharedDataComponentStyleIsolation {
|
|
@@ -125,74 +77,79 @@ declare global {
|
|
|
125
77
|
}
|
|
126
78
|
|
|
127
79
|
interface UniSharedDataComponentOptions {
|
|
128
|
-
vueId: number
|
|
129
|
-
styleIsolation: UniSharedDataComponentStyleIsolation
|
|
130
|
-
renderer: UniSharedDataComponentRenderer
|
|
131
|
-
flatten: UniSharedDataComponentFlatten
|
|
80
|
+
vueId : number
|
|
81
|
+
styleIsolation : UniSharedDataComponentStyleIsolation
|
|
82
|
+
renderer : UniSharedDataComponentRenderer
|
|
83
|
+
flatten : UniSharedDataComponentFlatten
|
|
132
84
|
}
|
|
133
85
|
|
|
134
86
|
abstract class UniSharedDataComponent extends UniSharedData {
|
|
135
87
|
/**
|
|
136
88
|
* 组件的类名
|
|
137
89
|
*/
|
|
138
|
-
static className: string
|
|
90
|
+
static className : string
|
|
139
91
|
/**
|
|
140
92
|
* 当前页面或组件的样式表
|
|
141
93
|
* @internal
|
|
142
94
|
*/
|
|
143
|
-
static
|
|
95
|
+
static styleSheet : Map<string, Map<string, Map<number, any>>>
|
|
144
96
|
/**
|
|
145
97
|
* vue实例ID
|
|
146
98
|
* @internal
|
|
147
99
|
*/
|
|
148
|
-
_vueId: number
|
|
100
|
+
_vueId : number
|
|
149
101
|
/**
|
|
150
102
|
* 当前页面或组件关联的 UniPage 对象
|
|
151
103
|
* @internal
|
|
152
104
|
*/
|
|
153
|
-
_page: UniPage
|
|
105
|
+
_page : UniPage
|
|
154
106
|
/**
|
|
155
107
|
* 当前组件所在的上下文,主要用于查找上下文组件的样式表
|
|
156
108
|
* @internal
|
|
157
109
|
*/
|
|
158
|
-
_ctx: UniSharedDataComponent | null
|
|
110
|
+
_ctx : UniSharedDataComponent | null
|
|
159
111
|
/**
|
|
160
112
|
* 当前组件或页面样式隔离策略
|
|
161
113
|
*/
|
|
162
|
-
_styleIsolation: UniSharedDataComponentStyleIsolation
|
|
114
|
+
_styleIsolation : UniSharedDataComponentStyleIsolation
|
|
163
115
|
/**
|
|
164
116
|
* 当前组件实例是否拍平
|
|
165
117
|
*/
|
|
166
|
-
_flatten: UniSharedDataComponentFlatten
|
|
118
|
+
_flatten : UniSharedDataComponentFlatten
|
|
167
119
|
/**
|
|
168
120
|
* 当前组件或页面渲染类型,页面也有可能作为组件来渲染
|
|
169
121
|
*/
|
|
170
|
-
_renderer: UniSharedDataComponentRenderer
|
|
122
|
+
_renderer : UniSharedDataComponentRenderer
|
|
171
123
|
/**
|
|
172
|
-
*
|
|
124
|
+
* 自定义组件需要透传的属性
|
|
173
125
|
* @internal
|
|
174
126
|
*/
|
|
175
|
-
|
|
176
|
-
constructor(scope: UniSharedDataPage, options: UniSharedDataComponentOptions)
|
|
127
|
+
_inheritAttrs : UniSharedDataJSONObject
|
|
128
|
+
constructor(scope : UniSharedDataPage, options : UniSharedDataComponentOptions)
|
|
129
|
+
/**
|
|
130
|
+
* 自定义组件需要透传的属性,需要暴露给前端设置: set_inheritAttrs()
|
|
131
|
+
* @param attrs
|
|
132
|
+
*/
|
|
133
|
+
set_inheritAttrs(attrs : UniSharedDataJSONObject) : void
|
|
177
134
|
/**
|
|
178
135
|
* 监听组件根节点样式变更
|
|
179
136
|
* @internal
|
|
180
137
|
*/
|
|
181
|
-
useComputedStyle(options: {
|
|
182
|
-
properties: number[]
|
|
183
|
-
filterProperties?: boolean | null
|
|
184
|
-
callback: (result: Array<[string, any | null]>) => void
|
|
185
|
-
}): Map<string, any | null>
|
|
138
|
+
useComputedStyle(options : {
|
|
139
|
+
properties : number[]
|
|
140
|
+
filterProperties ?: boolean | null
|
|
141
|
+
callback : (result : Array<[string, any | null]>) => void
|
|
142
|
+
}) : Map<string, any | null>
|
|
186
143
|
/**
|
|
187
144
|
* 由编译器动态生成的子类中的 Element 渲染器
|
|
188
145
|
* @internal
|
|
189
146
|
*/
|
|
190
|
-
abstract _renderElement(): UniElementBlock
|
|
147
|
+
abstract _renderElement() : UniElementBlock
|
|
191
148
|
/**
|
|
192
149
|
* 由编译器动态生成的子类中的 NativeView 渲染器
|
|
193
150
|
* @internal
|
|
194
151
|
*/
|
|
195
|
-
abstract _renderNativeView(): UniNativeViewBlock
|
|
152
|
+
abstract _renderNativeView() : UniNativeViewBlock
|
|
196
153
|
}
|
|
197
154
|
|
|
198
155
|
abstract class UniSharedDataPage extends UniSharedDataComponent {
|
|
@@ -201,18 +158,29 @@ declare global {
|
|
|
201
158
|
* key 是组件class名称
|
|
202
159
|
* @internal
|
|
203
160
|
*/
|
|
204
|
-
_styleSheetCache: Map<string, Map<string, Map<string, Map<string, unknown>>>>
|
|
161
|
+
_styleSheetCache : Map<string, Map<string, Map<string, Map<string, unknown>>>>
|
|
162
|
+
/**
|
|
163
|
+
* 本次更新收集到的element Jobs,用于批量执行响应式变更(c层)
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
_elementJobs : Array<ReactiveEffect<any | null>>
|
|
205
167
|
/**
|
|
206
|
-
* 本次更新收集到的 Jobs,用于批量执行响应式变更
|
|
168
|
+
* 本次更新收集到的kotlin element Jobs,用于批量执行响应式变更
|
|
207
169
|
* @internal
|
|
208
170
|
*/
|
|
209
|
-
|
|
210
|
-
|
|
171
|
+
_kotlinElementJobs : Array<ReactiveEffect<any | null>>
|
|
172
|
+
/**
|
|
173
|
+
* 本次更新收集到的nativeView Jobs,用于批量执行响应式变更
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
_nativeViewJobs : Array<ReactiveEffect<any | null>>
|
|
177
|
+
|
|
178
|
+
constructor(pageId : number, options : UniSharedDataComponentOptions)
|
|
211
179
|
/**
|
|
212
180
|
* 批量执行响应式变更
|
|
213
181
|
* @internal
|
|
214
182
|
*/
|
|
215
|
-
_flushJobs: () => Promise<void> | void
|
|
183
|
+
_flushJobs : () => Promise<void> | void
|
|
216
184
|
/**
|
|
217
185
|
* 页面渲染函数
|
|
218
186
|
* 调用页面的 _renderElement 和 _renderNativeView
|
|
@@ -220,7 +188,7 @@ declare global {
|
|
|
220
188
|
* 拿到两个渲染器执行后的 Block 后,插入到页面的根 NativeView 和根 Dom元素中
|
|
221
189
|
* @internal
|
|
222
190
|
*/
|
|
223
|
-
_render: () => Promise<void>
|
|
191
|
+
_render : () => Promise<void>
|
|
224
192
|
}
|
|
225
193
|
|
|
226
194
|
abstract class UniSharedDataApp extends UniSharedData {
|
|
@@ -228,7 +196,7 @@ declare global {
|
|
|
228
196
|
* 当前应用全局样式
|
|
229
197
|
* @internal
|
|
230
198
|
*/
|
|
231
|
-
static
|
|
199
|
+
static styleSheet : Map<string, Map<string, Map<number, any>>>
|
|
232
200
|
}
|
|
233
201
|
|
|
234
202
|
enum UniSharedDataVForDirty {
|
|
@@ -247,7 +215,7 @@ declare global {
|
|
|
247
215
|
}
|
|
248
216
|
|
|
249
217
|
type UniSharedDataVForMount = {
|
|
250
|
-
readonly index: number
|
|
218
|
+
readonly index : number
|
|
251
219
|
}
|
|
252
220
|
|
|
253
221
|
type UniSharedDataVForUnmount = {
|
|
@@ -255,9 +223,9 @@ declare global {
|
|
|
255
223
|
* 需要移除的索引值
|
|
256
224
|
* 重要:该索引值是oldBlocks中的索引值
|
|
257
225
|
*/
|
|
258
|
-
readonly index: number
|
|
259
|
-
readonly doRemove: boolean
|
|
260
|
-
readonly doDeregister: boolean
|
|
226
|
+
readonly index : number
|
|
227
|
+
readonly doRemove : boolean
|
|
228
|
+
readonly doDeregister : boolean
|
|
261
229
|
}
|
|
262
230
|
|
|
263
231
|
type UniSharedDataVForUpdate = {
|
|
@@ -265,43 +233,43 @@ declare global {
|
|
|
265
233
|
* 需要更新的索引值
|
|
266
234
|
* update((newBlocks[index] = oldBlocks[oldIndex]), getItem(source, i))
|
|
267
235
|
*/
|
|
268
|
-
readonly index: number
|
|
236
|
+
readonly index : number
|
|
269
237
|
/**
|
|
270
238
|
* 旧索引值
|
|
271
239
|
*/
|
|
272
|
-
readonly oldIndex: number
|
|
240
|
+
readonly oldIndex : number
|
|
273
241
|
}
|
|
274
242
|
|
|
275
243
|
class UniSharedDataVFor<T extends UniSharedData> extends UniSharedData {
|
|
276
|
-
setData(data: T[]): void
|
|
277
|
-
setMount(mount: UniSharedDataVForMount[]): void
|
|
278
|
-
setUnmount(unmount: UniSharedDataVForUnmount[]): void
|
|
279
|
-
setUpdate(update: UniSharedDataVForUpdate[]): void
|
|
280
|
-
setDirty(dirty: UniSharedDataVForDirty): void
|
|
281
|
-
create: () => T
|
|
282
|
-
constructor(scope: UniSharedDataPage)
|
|
244
|
+
setData(data : T[]) : void
|
|
245
|
+
setMount(mount : UniSharedDataVForMount[]) : void
|
|
246
|
+
setUnmount(unmount : UniSharedDataVForUnmount[]) : void
|
|
247
|
+
setUpdate(update : UniSharedDataVForUpdate[]) : void
|
|
248
|
+
setDirty(dirty : UniSharedDataVForDirty) : void
|
|
249
|
+
create : () => T
|
|
250
|
+
constructor(scope : UniSharedDataPage)
|
|
283
251
|
}
|
|
284
252
|
|
|
285
|
-
class VueReactivity {}
|
|
253
|
+
class VueReactivity { }
|
|
286
254
|
|
|
287
255
|
// 编译宏
|
|
288
256
|
|
|
289
|
-
interface UniSharedDataRegistry {}
|
|
257
|
+
interface UniSharedDataRegistry { }
|
|
290
258
|
|
|
291
259
|
type InferSharedData<T, R extends UniSharedData = UniSharedData> = T extends keyof UniSharedDataRegistry ? UniSharedDataRegistry[T] : R
|
|
292
260
|
|
|
293
|
-
function useSharedData<T extends string>(scope: UniSharedDataPage): InferSharedData<T>
|
|
261
|
+
function useSharedData<T extends string>(scope : UniSharedDataPage) : InferSharedData<T>
|
|
294
262
|
|
|
295
|
-
function useSharedDataPage<T extends string>(pageIdOrScope: number | UniSharedDataPage, options: UniSharedDataComponentOptions): InferSharedData<T, UniSharedDataPage>
|
|
263
|
+
function useSharedDataPage<T extends string>(pageIdOrScope : number | UniSharedDataPage, options : UniSharedDataComponentOptions) : InferSharedData<T, UniSharedDataPage>
|
|
296
264
|
|
|
297
265
|
function useSharedDataComponent<T extends string>(
|
|
298
|
-
scope: UniSharedDataPage,
|
|
299
|
-
options: UniSharedDataComponentOptions
|
|
300
|
-
): InferSharedData<T, UniSharedDataComponent>
|
|
266
|
+
scope : UniSharedDataPage,
|
|
267
|
+
options : UniSharedDataComponentOptions
|
|
268
|
+
) : InferSharedData<T, UniSharedDataComponent>
|
|
301
269
|
|
|
302
|
-
function useSharedDataVFor<T, S extends UniSharedData>(sharedDataVFor: S): S
|
|
270
|
+
function useSharedDataVFor<T, S extends UniSharedData>(sharedDataVFor : S) : S
|
|
303
271
|
|
|
304
|
-
function useSharedDataRecycleVFor<T, S extends UniSharedData>(sharedDataVFor: S): S
|
|
272
|
+
function useSharedDataRecycleVFor<T, S extends UniSharedData>(sharedDataVFor : S) : S
|
|
305
273
|
}
|
|
306
274
|
|
|
307
|
-
export {}
|
|
275
|
+
export { }
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* "osVer": "5.0.0",
|
|
18
18
|
* "uniVer": "x",
|
|
19
19
|
* "unixVer": "4.61",
|
|
20
|
-
* "unixvVer": "
|
|
20
|
+
* "unixvVer": "5.0"
|
|
21
21
|
* }
|
|
22
22
|
* },
|
|
23
23
|
* "web": {
|
|
@@ -85,7 +85,8 @@ export class CSSStyleDeclaration {
|
|
|
85
85
|
* "harmony": {
|
|
86
86
|
* "osVer": "5.0.0",
|
|
87
87
|
* "uniVer": "x",
|
|
88
|
-
* "unixVer": "4.61"
|
|
88
|
+
* "unixVer": "4.61",
|
|
89
|
+
* "unixVer": "x"
|
|
89
90
|
* }
|
|
90
91
|
* },
|
|
91
92
|
* "mp": {
|
|
@@ -86,13 +86,13 @@ declare global {
|
|
|
86
86
|
* "ios": {
|
|
87
87
|
* "osVer": "12.0",
|
|
88
88
|
* "uniVer": "x",
|
|
89
|
-
* "unixVer": "4.11"
|
|
90
|
-
* "unixvVer": "x"
|
|
89
|
+
* "unixVer": "4.11"
|
|
91
90
|
* },
|
|
92
91
|
* "harmony": {
|
|
93
92
|
* "osVer": "x",
|
|
94
93
|
* "uniVer": "x",
|
|
95
|
-
* "unixVer": "4.61"
|
|
94
|
+
* "unixVer": "4.61",
|
|
95
|
+
* "unixvVer": "x"
|
|
96
96
|
* }
|
|
97
97
|
* },
|
|
98
98
|
* "mp": {
|
|
@@ -1992,7 +1992,7 @@ declare global {
|
|
|
1992
1992
|
* }
|
|
1993
1993
|
* }
|
|
1994
1994
|
*/
|
|
1995
|
-
querySelectorAll(selector: string.cssSelectorString): UniElement[]
|
|
1995
|
+
querySelectorAll(selector: string.cssSelectorString): UniElement[]
|
|
1996
1996
|
|
|
1997
1997
|
/**
|
|
1998
1998
|
* 使元素获取焦点 仅input、Textarea组件支持
|
|
@@ -2426,6 +2426,11 @@ declare global {
|
|
|
2426
2426
|
*/
|
|
2427
2427
|
testClick(): void
|
|
2428
2428
|
}
|
|
2429
|
+
|
|
2430
|
+
const UniElement: {
|
|
2431
|
+
prototype: UniElement
|
|
2432
|
+
new(): UniElement
|
|
2433
|
+
}
|
|
2429
2434
|
}
|
|
2430
2435
|
|
|
2431
2436
|
export type RequestFullscreenOptions = {
|
|
@@ -5617,7 +5622,7 @@ declare global {
|
|
|
5617
5622
|
* },
|
|
5618
5623
|
* "web": {
|
|
5619
5624
|
* "uniVer": "x",
|
|
5620
|
-
* "unixVer": "
|
|
5625
|
+
* "unixVer": "x"
|
|
5621
5626
|
* }
|
|
5622
5627
|
* }
|
|
5623
5628
|
*/
|
|
@@ -5689,7 +5694,7 @@ declare global {
|
|
|
5689
5694
|
* },
|
|
5690
5695
|
* "web": {
|
|
5691
5696
|
* "uniVer": "x",
|
|
5692
|
-
* "unixVer": "
|
|
5697
|
+
* "unixVer": "x"
|
|
5693
5698
|
* }
|
|
5694
5699
|
* }
|
|
5695
5700
|
*/
|
|
@@ -7357,10 +7362,6 @@ export interface UniShareElement extends UniElement { }
|
|
|
7357
7362
|
|
|
7358
7363
|
|
|
7359
7364
|
// 允许instanceof检查
|
|
7360
|
-
export let UniElement: {
|
|
7361
|
-
prototype: UniElement
|
|
7362
|
-
new(): UniElement
|
|
7363
|
-
}
|
|
7364
7365
|
export let UniButtonElement: {
|
|
7365
7366
|
prototype: UniButtonElement
|
|
7366
7367
|
new(): UniButtonElement
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CSSStyleDeclaration } from "./CSSStyleDeclaration";
|
|
2
2
|
import { DOMRect } from "./DOMRect";
|
|
3
|
-
import {
|
|
4
|
-
import { UniElement, UniViewElement, GetBoundingClientRectAsyncOptions, RequestFullscreenOptions } from "./IUniElement";
|
|
3
|
+
import { UniViewElement, GetBoundingClientRectAsyncOptions, RequestFullscreenOptions } from "./IUniElement";
|
|
5
4
|
import { UniEvent } from './UniEvent'
|
|
6
5
|
import { TakeSnapshotOptions } from "./SnapshotOptions";
|
|
7
6
|
import { UniCallbackWrapper } from "./UniCallbackWrapper";
|
|
8
7
|
import { INodeData } from "./NodeData"
|
|
9
8
|
import { PageNode } from "./PageNode"
|
|
10
9
|
import { UniAnimation } from "./UniAnimation";
|
|
10
|
+
import { UniElement, DrawableContext } from './index'
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* view元素对象
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UniSafeAreaInsets } from './UniSafeAreaInsets'
|
|
2
|
-
import { FullscreenError
|
|
2
|
+
import { FullscreenError } from './IUniElement'
|
|
3
3
|
import { UniPageBody } from './UniPageBody'
|
|
4
|
+
import { UniElement } from './index'
|
|
4
5
|
|
|
5
6
|
// export type UniPageBody = {
|
|
6
7
|
// /**
|
|
@@ -1109,19 +1110,20 @@ declare global {
|
|
|
1109
1110
|
* "android": {
|
|
1110
1111
|
* "osVer": "5.0",
|
|
1111
1112
|
* "uniVer": "x",
|
|
1112
|
-
* "unixVer": "
|
|
1113
|
+
* "unixVer": "5.0"
|
|
1113
1114
|
* },
|
|
1114
1115
|
* "ios": {
|
|
1115
1116
|
* "osVer": "12.0",
|
|
1116
1117
|
* "uniVer": "x",
|
|
1117
|
-
* "unixVer": "
|
|
1118
|
+
* "unixVer": "5.0",
|
|
1118
1119
|
* "unixUtsPlugin": "x"
|
|
1119
1120
|
* },
|
|
1120
1121
|
* "harmony": {
|
|
1121
1122
|
* "osVer": "5.0",
|
|
1122
1123
|
* "uniVer": "x",
|
|
1123
|
-
* "unixVer": "
|
|
1124
|
-
* "unixUtsPlugin": "x"
|
|
1124
|
+
* "unixVer": "5.0",
|
|
1125
|
+
* "unixUtsPlugin": "x",
|
|
1126
|
+
* "unixvVer": "5.0"
|
|
1125
1127
|
* }
|
|
1126
1128
|
* },
|
|
1127
1129
|
* "mp": {
|
|
@@ -1133,7 +1135,7 @@ declare global {
|
|
|
1133
1135
|
* },
|
|
1134
1136
|
* "web": {
|
|
1135
1137
|
* "uniVer": "x",
|
|
1136
|
-
* "unixVer": "
|
|
1138
|
+
* "unixVer": "5.0"
|
|
1137
1139
|
* }
|
|
1138
1140
|
* }
|
|
1139
1141
|
*/
|
|
@@ -1146,19 +1148,20 @@ declare global {
|
|
|
1146
1148
|
* "android": {
|
|
1147
1149
|
* "osVer": "5.0",
|
|
1148
1150
|
* "uniVer": "x",
|
|
1149
|
-
* "unixVer": "
|
|
1151
|
+
* "unixVer": "5.0"
|
|
1150
1152
|
* },
|
|
1151
1153
|
* "ios": {
|
|
1152
1154
|
* "osVer": "12.0",
|
|
1153
1155
|
* "uniVer": "x",
|
|
1154
|
-
* "unixVer": "
|
|
1156
|
+
* "unixVer": "5.0",
|
|
1155
1157
|
* "unixUtsPlugin": "x"
|
|
1156
1158
|
* },
|
|
1157
1159
|
* "harmony": {
|
|
1158
1160
|
* "osVer": "5.0",
|
|
1159
1161
|
* "uniVer": "x",
|
|
1160
|
-
* "unixVer": "
|
|
1161
|
-
* "unixUtsPlugin": "x"
|
|
1162
|
+
* "unixVer": "5.0",
|
|
1163
|
+
* "unixUtsPlugin": "x",
|
|
1164
|
+
* "unixvVer": "5.0"
|
|
1162
1165
|
* }
|
|
1163
1166
|
* },
|
|
1164
1167
|
* "mp": {
|
|
@@ -1170,11 +1173,11 @@ declare global {
|
|
|
1170
1173
|
* },
|
|
1171
1174
|
* "web": {
|
|
1172
1175
|
* "uniVer": "x",
|
|
1173
|
-
* "unixVer": "
|
|
1176
|
+
* "unixVer": "5.0"
|
|
1174
1177
|
* }
|
|
1175
1178
|
* }
|
|
1176
1179
|
*/
|
|
1177
|
-
querySelectorAll(selector: string.cssSelectorString): UniElement[]
|
|
1180
|
+
querySelectorAll(selector: string.cssSelectorString): UniElement[]
|
|
1178
1181
|
}
|
|
1179
1182
|
}
|
|
1180
1183
|
|
|
@@ -19,13 +19,27 @@ export class UniSwiperAnimationFinishEventDetail {
|
|
|
19
19
|
* "uniVer": "√",
|
|
20
20
|
* "unixVer": "x"
|
|
21
21
|
* }
|
|
22
|
+
* "harmony": {
|
|
23
|
+
* "osVer": "3.0",
|
|
24
|
+
* "uniVer": "4.23",
|
|
25
|
+
* "unixVer": "4.61",
|
|
26
|
+
* "unixvVer": "5.0"
|
|
27
|
+
* }
|
|
22
28
|
* },
|
|
23
29
|
* "web": {
|
|
24
30
|
* "osVer": "√",
|
|
25
31
|
* "uniVer": "√",
|
|
26
|
-
* "unixVer": "√"
|
|
32
|
+
* "unixVer": "√"
|
|
33
|
+
* },
|
|
34
|
+
* "mp": {
|
|
35
|
+
* "weixin": {
|
|
36
|
+
* "hostVer": "1.9.0+",
|
|
37
|
+
* "uniVer": "√",
|
|
38
|
+
* "unixVer": "4.41"
|
|
39
|
+
* }
|
|
27
40
|
* }
|
|
28
41
|
* }
|
|
42
|
+
* }
|
|
29
43
|
*/
|
|
30
44
|
currentItemId?: string
|
|
31
45
|
/**
|