WIP: Poc for date picker

This commit is contained in:
Conor Mack 2020-03-07 16:33:44 +00:00
parent a0967a143f
commit 31eb063cf6
6 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,10 @@
<script>
import { Menu } from "../Menu"
import { Textfield } from "../Textfield"
let open = false
debugger
</script>
<Textfield label="Select Date" />
<Menu {open} />

View File

@ -0,0 +1 @@
export { default as DatePicker } from "./DatePicker.svelte"

View File

@ -39,6 +39,7 @@
}) })
$: menuList && _bb.attachChildren(menuList) $: menuList && _bb.attachChildren(menuList)
debugger
</script> </script>
{#if useFixedPosition || useAbsolutePosition} {#if useFixedPosition || useAbsolutePosition}

View File

@ -17,6 +17,7 @@
Icon, Icon,
List, List,
Select, Select,
DatePicker,
} = props } = props
let currentComponent let currentComponent
@ -28,6 +29,7 @@
props: { props: {
_component: "testcomponents/rootComponent", _component: "testcomponents/rootComponent",
_children: [ _children: [
DatePicker,
Button, Button,
BodyBoundToStore, BodyBoundToStore,
Textfield, Textfield,

View File

@ -205,5 +205,9 @@ export const props = {
value: "2", value: "2",
}, },
], ],
} },
DatePicker: {
_component: "@budibase/materialdesign-components/ListItem",
_children: [],
},
} }

View File

@ -19,3 +19,4 @@ export { default as recordForm } from "./Templates/recordForm"
export { List, ListItem } from "./List" export { List, ListItem } from "./List"
export { Menu } from "./Menu" export { Menu } from "./Menu"
export { Select } from "./Select" export { Select } from "./Select"
export { DatePicker } from "./DatePicker"