Browse Source

配置修改

hy 6 years ago
parent
commit
4409845472
2 changed files with 12 additions and 4 deletions
  1. 1 1
      app.json
  2. 11 3
      app/view/form/basic/Panel.js

+ 1 - 1
app.json

@@ -228,7 +228,7 @@
         },
         "prod": {
             "server": {
-                "basePath": "http://127.0.0.1:24002",
+                "basePath": "http://10.1.81.2:24002",
                 "urlPattern": "^\/api\/"
             }
         }

+ 11 - 3
app/view/form/basic/Panel.js

@@ -1,8 +1,16 @@
 Ext.define('uas.view.form.basic.Panel', {
     extend: 'Ext.form.Panel',
     xtype: 'basic-form',
+    layout:'column',
 
-    bodyPadding: 12,
+    bodyPadding: 40,
+    requires:[
+        'Ext.form.field.Radio'
+    ],
+    defaults:{
+        columnWidth:1,
+        margin:'10 0 0 0'
+    },
 
     items: [{
         xtype: 'textfield',
@@ -45,13 +53,13 @@ Ext.define('uas.view.form.basic.Panel', {
         fieldLabel: 'Checkbox',
         boxLabel: 'box label'
     }, {
-        xtype: 'radiofield',
+        xtype: 'radio',
         name: 'radio1',
         value: 'radiovalue1',
         fieldLabel: 'Radio buttons',
         boxLabel: 'radio 1'
     }, {
-        xtype: 'radiofield',
+        xtype: 'radio',
         name: 'radio1',
         value: 'radiovalue2',
         fieldLabel: '',