Add size option back to forms
This commit is contained in:
parent
c0c4b3ba3b
commit
8d4f3c8100
|
@ -1725,6 +1725,21 @@
|
|||
"label": "Custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "select",
|
||||
"label": "Size",
|
||||
"key": "size",
|
||||
"options": [
|
||||
{
|
||||
"label": "Medium",
|
||||
"value": "spectrum--medium"
|
||||
}, {
|
||||
"label": "Large",
|
||||
"value": "spectrum--large"
|
||||
}
|
||||
],
|
||||
"defaultValue": "spectrum--medium"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"label": "Disabled",
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
export let dataSource
|
||||
export let disabled = false
|
||||
export let initialValues
|
||||
export let size
|
||||
|
||||
const component = getContext("component")
|
||||
const { styleable, API, Provider, ActionTypes } = getContext("sdk")
|
||||
|
@ -231,7 +232,7 @@
|
|||
{actions}
|
||||
data={{ ...$formState.values, tableId: dataSource?.tableId }}
|
||||
>
|
||||
<div use:styleable={$component.styles}>
|
||||
<div use:styleable={$component.styles} class={size}>
|
||||
{#if loaded}
|
||||
<slot />
|
||||
{/if}
|
||||
|
|
Loading…
Reference in New Issue