From 5f7186106e4b5d6ca50f63c42fc6c2d7b1f582e4 Mon Sep 17 00:00:00 2001 From: Joe <49767913+joebudi@users.noreply.github.com> Date: Mon, 29 Jun 2020 19:54:30 +0100 Subject: [PATCH] Updated the basic form with boolean and select fix --- .../standard-components/src/DataForm.svelte | 70 ++++++++++++++++--- .../src/DataFormWide.svelte | 57 +++++++++++---- 2 files changed, 103 insertions(+), 24 deletions(-) diff --git a/packages/standard-components/src/DataForm.svelte b/packages/standard-components/src/DataForm.svelte index 1510110ba9..938077371b 100644 --- a/packages/standard-components/src/DataForm.svelte +++ b/packages/standard-components/src/DataForm.svelte @@ -4,6 +4,12 @@ export let _bb export let model + const TYPE_MAP = { + string: "text", + boolean: "checkbox", + number: "number" + } + let username let password let newModel = { @@ -59,15 +65,23 @@