WIP: Poc for date picker
This commit is contained in:
parent
86327760a1
commit
6e0518c646
|
@ -0,0 +1,10 @@
|
||||||
|
<script>
|
||||||
|
import { Menu } from "../Menu"
|
||||||
|
import { Textfield } from "../Textfield"
|
||||||
|
|
||||||
|
let open = false
|
||||||
|
debugger
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Textfield label="Select Date" />
|
||||||
|
<Menu {open} />
|
|
@ -0,0 +1 @@
|
||||||
|
export { default as DatePicker } from "./DatePicker.svelte"
|
|
@ -39,6 +39,7 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
$: menuList && _bb.attachChildren(menuList)
|
$: menuList && _bb.attachChildren(menuList)
|
||||||
|
debugger
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if useFixedPosition || useAbsolutePosition}
|
{#if useFixedPosition || useAbsolutePosition}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -205,5 +205,9 @@ export const props = {
|
||||||
value: "2",
|
value: "2",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
},
|
||||||
|
DatePicker: {
|
||||||
|
_component: "@budibase/materialdesign-components/ListItem",
|
||||||
|
_children: [],
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue