luoyifan 4 năm trước cách đây
mục cha
commit
e877c87119
3 tập tin đã thay đổi với 9 bổ sung6 xóa
  1. 5 3
      src/Defaults.ts
  2. 3 2
      src/Scope.ts
  3. 1 1
      src/index.ts

+ 5 - 3
src/Defaults.ts

@@ -1,3 +1,5 @@
-export default {
-    window: {}
-}
+export const windows = {
+    modal: true,
+    width: 900,
+    height: 600,
+}

+ 3 - 2
src/Scope.ts

@@ -1,5 +1,6 @@
 import _ from 'lodash'
-import {invokeMethod} from "./utils";
+import {invokeMethod} from "./utils"
+import {windows} from './Defaults'
 
 export class Scope {
 
@@ -90,7 +91,7 @@ export class Scope {
                 }
             },
 
-        }, vjsonOption, that.vjson)
+        }, vjsonOption, that.vjson, windows)
 
         const win = new Ext.Window(config);
         win.show();

+ 1 - 1
src/index.ts

@@ -1,4 +1,4 @@
-import Defaults from './Defaults'
+import * as Defaults from './Defaults'
 import * as axios from 'axios'
 import qs from 'qs'
 import lodash from 'lodash'