From 591887fc8075a7892d73fda95ed034af2b8fdf4a Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko Date: Sat, 14 Aug 2021 16:44:55 +0000 Subject: [PATCH 1/5] 1 --- src/App.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.svelte b/src/App.svelte index edec3ec..d668c6e 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,5 +1,5 @@
@@ -141,7 +144,10 @@ - + + +

{text}

+
diff --git a/src/Input.svelte b/src/Input.svelte new file mode 100644 index 0000000..a220bee --- /dev/null +++ b/src/Input.svelte @@ -0,0 +1,20 @@ + + +
+
+
+ +
+
+ +
+
+
\ No newline at end of file From 3124f98d1c72f1e7cfcb7563b91262a27e1ec924 Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko Date: Sat, 14 Aug 2021 17:43:26 +0000 Subject: [PATCH 5/5] add 2 example of input component --- src/App.svelte | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 3386ed5..3a6fb66 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -5,8 +5,10 @@ //router.mode.memory(); // enables in-memory navigation method import Card from "./Card.svelte"; import Input from "./Input.svelte"; - let text = ""; - const handleChange = value => (text = value); // + let text1 = ""; + let text2 = ""; + const handleChange1 = value => (text1 = value); + const handleChange2 = value => (text2 = value);
@@ -144,9 +146,13 @@ - - -

{text}

+ + +

{text1}

+
+ + +

{text2}