Pārlūkot izejas kodu

example: add `window_zoom` example

YuKun Liu 3 gadi atpakaļ
vecāks
revīzija
31a2ded2b9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      examples/window_zoom.rs

+ 1 - 1
examples/window_zoom.rs

@@ -14,7 +14,7 @@ fn app(cx: Scope) -> Element {
     cx.render(rsx! {
         input {
             r#type: "number",
-            value: "{level_display}",
+            value: "{level}",
             oninput: |e| {
                 level.set(e.value.parse::<f64>().unwrap_or_default())
             }