Просмотр исходного кода

example: add `window_zoom` example

YuKun Liu 3 лет назад
Родитель
Сommit
31a2ded2b9
1 измененных файлов с 1 добавлено и 1 удалено
  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())
             }