@dcloudio/uni-app-x 0.7.102 → 0.7.103

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.102",
3
+ "version": "0.7.103",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -0,0 +1,72 @@
1
+ import { UniElement } from './index'
2
+
3
+
4
+
5
+ /**
6
+ * UniNativeViewElement
7
+ */
8
+ export interface UniNativeViewElement extends UniElement {
9
+
10
+ /**
11
+ * 设置组件需要重新触发测量排版
12
+ */
13
+ setDirty(): void
14
+
15
+ /**
16
+ * 设置测量回调,多次调用会覆盖之前设置的测量回调
17
+ * @param callback 测量回调方法
18
+ * 注意:此回调方法运行在子线程中,需处理线程安全问题
19
+ */
20
+ setMeasureCallback(callback: UniNativeMeasureCallback): void
21
+ }
22
+
23
+ /**
24
+ * 测量回调方法
25
+ * @param - res
26
+ */
27
+ type UniNativeMeasureCallback = (res: UniNativeMeasureSpecification) => UniNativeMeasureSize
28
+ /**
29
+ * 测量约束对象
30
+ */
31
+ interface UniNativeMeasureSpecification {
32
+ /**
33
+ * 宽度约束值
34
+ * 不同平台单位存在差异:
35
+ * - Android平台为物理像素
36
+ * - iOS/鸿蒙平台为逻辑像素
37
+ */
38
+ width: number,
39
+ /**
40
+ * 宽度约束模式
41
+ */
42
+ widthMode: UniNativeMeasureMode,
43
+ /**
44
+ * 高度约束值
45
+ * 不同平台单位存在差异:
46
+ * - Android平台为物理像素
47
+ * - iOS/鸿蒙平台为逻辑像素
48
+ */
49
+ height: number,
50
+ /**
51
+ * 高度约束模式
52
+ */
53
+ heightMode: UniNativeMeasureMode,
54
+ }
55
+ type UniNativeMeasureSize = UniLayoutSize
56
+ /**
57
+ * 测量约束模式
58
+ */
59
+ export enum UniNativeMeasureMode {
60
+ /**
61
+ * 父元素对测量的子元素无任何限制,子元素可以是它想要的任意大小
62
+ */
63
+ Undefined,
64
+ /**
65
+ * 父元素对测量的子元素确定了一个精确的尺寸,子元素必须使用这个尺寸
66
+ */
67
+ Exactly,
68
+ /**
69
+ * 父元素对测量的子元素限定的最大尺寸,子元素不能超过此尺寸
70
+ */
71
+ AtMost,
72
+ }
@@ -1,6 +1,8 @@
1
1
  // 本文件为自动构建生成
