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