瀏覽代碼

show more cases in the optional props example

Evan Almloff 1 年之前
父節點
當前提交
533c7bab49
共有 1 個文件被更改,包括 6 次插入0 次删除
  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()),
+        }
     })
 }