2
2
  import {
3
3
  UniNativeViewType as UniNativeViewTypeOrigin,
4
+ UniNativeMeasureMode as UniNativeMeasureModeOrigin,
5
+ UniNativeViewElement as UniNativeViewElementOrigin,
4
6
  UniNativeView as UniNativeViewOrigin,
5
7
  UniNativeViewStyles as UniNativeViewStylesOrigin,
6
8
  UniNativeTextViewVerticalAlignType as UniNativeTextViewVerticalAlignTypeOrigin,
@@ -125,6 +127,9 @@ import {
125
127
  declare global {
126
128
  const UniNativeViewType: typeof UniNativeViewTypeOrigin
127
129
  type UniNativeViewType = UniNativeViewTypeOrigin
130
+ const UniNativeMeasureMode: typeof UniNativeMeasureModeOrigin
131
+ type UniNativeMeasureMode = UniNativeMeasureModeOrigin
132
+ type UniNativeViewElement = UniNativeViewElementOrigin
128
133
  type UniNativeView = UniNativeViewOrigin
129
134
  type UniNativeViewStyles = UniNativeViewStylesOrigin
130
135
  const UniNativeTextViewVerticalAlignType: typeof UniNativeTextViewVerticalAlignTypeOrigin
@@ -20,6 +20,7 @@ export * from './UniPage'
20
20
  export * from './UniNestedScrollHeaderElement'
21
21
  export * from './UniNestedScrollBodyElement'
22
22
  export * from './UniNativeViewType'
23
+ export * from './UniNativeViewElement'
23
24
  export * from './UniNativeView'
24
25
  export * from './UniNativeTextView'
25
26
  export * from './UniNativeScrollView'
@@ -189,7 +189,7 @@ declare global {
189
189
  */
190
190
  _textLayouts: Array<Array<number>>
191
191
 
192
- constructor(pageId: number, options: UniSharedDataComponentOptions)
192
+ constructor(pageIdOrScope: number | UniSharedDataPage, options: UniSharedDataComponentOptions)
193
193
  /**
194
194
  * 批量执行响应式变更
195
195
  * @internal
@@ -296,6 +296,8 @@ declare global {
296
296
  function useSharedDataVFor<T, S extends UniSharedData>(sharedDataVFor: S): S
297
297
 
298
298
  function useSharedDataRecycleVFor<T, S extends UniSharedData>(sharedDataVFor: S): S
299
+ // android kotlin 属性委托
300
+ function observable(): any
299
301
  }
300
302
 
301
303
  export { }
@@ -2546,7 +2546,7 @@ export type UniAnimationKeyframe = {
2546
2546
  * "weixin": {
2547
2547
  * "osVer": "x",
2548
2548
  * "uniVer": "x",
2549
- * "unixVer": "x"
2549
+ * "unixVer": ""
2550
2550
  * }
2551
2551
  * },
2552
2552
  * "web": {
@@ -2575,7 +2575,7 @@ export type UniAnimationKeyframe = {
2575
2575
  * "weixin": {
2576
2576
  * "osVer": "x",
2577
2577
  * "uniVer": "x",
2578
- * "unixVer": "x"
2578
+ * "unixVer": ""
2579
2579
  * }
2580
2580
  * },
2581
2581
  * "web": {
@@ -2604,7 +2604,7 @@ export type UniAnimationKeyframe = {
2604
2604
  * "weixin": {
2605
2605
  * "osVer": "x",
2606
2606
  * "uniVer": "x",
2607
- * "unixVer": "x"
2607
+ * "unixVer": ""
2608
2608
  * }
2609
2609
  * },
2610
2610
  * "web": {
@@ -2633,7 +2633,7 @@ export type UniAnimationKeyframe = {
2633
2633
  * "weixin": {
2634
2634
  * "osVer": "x",
2635
2635
  * "uniVer": "x",
2636
- * "unixVer": "x"
2636
+ * "unixVer": ""
2637
2637
  * }
2638
2638
  * },
2639
2639
  * "web": {
@@ -2662,7 +2662,7 @@ export type UniAnimationKeyframe = {
2662
2662
  * "weixin": {
2663
2663
  * "osVer": "x",
2664
2664
  * "uniVer": "x",
2665
- * "unixVer": "x"
2665
+ * "unixVer": ""
2666
2666
  * }
2667
2667
  * },
2668
2668
  * "web": {
@@ -2691,7 +2691,7 @@ export type UniAnimationKeyframe = {
2691
2691
  * "weixin": {
2692
2692
  * "osVer": "x",
2693
2693
  * "uniVer": "x",
2694
- * "unixVer": "x"
2694
+ * "unixVer": ""
2695
2695
  * }
2696
2696
  * },
2697
2697
  * "web": {
@@ -2720,7 +2720,7 @@ export type UniAnimationKeyframe = {
2720
2720
  * "weixin": {
2721
2721
  * "osVer": "x",
2722
2722
  * "uniVer": "x",
2723
- * "unixVer": "x"
2723
+ * "unixVer": ""
2724
2724
  * }
2725
2725
  * },
2726
2726
  * "web": {
@@ -2865,7 +2865,7 @@ export type UniAnimationKeyframe = {
2865
2865
  * "weixin": {
2866
2866
  * "osVer": "x",
2867
2867
  * "uniVer": "x",
2868
- * "unixVer": "x"
2868
+ * "unixVer": ""
2869
2869
  * }
2870
2870
  * },
2871
2871
  * "web": {
@@ -3010,7 +3010,7 @@ export type UniAnimationKeyframe = {
3010
3010
  * "weixin": {
3011
3011
  * "osVer": "x",
3012
3012
  * "uniVer": "x",
3013
- * "unixVer": "x"
3013
+ * "unixVer": ""
3014
3014
  * }
3015
3015
  * },
3016
3016
  * "web": {
@@ -3039,7 +3039,7 @@ export type UniAnimationKeyframe = {
3039
3039
  * "weixin": {
3040
3040
  * "osVer": "x",
3041
3041
  * "uniVer": "x",
3042
- * "unixVer": "x"
3042
+ * "unixVer": ""
3043
3043
  * }
3044
3044
  * },
3045
3045
  * "web": {
@@ -3068,7 +3068,7 @@ export type UniAnimationKeyframe = {
3068
3068
  * "weixin": {
3069
3069
  * "osVer": "x",
3070
3070
  * "uniVer": "x",
3071
- * "unixVer": "x"
3071
+ * "unixVer": ""
3072
3072
  * }
3073
3073
  * },
3074
3074
  * "web": {
@@ -3097,7 +3097,7 @@ export type UniAnimationKeyframe = {
3097
3097
  * "weixin": {
3098
3098
  * "osVer": "x",
3099
3099
  * "uniVer": "x",
3100
- * "unixVer": "x"
3100
+ * "unixVer": ""
3101
3101
  * }
3102
3102
  * },
3103
3103
  * "web": {
@@ -3126,7 +3126,7 @@ export type UniAnimationKeyframe = {
3126
3126
  * "weixin": {
3127
3127
  * "osVer": "x",
3128
3128
  * "uniVer": "x",
3129
- * "unixVer": "x"
3129
+ * "unixVer": ""
3130
3130
  * }
3131
3131
  * },
3132
3132
  * "web": {
@@ -3155,7 +3155,7 @@ export type UniAnimationKeyframe = {
3155
3155
  * "weixin": {
3156
3156
  * "osVer": "x",
3157
3157
  * "uniVer": "x",
3158
- * "unixVer": "x"
3158
+ * "unixVer": ""
3159
3159
  * }
3160
3160
  * },
3161
3161
  * "web": {
@@ -3184,7 +3184,7 @@ export type UniAnimationKeyframe = {
3184
3184
  * "weixin": {
3185
3185
  * "osVer": "x",
3186
3186
  * "uniVer": "x",
3187
- * "unixVer": "x"
3187
+ * "unixVer": ""
3188
3188
  * }
3189
3189
  * },
3190
3190
  * "web": {
@@ -3213,7 +3213,7 @@ export type UniAnimationKeyframe = {
3213
3213
  * "weixin": {
3214
3214
  * "osVer": "x",
3215
3215
  * "uniVer": "x",
3216
- * "unixVer": "x"
3216
+ * "unixVer": ""
3217
3217
  * }
3218
3218
  * },
3219
3219
  * "web": {
@@ -3544,7 +3544,7 @@ export type UniAnimationOption = {
3544
3544
  * "weixin": {
3545
3545
  * "osVer": "x",
3546
3546
  * "uniVer": "x",
3547
- * "unixVer": "x"
3547
+ * "unixVer": ""
3548
3548
  * }
3549
3549
  * },
3550
3550
  * "web": {
@@ -3574,7 +3574,7 @@ export type UniAnimationOption = {
3574
3574
  * "weixin": {
3575
3575
  * "osVer": "x",
3576
3576
  * "uniVer": "x",
3577
- * "unixVer": "x"
3577
+ * "unixVer": ""
3578
3578
  * }
3579
3579
  * },
3580
3580
  * "web": {
@@ -3604,7 +3604,7 @@ export type UniAnimationOption = {
3604
3604
  * "weixin": {
3605
3605
  * "osVer": "x",
3606
3606
  * "uniVer": "x",
3607
- * "unixVer": "x"
3607
+ * "unixVer": ""
3608
3608
  * }
3609
3609
  * },
3610
3610
  * "web": {
@@ -3634,7 +3634,7 @@ export type UniAnimationOption = {
3634
3634
  * "weixin": {
3635
3635
  * "osVer": "x",
3636
3636
  * "uniVer": "x",
3637
- * "unixVer": "x"
3637
+ * "unixVer": ""
3638
3638
  * }
3639
3639
  * },
3640
3640
  * "web": {
@@ -3693,7 +3693,7 @@ export type UniAnimationOption = {
3693
3693
  * "weixin": {
3694
3694
  * "osVer": "x",
3695
3695
  * "uniVer": "x",
3696
- * "unixVer": "x"
3696
+ * "unixVer": ""
3697
3697
  * }
3698
3698
  * },
3699
3699
  * "web": {
@@ -61,7 +61,8 @@ export interface UniNativeViewElement extends UniElement {
61
61
  * "ios": {
62
62
  * "osVer": "12.0",
63
63
  * "uniVer": "x",
64
- * "unixVer": "4.31"
64
+ * "unixVer": "x",
65
+ * "unixUtsPlugin": "4.31"
65
66
  * },
66
67
  * "harmony": {
67
68
  * "osVer": "x",
@@ -1173,7 +1173,7 @@ declare global {
1173
1173
  * },
1174
1174
  * "web": {
1175
1175
  * "uniVer": "x",
1176
- * "unixVer": "5.0"
1176
+ * "unixVer": "x"
1177
1177
  * }
1178
1178
  * }
1179
1179
  */
@@ -1182,6 +1182,39 @@ declare global {
1182
1182
  /**
1183
1183
  * 对当前页面进行截图
1184
1184
  * @param options 截图的参数对象
1185
+ * @uniPlatform {
1186
+ * "app": {
1187
+ * "android": {
1188
+ * "osVer": "5.0",
1189
+ * "uniVer": "x",
1190
+ * "unixVer": "5.02"
1191
+ * },
1192
+ * "ios": {
1193
+ * "osVer": "12.0",
1194
+ * "uniVer": "x",
1195
+ * "unixVer": "5.02",
1196
+ * "unixUtsPlugin": "x"
1197
+ * },
1198
+ * "harmony": {
1199
+ * "osVer": "5.0",
1200
+ * "uniVer": "x",
1201
+ * "unixVer": "5.02",
1202
+ * "unixUtsPlugin": "x",
1203
+ * "unixvVer": "5.02"
1204
+ * }
1205
+ * },
1206
+ * "mp": {
1207
+ * "weixin": {
1208
+ * "osVer": "x",
1209
+ * "uniVer": "x",
1210
+ * "unixVer": "x"
1211
+ * }
1212
+ * },
1213
+ * "web": {
1214
+ * "uniVer": "x",
1215
+ * "unixVer": "x"
1216
+ * }
1217
+ * }
1185
1218
  */
1186
1219
  takeSnapshot(options: TakeSnapshotOptions): void;
1187
1220
  }
@@ -3,7 +3,6 @@
3
3
  /// <reference path='./lib/uni-facialVerify/utssdk/global.d.ts' />
4
4
  /// <reference path='./lib/uni-live-player/utssdk/global.d.ts' />
5
5
  /// <reference path='./lib/uni-live-pusher/utssdk/global.d.ts' />
6
- /// <reference path='./lib/uni-map-amap/utssdk/global.d.ts' />
7
6
  /// <reference path='./lib/uni-map-tencent/utssdk/global.d.ts' />
8
7
  /// <reference path='./lib/uni-push-fcm/utssdk/global.d.ts' />
9
8
  /// <reference path='./lib/uni-push-gp/utssdk/global.d.ts' />
@@ -3,7 +3,6 @@ export * from './lib/uni-crash/utssdk'
3
3
  export * from './lib/uni-facialVerify/utssdk'
4
4
  export * from './lib/uni-live-player/utssdk'
5
5
  export * from './lib/uni-live-pusher/utssdk'
6
- export * from './lib/uni-map-amap/utssdk'
7
6
  export * from './lib/uni-map-tencent/utssdk'
8
7
  export * from './lib/uni-push-fcm/utssdk'
9
8
  export * from './lib/uni-push-gp/utssdk'
@@ -1,9 +1,9 @@
1
1
  // 本文件为自动构建生成
2
2
  import {
3
- UniPageContainerElement as UniPageContainerElementOrigin,
3
+
4
4
  } from './interface'
5
5
 
6
6
  declare global {
7
- type UniPageContainerElement = UniPageContainerElementOrigin
7
+
8
8
  }
9
9
 
@@ -1,5 +1,5 @@
1
1
  // 本文件为自动构建生成
2
2
  export {
3
- UniPageContainerElement,
3
+
4
4
  } from './interface'
5
5
 
@@ -1,2 +0,0 @@
1
- export class UniPageContainerElement extends UniElementImpl {
2
- }