Browse Source

Merge branch 'v2' of https://github.com/jdf2e/nutui into v2

Frans 6 years ago
parent
commit
9bb48d37ca

+ 5 - 0
src/packages/skeleton/layout/skeleton-column.vue

@@ -4,6 +4,7 @@
         :style="{
         :style="{
             width:width,
             width:width,
             padding:padding,
             padding:padding,
+            'align-items':center
         }"    
         }"    
     >
     >
         <slot></slot>
         <slot></slot>
@@ -26,6 +27,10 @@
             padding:{
             padding:{
                 type:String,
                 type:String,
                 default:"0 0 0 0"
                 default:"0 0 0 0"
+            },
+            center:{
+                type:String,
+                default:"flex-start"
             }
             }
         },
         },
     }
     }

+ 6 - 1
src/packages/skeleton/layout/skeleton-row.vue

@@ -4,6 +4,7 @@
         :style="{
         :style="{
             width:width,
             width:width,
             padding:padding,
             padding:padding,
+            'justify-content': center
         }"    
         }"    
     >
     >
         <slot></slot>
         <slot></slot>
@@ -21,11 +22,15 @@
         props:{
         props:{
             width:{
             width:{
                 type:String,
                 type:String,
-                default:"100%"
+                default:"auto"
             },
             },
             padding:{
             padding:{
                 type:String,
                 type:String,
                 default:"0 0 0 0"
                 default:"0 0 0 0"
+            },
+            center:{
+                type:String,
+                default:"flex-start"
             }
             }
         },
         },
     }
     }