소스 검색

example: add `window_zoom` example

YuKun Liu 3 년 전
부모
커밋
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())
             }