@dolphinweex/weex-harmony-transform 0.1.8 → 0.1.9

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": "@dolphinweex/weex-harmony-transform",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "weex harmony adapter",
5
5
  "main": "index.js",
6
6
  "files": [
package/src/adapter.ts CHANGED
@@ -564,6 +564,21 @@ let router = {
564
564
  weexModule.callNative('router.deleteGlobalAppCache', { 'options': param }, callback, undefined, failCallback)
565
565
  },
566
566
  }
567
+ let modal = {
568
+ name: 'modal',
569
+ toast: function (param, callback, failCallback) {
570
+ weexModule.callNative('modal.toast', { 'options': param }, callback, undefined, failCallback)
571
+ },
572
+ alert: function (param, callback, failCallback) {
573
+ weexModule.callNative('modal.alert', { 'options': param }, callback, undefined, failCallback)
574
+ },
575
+ confirm: function (param, callback, failCallback) {
576
+ weexModule.callNative('modal.confirm', { 'options': param }, callback, undefined, failCallback)
577
+ },
578
+ prompt: function (param, callback, failCallback) {
579
+ weexModule.callNative('modal.prompt', { 'options': param }, callback, undefined, failCallback)
580
+ },
581
+ }
567
582
  export {
568
583
  clipboard,
569
584
  weexModule,
@@ -581,5 +596,6 @@ export {
581
596
  singleBlueToothModule,
582
597
  routerModule,
583
598
  nfcModule,
584
- router
599
+ router,
600
+ modal
585
601
  }
@@ -14,7 +14,8 @@ const weexExtModules = [
14
14
  'nfcModule',
15
15
  'storage',
16
16
  'routerModule',
17
- "router"
17
+ "router",
18
+ 'modal'
18
19
  ]
19
20
 
20
21
  module.exports = weexExtModules