@dcloudio/uni-app-x 0.7.96 → 0.7.97

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.96",
3
+ "version": "0.7.97",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -24,14 +24,28 @@ export interface UniNativeScrollView extends UniNativeBaseView {
24
24
 
25
25
  /**
26
26
  * 是否开启滚动回弹效果
27
+ * 对应 bounces 属性
27
28
  */
28
29
  bounces(value: boolean): void
29
30
 
31
+ /**
32
+ * 是否关闭滚动回弹效果
33
+ * 对应 disable-bounces 属性,替换 bounces 属性
34
+ */
35
+ disableBounces(value: boolean): void
36
+
30
37
  /**
31
38
  * 是否显示滚动条
39
+ * 对应 show-scrollbar 属性
32
40
  */
33
41
  showScrollbar(value: boolean): void
34
42
 
43
+ /**
44
+ * 是否隐藏滚动条
45
+ * 对应 hide-scrollbar 属性,替换 show-scrollbar 属性
46
+ */
47
+ hideScrollbar(value: boolean): void
48
+
35
49
  /**
36
50
  * 距顶部/左边多远时(单位px),触发 scrolltoupper 事件
37
51
  */
@@ -90,7 +90,7 @@ import {
90
90
  UniCSSTransformRotate3D as UniCSSTransformRotate3DOrigin,
91
91
  UniCSSTransformMatrix3D as UniCSSTransformMatrix3DOrigin,
92
92
  UniCSSTransformPerspective as UniCSSTransformPerspectiveOrigin,
93
- UniCSSTransform as UniCSSTransformOrigin,
93
+ UniCSSTransform as UniCSSTransform_Origin,
94
94
  UniCSSTransformOrigin as UniCSSTransformOriginOrigin,
95
95
  UniCSSPropertyID as UniCSSPropertyIDOrigin,
96
96
  UniCSSBoxSizingType as UniCSSBoxSizingTypeOrigin,
@@ -241,7 +241,7 @@ declare global {
241
241
  type UniCSSTransformMatrix = UniCSSTransformMatrixOrigin
242
242
  type UniCSSTransformMatrix3D = UniCSSTransformMatrix3DOrigin
243
243
  type UniCSSTransformPerspective = UniCSSTransformPerspectiveOrigin
244
- type UniCSSTransform = UniCSSTransformOrigin
244
+ type UniCSSTransform = UniCSSTransform_Origin
245
245
  type UniCSSTransformOrigin = UniCSSTransformOriginOrigin
246
246
  const UniCSSPropertyID: typeof UniCSSPropertyIDOrigin
247
247
  type UniCSSPropertyID = UniCSSPropertyIDOrigin
@@ -293,3 +293,34 @@ export class UniNativeViewInitEventDetail {
293
293
  export class UniNativeViewInitEvent extends UniCustomEvent<UniNativeViewInitEventDetail> {
294
294
  constructor(type: string, detail: UniNativeViewInitEventDetail)
295
295
  }
296
+
297
+ export class UniNativeViewReadyEventDetail {
298
+ readonly element : UniNativeViewElement
299
+ }
300
+
301
+ /**
302
+ * native-view 组件 ready事件event
303
+ * @uniPlatform {
304
+ * "app": {
305
+ * "android": {
306
+ * "osVer": "x",
307
+ * "uniVer": "x",
308
+ * "unixVer": "x"
309
+ * },
310
+ * "ios": {
311
+ * "osVer": "x",
312
+ * "uniVer": "x",
313
+ * "unixVer": "x"
314
+ * },
315
+ * "harmony": {
316
+ * "osVer": "x",
317
+ * "uniVer": "x",
318
+ * "unixVer": "x",
319
+ * "unixvVer": "5.0"
320
+ * }
321
+ * }
322
+ * }
323
+ */
324
+ export class UniNativeViewReadyEvent extends UniCustomEvent<UniNativeViewReadyEventDetail> {
325
+ constructor(type: string, detail: UniNativeViewReadyEventDetail)
326
+ }
@@ -189,6 +189,8 @@ import {
189
189
  UniNativeViewEvent as UniNativeViewEventOrigin,
190
190
  UniNativeViewInitEventDetail as UniNativeViewInitEventDetailOrigin,
191
191
  UniNativeViewInitEvent as UniNativeViewInitEventOrigin,
192
+ UniNativeViewReadyEventDetail as UniNativeViewReadyEventDetailOrigin,
193
+ UniNativeViewReadyEvent as UniNativeViewReadyEventOrigin,
192
194
  UniNativeViewElement as UniNativeViewElementOrigin,
193
195
  IUniForm as IUniFormOrigin,
194
196
  IUniError as IUniErrorOrigin,
@@ -603,6 +605,10 @@ declare global {
603
605
  type UniNativeViewInitEventDetail = UniNativeViewInitEventDetailOrigin
604
606
  const UniNativeViewInitEvent: typeof UniNativeViewInitEventOrigin
605
607
  type UniNativeViewInitEvent = UniNativeViewInitEventOrigin
608
+ const UniNativeViewReadyEventDetail: typeof UniNativeViewReadyEventDetailOrigin
609
+ type UniNativeViewReadyEventDetail = UniNativeViewReadyEventDetailOrigin
610
+ const UniNativeViewReadyEvent: typeof UniNativeViewReadyEventOrigin
611
+ type UniNativeViewReadyEvent = UniNativeViewReadyEventOrigin
606
612
  type UniNativeViewElement = UniNativeViewElementOrigin
607
613
  type IUniForm = IUniFormOrigin
608
614
  type IUniError = IUniErrorOrigin