mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-25 00:01:55 +00:00
20 lines
518 B
Svelte
20 lines
518 B
Svelte
<script lang="ts">
|
|
import type { Schema } from '$lib/common'
|
|
import type { EditableSchemaFormUi } from '$lib/components/custom_ui'
|
|
|
|
import EditableSchemaForm from './EditableSchemaForm.svelte'
|
|
|
|
interface Props {
|
|
schema: Schema | any
|
|
customUi?: EditableSchemaFormUi | undefined
|
|
}
|
|
|
|
let { schema = $bindable(), customUi = undefined }: Props = $props()
|
|
|
|
export function setSchema(newSchema: Schema) {
|
|
schema = newSchema
|
|
}
|
|
</script>
|
|
|
|
<EditableSchemaForm bind:schema uiOnly {customUi} editTab="inputEditor" />
|