@dcloudio/uni-app-x 0.7.26 → 0.7.27

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.26",
3
+ "version": "0.7.27",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "author": "DCloud",
@@ -11,9 +11,9 @@
11
11
  /// <reference path='./lib/uni-prompt/utssdk/global.d.ts' />
12
12
  /// <reference path='./lib/uni-payment-wxpay/utssdk/global.d.ts' />
13
13
  /// <reference path='./lib/uni-payment-alipay/utssdk/global.d.ts' />
14
+ /// <reference path='./lib/uni-payment/utssdk/global.d.ts' />
14
15
  /// <reference path='./lib/uni-pageScrollTo/utssdk/global.d.ts' />
15
16
  /// <reference path='./lib/uni-openDocument/utssdk/global.d.ts' />
16
- /// <reference path='./lib/uni-payment/utssdk/global.d.ts' />
17
17
  /// <reference path='./lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts' />
18
18
  /// <reference path='./lib/uni-oauth-huawei/utssdk/global.d.ts' />
19
19
  /// <reference path='./lib/uni-oauth/utssdk/global.d.ts' />
@@ -11,9 +11,9 @@ export * from './lib/uni-pullDownRefresh/utssdk'
11
11
  export * from './lib/uni-prompt/utssdk'
12
12
  export * from './lib/uni-payment-wxpay/utssdk'
13
13
  export * from './lib/uni-payment-alipay/utssdk'
14
+ export * from './lib/uni-payment/utssdk'
14
15
  export * from './lib/uni-pageScrollTo/utssdk'
15
16
  export * from './lib/uni-openDocument/utssdk'
16
- export * from './lib/uni-payment/utssdk'
17
17
  export * from './lib/uni-openAppAuthorizeSetting/utssdk'
18
18
  export * from './lib/uni-oauth-huawei/utssdk'
19
19
  export * from './lib/uni-oauth/utssdk'
@@ -1,5 +1,6 @@
1
1
  // 本文件为自动构建生成
2
2
  import {
3
+ UniDialogPage as UniDialogPageOrigin,
3
4
  RouteErrorCode as RouteErrorCodeOrigin,
4
5
  EventChannel as EventChannelOrigin,
5
6
  OpenDialogPageSuccess as OpenDialogPageSuccessOrigin,
@@ -14,6 +15,7 @@ import {
14
15
  } from './interface'
15
16
 
16
17
  declare global {
18
+ type UniDialogPage = UniDialogPageOrigin
17
19
  type RouteErrorCode = RouteErrorCodeOrigin
18
20
  type EventChannel = EventChannelOrigin
19
21
  type OpenDialogPageSuccess = OpenDialogPageSuccessOrigin
@@ -1,5 +1,6 @@
1
1
  // 本文件为自动构建生成
2
2
  export {
3
+ UniDialogPage,
3
4
  RouteErrorCode,
4
5
  EventChannel,
5
6
  OpenDialogPageSuccess,
@@ -1,8 +1,15 @@
1
1
  import {
2
2
  Page,
3
- UniDialogPage,
4
3
  } from '@dcloudio/uni-runtime'
4
+ import { EventBus } from '../../uni-event/utssdk/interface.uts'
5
5
 
6
+ export interface UniDialogPage extends EventBus {
7
+ route: string
8
+ $component: any | null
9
+ $getParentPage: () => Page | null
10
+ $disableEscBack: boolean
11
+ $vm: ComponentPublicInstance | null
12
+ }
6
13
  /**
7
14
  * 路由错误码
8
15
  * - 4: 框架内部异常
@@ -4,7 +4,7 @@ import {
4
4
  $Once as $OnceOrigin,
5
5
  $Off as $OffOrigin,
6
6
  $Emit as $EmitOrigin,
7
- IEventBus as IEventBusOrigin,
7
+ EventBus as EventBusOrigin,
8
8
  Uni as UniOrigin
9
9
  } from './interface'
10
10
 
@@ -13,6 +13,6 @@ declare global {
13
13
  type $Once = $OnceOrigin
14
14
  type $Off = $OffOrigin
15
15
  type $Emit = $EmitOrigin
16
- type IEventBus = IEventBusOrigin
16
+ type EventBus = EventBusOrigin
17
17
  interface Uni extends UniOrigin { }
18
18
  }
@@ -4,5 +4,5 @@ export {
4
4
  $Once,
5
5
  $Off,
6
6
  $Emit,
7
- IEventBus,
7
+ EventBus,
8
8
  } from './interface'
@@ -9,7 +9,7 @@ export type $Off = (eventName: string, callback?: $OffCallback | null) => void
9
9
 
10
10
  export type $Emit = (eventName: string, args: any | null) => void
11
11
 
12
- export interface IEventBus {
12
+ export interface EventBus {
13
13
  on: $On
14
14
  once: $Once
15
15
  off: $Off