Browse Source

show more cases in the optional props example

Evan Almloff 1 năm trước cách đây
mục cha
commit
533c7bab49
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      examples/optional_props.rs

+ 6 - 0
examples/optional_props.rs

@@ -20,10 +20,16 @@ fn app(cx: Scope) -> Element {
         }
         Button {
             a: "asd".to_string(),
+            b: "asd".to_string(),
             c: "asd".to_string(),
             d: Some("asd".to_string()),
             e: "asd".to_string(),
         }
+        Button {
+            a: "asd".to_string(),
+            c: "asd".to_string(),
+            d: Some("asd".to_string()),
+        }
     })
 }